Core2Duo powerstepping doesn't work

Bug #63439 reported by Matthew Steeples
8
Affects Status Importance Assigned to Milestone
powernowd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Running the up to date Edgy (2.6.17-10-generic) and the cpu frequency doesn't scale down when the computer is idle or on battery.

http://ubuntuforums.org/showthread.php?t=267907 is the thread started on the forums regarding this. The laptop is a HP nx9420.

I've tried powernowd, powersave and cpufreqd but none of them work. It appears to need a kernel module. Is this easily possible before release?

Revision history for this message
Matthew Garrett (mjg59) wrote :

What BIOS version are you using? Some HPs have broken BIOSes.

Revision history for this message
Paul Sladen (sladen) wrote :

This should work out of the box; powernowd loads and uses the 'ondemand' governor instead.

Cat you paste the output of:

  cat /var/lib/acpi-support/*-*

Changed in powernowd:
status: Unconfirmed → Needs Info
Revision history for this message
Matthew Steeples (matthew.steeples) wrote :

cat /var/lib/acpi-support/*-*:

68YAF Ver. F.14
Hewlett-Packard
HP Compaq nx9420 (RH457ET#ABU)
F.14

Hope that's enough detail for BIOS versions.

Revision history for this message
Matthew Steeples (matthew.steeples) wrote :

Forgot to mention earlier on that this was on the i386 kernel.

I've reinstalled and I'm now running the amd64 kernel (with restricted modules) and it still doesn't work.

I've checked on HP's website and this is the latest BIOS revision for this laptop.

cat /var/lib/acpi-support/*-* has the same output as above, and the kernel version is the same.

Revision history for this message
Bastian Mäuser (mephisto-mephis) wrote :

Hi,

HP has just give out F17 Bios. It makes speedstepping_centrino work again, but it fails to get the processor beyond 1.33Ghz.

root@mephtop:~# cat /var/lib/acpi-support/*-*
68YAF Ver. F.17
Hewlett-Packard
HP Compaq nx9420 (ES444ET#ABD)
F.17

Interessting anomalie:

root@mephtop:~# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
1833000
root@mephtop:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
1333000
root@mephtop:~# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
root@mephtop:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
1333000

.... which means, that even if i manually try to put the scaling_max up to what the cpu would be capable off - it simply doesn't allow setting the max-scaling freq up to 1.8ghz.

strange, too:

root@mephtop:~# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to <email address hidden>, please.
analyzing CPU 0:
  driver: centrino
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 1000 MHz - 1.83 GHz
  available frequency steps: 1.83 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: userspace, powersave, ondemand, conservative, performance
  current policy: frequency should be within 1000 MHz and 1.33 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1.33 GHz (asserted by call to hardware).
analyzing CPU 1:
  driver: centrino
  CPUs which need to switch frequency at the same time: 1
  hardware limits: 1000 MHz - 1.83 GHz
  available frequency steps: 1.83 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: userspace, powersave, ondemand, conservative, performance
  current policy: frequency should be within 1000 MHz and 1.33 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1.33 GHz (asserted by call to hardware).

so long,
Bastian

Revision history for this message
Bastian Mäuser (mephisto-mephis) wrote :

I just found out sth which makes my CPU work with F17 on 1.83 Ghz:

Add the following to a startupscript:

echo 1833000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1833000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

it seems that you have to set the governer again after setting the scaling_max_freq.

cpufreq-info output is:

root@mephtop:/usr/src/linux-2.6.19.1# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to <email address hidden>, please.
analyzing CPU 0:
  driver: centrino
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 1000 MHz - 1.83 GHz
  available frequency steps: 1.83 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: userspace, powersave, ondemand, conservative, performance
  current policy: frequency should be within 1000 MHz and 1.83 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1.83 GHz (asserted by call to hardware).
analyzing CPU 1:
  driver: centrino
  CPUs which need to switch frequency at the same time: 1
  hardware limits: 1000 MHz - 1.83 GHz
  available frequency steps: 1.83 GHz, 1.33 GHz, 1000 MHz
  available cpufreq governors: userspace, powersave, ondemand, conservative, performance
  current policy: frequency should be within 1000 MHz and 1.83 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1.83 GHz (asserted by call to hardware).

sincerly,
Bastian

Revision history for this message
LEVIS Cyril (atlas95) wrote :

Could you explain all ,
I want to now how to do to have 1ghz, 1.33ghz and 1.83ghz available please.

I have try to install cpufreqd but the cpu still at 1.83ghz all the times...and when a reinstall powernowd it doesn't want to go at 1.83ghz...

Thanks for you help and sorry for my bad english :)

Revision history for this message
LEVIS Cyril (atlas95) wrote :

I have problem with gnome power manager too, it didn't detect if i use batterie or power ....
Could you help me please :o)

Revision history for this message
Bastian Mäuser (mephisto-mephis) wrote : Re: [Bug 63439] Re: Core2Duo powerstepping doesn't work

atlas95 wrote:
> I have problem with gnome power manager too, it didn't detect if i use batterie or power ....
> Could you help me please :o)
>
>
OK. To get my nx9420 working "perfectly" under Linux (Ubuntu-Edgy) the
following was required:

- make sure you use Bios Version F17 from September 2006
- put a line with "rmmod psmouse" in /etc/init.d/halt
- put following in /etc/init.d/powernowd right aber the shebang:

echo 1833000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1833000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

now shut down your computer, remove all power sources (battery and psu)
for some seconds, boot linux and have a working and updating acpi as
wenn as freq scaling.

the "rmmod psmouse" avoids, that after one reboot your notebook comes
back in a kind of "bad state", which makes 1.8ghz unable to be used as
well as a stuck battery monitor.

greetings,
Bastian

Revision history for this message
LEVIS Cyril (atlas95) wrote :

Thanks you very much ...
BUT!

:)

When I have reboot the first time after read you and do the "command", powernowd work very well ;), but after restart again, this don't work again.

I must remove battery and psu every time i reboot?

thanks ... :)

Revision history for this message
Bastian Mäuser (mephisto-mephis) wrote :

atlas95 wrote:
> Thanks you very much ...
> BUT!
>
> :)
>
> When I have reboot the first time after read you and do the "command",
> powernowd work very well ;), but after restart again, this don't work
> again.
>
> I must remove battery and psu every time i reboot?
>
> thanks ... :)
>
do you use bios F17? and, are you sure, that the psmouse module gets
unloaded b4 rebooting? that's what made it working for me without
removing all psu's. otherwise - if that doesn't work - removing the
psu's should will work for sure - but sucks. anyways, i expect hp to
release a bios with a proper working acpi soon.

greetings,
Bastian

Revision history for this message
LEVIS Cyril (atlas95) wrote :

Ha !
I have add into /etc/init.d/reboot : "rmmod psmouse" too and this working avec REBOOT :)

Hmm, but another thing, the hard disk make a lot of noise...it is a sata disk...how can I reduce the noise and usage?

Revision history for this message
LEVIS Cyril (atlas95) wrote :

(do you use bios F17? and, are you sure, that the psmouse module gets
unloaded b4 rebooting? that's what made it working for me without
removing all psu's. otherwise - if that doesn't work - removing the
psu's should will work for sure - but sucks. anyways, i expect hp to
release a bios with a proper working acpi soon.

greetings,
Bastian)

Yes I use F17 bios ;)

The hdd is more noisy than my old laptop rahh :)

Revision history for this message
Bastian Mäuser (mephisto-mephis) wrote :

atlas95 wrote:
> Yes I use F17 bios ;)
>
> The hdd is more noisy than my old laptop rahh :

the noise is not really my problem, but the power consumption of the hdd

check the /etc/laptop-mode/laptop-mode.conf, set hdd settings to
/dev/sda. and see if it gets better..

Bastian

Revision history for this message
LEVIS Cyril (atlas95) wrote :

:)

I have a better problem now ! :)
Xorg failed at boot because psmouse is unload ... my touchpad doesn't work ... where can I readd modprobe psmouse for make my touchpad working and no error...?

Thanks bastian

atlas95

Revision history for this message
LEVIS Cyril (atlas95) wrote :

I have try to put modprobe psmouse in Xsession but i have put it anywhere, I have try to had psmouse in /etc/modules too ... in /etc/init.d/gdm too ... but nothing...
I must start in recovery mode, sudo modprobe psmouse then control+D ....

Help me to find the good place to reload the module please

Thanks yet, sorry for flood :o)

Revision history for this message
Bastian Mäuser (mephisto-mephis) wrote :

Hmm,

i remove the psmouse module on halt, so in /etc/init.d/halt, so it's unloaded when shutting down or rebooting. when the system comes up again, it's loaded ofcoz.

Bastian

Revision history for this message
LEVIS Cyril (atlas95) wrote :

My touchpad and mouse re-work after add this:

###TEST####
rmmod psmouse
sleep 1
modprobe psmouse
####TEST###

into /etc/rc1.d/K20gpm

[code]
gpm_start () {
  log_begin_msg "Starting mouse interface server: gpm"
  # HACK - kernel module init is asynchronous in kernel 2.6, EVEN FROM
  # REQUEST_MODULE(). That would include 'mousedev'. The correct
  # solution is a hotplug script, but we cannot depend on hotplug being
  # available just yet, either kernel-side or user-side.

###TEST####
rmmod psmouse
sleep 1
modprobe psmouse
####TEST###

  for foo in 1 2 3; do
    if :< ${device-/dev/mouse}; then break; fi
    sleep 1
  done
  eval start-stop-daemon --start --quiet --nicelevel $niceness --exec $GPM \
    -- $cmdln || { echo " start failed."; return 1; }
  log_end_msg 0
  return 0
}
[/code]

but i have still the gnome-power-manager problem and, too, the powernowd problem yet after resume hibernate....

I don't know how to resolv this but hibernate is very important for me.

Thanks yet...

Revision history for this message
Bastian Mäuser (mephisto-mephis) wrote :

Hello,

Hibernation doesn't work at all for me - when i try to suspend to disk it's going down and immidiately coming up again in a strange unstable state. i'm still investigating a solution for it :(

Bastian

Revision history for this message
LEVIS Cyril (atlas95) wrote :

Try to install the kernel with suspend2 included from trevino repository ;) !

Look here : http://download.tuxfamily.org/3v1deb/index.html

I'm playing with laptop-mode too, I have install sdparm too...

Say me where are you investigating with suspend2 next, the biggest problem is the acpi, after 5minute of resume, on fan turn at his maximum and don't stop, and too gnome-power-manager don't see if I remove AC or I put it...

Thanks :)

Revision history for this message
LEVIS Cyril (atlas95) wrote :

Something new?
Nothing for me, I'm still searching for the acpi problem after hibernate.
I have maybe repair the fan problem after hibernate but I havn't tested.

Atlas

Revision history for this message
Bastian Mäuser (mephisto-mephis) wrote :

I think we strongly depend on a stable BIOS from HP.

Revision history for this message
Altembas (altembas) wrote :

Got the same exact problem with nx6310 (the one with FreeDos).

Solution is simple, after upgrading to bios F.0B it started to work, finally!
I can say 7.04 beta has support out of the box, but HP has messed sth with the bioses.
Had previously bios F.08.

Thanks guys, maybe now i'll get 4h bat life like i do in windows, instead of 2h i got under ubuntu @ full cpu speed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for powernowd (Ubuntu) because there has been no activity for 60 days.]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.