Re: Power management stuff

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Garrett
Date: Saturday, September 6, 2008 - 2:40 pm

On Sat, Sep 06, 2008 at 11:19:46PM +0300, Cristi Magherusan wrote:


The current frequency can be read from either /proc/cpuinfo or 
/sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq . The voltage 
isn't exposed.


/sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq - though on x86, 
setting this to anything other than the maximum will result in more 
power consumption, not less.


I've done some patches for this, but they're not currently merged.


No, you can do that in userspace. Charge time has only been exposed for 
apm, and that's because the BIOS gave it to us. Accurate figures are 
going to require learning the behaviour of the specific battery, and 
there's no way to do that sensibly in kernel.

-- 
Matthew Garrett | mjg59@srcf.ucam.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Power management stuff, Cristi Magherusan, (Sat Sep 6, 1:19 pm)
Re: Power management stuff, Matthew Garrett, (Sat Sep 6, 2:40 pm)