[Santiago Garcia Mantinan]
> There is no /sys/class/power_supply/BAT* directory on my system when there is
> no battery installed (when I'm plugged) and thus it fails.
>
> Checking if the battery exists before will solve the issue.

Right.  Can you run the commands
'bash -x /usr/share/battery-stats/collect-csv' and
'sh -x /usr/sbin/battery-stats-collector -1' as root when there is no
battery, and send me the output?  It would be useful to know exactly how
it fail for you.

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to