LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-01-2005, 01:19 AM   #1
arunsri
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 49

Rep: Reputation: 15
Unhappy acpi control prblms-help


I am running slack 10.1 with kernel 2.6.11. I have a toshiba laptop and have compiled the toshiba extras component as module in the kernel.

I want to control screen brightness , fan nd stuff to get maximum out of the battery. How can I do tht? I tried changing the value in /proc/acpi/toshiba but when I write in the file (as root ofcourse) it displays an error saying "Fsyns failed". Not sure wats goin on!!

Can nebody help me out? also someone pls. lemme kno if they can perform functions like standby, hibernate etc.

thanks
arun
 
Old 10-01-2005, 02:04 AM   #2
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Hi,

As a starting point, make sure that in addition to the toshiba extra component, you have compiled in full ACPI support and CPU Frequency Scaling.

Under make menuconfig go to

Power Management Options (ACPI, APM) -> ACPI :
Select all from AC Adaptor to Processor Thermal Zone

Under Power Management Options (ACPI, APM) -> CPU Frequency Scaling:

Compile it in static (as in ACPI), and get the correct scaling governors as well as make sure you get the correct processor driver. Use dmesg to see what processor you have, and compile it in static under here (I'm on an HP laptop and thus use the Centrino chipset)

Maybe you've already done these things, but your post didn't state exactly what you had done or not, so I thought this would be a good starting point

-Y1
 
Old 10-02-2005, 01:03 AM   #3
arunsri
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 49

Original Poster
Rep: Reputation: 15
I already have all of the ACPI settings compiled in to my kernel. but haven set the CPU freq scaling yet. Before doing that, I would like to know which governer should I chose and also can u tell me after I get my kernel recompiled how do I control the power settings? ( because the kernel-doc says setting CPU freq scaling wont automatically control the processor speed, but has to b done by the user).
 
Old 10-02-2005, 06:52 AM   #4
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
As for the cpufreq settings they obviously differ according to what kind of hardware you have, but you need to compile in[*] CPU frequency scaling at the very least, and I also recommend getting CPU Frequency translation statistics.
As for the governors, I have added powersave, userspace and ondemand. The last one, "ondemand", is the one I use, and with great success I might add.

In order for this to work you also need to include the correct CPUfreq processor driver. I've got a Centrino laptop, and thus I compiled in Intel Enhanced Speedstep.

As for the second part of your question, you need to decide if you want to decide the CPU frequency in userspace or in kernelspace. I (without remembering exactly why) started off with doing it in kernelspace, and since it works well, I've stuck with it. Thus I use the "ondemand" governor as I compiled in above. For future freedom of choice I left the other (userspace and powersave) in.

In order to change scaling governor and other ACPI-related settings (CPU speed etc), go to /sys/devices/system/cpu/cpu0/cpufreq directory and echo -n "ondemand" > scaling_governor.

In my rc.local I have added this to do it automatically when my system boots:

if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
echo -n "Setting Scaling Governor : "
echo -n ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand"
fi

Alternatively you can do it in userspace, and find a power daemon called powernowd (google is your friend). It's also a great product, but like I said, I came to like the kernel taking care of it and since it works I stick with it.

This controls my CPU frequency and in turn controls the fan, so my system is nice and cool and gets the job done. Hope this helps, even though it might be slightly on the side of your initial problem

-Y1
 
Old 10-02-2005, 04:46 PM   #5
arunsri
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 49

Original Poster
Rep: Reputation: 15
hey thnx for the detailed reply. After I recompiled the kernel wid the necc. configs set, I donot
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor file. Infact I donot have the subdirectory cpufreq under cpu0.

well the configs I chose are:
Default CPU governer - userspace
Then I added performance, powersave and 'ondemand' under userspace govn. section.
 
Old 10-02-2005, 04:48 PM   #6
arunsri
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 49

Original Poster
Rep: Reputation: 15
hey also I have a Intel mobile pentium 4 cpu. So I chose all the Intel related drivers to be compiled as modules. Do I need to compile them into the kernel??
 
Old 10-02-2005, 05:16 PM   #7
arunsri
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 49

Original Poster
Rep: Reputation: 15
Now I have the cpufreq subdir and all the files under /sys/devices/system/cpu/cpu0/. But I am not able to write into scaling_governer file. The default string 'userspace' appears in it.If I try to write, displays an error saying "error: Fsync failed!". Now wat is this?
 
Old 10-03-2005, 06:04 PM   #8
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Quote:
Originally posted by Yalla-One
As for the cpufreq settings they obviously differ according to what kind of hardware you have, but you need to compile in[*] CPU frequency scaling at the very least, and I also recommend getting CPU Frequency translation statistics.
As for the governors, I have added powersave, userspace and ondemand. The last one, "ondemand", is the one I use, and with great success I might add.

In order for this to work you also need to include the correct CPUfreq processor driver. I've got a Centrino laptop, and thus I compiled in Intel Enhanced Speedstep.

As for the second part of your question, you need to decide if you want to decide the CPU frequency in userspace or in kernelspace. I (without remembering exactly why) started off with doing it in kernelspace, and since it works well, I've stuck with it. Thus I use the "ondemand" governor as I compiled in above. For future freedom of choice I left the other (userspace and powersave) in.

In order to change scaling governor and other ACPI-related settings (CPU speed etc), go to /sys/devices/system/cpu/cpu0/cpufreq directory and echo -n "ondemand" > scaling_governor.

In my rc.local I have added this to do it automatically when my system boots:

if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
echo -n "Setting Scaling Governor : "
echo -n ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand"
fi

Alternatively you can do it in userspace, and find a power daemon called powernowd (google is your friend). It's also a great product, but like I said, I came to like the kernel taking care of it and since it works I stick with it.

This controls my CPU frequency and in turn controls the fan, so my system is nice and cool and gets the job done. Hope this helps, even though it might be slightly on the side of your initial problem

-Y1
You 'da man Y1, worked perfectly for me!!
 
  


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
acpi & fan control stockerz Linux - Laptop and Netbook 2 01-31-2005 11:25 AM
fan control in acpi chunlee Linux - Newbie 0 11-16-2004 06:41 AM
Fan Control and ACPI settings? Dobs01 Linux - Hardware 4 11-15-2004 08:42 AM
Monitoring and control of ACPI/proc. scaling? redkazan Linux - Laptop and Netbook 0 01-22-2004 05:30 PM
ACPI Display Power Control Problem stelmed Slackware 1 12-29-2003 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:03 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