[patch] pmu patch

Richard Hughes ee21rh at surrey.ac.uk
Thu Feb 3 23:53:21 PST 2005


On Fri, 04 Feb 2005 00:38:07 -0500, David Zeuthen wrote:
> Oh well. OK, on the topic of batteries, I just added support
> for reading values of UPS'es supporting the USB HID protocol,
> look here
> 
>  http://people.redhat.com/davidz/hal-hid-ups.png

Screenshot looks good. Looks like I'm going to have to connect my UPS to
give this one a try... Nice one David.

> start the add-on manually (as root cause it needs access to
> the /dev/hiddev0 or whatever file), but I'll fix this tomorrow
> and then we can get Sergey's code in for wireless mice
> batteries)

Nice one, this is becoming cooler by the day.

>> Yep fair enough. Will do :) Or at least for the pmu parts 
> 
> Uhmm... so will I :-)
> 
> So, I just added this for USBHID UPS's since the hardware and
> protocol obviously got brains enough to let the device tell
> us this. The property is called battery.remaining_time and is
> measured in seconds. So for APM we need to convert from minutes
> etc. etc.

What about ACPI? Where does it tell us time remaining?
 
Richard.

-- 

http://www.hughsie.com/PUBLIC-KEY


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list