May 18, 2024

UPower - Turn off my laptop when the battery is low on Debian 12 Server.

1. Install UPower.

apt install upower

2. Edit UPower.conf file.

nano /etc/UPower/UPower.conf

3. Change the next lines for values you need.

PercentageLow=40

PercentageCritical=30

PercentAction=20

4. Start UPower service.

systemctl start upower

5. Enable the service to start on boot.

systemctl enable upower

6. Check status of the service.

systemctl status upower


No comments

Post a Comment

Code Copied!

© 2025 Jadslog. All Rights Reserved.