Bug 435326 - Display configuration is not saved
Summary: Display configuration is not saved
Status: RESOLVED WORKSFORME
Alias: None
Product: KScreen
Classification: Plasma
Component: common (other bugs)
Version First Reported In: 5.19.5
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2021-04-03 21:57 UTC by Sysadmin
Modified: 2022-12-08 05:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sysadmin 2021-04-03 21:57:02 UTC
Display configuration is not saved on system with 2 monitors running on waylands KDE.

This is a new issue after KDE upgrade brought by upgrade to Ubuntu 20.10.

Kscreen package: kscreen/groovy,now 4:5.19.5-0ubuntu1 amd64

STEPS TO REPRODUCE
1. Rotate one of displays verically and position it relative to the other.
2. Logout or restart
3. Log back in. 

OBSERVED RESULT
Display orientations and positions are lost.

EXPECTED RESULT
Display orientation is preserved.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.19.5
KDE Frameworks Version:  5.74.0
Qt Version:  5.14.2

ADDITIONAL INFORMATION
1. The issue is reproduced with a brand new user on the system. 
2. The issue affects both X11 and waylands.
3. Deleting ~/.local/share/kscreen does not help.

Running
> strace systemsettings5  2>&1 | grep ".local/share"

Here is what it prints when I change configuration and then click appy:
mkdir("/home/localuser/.local/share/kscreen/control/outputs", 0777) = -1 EEXIST (File exists)
stat("/home/localuser/.local/share/kscreen/control/outputs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/localuser/.local/share/kscreen/control/outputs/44ea2777a54f3875660452365852c3e1", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 26
mkdir("/home/localuser/.local/share/kscreen/control/outputs", 0777) = -1 EEXIST (File exists)
stat("/home/localuser/.local/share/kscreen/control/outputs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/home/localuser/.local/share/kscreen/control/outputs/71a2cf58adc0a2870ec8ef8309d99664", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 26
unlink("/home/localuser/.local/share/kscreen/control/configs/31049c74bf4cd7365ee0b1788fad41ed") = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/localuser/.local/share/kscreen/control/configs/31049c74bf4cd7365ee0b1788fad41ed", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/localuser/.local/share/kscreen/control/outputs/44ea2777a54f3875660452365852c3e1", O_RDONLY|O_CLOEXEC) = 26
openat(AT_FDCWD, "/home/localuser/.local/share/kscreen/control/outputs/71a2cf58adc0a2870ec8ef8309d99664", O_RDONLY|O_CLOEXEC) = 26

There is nothing in /home/localuser/.local/share/kscreen/control/configs/
/home/localuser/.local/share/kscreen/control/outputs contains 2 files with trivial configs:
File 44ea2777a54f3875660452365852c3e1
{
"id": "44ea2777a54f3875660452365852c3e1",
"metadata": {
"name": "Dell Inc. HDMI-A-1-DELL U2415/..."
},
"scale": 1
}

and file  71a2cf58adc0a2870ec8ef8309d99664:
{
"id": "71a2cf58adc0a2870ec8ef8309d99664",
"metadata": {
"name": "Dell Inc. DP-1-DELL U3415W/..."
},
"scale": 1
}
Comment 1 Nate Graham 2022-11-08 22:03:37 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Plasma 5.25 or 5.26?

If it is, please change the status to CONFIRMED when replying. If not, or if you can't because you no longer use this setup, you can change the status to RESOLVED WORKSFORME. Thanks a lot!
Comment 2 Bug Janitor Service 2022-11-23 05:15:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-12-08 05:15:27 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!