I have no idea where to begin looking at this issue. My laptop wakes up at night and only at night, even though the laptop lid is closed. It stays awake until I wake up to open and close the lid for it to go back to sleep.
I have no idea where to start tracking down the thing that is causing this.
What I like about Endeavour OS and Arch is that with each problem fixing we can learn more about essential linux functions. Myself I need to learn more about the journalctl but here is a good read:
I suspect something is going on with the wireless trying to connect, seeing wlan0 and network manager in the journal log.
I suggest try putting your laptop in airplane mode or switch off wireless overnight to check if it fixes temporarily the issue.
Second thing, I would check whether you setup “suspend” in system settings under power or battery and your computer actually suspends when closing the lid, not only dims screen.
I’m pretty sure it goes into proper sleep since the lamp that indicates if it’s running/sleeping/shut down goes into sleeping mode where it blinks orange instead of full on blue (running) or turned off (shut down).
I have tried to shut down running programs and it still woke up, but I’ve never been tried turning wifi off. I’ll try that next.
If you are only putting the computer on suspend mode, then keep in mind there are various devices that can wake the pc. For example any mouse or keyboard input will wake my pc from suspend. I need to turn off the wireless mouse (from the switch on the bottom of it), so that it doesn’t wake up the pc.
Alternatively, check that the touchpad is not being activated by being in proximity to the screen (when the lid is closed). This has happened to me.
Finally, if you use shutdown instead of suspend, check and disable wake on lan in bios, or check if there is an alarm set up in bios.
There a few things I’m sure aren’t causing the wake up. I have tried removing all USB devices before putting it in suspend mode and it still woke up. And touching the touchpad doesn’t wake up the laptop, even with the lid up and it being in suspend mode. As for keyboard input, I don’t think there is a way for any key to be pressed when the lid is closed.
I just checked the WOL setting and it’s off already. So I’m gonna try to disable WIFI next and see if it helps and get back to this thread after. Have a few good ideas now. Thanks.
Also make sure … cat /sys/class/rtc/rtc0/wakealarm
… returns nothing. This is your system’s “alarm clock” to wake up out of suspend and should return nothing by default.
[Edit] @mbod already had the rtc alarm covered two posts above. Didn’t notice before, sorry
Ok. The solution I mentioned above did not work. The laptop still woke up after a while. I was just lucky that it didn’t wake up during the night like it usually does. The search for a solution continues.