Actions
Feature #988
openAdd Battery status to launcher for xeon.
Start date:
19 May 2023
Due date:
% Done:
10%
Estimated time:
Severity:
05 - Very Low
Description
This is pretty simple and should probably just be part of launcher (or have launcher with an embedded status bar of other apps?).
To get battery power available status just do the following.
# cat /sys/class/power_supply/rk818-battery/capacity 67
In this case the battery is 67% full. Pretty easy to integrate into an app.
- Battery status RM #988
- see https://github.com/JasonG-FR/PineBattery/blob/main/PineBattery.py for example in python.
- get_voltage_max_path - identifies PinePhone models
- This would be easy to convert to a C app.
- cat /sys/class/power_supply/rk818-battery/capacity
- Kernel lookups
- rk818-bat
- simple-batteryroot (compatible string under /sys/firmware/devicetree/base/battery)
- /sys/class/power_supply/rk818-battery/
- see https://www.howtogeek.com/810971/how-to-check-a-linux-laptops-battery-from-the-command-line/
- see https://github.com/JasonG-FR/PineBattery/blob/main/PineBattery.py for example in python.
Actions