I have some strange behaviour with my laptop regarding idle handling. I am using kubuntu 23.04 with latest backports which is plasma 5.27.7 at this time. I am also using wayland if that matters. I haven’t made a bug report because I am not sure what to report.
The expected behaviour is
- The laptop goes to sleep
- The nightly backup timer wakes up the system and does the backup
- Since the machine is idle, it goes back to sleep
Now, 1. and 2. work just fine, but what happens with 3. depends on how 1. happened.
If the original sleep was caused by the idle timer or by using the sleep button in application menu, 3. does not work, the system is fully awake and the display stays on, until some user action is performed–by pressing shift of moving the pointer for example.
Step 3. works fine if 1. was done by closing the lid, pressing the sleep button on the keyboard or using “systemctl suspend” command.
First I thought the problem case was because of kde putting the system to sleep, but the lid and the sleep button also come from the kde side of things.
Any ideas or should I make a bug report? I am pretty sure this has appeared somewhat recently, less than a year, but I also switched to wayland during this time period, so there are many variables to consider.
Edit: I also have a desktop running vanilla Ubuntu 23.04 with wayland, and it works as expected.