Dear #LazyFedi

I run a "minimal" #Debian system based on #i3wm, but I'd like my laptop to suspend or shutdown when the battery power gets too low, to avoid running the battery right to zero. What is a reasonable to do this? #upower seems like it might be part of the answer, but it seems like it is mainly glue to provide non-root users the ability to suspend etc...

Follow

@bremner previously did this in `/etc/udev/rules.d/99-lowbat.rules`

```
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-5]", RUN+="/bin/systemctl hibernate"
```

Which would hibernate whenever the battery level was 5% or less

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml