aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:24:49 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:24:49 +0100
commit6a8226b415801dc43577583f1cfee8d1f358977a (patch)
tree13cca7152ba34f7dfbfe818e62a55c813dbb990e
parent5cd3b203a0119f06f7545fd91e9aa308721144e1 (diff)
downloaddotfiles-6a8226b415801dc43577583f1cfee8d1f358977a.tar.gz
dotfiles-6a8226b415801dc43577583f1cfee8d1f358977a.tar.bz2
dotfiles-6a8226b415801dc43577583f1cfee8d1f358977a.zip
hibernate: add resume mkinitcpio hook, UPower critical action
-rw-r--r--etc/UPower/UPower.conf8
-rw-r--r--etc/mkinitcpio.conf2
2 files changed, 9 insertions, 1 deletions
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