Holger Macht wrote: > So apply it and I will test it.
i did. It works. Sort of. It only works in CPUFREQ=userspace mode, because if we have CPUFREQ=kernel, the polling interval basically becomes the BATTERY_POLLING_INTERVAL, and we need to poll the battery on every select timeout (in fact msecs_battery_last_polled is never updated in this case, i wondered for quite some time why it was always zero ;-). We could reset the select timeout on an ACPI battery event, but this is "touching the select loop" and i won't do this since the benefits are not too big (i just can set "FORCE_BATTERY_POLLING=no" on my machine which is the right thing to do) and we will rewrite the main loop in glib anyway. -- Stefan Seyfried \ "I didn't want to write for pay. I QA / R&D Team Mobile Devices \ wanted to be paid for what I write." SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen _______________________________________________ powersave-devel mailing list [email protected] http://forge.novell.com/mailman/listinfo/powersave-devel
