ACPI time remaining

Richard Hughes ee21rh at surrey.ac.uk
Mon Feb 7 15:04:36 PST 2005


On Mon, 07 Feb 2005 16:36:35 -0500, David Zeuthen wrote:
> At least on my IBM T41 laptop I don't get any events when battery charge 
> status changes. Btw, I could actually open /proc/acpi/event even though 
> acpid was using it. Fun.

Linux. Who'd use it, honestly. Heh. 
If you shut down acpid, can you get events on /proc/acpi/event?
 
> So, saturday I wrote an addon for getting the ACPI events and kicking
> hal to Rescan() the device but I haven't committed it yet. Will do soon.

Cool. I've been playing too. I'll let you commit, and I'll add stuff. I
was going for the plan of adding the battery capability to the battery
bay, along with all the properties associated with that, but that's my
wacky way of playing, which is probably not the way to do it. Rescan()
seems like a better plan.

>> You've already added battery.remaining_time.... if you mean for the other
>> stuff then it's here:
>> 
>> http://hughsie.no-ip.com/write/hal/battery-rate.patch
>> 
> 
> Hmm, I don't like that you changed battery.remaining_time from seconds 
> to minutes, that doesn't make much sense to me :-). Please include the 
> patch for the spec along with the patch for the code.

Well minutes are more manageable. After all, who's going to wait for "Your
laptop has 14 seconds remaining" before powering off. Plus it saves making
big jumps in the (big, well for an int) numbers. Preference tho I guess.
Whats the consensus?
 
> (btw, please attach patches to the mail so I and others don't have to
> wget it or use a browser to view it. Thanks.)

No can do, sorry. When I paste patches over the width limit in pan it
runs at 100% cpu until I kill the process. Unless you can suggest a
different newsreader? Or is gmail the best way to use mailing lists? I
tend to use gmane.org most of the time to keep my email to a minimum.

 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