Project

General

Profile

Feature #988

Updated by Hammel 6 months ago

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. 
 

 <pre> 
 # cat /sys/class/power_supply/rk818-battery/capacity  
 67 
 </pre> 
 

 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/ 

Back