qubes-issues icon indicating copy to clipboard operation
qubes-issues copied to clipboard

Qubes kernel sends itself to S3 sleep every 30 seconds on LCDFans Thinkpad T700 (i7 11th gen, AMI BIOS)

Open arkenoi opened this issue 1 month ago • 7 comments

How to file a helpful issue

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.

arkenoi avatar Nov 20 '25 17:11 arkenoi

Any hints in journalctl regarding sleep reason? Maybe the lid switch says it's closed?

marmarek avatar Nov 20 '25 18:11 marmarek

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.

arkenoi avatar Nov 20 '25 18:11 arkenoi

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.

arkenoi avatar Nov 20 '25 18:11 arkenoi

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?

marmarek avatar Nov 20 '25 18:11 marmarek

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?

arkenoi avatar Nov 20 '25 19:11 arkenoi

Interesting. I disabled "close lid" action in logind.conf. But when I open it after manual suspend, it still wakes up properly!

arkenoi avatar Nov 20 '25 21:11 arkenoi

anything else I could do to help to diagnose this?

arkenoi avatar Nov 21 '25 08:11 arkenoi