https://bugs.kde.org/show_bug.cgi?id=450068
Bug ID: 450068 Summary: Some monitor-related settings are lost after external monitor re-connected in wayland session Product: plasmashell Version: 5.24.0 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: major Priority: NOR Component: Multi-screen support Assignee: plasma-b...@kde.org Reporter: notsync...@163.com CC: aleix...@kde.org, notm...@gmail.com Target Milestone: 1.0 SUMMARY Some settings, such as tablet target display, and desktop wallpapers, will restore to default after external monitor reconnected or system rebooted in wayland session (X11 not tested). I have 3 monitors connected to a laptop through a USB type-c to 3 HDMI connector, two of them are normal 1080p displays, and one of them is a drawing tablet. After some digging I found these was caused by the drm output name changing after reconnection. Before reconnect: ls /sys/class/drm: card0/ card0-DP-1/ card0-DP-2/ card0-DP-3/ card0-DP-4/ card0-DP-5/ card0-eDP-1/ renderD128/ version After reconnect: ls /sys/class/drm: card0/ card0-DP-1/ card0-DP-2/ card0-DP-6/ card0-DP-7/ card0-DP-8/ card0-eDP-1/ renderD128/ version You can see the external display connector names are changed from 3,4,5 to 6,7,8. More reconnects will increase these number. While in the .config/plasmashellrc and .config/kcminputrc, I found the displays are identified by the connector name: [ScreenConnectors] 0=DP-3 2=DP-4 3=DP-5 4=DP-7 5=DP-8 6=DP-6 [Libinput][9580][109][HUION Huion Tablet_GS1161] OutputName=DP-3 [Libinput][9580][109][HUION Huion Tablet_GS1161 Pen] OutputName=DP-5 I guess these may be the problem. Connector names are changed after reconnect, thus the settings lost. Maybe we could use some more persistent things such as the monitor's serial number to identify them? STEPS TO REPRODUCE 1. Set a wallpaper for an external monitor connected through type-c connector/Set tablet target display to an external monitor connected through type-c connector 2. Unplug and replug the external monitor 3. The wallpaper restored to default wallpaper/Tablet target display settings restored to default OBSERVED RESULT Wallpaper/tablet settings are keeped EXPECTED RESULT Wallpaper/tablet settings are restored to default SOFTWARE/OS VERSIONS Linux/KDE Plasma: Archlinux (Wayland session) (available in About System) KDE Plasma Version: 5.24.0 KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.