Open ghost opened 8 years ago
Hiya! AC0
is the name of the wired power supply on my laptop-- it sounds like it's named something else on your's (I wasn't always thinking about portability when I wrote these scripts-- oops!). The fix is pretty simple:
First, figure out the name of your wired power supply:
ls /sys/class/power_supply/
You should see BAT0
and something else-- that would be the name you're looking for. After that, edit the batstat
script and change line 10 to use that name instead of AC0
. Lemme know if that I works!
Its finding my battery but I don't know hat an AC0 is and its not finding it. Please see attached screenshot.
Not a big deal, just thought I should point it out.
cat: /sys/class/power_supply/AC0/online: No such file or directory cat: /sys/class/power_supply/AC0/online: No such file or directory Dunno where that is coming from so I am unable to fix it. Screenshot - https://pb.gehidore.net/OIDu
ps. Im not code savvy. Sorry to bug you.