Peter-
Actually, BAT0 is a directory, so you want
put url "/sys/class/power_supply/BAT0/status" into tStatus
and what I see on my Thinkpad running linux Mint 17 is status returns one of
three states:
Unknown if the laptop is plugged into the AC adapter
Discharging if running off the battery power
Charging if it's (wait for it) charging the battery.
If I remove the battery and run the laptop off AC power there is no BAT0
directory.
--
Mark Wieder
[email protected]
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode