News for hackers. Stuff that matters.
Re:Do not leave XPS laptop in any sleep/hibernate/standby mo... by sillystuff on Friday September 24, 2021 @11:36AM (#28643845)
See if cat /sys/power/mem_sleep returns [s2idle] deep

You want it to return [deep] s2idle

Adding something like, /etc/sysfs.d/set-sleep-to-s2ram.conf:

    power/mem_sleep=deep
(The above requires the package 'sysfsutils' to be installed on Debian / Debian derived distributions).

On my work supplied xps-13, bluetooth does not survive the laptop being unplugged in "deep" sleep (even for a couple seconds). Fixing bluetooth requires suspend to disk aka "hibernate" or regular reboot to restore. No reloading modules etc. helps. Other than that annoying bug, proper sleep works fine on the hardware.

But, I also had to add, /etc/modprobe.d/i915gpu-fix-xps13-crashes.conf:

    options i915 enable_guc_loading=1 enable_guc_submission=1
To solve the laptop crashing when idle. Originally I disabled c-states on the gpu to fix the crashing, but some other kind soul on the Internet shared the above which solves the crashing, but doesn't kill battery life like my fix.

There are no comments on this comment yet.