Cannot wake from deep sleep when opening the lid

Which Linux distro are you using?

Nixos

Which release version?
unstable, updated yesterday

Which kernel are you using?

7.0.8

Which BIOS version are you using?

3.07

Which Framework Laptop 12 model are you using?

13th Gen Intel® Core™

Hey folks,

I’m having issue with the power management of my laptop. I have Nixos / Niri / DankMaterialShell working well for a few months. However, I was using ‘s2idle’ sleep mode and the battery consumption was not great.

I recently switched to S3 ‘deep’ sleep state:

$ cat /sys/power/mem_sleep
s2idle [deep]

When I close the lid, I can see ‘systemd-login’ reacted correctly and suspending to RAM

mai 19 12:05:06 nixos systemd-logind[1190]: Lid closed.
mai 19 12:05:06 nixos systemd-logind[1190]: Suspending…

but when I open back the lid, nothing happens. The power led still blinks slowly but the laptop doesn’t wake up.

If I press the power button, the laptop wakes up and I can resume my activity. Log clearly shows that ‘systemd-logind’ has detected a power button press but also that the lid is opened.

mai 19 12:45:43 nixos systemd-sleep[9038]: Performing sleep operation ‘suspend’…
mai 19 12:45:43 nixos kernel: PM: suspend entry (deep)
mai 19 12:45:43 nixos kernel: Filesystems sync: 0.004 seconds
mai 19 12:47:08 nixos kernel: Freezing user space processes
mai 19 12:47:08 nixos kernel: Freezing user space processes completed (elapsed 0.001 seconds)
mai 19 12:47:08 nixos systemd-logind[1190]: Lid opened.
mai 19 12:47:08 nixos kernel: OOM killer disabled.
mai 19 12:47:08 nixos systemd-logind[1190]: Power key pressed short.

So it looks like there’s no signal sent by the laptop that the lid is opened when in deep sleep, preventing the OS to wake up ?

Any thoughts on this issue ?

Thanks !