pinebook-acpi-dropin

Drop in script to mimick acpi on pinebook a64
git clone git://git.wrpr.us/pinebook-acpi-dropin
Log | Files | Refs | README

battread (423B)


      1 #!/bin/bash
      2 ###DropIn ACPI work around for Pinebook-a64 running a custom legacy build of Armbian###
      3 #Just a quick solution to get battey reads for tmux battery plugin or standalone reading 
      4 #Either rename to acpi or alias to acpi and cp to /bin/
      5 
      6 
      7 DIR='/sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp20x-battery-power-supply/power_supply/axp20x-battery/'
      8 
      9 printf "Battery 0: $(<$DIR/status), $(<$DIR/capacity)%%"
     10 
     11