Skip to content

Commit 156fbb6

Browse files
Merge pull request #1634 from MrSom3body-contrib/fix/asus-battery-threshold
asus/battery: fix battery threshold not being set after hibernation
2 parents d232c6f + c52ea60 commit 156fbb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

asus/battery.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ in
3131
wantedBy = [
3232
"local-fs.target"
3333
"suspend.target"
34+
"suspend-then-hibernate.target"
35+
"hibernate.target"
3436
];
3537
after = [
3638
"local-fs.target"
3739
"suspend.target"
40+
"suspend-then-hibernate.target"
41+
"hibernate.target"
3842
];
3943
description = "Set the battery charge threshold to ${toString cfg.chargeUpto}%";
4044
startLimitBurst = 5;

0 commit comments

Comments
 (0)