- This topic has 4 replies, 4 voices, and was last updated Apr 8-1:04 am by Anonymous.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Forum for users of antiX Linux. Mean and Lean and Proudly anti-fascist.
Hello,
I use antiX on my laptop with live-usb and I noticed that there are no notifications when the battery is completely discharged (0%). Fortunately I have a conky that allows me to react but I did a test and my laptop just went out without warning. How can this be remedied?
Hi pat-sen,
I use this script on my laptop. You may have to modify it for yours, but it might work until you find something better 🙂
#! /bin/bash
while true; do
sleep 60
grep Discharging /sys/class/power_supply/BAT1/status || continue
B=$(cat /sys/class/power_supply/BAT1/capacity)
case $B in
1[0-9]) yad --on-top --timeout 60 --text "Battery is at $B%" &
;;
[0-9]) yad --timeout 4 --text "Low battery shutdown" --button "Cancel"
[[ $? -eq 70 ]] && sudo /sbin/poweroff
;;
esac
done
Forum search will find multiple, various, battery monitoring solutions discussed in similar pervious topics
I’m using powerkit to monitor the battery. It’s not in the repos, you can get it from https://github.com/rodlie/powerkit. You will need to compile it. It has a couple of dependencies, but it was easy enough to do.
I can’t vouch for how accurate it is because this machine is always plugged in, but when I remove the ac the icon in the system tray does change to battery.
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |