Hey everyone! I'm running Fedora Linux with GNOME on my laptop (Ryzen 3 7320U, 8GB RAM) and I'm looking for a way to automatically hibernate my system when the battery level drops to 25%. Is there a reliable method to achieve this? Any tips would be greatly appreciated!
1 Answer
Yes, it's definitely possible! You can set this up using a tool like cron or a udev rule. The udev rule is a bit more involved but works well. You would create a file in `/etc/udev/rules.d` and add a rule that triggers the hibernate command when the battery discharges to 25%. Just be cautious: it could hibernate even when you might want to use it a little longer if it’s not plugged in.
That sounds a bit annoying. Can't you just check the battery level with CLI commands and automate it in a simpler way instead?