LinuxQuestions.org
Review your favorite Linux distribution.
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 06-19-2006, 05:29 PM   #1
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 241

Rep: Reputation: 31
I Do I get ACPI Support?


I just want to be able to set my fan to 50% after booting up. I don't want to hibernate or anything like that. I have Slackware 10.2 with the 2.4.31 kernel. I installed it using the kernel image sata.i. How would I go about installing the ACPI or ACPI fan control module (I'm not sure what module I need)?

Last edited by halfpower; 06-19-2006 at 05:31 PM.
 
Old 06-19-2006, 11:50 PM   #2
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
Slackware has a kernel named 'bareacpi.i', which has ACPI support compiled in. However, you'll want to check whether this kernel supports your sata chipset or not.

The easiest way is to try booting from the Slackware CD1, using the 'bareacpi.i' kernel.

Once you're in, find out if Slackware can see your hard drive's by doing:
Code:
fdisk -l
If it can see your disk/partitions, then just install the bareacpi.i kernel, which has the ACPI you want.

If not, then make sure you have kernel-source package installed. Then do:
cp /boot/config /usr/src/linux/.config
cd /usr/src/linux
make menuconfig

And enable ACPI - and compile/install the new kernel. I won't go into details since there's so many threads on how to compile a Slack kernel properly.

Copying /boot/config will allow you to start with all the pre-selected options from your current kernel, and go from there. This is easier than starting from scratch.
 
Old 06-20-2006, 03:10 AM   #3
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
Another way is to make an initial ramdisk with needed acpi kernel modules without recompiling the kernel.

Do the following:

Code:
cd /boot
mkinitrd -c -k 2.4.31 -m ac:button:battery:fan:processor:thermal:video
Take only the needed modules, leave out the others.

Then add a line to your /etc/lilo.conf:

Code:
initrd = /boot/initrd.gz
after the line "image = /boot/vmlinuz" and run a "lilo -v" to install LiLO with the changes.

Then - after a reboot - you will have a working ACPI in your running kernel.

Fluxx.
 
Old 06-20-2006, 04:00 AM   #4
the_real_absinthe
LQ Newbie
 
Registered: May 2006
Distribution: slackware linux
Posts: 28

Rep: Reputation: 15
mmm... the last suggestion works only if you _HAVE_ the required modules. otherwise you need to recompile the kernel, there isn't another way IMHO.

another thing: you want to set your fan to 50%... is this possible? it sounds new to me! if you have a laptop probably you want to enable frequency scaling for your processor so the power consumption is reduced and this, in its turn, reduces cpu heat and fan activity. am I wrong?

M

Last edited by the_real_absinthe; 06-20-2006 at 04:05 AM.
 
Old 06-20-2006, 04:14 AM   #5
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
You are right!

If the acpi kernel modules are NOT in the package kernel-modules-2.4.31 (coming with Slackware 10.2) you can go another way and use the bareacpi.i kernel (as mentioned by WindowBreaker) and make an initial ramdisk with the needed modules for SATA in the shown way (I think the modules libata and one for the controller may be enough - I use libata and ati_piix for my SATA controller without problems).

Fluxx.
 
Old 06-20-2006, 06:42 AM   #6
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 241

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by the_real_absinthe
mmm... the last suggestion works only if you _HAVE_ the required modules. otherwise you need to recompile the kernel, there isn't another way IMHO.

another thing: you want to set your fan to 50%... is this possible? it sounds new to me! if you have a laptop probably you want to enable frequency scaling for your processor so the power consumption is reduced and this, in its turn, reduces cpu heat and fan activity. am I wrong?

M
I set my fans to 50% in Windows using a program called SpeedFan. I can shutdown SpeedFan and then reboot into Linux and my fans will keep going at 50%.

I have 120mm fans and a giant CPU heat sink. I drive my CPU at 100% and not overheat (I might overheat if my room temperature was, say, above 100F). I'm using a desktop by the way.
 
Old 06-20-2006, 06:50 AM   #7
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 241

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by WindowBreaker
Slackware has a kernel named 'bareacpi.i', which has ACPI support compiled in. However, you'll want to check whether this kernel supports your sata chipset or not.

The easiest way is to try booting from the Slackware CD1, using the 'bareacpi.i' kernel.

Once you're in, find out if Slackware can see your hard drive's by doing:
Code:
fdisk -l
If it can see your disk/partitions, then just install the bareacpi.i kernel, which has the ACPI you want.

If not, then make sure you have kernel-source package installed. Then do:
cp /boot/config /usr/src/linux/.config
cd /usr/src/linux
make menuconfig

And enable ACPI - and compile/install the new kernel. I won't go into details since there's so many threads on how to compile a Slack kernel properly.

Copying /boot/config will allow you to start with all the pre-selected options from your current kernel, and go from there. This is easier than starting from scratch.
If I install bareacpi.i will I have to rerun lilo or anything?
 
Old 06-20-2006, 08:02 AM   #8
the_real_absinthe
LQ Newbie
 
Registered: May 2006
Distribution: slackware linux
Posts: 28

Rep: Reputation: 15
every time you change/add a kernel you must edit your /etc/lilo.conf file and after test it and reinstall lilo (if ok) via:

# lilo -t && lilo -v

of course if you have just overvritten an old vmlinuz file in /boot no editing is required inside lilo.conf (coz all parameters remain the same), in this situation you just need to launch the previous command(s):

#lilo -t && lilo -v

M
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Rebuilding 2.4.26 with ACPI support... zensufi Linux - Software 8 08-02-2004 04:39 PM
Desktop w/ ACPI support... r_jensen11 Linux - Hardware 2 07-03-2004 12:17 AM
acpi support? 2.6 shanenin Linux - Software 1 01-24-2004 08:45 AM
So, once and for all, can someone help me with ACPI support? Kramer Linux - Laptop and Netbook 4 09-27-2003 06:51 AM
Im going to give up on ACPI support Kramer Linux - Laptop and Netbook 6 09-19-2003 09:20 PM

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

All times are GMT -5. The time now is 01:55 AM.

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