Qubes kernel sends itself to S3 sleep every 30 seconds on LCDFans Thinkpad T700 (i7 11th gen, AMI BIOS)
Qubes OS release
4.3.0-rc3, 4.2.4
Brief summary
When I try to install Qubes, once installer loads kernel, it starts sleeping every 30s. dmesg shows no APCI state errors, just "normal" sleep and wake ups (it wakes up on power button)
Steps to reproduce
Put installation media into LCDFans Thinkpad T700 laptop. Choose "Install Qubes" (no matter which kernel), wait for the installer to load.
Expected behavior
Installation proceeds normally
Actual behavior
System goes to sleep every 30 seconds
Additional information
I tried several BIOS settings (unfortunately there is no way to disable speep entirely) and kernel options. With acpi=off, system does not load normally. intel_idle.max_cstate=0, acpi=ht, cpuidle=0, mem_sleep_default (kernel) xen_pm=0 (xen) have no effect.
Nothing suspicious in logs: something tells it to sleep and it complies.
Any hints in journalctl regarding sleep reason? Maybe the lid switch says it's closed?
Nothing! It just says "suspending" out of the blue and I found no way to inhibit it. There are weirdly high counters on gpe66 and gpe6E indeed, but if i disable them entirely it changes nothing.
Ha! But when I changed HandleLidSwitch=ignore in the rescue shell, it helped! A bit counterintuitive, since disabling acpi interrupts did not change this behavior.
I'm pretty sure it thinks the lid is closed for some reason. Just a wild guess - don't you have some magnet near the lid sensor?
Indeed! It is a weird machine and probably this is a malfunction. But I do not know where the sensor is. And why regular Ubuntu and Windows did not respond to this?
Interesting. I disabled "close lid" action in logind.conf. But when I open it after manual suspend, it still wakes up properly!
anything else I could do to help to diagnose this?