diff options
| author | 2026-04-21 01:24:52 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:52 +0100 | |
| commit | 2a94cc096c647d06cf80b166f6b878609572dd1a (patch) | |
| tree | f271ce17f54e70ed2f28005412815ef64893b1c7 | |
| parent | 6a8226b415801dc43577583f1cfee8d1f358977a (diff) | |
| download | dotfiles-2a94cc096c647d06cf80b166f6b878609572dd1a.tar.gz dotfiles-2a94cc096c647d06cf80b166f6b878609572dd1a.tar.bz2 dotfiles-2a94cc096c647d06cf80b166f6b878609572dd1a.zip | |
UPower: PowerOff critical action (no swap, no hibernate)
| -rw-r--r-- | etc/UPower/UPower.conf | 9 | ||||
| -rw-r--r-- | etc/mkinitcpio.conf | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/etc/UPower/UPower.conf b/etc/UPower/UPower.conf index ef4505b..8f7fe34 100644 --- a/etc/UPower/UPower.conf +++ b/etc/UPower/UPower.conf @@ -1,7 +1,10 @@ [UPower] -CriticalPowerAction=Hibernate -PercentageLow=10 -PercentageCritical=5 +# No swap on this system, so hibernate isn't an option. Fall back to a clean +# power-off at the critical threshold; poweralertd warns well before we get +# there so unsaved work can be saved. +CriticalPowerAction=PowerOff +PercentageLow=15 +PercentageCritical=7 PercentageAction=3 TimeLow=1200 TimeCritical=300 diff --git a/etc/mkinitcpio.conf b/etc/mkinitcpio.conf index c4865c9..b994d89 100644 --- a/etc/mkinitcpio.conf +++ b/etc/mkinitcpio.conf @@ -52,7 +52,7 @@ FILES=() # ## NOTE: If you have /usr on a separate partition, you MUST include the # usr and fsck hooks. -HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt filesystems resume fsck) +HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt filesystems fsck) # COMPRESSION # Use this to compress the initramfs image. By default, zstd compression |
