Skip to content

Edu4rdSHL/powerman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

powerman - Power Management framework for Linux written in Rust.

It project is being writen and not full featured, if you have any request enhancement open an issue.

What are the use-cases?

When you want to avoid your laptop full discharging and losing your not-saved work, losing your BIOS/system time. Some laptoos doesn't send udev events when your battery is discharging, then rules doesn't work. powerman allow you to do it work easily, see the usage.

Usage

$ powerman <Minimun level of battery before ation> <Time in seconds to check the battery level> <Action>

Example:

$ powerman 5 60 hibernate # Hibernate the computer when the battery level is less than 5%, the check is done every 60 seconds.

If you want to keep it running in the background, just add & at the end of the command, to run in startup, add the desired command to .bashrc, your desktop/WM startup config or enable powerman.service.

About

Power Management framework for Linux written in Rust.

Resources

Stars

Watchers

Forks

Packages

No packages published