My PC is running Ubuntu 22.04, with KDE Plasma 5.24. When I select Sleep from the Application Launcher, it always starts t go to sleep, but then it seems like a 50-50 chance that it will stay asleep. Many times, it wakes right back up again within 10 seconds. If I try to make it sleep two or more times, sometimes it will eventually sleep but not always.

I’ve done some searching and cannot find a resolution to this.

It seems I’m not the only one too - https://superuser.com/questions/1795451/kde-plasma-does-not-sleep

  1. Is there a sure-fire way to tell Ubuntu KDE to sleep?

  2. If not, what are some things which might wake it up again?

Thanks!

  • e0qdk@reddthat.com
    link
    fedilink
    arrow-up
    2
    ·
    7 months ago

    I don’t know about KDE in particular, but I’ve had problems with USB mice waking various Ubuntu systems when they’re not directly connected (i.e. there’s a hub or KVM in between it and the computer). The workaround I used for that was to remove the mouse input (e.g. by carefully pressing a physical button on the KVM) – which was good enough for me – but I think there is a programmatic way to block particular classes of input from waking the system if some device is waking your system inappropriately.

    Doing a quick search turned up this: https://askubuntu.com/questions/252743/how-do-i-prevent-mouse-movement-from-waking-up-a-suspended-computer – I can’t vouch for any of the specific techniques there though.

    Worth noting that while I had a problem with the mouse specifically, other hardware could be causing your system to wake up.