Shell command to check battery status? [answered]
Does there exist any command to check the battery status? (From my laptop, I usually use "acpi")
We have moved to a new Sailfish OS Forum. Please start new discussions there.
Does there exist any command to check the battery status? (From my laptop, I usually use "acpi")
upower -d
will give you all kinds of battery stats
Device: /org/freedesktop/UPower/devices/battery_battery
native-path: battery
power supply: yes
updated: Sat Jan 10 09:22:09 2015 (19 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
energy: 7.43432 Wh
energy-empty: 0 Wh
energy-full: 7.79 Wh
energy-full-design: 7.98 Wh
energy-rate: 0.511242 W
voltage: 4.30687 V
percentage: 100%
temperature: 27.5 degrees C
capacity: 97.619%
technology: lithium-ion
History (rate):
1420881667 0.511 fully-charged
1420881666 0.016 fully-charged
1420881664 0.511 fully-charged
in /sys/class/power_supply/battery/ you can find all information about the battery in /sys/class/power_supply/usb/ all about usb (power) in /sys/class/power_supply/pm8921-dc all about the charger
battery charge level example: cat /sys/class/power_supply/battery/capacity returns the charge level percentage as show on the screen
upower was dropped in 2.0.1 Taalojärvi. Is there a substitute?
objectifnul ( 2016-05-14 09:49:30 +0200 )editThis thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2015-01-10 09:19:12 +0200
Seen: 2,603 times
Last updated: Jan 10 '15
Command line equivalents of GUI commands
UI is not responsive at low battery level <10% [released]
user can choose battery+connection+clock to be always visible
Strange battery indicator behavior [not relevant]
charger recognised as USB cable, and charging doesn't begin