LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 04-03-2005, 12:59 AM   #1
lumbrjackedpcj
Member
 
Registered: May 2004
Posts: 45

Rep: Reputation: 15
load speedstep-ich before acpi


How do I load speedstep-ich before acpi during boot?
Thanks,
paul
 
Old 04-03-2005, 07:39 PM   #2
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
I could be wrong, but I don't think you can. Processor throttling AFAIK depends on ACPI.
 
Old 04-03-2005, 07:59 PM   #3
lumbrjackedpcj
Member
 
Registered: May 2004
Posts: 45

Original Poster
Rep: Reputation: 15
I have acpid running. I also have a bunch of files listed here:
/sys/devices/system/cpu/cpu0/cpufreq

affected_cpus scaling_available_governors scaling_max_freq
cpuinfo_max_freq scaling_cur_freq scaling_min_freq
cpuinfo_min_freq scaling_driver scaling_setspeed
scaling_available_frequencies scaling_governor stats

When I type echo 1867000 > scaling_setspeed it doenst change the speed listed in scaling_setspeed. I dotn know why its working. What else do I need running.

[root@blueox cpufreq]# cat scaling_driver
acpi-cpufreq
[root@blueox cpufreq]# cat scaling_available_frequencies
3200000 2933000 2667000 2400000 2133000 1867000

For boot I have acpi=on under kernel parameters and also I added these two lines to /etc/rc.local
/sbin/modprobe speedstep-lib
/sbin/modprobe acpi_cpufreq

What else am I missing. Any help would be greatly appreciated. This is giving me grey hair....

thanks,
Paul
 
Old 04-03-2005, 08:23 PM   #4
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
whats the output of
cat scaling_available_governors
and
cat scaling_governor
the 'userspace' governor is ideally what you're looking for.

Here's how I do it:
**CAUTION - this is ugly and only here for reference.....Your mileage may (and likely will) vary***

I have an early P4-m that supports speedstep-ich at 1200000 and 1600000 only
At boot i have a script that echo userspace> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor. I call it from the correct run level in rc.d (3 in my case)
The above is because I set the default governor to performance when i built the kernel, and never bothered to find the correct way to fix it
I can then use another script that echo 1600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
or
echo 1600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed

these scripts can be launched anyway you like...icon, taskbar button, hotkey, etc.


EDIT- almost forgot.....BS from U of FLA here in 90 (EE)...go Gators

Last edited by gbhil; 04-03-2005 at 08:26 PM.
 
Old 04-03-2005, 08:47 PM   #5
lumbrjackedpcj
Member
 
Registered: May 2004
Posts: 45

Original Poster
Rep: Reputation: 15
Heres the output:

[lumbrjackedpcj@blueox cpufreq]$ cat scaling_available_governors
ondemand userspace performance
[lumbrjackedpcj@blueox cpufreq]$ cat scaling_governor
userspace
[lumbrjackedpcj@blueox cpufreq]# cat scaling_driver
acpi-cpufreq


I also compiled speedstep-ich as a module but when I try to start it at a prompt i get this error:
[root@blueox cpufreq]# /sbin/modprobe speedstep-ich
FATAL: Error inserting speedstep_ich (/lib/modules/2.6.11.6/kernel/arch/i386/kernel/cpu/cpufreq/speedstep-ich.ko): No such device

Now do I just need acpi-cpufreq or speedstep-ich for my processor(538 prescott)? I think Ill start over and compile exactly what I need for my processor, get rid of p4-clockmod. Ive never been so confused about all this power management stuff.

THanks,
Paul

p.s. you wouldnt beleive all the construction going on in gainesville. actually this august my aparment is going to be torn down and a condo being built on the corner of university and 13th. its crazy how its changing so fast. ton of bars left so thats good at least
 
Old 04-04-2005, 12:48 PM   #6
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
Quote:
Originally posted by lumbrjackedpcj

I also compiled speedstep-ich as a module but when I try to start it at a prompt i get this error:
[root@blueox cpufreq]# /sbin/modprobe speedstep-ich
FATAL: Error inserting speedstep_ich (/lib/modules/2.6.11.6/kernel/arch/i386/kernel/cpu/cpufreq/speedstep-ich.ko): No such device

Now do I just need acpi-cpufreq or speedstep-ich for my processor(538 prescott)? I think Ill start over and compile exactly what I need for my processor, get rid of p4-clockmod. Ive never been so confused about all this power management stuff.
Try unloading P4 clockmod module before loading ich module. If P4 clockmod is built into your kernel, then yes, I would recommend rebuilding it (the kernel) using only enhanced speedstep and speedstep-ich drivers. Also be sure to select all of the power/performance states you think you will need, as well as choosing the default you'd like. MAKE SURE TO INCLUDE THE CPU FREQ TABLE HELPERS (better safe than sorry), and read all the documentation on Relaxed speedstep capability checks to see if they may be required.

Choosing userspace and powersave states is highly recommended if you plan on automatically switching states when AC power is connected/disconnected. The problems are surely in your kernel, as you can see by my ugly and dirty fix above it's fairly easy to switch on the fly once it's set up correctly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fail to add speedstep-ich module elvislu Linux - Laptop and Netbook 3 04-03-2005 04:15 AM
baffling acpi module fails to load fatblueduck Linux - Software 9 12-07-2004 10:22 PM
MUCH too heat CPU temprature!! is it ACPI or speedstep? Jefklak Linux - Hardware 8 03-21-2004 10:37 AM
acpi and speedstep on a dell 500m with mandrake 10 and 9.2 krisealv Linux - Laptop and Netbook 0 03-03-2004 06:44 AM
Conexant-Ambit 56k ICH winmodem busybee Linux - Software 1 11-04-2001 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration