How can I set Fedora GNOME to hibernate at 25% battery?

0
0
Asked By CuriousCat789 On

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

Answered By TechyTom123 On

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.

BatteryBoss42 -

That sounds a bit annoying. Can't you just check the battery level with CLI commands and automate it in a simpler way instead?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.