Comment

Comment by greatgib

I had regularly the same issue with different brands of laptop and using Linux. Especially, one laptop that is more than half a decade old started to have the issue out of the blue a few years ago.

What I think I discovered after years of internet searching for it, is that it is related to the cpu sleep state that are available.

Before, when going to sleep, the cpu was really going to sleep. Kind of shutting the power off. In that state, the laptop would not wake up for random events at random times. But nowadays, the only cpu state that is offered by the cpu for sleep mode is one where the cpu is still running, but in very low power/activity mode. Like "simulating" the sleep. But so, from the motherboard point of view, the cpu is up and running.

And so, because of that, you could easily have random events that wake up the laptop when it is closed and then it will start to do nothing but heat up as closed and probably in a bag. Fan might spin, without an effect as in a confined space, but so the battery exhausting very fast. Until the laptop run out of battery.

For event I think that it might be something like a fake touch event on the touchpad because of movement of the laptop, screen touching when compressed or things like that; a little bit higher temperature sensor reading because of high outside temperature, or indeed a device driver that is not completely off like a wifi card that will trigger events.

Where it was the most confusing is that for the half a decade old laptop, it has both mode but recently linux distributions started to favor the cpu "fake sleep" as sleep mode by default instead of the "real sleep" that was used previously. Switching the config to "real sleep" appears to solve the problem but new laptops doesn't have this mode available anymore.

parent greatgib 8 days ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton