I am trying to understand I weird behavior I have noticed on my AMD 7040 board (which I upgraded to from an 11th gen Intel board).
In a nutshell, the laptop seems to exit its s2idle sleep unexpectedly.
Sometimes, I notice the event because, while walking with the laptop in my backpack, my Bluetooth headphones connect to the laptop, then disconnect again.
Other times, I pull the laptop out of my bag, and I start hearing notification noises before I even try to open the lid.
I have used journalctl in the past, in an effort to figure out the odd sleep behavior of the 11th gen board. But I must be missing some key knowledge, because I cannot for the life of me figure out what is triggering the suspen exit event.
If I didn’t know any better, I would blame a faulty lid sensor. But it’s in my nature to think of a hardware failure first, and maybe the issue here is on the software side of things.
Any tips are appreciated.
My suggestion is to make sure you are using s2idle (deep). Framework’s official guides talk about this as well.
That or configure hibernation. On an NVME and depending on how much system RAM you have it really is not the big of a time synch anymore. And you have peace of mind knowing your system is completely off.
This is what we are doing on our older intel boards. It should not be something needed for the AMD boards. On top of it, /sys/power/mem_sleep only lists s2idle as an option.
Besides, I’d still want to understand what the trigger is. What if it really is a problem with the lid sensor?
Thanks for the input, and apologies for the silence. After some very scientific tests (i.e. bending the chassis while the laptop is sleeping) I can confirm that the issue seems to be mechanical in nature.
I’ll see if I have the grit to figure out which component is triggering the wakeup. Or I will reach out to support. Let’s see.
The sensor is hall sensor based. It works based on magnets in the lid. As such magnets near audio jack can possible trigger it, causing your laptop to suspend.
Is it possible you have a magnet or anything like this often around your FW 13?
He did say bending the laptop can make it happen so it could also be a broken trace or loose solder joint somewhere causing the signal from the hall sensor to get interrupted causing the wakeup. If it does happen with the audio board disconnected it can’t be stray magnets or a defect on the audio-board. if it doesn’t happen with the audio-board disconnected the fault is entirely somewhere else.
To clarify: the Super Scientific Bend Test was done with the lid open, not closed. So, whatever triggers the wake-up, I am tempted to rule out anything magnet/related. I’ll tinker a bit more, and see what I can find.
Well, with the screen open all the way, its magnet is too far to have any effect on the sensor. With no other magnet in sight, I don’t see how it could be related to a magnetic field interfering with the sensor on the board.