public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Power management stuff
@ 2008-09-06 20:19 Cristi Magherusan
  2008-09-06 21:40 ` Matthew Garrett
  0 siblings, 1 reply; 2+ messages in thread
From: Cristi Magherusan @ 2008-09-06 20:19 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]

Hello,


I have a few ideas/questions about some power management-related issues:

1) How could we get the current frequency/voltage settings for the CPU,
fr example when using SpeedStep by using the /proc filesystem?

2) It would be nice to modify a bit the CPU throttling API to be able to
set a max value when using dynamic governors, like ondemand. 
The frequency/voltage pair should be set to the minimum allowed by
construction, just like it was before, and scale up to a max value set
by the user. This would allow the user set the best balance between
responsiveness and power consumption that suits its needs.
Also, targeting a certain temperature would be a great feature to have.

3) Is there any plan to improve the current battery framework and
provide information about the estimated recharging time, as it was
before. I guess the versions before 2.6.24 used to provide this but the
newer versions don't do it anymore.

Thanks,
Cristi


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Power management stuff
  2008-09-06 20:19 Power management stuff Cristi Magherusan
@ 2008-09-06 21:40 ` Matthew Garrett
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Garrett @ 2008-09-06 21:40 UTC (permalink / raw)
  To: Cristi Magherusan; +Cc: LKML

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

> 1) How could we get the current frequency/voltage settings for the CPU,
> fr example when using SpeedStep by using the /proc filesystem?

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.

> 2) It would be nice to modify a bit the CPU throttling API to be able to
> set a max value when using dynamic governors, like ondemand. 
> The frequency/voltage pair should be set to the minimum allowed by
> construction, just like it was before, and scale up to a max value set
> by the user. This would allow the user set the best balance between
> responsiveness and power consumption that suits its needs.

/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.

> Also, targeting a certain temperature would be a great feature to have.

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

> 3) Is there any plan to improve the current battery framework and
> provide information about the estimated recharging time, as it was
> before. I guess the versions before 2.6.24 used to provide this but the
> newer versions don't do it anymore.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-06 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-06 20:19 Power management stuff Cristi Magherusan
2008-09-06 21:40 ` Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox