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.
Updated by Hammel about 1 year ago
- Target version changed from Xeon 1.0 - Asimov to 3.0 - Corrino
Updated by Hammel about 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
Added /usr/bin/showbattery.sh as a temporary solution for the command line.
Updated by Hammel about 1 year ago
- Project changed from Xeon to launcher
- Subject changed from Add Battery app to Add Battery status to launcher for xeon.
After thinking this over I think I'll just implement this in the launcher.
Actions