| Summary: | Tiling config changes/resets itself due to monitor being identified differently after resume from sleep | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Arne <kde> |
| Component: | Custom Tiling | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | ecrosby1971, kv3f5ves, nate, notmart, oded, seldomridgej, tom, xaver.hugl |
| Priority: | NOR | Keywords: | multiscreen |
| Version First Reported In: | 6.0.1 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/9a371fd98bd3f9d0009514d67ea2a3881aba4a63 | Version Fixed/Implemented In: | 6.4.0 |
| Sentry Crash Report: | |||
|
Description
Arne
2023-08-23 12:57:26 UTC
I messaged to reproduce this issue with a laptop and external monitor: 1. Set non default tiling layout to both screens. 2. Unplug external screen 3. Suspend laptop 4. Wake up laptop and connect external screen In my case the laptop's built-in screen kept the custom layout and just the external screen for a new, default, layout. Looking at `kscreen-doctor -o`, I can see that my screen layout hasn't changed, and kscreen still see the same screen IDs and layout (kscreen sometimes does reset the screen layout, at which point tiling layout reset makes sense, but this is not the case here). I just changed my config on both my Arch Linux systems and after a reboot both settings were changed in an identical manner ({"width":0.378},{"width":0.621} got changed to {"width":0.378125},{"width":0.621875}).
(In reply to kde from comment #2) > I just changed my config on both my Arch Linux systems and after a reboot > both settings were changed in an identical manner > ({"width":0.378},{"width":0.621} got changed to > {"width":0.378125},{"width":0.621875}). That is not an actual reset - its just an IEEE-754 style "floating numbers are hard" issue. I'm going to say that this isn't a bug and can't be "fixed" without something ridiculously overkill such as libgmp, so its just not worth it. You just have to accept that unless you're using binary fractions, you can't have exact rations. Thanks for your reply. I understand that adjusting the fractions is not really fixable, but my main issue is still present. So the actual resetting bug seems to be always due to monitor identification failures. Explained here by guss777: https://discuss.kde.org/t/new-tiling-settings-constantly-reset-themself/2520/7 I experience this bug sometimes and can testify that my kwinrc has way more `[Tiling][some-id]` configs than I have monitors. Yes, the actual issue has neither anything particular to do with waking my system from sleep nor with the issue regarding fractions. The config gets changed between reboots and/or re-logins regardless of the values used. And most importantly the issue still persists on Plasma 6. Steps to reproduce:
1. Set custom tiling panel layout and padding.
2. Turn display off and on again.
3. New section in ~/.config/kwinrc got added with the default layout: tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]} and padding got reset to 4.
I recently started using Tiling again and noticed my setting not saving. This, apparently, is still an issue in 6.1 as I just upgraded at the beginning of the week. I hope a solution is found soon. It's rather annoying to keep setting it up. Makes the Tiling feature useless. This bug still exists. Not sure on the trigger, but my padding setting specifically are contantly resetting. KDE Plasma 6.3.4j / CachyOS This should be fixed in Plasma 6.4 with https://invent.kde.org/plasma/kwin/-/merge_requests/7465 This is still occurring for me in Plasma 6.5.3 |