Open bound-variable opened 2 years ago
Not really the blocklet's fault. It just tries to read the file /sys/class/power_supply/BAT0/energy_now
which doesn't seem to be available on your system. Not sure why.
Post the output of ls -la /sys/class/power_supply
so I can try some debugging.
I don't run this anymore, but I don't mind following up.
Here's the output of the command you asked for:
total 0
drwxr-xr-x 2 root root 0 Mar 16 05:47 .
drwxr-xr-x 73 root root 0 Mar 16 05:47 ..
lrwxrwxrwx 1 root root 0 Mar 16 05:47 AC -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC
lrwxrwxrwx 1 root root 0 Mar 16 05:47 BAT0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0
And inside of BAT0 I don't have energy_now
, I have instead charge_now
. My directory listings:
device
hwmon2
power
subsystem
alarm
capacity
capacity_level
charge_full
charge_full_design
charge_now
current_now
cycle_count
manufacturer
model_name
present
serial_number
status
technology
type
uevent
voltage_min_design
voltage_now
By the way, I personally use cat /sys/class/power_supply/BAT0/capacity
to read my battery's charge level.
Actual behavior
It doesn't appear in the bar.
i3blocks config relevant to blocklet(s)
(The default)
Output of blocklet(s) when run from command line
Output of any relevant other commands that might help diagnostics
python 3.10.2-1 sysfsutils 2.1.1-1