Conky - how to display Pinebook battery?
#1
I would like to add a battery monitor to my conky.

I have tried ${battery BAT0} and ${battery BAT1}, but neither produce any display.

What am I missing?
#2
(11-18-2018, 07:54 AM)jschall Wrote: I would like to add a battery monitor to my conky.

I have tried ${battery BAT0} and ${battery BAT1}, but neither produce any display.

What am I missing?

cat /sys/class/power_supply/battery/capacity
#3
Thank you, @e-minguez.

That terminal command does indeed return the current battery percent.

I could create a script and run it in conky, but isn't there a conky command?
#4
I finally have a workaround that displays the battery percentage and status in Conkyon my Pinebook.
I use the shell commands in script files:
#!/bin/sh
cat /sys/class/power_supply/battery/capacity

and
#!/bin/sh
cat /sys/class/power_supply/battery/status

and I just use two ${exec ./ } commands on a line in .conkyrc
It may not be elegant, but it works.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dead Pinebook - fix it or spare parts? oloturia 2 2,214 03-19-2023, 03:38 PM
Last Post: oloturia
  Broken bottom case of PineBook 14 Mick 1 921 02-22-2023, 05:49 AM
Last Post: Mick
  Original 14" Pinebook an Orphan? vdicarlo 2 1,259 01-05-2023, 10:42 AM
Last Post: jezek
  Pinebook Users are a nobody leperotero 13 12,601 09-06-2022, 09:29 PM
Last Post: zapper
  Does anybody repair pinebook pro laptops for a fee? Tsvi Bar-David 0 963 09-05-2022, 07:49 PM
Last Post: Tsvi Bar-David
  Pinebook with a broken screen and 2 eMMC's for sale. UK ONLY. frank-zappa 0 1,599 03-08-2022, 10:14 AM
Last Post: frank-zappa
  Pinebook to Pinebook Pro-esque upgrade kit sebboh 5 7,505 08-18-2021, 11:01 PM
Last Post: Corkonian
  Battery life unrealb2 4 5,540 08-01-2021, 12:26 AM
Last Post: unrealb2
  new pinebook help ron_burgundy 5 7,697 12-17-2020, 04:54 PM
Last Post: ron_burgundy
  Few questions about flashing to a MicroSD card on the Pinebook Pro SanjevR 6 9,613 12-07-2020, 04:02 PM
Last Post: SanjevR

Forum Jump:


Users browsing this thread: 1 Guest(s)