SUMMARY I have created a auto start scrip [1] to modify my keyboard distribution (laptop keyboard without menu key, in fact is a KDE slimbook with Neon). At startup, it works fine but after any suspend event, the configuration is lost. I am using X11 and have not tested with wayland (not sure if the script works anymore in wayland, although). The bug seems to exists from some time [2] and happens to more people than me. [1] xmodmap -e "keycode 105 = Menu" [2] https://superuser.com/questions/1173979/how-to-run-programs-in-kde-after-suspend-wakeup STEPS TO REPRODUCE 1. Trigger any suspend actions 2. Configuration is lost 3. If I manually execute the code, the configuration is restored OBSERVED RESULT EXPECTED RESULT Configuration is keep after suspend events SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Neon (available in About System) KDE Plasma Version: 5.23.5 KDE Frameworks Version: 5.90 Qt Version: 5.15.3 ADDITIONAL INFORMATION
What do you mean with "configuration is lost"? Autostart scripts are run at *Start*, they are not supposed to run on wakeup
(In reply to Nicolas Fella from comment #1) > What do you mean with "configuration is lost"? The effect of the script is lost. I mean, "somewhere" , "something" is re running the configuration of xmodmap when I think it should not be done. I assume that other configurations (probably, related to screens) are also executed (and this is why we have a lot of screen flicker when we restart from suspend). Could this be a side effect of kscreen trying to hard to reconfigure the xserver? > Autostart scripts are run at *Start*, they are not supposed to run on wakeup Yes, this is a good point. In that case, I am not sure if this is a bug or a new feature to be added
Indeed, autostart scripts only run on startup, not wakeup. The real bug here is that waking up the system undoes your xmodmap modification. Not sure what does that but it'd definitely not the KCM; moving to plasmashell. It might even be an X server thing.
Are you still seeing this on a recent Plasma version like 6.3, Cruz? At this point I'm pretty sure it's not a Plasma issue FWIW.
I have moved to wayland in that laptop and I am not sure as I hardly use it anymore. If I manage to start a X session, I will try tomorrow afternoon.
๐๐งน โ ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
๐๐งน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.