[Pkg-utopia-maintainers] Bug#638970: sysfs data

Ralf Jung ralfjung-e at gmx.de
Thu Oct 6 14:58:13 UTC 2011


Hi again,

in the mean time, I learned about "upower --dump", which also gave me the 
sysfs path I needed. So I ran the following command:

      while [ 1 = 1 ]; do cat 
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0/present && 
sleep 0.2; done

Even in the period where KDE shows "no battery present", between the "device 
removed" and "device" added printed by the monitor, the file existed and 
contained a "1".

Does that answer your question?

Kind regards,
Ralf





More information about the Pkg-utopia-maintainers mailing list