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



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to