ACPI/PMU procfs HAL test program. Version 002.

Richard Hughes ee21rh at surrey.ac.uk
Mon Jan 24 09:52:10 PST 2005


On Mon, 24 Jan 2005 18:35:21 +0100, Danny Kukawka wrote:
>> It it measurable? Is it a problem from a power consumption or
>> proccessor load PoV?
> 
> Yes, I think. I saw different where /proc/acpi/battery/BAT0/state 
> (or /proc/acpi/battery/BAT0/info) was polled during you watch video with 
> mplayer and the video jerk a second. It's different from machine to machine, 
> depending on the BIOS. 

Ohh wow. I didn't know this, thanks.

>> I agree polling a battery every second for it's design capacity rating is a
>> bad idea (only needs to be done at coldplug) but wouldn't the procfs
>> entries be cached into RAM and thus lightning quick?
> 
> No, not right. First: what is if you remove or exchange the battery?
> Second: not in RAM, see Sjoerd's mail.

Point. Point.

>> system.refresh.enabled = BOOL
>> if TRUE
>>  system.refresh.interval = INT (seconds)
> 
> It's o.k. Maybe we need for battery (if we use ACPI battery events): 
> - system.getinfo_from.acpi_events = BOOL
> - system.getinfo_from.poll = BOOL

Maybe... Surely:

system.refresh.acpi_events = bool (true if acpid, false if polling)
system.refresh.do_refresh = bool (true if we should update)
 
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