From 6a8226b415801dc43577583f1cfee8d1f358977a Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:49 +0100 Subject: hibernate: add resume mkinitcpio hook, UPower critical action --- etc/UPower/UPower.conf | 8 ++++++++ etc/mkinitcpio.conf | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 etc/UPower/UPower.conf diff --git a/etc/UPower/UPower.conf b/etc/UPower/UPower.conf new file mode 100644 index 0000000..ef4505b --- /dev/null +++ b/etc/UPower/UPower.conf @@ -0,0 +1,8 @@ +[UPower] +CriticalPowerAction=Hibernate +PercentageLow=10 +PercentageCritical=5 +PercentageAction=3 +TimeLow=1200 +TimeCritical=300 +TimeAction=120 diff --git a/etc/mkinitcpio.conf b/etc/mkinitcpio.conf index b994d89..c4865c9 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 fsck) +HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt filesystems resume fsck) # COMPRESSION # Use this to compress the initramfs image. By default, zstd compression -- cgit v1.2.3-70-g09d2