Closed xdnicoco closed 6 years ago
It should default to capacity, which you have...
Having the same issue here, too. I have a capacity
file but no charge_full
file.
Still same issue here, charge_full
not found:
$ ls /sys/class/power_supply/BAT0/
alarm capacity_level device energy_full_design manufacturer power present status technology uevent voltage_now
capacity cycle_count energy_full energy_now model_name power_now serial_number subsystem type voltage_min_design
Using the custom block with the command given in issue #16 works great though.
command = "echo `cat /sys/class/power_supply/BAT0/capacity`%"
@Razakhel do you mind me asking what kernel version you are running? I've had this issue on 4.11 but not since.
I'm on Arch, so I have the latest possible kernel version I guess. This has been updated yesterday so I don't know what its version was, but as of now I run on 4.14.9-1-ARCH
and the bug is still there.
Ok, I think that this is common and annoying enough that we should modify the logic.
I had the same problem, but also energy later disepaired and was replaced with charge.
I get an
Error in block 'battery': failed to open file /sys/class/power_supply/BAT0/charge_full
when trying to add a battery block. Using arch linux 4.13.7-1-ARCH on lenovo yoga 700. Result ofls -l /sys/class/power_supply/BAT0
: