Power Status (was Re: Because LC can't do two things at once.)
Peter Brigham
pmbrig at gmail.com
Mon Mar 2 13:36:50 EST 2015
What gets returned in
get URL "/proc/acpi/battery/BAT1/state" on Unix?
If you give me a sample to work with I will finish the handler and post it.
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
On Mon, Mar 2, 2015 at 11:15 AM, Richard Gaskin <ambassador at fourthworld.com>
wrote:
> Michael Doub wrote:
>
>> Looking around in /proc I found no acpi on the Pi.
>>
>
> Thanks for checking, Michael.
>
> That would make sense, because AFAIK the Pi has no Advanced Configuration
> and Power Interface in its chip set, and hence the absence of that key in
> /proc would accurately reflect a non-discharging battery state (since there
> ain't no battery at all).
>
> I'll explore further to see if I can find a definitive reference on that,
> but so far it looks like we're on our way.
>
> For any Linux-using laptop owners here (that means you, Mark Wieder <g>):
> do you find your charging status in:
>
> /proc/acpi/battery/BAT1/state
>
> ...or:
>
> /proc/acpi/battery/BAT0/state
>
> ?
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com http://www.FourthWorld.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list