Devuan: Annoying issue with suspend, halt, reboot with kernel 7.1.3+deb13-amd64

Hi,

if someone is interested:

Since kernel 7.1.3 halt, suspend and reboot seemed to not work anymore. The system shuts down, no hints as I can see in syslog and kern.log, but the FW 16 does not power off.

After searching, I found Ryzen - ArchWiki with this paragraph:

"Freeze on shutdown, reboot and suspend

Note This problem may be resolved with newer AGESA firmware, available through a UEFI update (often referred to as a “BIOS update”).

This issue is strongly linked to the C6 CPU idle state, which can cause instability on Linux, particularly when used with power supplies or motherboards that do not handle ultra-low current draw well.

To mitigate this, enter the UEFI setup:

  • Locate the setting called Power Supply Idle Control (or similar).
  • Change it from Low Current Idle to Typical Current Idle.
  • This disables deeper idle states (such as C6), allowing only C1 and C2. While this slightly increases power consumption, it significantly improves system stability.

Note This UEFI change can also resolve the soft lock freezing issue described above, as both are commonly caused by unsupported or unstable deep C-states.

If your motherboard does not offer this setting, or if issues persist, alternative workarounds include:

  • Fully disabling C-states in UEFI (if available, though not always recommended).
  • Add the processor.max_cstate=1 kernel parameter to limit CPU idle state.

Disabling deep C-states may raise idle power consumption by approximately 5–10 W, but typically resolves issues with suspend, reboot, and shutdown on affected systems."

Adding

processor.max_cstate=1

to

/etc/default/grub

...
GRUB_CMDLINE_LINUX_DEFAULT="quiet processor.max_cstate=1 "
...

and

update-grub

did solve it for me.