Debian Bookworm has sleep problems

So I got a triple (!) install on two Nmve ssd’s. One windows on separate ssd and Debian Bookworm KDE and GNOME flavours on the other on each separate partition. windows for gaming only with a separate display to a Nvidia RTX GPU. Both the Debian partitions running on separate display from internal Intel GPU. All controlled by GRUB Bootloader. BUT: I had to install “Nvidia-Driver” to both KDE and GNOME to control the other screen to keep it asleep during Linux sessions.
I am not sure whether this may be the cause or something else that lead to my problem, which is as follows: When leaving a session, ordering either flavour to “suspend”, computer will go into sleep but then wake right up again, computer stays awake with fans and pump running. I have tried to change behaviour in system settings and updated uefi/bios in the faint hope it would help but this is persistent - only full shutdown will keep the thing down. I would like to leave the computer knowing it eventually goes to sleep and not come back to a fully awake system and LogIn screen alive. I have been searching the interweb and inquired with chatgpt without solution. Anyone have an idea about where I should start digging, maybe a nudge in the right direction?

2 Likes

Some event is waking it up… possibly

  • a cron job
  • the mouse if usb or wifi
  • try unplugging that extra screen
  • try shutting the lid or hold the button down

If you can find the wakeup culprit there will be a way to break the link with software settings.

and
Look at the logfiles
Look at Settings → Power

3 Likes

Yup. Mouse, Logitech wireless with USB with dongle. Pulled the thing out and no more sleep problems :). Damn! I didn’t even think aboot that. Problem is; I now have to unplug mouse until I find out how I can avoid that… Research goes on. Still open for advice…

3 Likes

Have a look at the file login.conf
There may be suspend settings that you can fiddle.

Here goes: “grep . /sys/bus/usb/devices/*/power/wakeup” which had me identify “/sys/bus/usb/devices/1-6.4/power/wakeup:enabled” as the culprit. Then: "cat /sys/bus/usb/devices/1-6.4/idVendor
“cat /sys/bus/usb/devices/1-6.4/idProduct”
Then !“echo “disabled” | sudo tee /sys/bus/usb/devices/1-6.4/power/wakeup
echo “disabled” | sudo tee /sys/bus/usb/devices/1-6.4/power/wakeup”. Then "suspend"and systen went to sleep without more wake triggering.Now have to wake computer with keyboard.