pinebook-acpi-dropin

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 5039abad9f0398776c5a7a326ec97da0f9f522ac
Author: William <x@linear.codes>
Date:   Tue,  2 Apr 2024 21:30:49 -0400

Adding README and Battread

Diffstat:
AREADME | 3+++
Abattread | 11+++++++++++
2 files changed, 14 insertions(+), 0 deletions(-)

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