Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Laptop: use speedstep_centrino to improve battery time, HOW?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bd_italy
Apprentice
Apprentice


Joined: 19 Apr 2006
Posts: 184

PostPosted: Tue Oct 31, 2006 2:28 pm    Post subject: Laptop: use speedstep_centrino to improve battery time, HOW? Reply with quote

Hi,

i wondered why under Gentoo I have to charge my battery after ca. 2 hours of internet surfing, and under windows only after 4h.
On Gentoo the cpuspeed is 300 mhz( cat /proc/cpuinfo), on windows 800 :?
so i looked in dmesg and found this:
Code:
p4-clockmod: Warning: Pentium M detected. The speedstep_centrino module offers voltage scaling in addition of frequency scaling. You should use that instead of p4-clockmod, if possible.
p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available

i searched about a half an our with google, but found only that speedstep_centrino works better, and not how to get it work.
Does anybody use it and kann tel me how?

greets from italy
bd_italy
Back to top
View user's profile Send private message
Abraxa
Apprentice
Apprentice


Joined: 14 Jun 2005
Posts: 174
Location: Germany

PostPosted: Tue Oct 31, 2006 4:57 pm    Post subject: Reply with quote

First off: do you know how to build and install a kernel? If not then you should read http://www.gentoo.org/doc/en/gentoo-kernel.xml to get familiar with the topic.

When you configure the kernel using "make menuconfig" then please pick Power Management Options -> CPU Frequency scaling and uncheck the P4 clock modulation - that's what you currently have installed. If you then check Intel Enhanced SpeedStep so that an asterisk (*) appears in front of it you add the driver for your CPU.

Also, you'll want to add at least the powersave and conservative governors so you can switch between them.

After compiling and booting the new kernel you should be good to go =)
Also, since you didn't mention it I figure you haven't heard about cpufrequtils - they are userspace tools that let you view and modify the settings used for CPU frequency/voltage scaling. You install them with "emerge cpufrequtils".

-Abraxa
Back to top
View user's profile Send private message
bd_italy
Apprentice
Apprentice


Joined: 19 Apr 2006
Posts: 184

PostPosted: Wed Nov 01, 2006 10:02 am    Post subject: Reply with quote

Abraxa wrote:
First off: do you know how to build and install a kernel? If not then you should read http://www.gentoo.org/doc/en/gentoo-kernel.xml to get familiar with the topic.

When you configure the kernel using "make menuconfig" then please pick Power Management Options -> CPU Frequency scaling and uncheck the P4 clock modulation - that's what you currently have installed. If you then check Intel Enhanced SpeedStep so that an asterisk (*) appears in front of it you add the driver for your CPU.

Also, you'll want to add at least the powersave and conservative governors so you can switch between them.

After compiling and booting the new kernel you should be good to go =)
Also, since you didn't mention it I figure you haven't heard about cpufrequtils - they are userspace tools that let you view and modify the settings used for CPU frequency/voltage scaling. You install them with "emerge cpufrequtils".

-Abraxa


hi, thanks for your help.
i made a kernel and emerged cpufrequtils
but now I have this problem:
Code:
[10:56:05] max@laptop:~>cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
[10:56:12] max@laptop:~>cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : Intel(R) Pentium(R) M processor 2.00GHz
stepping        : 8
cpu MHz         : 1995.127
cache size      : 2048 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe up est tm2
bogomips        : 3994.64



how can I set a cpufreq-driver to the CPU?
i think powersave for battey use should be a good idea, or?

so long
bd_italy
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Nov 01, 2006 10:07 am    Post subject: Reply with quote

Make sure to include the module in your kernel config and load it, see http://www.gentoo.org/doc/en/power-management-guide.xml for details.
_________________
KDE
Back to top
View user's profile Send private message
bd_italy
Apprentice
Apprentice


Joined: 19 Apr 2006
Posts: 184

PostPosted: Wed Nov 01, 2006 11:38 am    Post subject: Reply with quote

Earthwings wrote:
Make sure to include the module in your kernel config and load it, see http://www.gentoo.org/doc/en/power-management-guide.xml for details.

I've followed this guide just bevore switching from P4-clockmod to speedstep_centrino and it worked fine.
But to be sure I followed al steps again, with no result.
cpufreq can't find the cpu.

this is my actual kernel config, I think that's all i need...
klick to see the kernel config

any ideas?
bd_italy
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Wed Nov 01, 2006 12:14 pm    Post subject: Reply with quote

Quote:
On Gentoo the cpuspeed is 300 mhz( cat /proc/cpuinfo), on windows 800 :?


I've never heard of a centrino that would go down to 300 mhz so something
is certainly strange here ... Of course, a 300 mhz should use far less
battery thatn 800 all things being equal.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Nov 01, 2006 3:08 pm    Post subject: Reply with quote

bd_italy wrote:
Earthwings wrote:
Make sure to include the module in your kernel config and load it, see http://www.gentoo.org/doc/en/power-management-guide.xml for details.

I've followed this guide just bevore switching from P4-clockmod to speedstep_centrino and it worked fine.
But to be sure I followed al steps again, with no result.
cpufreq can't find the cpu.

this is my actual kernel config, I think that's all i need...
klick to see the kernel config

any ideas?
bd_italy

Looks ok, but I'd try to put the centrino driver in as a module, this way you can (un)load it manually and watch dmesg for errors. You could also enable cpufreq debugging there to get more details.

albright is right btw, Centrinos are limited to 600 Mhz as lowest frequency (some newer might be 800 Mhz, not sure about that), 300 Mhz is not possible with speedstepping alone.
_________________
KDE
Back to top
View user's profile Send private message
bd_italy
Apprentice
Apprentice


Joined: 19 Apr 2006
Posts: 184

PostPosted: Wed Nov 01, 2006 4:04 pm    Post subject: Reply with quote

Hi,
i tried the idea about oading the driver as module, but still cpufreq-info says that i have a unknown cpu :roll:
So now I'm not sure if I have the right centrino driver...
It's a Toshiba Satellite M70. Here are some infos about the cpu I found:

Code:


laptop max # lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
06:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
06:04.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
06:04.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller
06:04.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
06:04.4 Class 0805: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller
laptop max # cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
laptop max # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : Intel(R) Pentium(R) M processor 2.00GHz
stepping        : 8
cpu MHz         : 1995.032
cache size      : 2048 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe up est tm2
bogomips        : 3994.65

laptop max #                           


can anyone tel me if I have used the right centrino driver?

bd_italy
Back to top
View user's profile Send private message
bd_italy
Apprentice
Apprentice


Joined: 19 Apr 2006
Posts: 184

PostPosted: Fri Nov 03, 2006 7:42 am    Post subject: Reply with quote

hi, here I am again...

the last days I tried to fix the problem on my own or find at least some significant error messages.
Wenn I shut down the system and switch to the verbose mode i can see for about a second an error from cpufreq
which tells something like this:
cpufreq requires the kernel .... CONFIG_CPU_FREQ
So I think that something is wrong with my kernel configuration.
How is it possible to get my config so that I can it post here, to find the error together?
i looked in menuconfig but can't find anything<like this.

bd_italy
Back to top
View user's profile Send private message
Abraxa
Apprentice
Apprentice


Joined: 14 Jun 2005
Posts: 174
Location: Germany

PostPosted: Fri Nov 03, 2006 4:52 pm    Post subject: Reply with quote

You can find the value of CONFIG_CPU_FREQ in your current kernel config:
Code:
gzip -d -c /proc/config.gz | grep CPU

For comparison you can have a look at the config in your current kernel source tree as well:
Code:
grep CPU /usr/src/linux/.config


Quote:
i looked in menuconfig but can't find anything<like this

The value of CONFIG_CPU_FREQ corresponds to the "CPU Frequency scaling" switch in http://blue-dragon.homelinux.org/kernel.png - it's enabled there so somehow you seem to be compiling/using the wrong kernel.
You can see that when highlighting this switch in the config editor and then looking at the help you get when using the "Help" function at the bottom: the first line of the help window says CONFIG_CPU_FREQ.

-Abraxa
Back to top
View user's profile Send private message
bd_italy
Apprentice
Apprentice


Joined: 19 Apr 2006
Posts: 184

PostPosted: Sat Nov 04, 2006 4:09 pm    Post subject: Reply with quote

Abraxa wrote:
You can find the value of CONFIG_CPU_FREQ in your current kernel config:
Code:
gzip -d -c /proc/config.gz | grep CPU

For comparison you can have a look at the config in your current kernel source tree as well:
Code:
grep CPU /usr/src/linux/.config


Quote:
i looked in menuconfig but can't find anything<like this

The value of CONFIG_CPU_FREQ corresponds to the "CPU Frequency scaling" switch in http://blue-dragon.homelinux.org/kernel.png - it's enabled there so somehow you seem to be compiling/using the wrong kernel.
You can see that when highlighting this switch in the config editor and then looking at the help you get when using the "Help" function at the bottom: the first line of the help window says CONFIG_CPU_FREQ.

-Abraxa


Code:

[17:06:50] max@laptop:~>gzip -d -c /proc/config.gz | grep CPU
# CONFIG_CPUSETS is not set
CONFIG_NR_CPUS=8
# CONFIG_X86_CPUID is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_HOTPLUG_CPU is not set
# CPU Frequency scaling
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_DEBUG=y
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
# CPUFreq processor drivers
# CONFIG_X86_ACPI_CPUFREQ is not set
# CONFIG_X86_CPUFREQ_NFORCE2 is not set
[17:04:41] max@laptop:~>grep CPU /usr/src/linux/.config
# CONFIG_CPUSETS is not set
CONFIG_NR_CPUS=8
# CONFIG_X86_CPUID is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_HOTPLUG_CPU is not set
# CPU Frequency scaling
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_DEBUG=y
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
# CPUFreq processor drivers
# CONFIG_X86_ACPI_CPUFREQ is not set
# CONFIG_X86_CPUFREQ_NFORCE2 is not set
[17:05:15] max@laptop:~>gzip -d -c /proc/config.gz | grep CPU
# CONFIG_CPUSETS is not set
CONFIG_NR_CPUS=8
# CONFIG_X86_CPUID is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_HOTPLUG_CPU is not set
# CPU Frequency scaling
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_DEBUG=y
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
# CPUFreq processor drivers
# CONFIG_X86_ACPI_CPUFREQ is not set
# CONFIG_X86_CPUFREQ_NFORCE2 is not set
[17:05:38] max@laptop:~>       


so I think I'm not using/compiling the wrong kernel, right?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum