ssh battery check [duplicate]
Hi, is there a CLI command allowing to check battery and power status? This would be useful for remote device monitoring through SSH and Putty.
We have moved to a new Sailfish OS Forum. Please start new discussions there.
Hi, is there a CLI command allowing to check battery and power status? This would be useful for remote device monitoring through SSH and Putty.
Just use standard linux interface to battery readings: /sys/class/power_supply
. On arbitrary device one has to skim through /sys/class/power_supply/*/type
which devices a batteries. In case of Jolla:
$ head /sys/class/power_supply/battery/{capacity,current_now,status}
==> /sys/class/power_supply/battery/capacity <==
20
==> /sys/class/power_supply/battery/current_now <==
3120
==> /sys/class/power_supply/battery/status <==
Discharging
capacity is measured in percent of max charge.
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2015-12-26 13:32:23 +0200
Seen: 537 times
Last updated: Dec 26 '15
Battery indicator stuck [not relevant]
The phone will not stay on with a flat battery even with charger connected [answered]
HowTo : SSH Jolla on windows over WLAN
a vncviewer (maybe by the community or externel developer)? [duplicate]
HowTo: Connecting to Jolla via SSH over USB [answered]
SSH Host Key fingerprint & regeneration
UI is not responsive at low battery level <10% [released]
Disable SSH daemon when remote connections are disabled
user can choose battery+connection+clock to be always visible
https://together.jolla.com/question/75995/shell-command-to-check-battery-status/
olli ( 2015-12-26 14:35:14 +0200 )editThx and sorry for not finding it.
objectifnul ( 2015-12-26 14:59:33 +0200 )edit