Immediately waking after sleep

Hello! My computer wakes immediately after I put it sleep. Not sure where to start looking next…

$ neofetch 
                     ./o.                  cjbottaro@clawhammer 
                   ./sssso-                -------------------- 
                 `:osssssss+-              OS: EndeavourOS Linux x86_64 
               `:+sssssssssso/.            Host: B550M DS3H 
             `-/ossssssssssssso/.          Kernel: 6.6.4-arch1-1 
           `-/+sssssssssssssssso+:`        Uptime: 9 hours, 32 mins 
         `-:/+sssssssssssssssssso+/.       Packages: 980 (pacman), 7 (flatpak) 
       `.://osssssssssssssssssssso++-      Shell: bash 5.2.21 
      .://+ssssssssssssssssssssssso++:     Resolution: 3440x1440 
    .:///ossssssssssssssssssssssssso++:    DE: Plasma 5.27.10 
  `:////ssssssssssssssssssssssssssso+++.   WM: KWin 
`-////+ssssssssssssssssssssssssssso++++-   Theme: [Plasma], Breeze [GTK2/3] 
 `..-+oosssssssssssssssssssssssso+++++/`   Icons: [Plasma], breeze-dark [GTK2/3] 
   ./++++++++++++++++++++++++++++++/:.     Terminal: konsole 
  `:::::::::::::::::::::::::------``       Terminal Font: Cascadia Mono 11 
                                           CPU: AMD Ryzen 5 5600X (12) @ 3.700GHz 
                                           GPU: NVIDIA GeForce RTX 3080 12GB 
                                           Memory: 25794MiB / 32038MiB 
$ systemd-inhibit 
WHO            UID  USER      PID  COMM            WHAT                                                                       WHY                >
NetworkManager 0    root      730  NetworkManager  sleep                                                                      NetworkManager need>
UPower         0    root      913  upowerd         sleep                                                                      Pause device pollin>
PowerDevil     1000 cjbottaro 1092 org_kde_powerde handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch KDE handles power e>
Screen Locker  1000 cjbottaro 920  ksmserver       sleep                                                                      Ensuring that the s>
$ journalctl -b | grep suspend
Dec 08 00:09:29 clawhammer systemd-logind[660]: The system will suspend now!
Dec 08 00:09:30 clawhammer systemd-sleep[910264]: Performing sleep operation 'suspend'...
Dec 08 00:09:30 clawhammer kernel: PM: suspend entry (deep)
Dec 08 00:09:37 clawhammer kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Dec 08 00:09:37 clawhammer kernel: PM: suspend exit
Dec 08 00:09:37 clawhammer systemd-sleep[910264]: System returned from sleep operation 'suspend'.
Dec 08 00:09:37 clawhammer systemd[1]: systemd-suspend.service: Deactivated successfully.

Any ideas? Thanks for the help.

1 Like

I immediately awake after sleep as well.

Seriously could you give a better explanation of what your doing to put it to sleep? (Could be the method) how does it act if it goes to sleep on its own or does it?

1 Like

I typically can’t go to sleep in the first place… :stuck_out_tongue:

ctrl-alt-delete and then clicking the sleep button.

It does not go to sleep on its own, even though it’s set to:

Thanks again!

nor actually stay there lol

i’m just learning a little about KDE stuff and honestly don’t know much about sddm. what happens if you put it to sleep through the menu does it do the same?

is this xorg or wayland?
Nvidia card could also be the culprit as some have issues with the latest drivers

Edit: Which driver nvidia or nouveau

See if this can help:

https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Instantaneous_wakeups_from_suspend

1 Like

Does it immediately wake up after any sound nearby ? , if that is the case then disabling the in built microphone can help as I had the same issue.

Ok, so now I’m really confused. I woke up this morning and my computer was completely asleep. So it does go to sleep on its own, contrary to what I said before. I try manually sleeping it and the same thing happens, it goes to sleep, then immediately wakes up.

It’s xorg. And I think the official drivers as installed by nvidia-inst.

Side question, what’s your take on Wayland? I heard KDE Plasma 6 will require it, but currently it’s still kinda a not great experience for Nvidia cards.

The commands listed there aren’t working for me:

$ ls /sys/bus/i2c/devices/*/power/wakeup
ls: cannot access '/sys/bus/i2c/devices/*/power/wakeup': No such file or directory

$ ls /sys/bus/i2c/devices/*/power
/sys/bus/i2c/devices/i2c-0/power:

/sys/bus/i2c/devices/i2c-1/power:

/sys/bus/i2c/devices/i2c-2/power:

/sys/bus/i2c/devices/i2c-3/power:

/sys/bus/i2c/devices/i2c-4/power:

sudo echo disabled > /sys/bus/i2c/devices/i2c-0/power/wakeup
bash: /sys/bus/i2c/devices/i2c-0/power/wakeup: Permission denied

That last command is curious. I even tried it via sudo bash to make sure it wasn’t some redirection issue with sudo.

Built-in microphone? I don’t have any microphone plugged in.

Some other maybe relevant info:

  • I have a bluetooth dongle plugged in, but bluetooth is turned off on my system:
$ systemctl status bluetooth
○ bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:bluetoothd(8)
  • I have an Xbox Elite controller plugged in USB (charging), but it’s turned off.
  • I have USB dongle for my wireless keyboard.
  • I have another USB dongle for my Logitech wireless mouse.

I use openbox never have used anything wayland. I do have KDE on my laptop but I don’t for production and its Xorg

I am not having a good time with sleeping… :grimacing:

So the next day, I woke up and went to my computer and it was on. The keyboard backlight was on, and GPU fan lights were on, but there was no output to the monitor. I pressed some keys on the keyboard, moved the mouse, but nothing turned the monitor back on. I had to cut the power.

Day after that, I woke up, went to my computer… and it was sleeping! I hit spacebar on the keyboard, and it woke up… but still no output to monitor. I had to pull the plug again.

Any ideas on what to do or how to debug this? Pulling the plug isn’t great… I can see fsck running when it boots up after that. Ugh.

I switched to Linux and EndeavourOS a couple of days ago and been trying to get a clean and smooth setup. I am also facing the same issues as you do. This is the third clean install I am doing now. The only post-installation commands I did so far is nvidia-inst --32 and i installted brave-bin. So I guess this issue has to be OS or hardware related?

Are you still experiencing these issues or did you find a solution?