Tag Info

New answers tagged


You can use UDEV to get the particulars about your system's battery. connected to power $ upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0a/PNP0C09:00/PNP0C0A:00/power_supply/BAT0 vendor: Panasonic model: 42T4801 serial: 624 ...


The issue is related at KDE environment. I have the same problem with MintMAYA KDE_version. When I worked with Mint9_Gnome a very useful pop-up appeared when a certain level of low-power was reached (auto-configured out_of_the_box on fresh installs). Very very annoying being shutted down without advice and no help founded even googling a lot :(


If you are using Ubuntu, You can below function charging_status(){ if upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -qP "state:\s*discharging" then return 1 else return 0 fi }

Top 50 recent answers are included