On Tue, May 20, 2008 at 11:43 PM, Bert Freudenberg <[EMAIL PROTECTED]> wrote: > Ah, Marco rightly pointed out hal-get-property. Much easier that way: > > hal-get-property --udi $battery --key battery.charge_level.percentage > hal-get-property --udi $ac_adapter --key ac_adapter.present
Great! Each portable check is about 60ms vs 30ms for me, so I've added the portable version if we can't find the OLPC-specific entries under /sys. Done and pushed out. Now, is there a reasonable way to check for whether we are in a school mesh? cheers, m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff _______________________________________________ Devel mailing list [email protected] http://lists.laptop.org/listinfo/devel
