Battery Check from CLI

hardware

#1

How do you check the GameShell’s battery level from the CLI?
SSH to your device and run the following:
cpi@clockworkpi:~$ upower -i /org/freedesktop/UPower/devices/battery_axp20x_battery

Example output:
native-path: axp20x-battery
power supply: yes
updated: Tue 12 Mar 2019 08:00:47 PM EDT (119 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
warning-level: none
energy: 0 Wh
energy-empty: 0 Wh
energy-full: 0 Wh
energy-full-design: 0 Wh
energy-rate: 0 W
voltage: 4.012 V
percentage: 92%
capacity: 100%
icon-name: ‘battery-full-symbolic’


Swapping out Battery for Larger Capacity Li-Ion?