Reopen BAT directory
After charging the battery, the battery module gets "stuck" at 100%.
err: modules/battery.c:294: /sys/class/power_supply/BAT0: No such file or directory
The directory is already re-opened each time we update the status. Meaning, your battery driver is probably removing it (possibly re-creating it later).
When you see the error message next time, can you check the contents of the
If there is a
BAT0 directory there, yambar would have to be updated re-try for a while, before giving up and erroring out.
If there is a BAT0 directory there, yambar would have to be updated re-try for a while, before giving up and erroring out.
Yes, I see the
BAT0 directory after the error message. I don't know how long the delay between destroying and re-creating the directory is.
Hmm, ok. Fun stuff... :/
Let me ponder this a bit. We'll obviously have to retry, for some amount of time. Most likely, that delay between destroying and re-creating the directory, is short (in "human" time); so maybe retry once every second for 5-10s is good enough.
Deleting a branch is permanent. It CANNOT be undone. Continue?