I’m running Arch Linux and am having a problem configuring sleep on my Framework. When mem_sleep is set to s2idle, the laptop appears to stay powered on. The display turns off, but the keyboard backlight remains on if it is already, and the power button light stays solid, rather than going to the blinking mode I see in deep sleep. The battery drain is quite high with this also.
I know sleep should work correctly under s2idle, I’ve booted into various live environments from other distros such as Manjaro and Linux Mint, and both of those have behaved as expected out of the box, so I can’t help feeling like it’s something I’ve not configured properly!
I thought I’d come and check back in here as I’ve made some progress towards finding out the issue, at least. It seems this is a kernel issue, as spotted in this thread about Fedora.
I’ve just switched my Arch install to using the LTS kernel (5.15.43) rather than the latest one and s2idle sleep puts the hardware into the low power mode I’m expecting from it. It seems that 5.16 seems to have introduced this but I’m yet to figure out how to solve that. But progress at least!
the difference between adding it on GRUB_CMDLINE_LINUX vs GRUB_CMDLINE_LINUX_DEFAULT is that the former is always applied even on recovery mode, while the later is only applied on normal boot, the later seems more okay.
Thanks for explaining the difference between GRUB_CMDLINE_LINUX_DEFAULT and GRUB_CMDLINE_LINUX and why it is more desirable. To confirm, the \ is required when adding to the GRUB_CMDLINE_LINUX_DEFAULT line and not required for the GRUB_CMDLINE_LINUX line?
So it should be either:
or GRUB_CMDLINE_LINUX_DEFAULT=acpi_osi=!\"Windows 2020\"
I have no GRUB_CMDLINE_LINUX_DEFAULT= line in my grub.cfg file but I think I’m right in saying it can be added to grub.cfg and Fedora/RH just don’t use it by default?
I’m aware that it is recommended to use grubby on Fedora and that they have a slightly different approach to other Linux distros in that regard so maybe that is why it isn’t there.
This bug was reported to bugzilla a year ago with the last reply being March 10th:
Thank you for testing. I’ve access to a Framework laptop myself, I’m a bit busy atm but I will try to reproduce this when I can make some time and then investigate.
I’m unfamiliar with the process but does Framework have any hand in helping with this bug or bringing attention to it? It is not a big deal to add this parameter but I wonder if this is just how it will always be.