LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-20-2003, 10:15 PM   #1
digsy
LQ Newbie
 
Registered: Mar 2003
Posts: 29

Rep: Reputation: 15
RedHat 9: How to use ACPI functions on a Toshiba Laptop?


Hello, I installed RedHat 9 on a Toshiba Satellite 5105-S501 laptop.
I'd like to use KLaptop since I'm on a laptop but it says

"Your computer doesn't have the Linux APM (Advanced Power Management) or ACPI software installed, or doesn't have the APM kernel drivers installed - check out the Linux Laptop-HOWTO document for information on how to install APM."

I googled about it all day long but I couldn't find much.
I found about APCI4Linux but I don't know if it's the thing I need.

Even if it's the thing I need, I do not understand how to install diff.gz files.
In another thread, I read that it's to patch something but since I'm such a newbie, I do not understand what it means.

Does anybody know a idiot's guide to enebling ACPI?
I'll really appreciate it if someone can tell me how I can use ACPI features on my laptop.
 
Old 04-21-2003, 01:23 AM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
I downloaded this kernel

ftp://ftp.kernel.org/pub/linux/kerne...2.4.20.tar.bz2

I downloaded this patch

http://unc.dl.sourceforge.net/source...2.4.20.diff.gz

I downloaded this

http://easynews.dl.sourceforge.net/s...3-04-03.tar.gz


you will need to unpack the kernel source to /usr/src/linux

cd /usr/src/linux
make mrproper
gunzip -c /path/to/acpi-20021212-2.4.20.diff.gz | patch -p1

unpack the omnibook file and cd into it's folder

I ran the kpatch file

./kpatch

you can also build the modules if you want


configure your kernel for your machine.

loading the current config before doing anything else may be a good idea if you don't know what the config settings are

then build the kernel and you will see ACPI in the general section of the config enable it and enable the sub items or set them to M for modules


you will see HP laptop support

build it as a module

You should also build the Toshiba laptop module support for your machine

I'm not sure if your laptop is supported by the omnibook driver or not, you will need to try it


read the docs in the acpi and omnibook folders

Last edited by DavidPhillips; 04-21-2003 at 01:30 AM.
 
Old 04-21-2003, 01:26 AM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
You can get other patches for acpi if the kernel you are going to use is not the 2.4.20 you need to get the matching patch
 
Old 04-21-2003, 01:37 AM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
Or you might try to run these commands and see what happens


modprobe toshiba
modprobe acpi


/etc/rc.d/init.d/acpid start
 
Old 04-21-2003, 01:41 PM   #5
digsy
LQ Newbie
 
Registered: Mar 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Thank you very much for detailed replies, David.

I have one question before doing what you said.
I see a folder named "linux-2.4.20-9" in /usr/src.
I still have to download 2.4.20 kernel and unpack it at /usr/src/linux, am I right?
 
Old 04-21-2003, 04:20 PM   #6
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
you can try to see if the kernel has acpi and toshiba support first if you want.


cd /usr/src/linux-2.4
make menuconfig

look in General for ACPI and see if it has components like battery, cpu, thermal, etc

also look in the kernel section and see if toshiba module is enabled.

you can also try to patch the source you have with the omnibook and acpi patches if you want to try it.

I would make a copy to work with until you are sure it works

cd /linux-2.4; tar -c . | (mkdir /usr/src/linux; cd /usr/src/linux; tar -x)
cd /usr/src/linux
make menuconfig

Last edited by DavidPhillips; 04-21-2003 at 04:28 PM.
 
Old 04-21-2003, 05:27 PM   #7
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
I just installed RH 9 on my laptop

the kernel has the acpi patch but it is disabled by default so a rebuild is required

the toshiba module is already built in

most likely you can do modprobe toshiba

and also build the omnibook driver and load it without a kernel rebuild, the onetouch keys will work as well as media keys without acpi

on my hp the power button and brightness controls will not work without acpi

I am rebuilding the RH kernel 2.4.20-9 to see how it works out.

I might end up just using my 2.4.20 patched kernel that I am using for Slackware
 
Old 04-21-2003, 10:38 PM   #8
digsy
LQ Newbie
 
Registered: Mar 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Thank you for your replies again.
I did

cd /usr/src/linux-2.4.20-9
make menuconfig

Then something like BIOS came up and even though I couldn't find Kernel (Only Kernel Hacking is there), I found Toshiba Laptop support in Processor type and features.

Here's my current Configuration of Processor type and features.
Quote:
[*] Low latency scheduling
(Pentium-Pro/Celeron/Pentium-II) Processor family[*] Machine Check Exception
CPU Frequency scaling --->
<M> Toshiba Laptop support
<M> Dell laptop support
<M> /dev/cpu/microcode - Intel IA32 CPU microcode support
<M> /dev/cpu/*/msr - Model-specific register support
<M> /dev/cpu/*/cpuid - CPU information support
[ ] E820 proc support
<M> BIOS Enhanced Disk Drive calls determine boot disk (EXPERIMENTAL)
(4GB) High Memory Support[*] HIGHMEM I/O support
[ ] Math emulation[*] MTRR (Memory Ttype Range Register) support
[ ] Symmetric multi-processing support
[ ] Local APIC support on uniprocessors
[ ] Unsynced TSC support
And this is Configuration of General setup (ACPI support part only)
Quote:
[*] ACPI support
[ ] ACPI Debug Statements
<M> ACPI Bus Manager
<M> System
<M> Processor
<M> Button
<M> AC Adapter
<M> Embedded Controller
<M> Control Method Battery
<M> Thermal
I don't understand what those things tell or what I can do with them.
Should I modify it and Save Configuration to an Alternate File?
I'm sorry I'm such a

When I did "modprobe toshiba", nothing happened.
modprobe acpi & /etc/rc.d/init.d/acpid start did not work.
 
Old 04-22-2003, 01:27 AM   #9
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
acpi will need to be enabled, this will require you to rebuild the kernel

I have not determined if it will work with the current acpi patch or not

You will also need to install acpid
 
Old 04-22-2003, 01:35 AM   #10
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
see the kernel howto

after you exit make menuconfig

you run this

make dep clean bzImage modules modules_install install
 
Old 04-22-2003, 01:47 AM   #11
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
your new kernel will be 2.4.20-9custom

select it when you get the boot menu
 
Old 04-22-2003, 04:06 AM   #12
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
it appears that the acpi included with the redhat kernel is not complete.

the links above will get you toshiba laptop extras in the acpi section. I'm not sure what that will get you but I do know that I can't get my hp to work with the redhat kernel. brightness controls and the power button will not work.

I am going to use the 2.4.20 kernel with the patches, everything works on my machine with it.

Last edited by DavidPhillips; 04-22-2003 at 04:07 AM.
 
Old 04-22-2003, 02:48 PM   #13
digsy
LQ Newbie
 
Registered: Mar 2003
Posts: 29

Original Poster
Rep: Reputation: 15
I installed the ACPI patch and Omnibook file.
I modprobed those three and got this result.

Quote:
[root@localhost root]# modprobe toshiba
[root@localhost root]# modprobe acpi
modprobe: Can't locate module acpi
[root@localhost root]# modprobe omnibook
/lib/modules/2.4.20-9/kernel/drivers/char/omnibook/omnibook.o: kernel-module version mismatch
/lib/modules/2.4.20-9/kernel/drivers/char/omnibook/omnibook.o was compiled for kernel version 2.4.20-9custom
while this kernel is version 2.4.20-9.
/lib/modules/2.4.20-9/kernel/drivers/char/omnibook/omnibook.o: insmod /lib/modules/2.4.20-9/kernel/drivers/char/omnibook/omnibook.o failed
/lib/modules/2.4.20-9/kernel/drivers/char/omnibook/omnibook.o: insmod omnibook failed
When I rebooted, I didn't see 2.4.20-9custom.
I tried to install acpid but in the README says "Verify ACPI is loaded by verifying the existence of /proc/acpi/event." and I don't have "acpi" folder in proc.

Is this problem fixable or am I totally screwed?
 
Old 04-22-2003, 03:43 PM   #14
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
Your ok, don't worry


did the kernel build fail or something?

if this command failed

make dep clean bzImage modules modules_install install

we will need to see where it stopped and with what error



do you have a folder called /lib/modules/2.4.20-9custom

if not then building of modules failed

if there is no file in /usr/src/linux/arch/i386/boot/ named bzImage then the kernel did not build successfully or maybe install failed do to a lilo.conf problem

either way there should have been errors


please post the errors

kernel building errors is mostly always due to a configuration problem in the config file which can be corrected in menuconfig

follow these steps on the patched kernel source each time you build it...

the patch having no errors assumed..

cd /usr/src/linux

make distclean mrproper menuconfig

now load the config from file /boot/config-2.4.20-9 or whereever it is, or if you have not established a good config file for the system just go from the default and carefully enable only what you need. This process can take a few trial runs before everything clicks.

save your config file as you continue to make progress and reload them into the clean source each time you attempt to rebuild it.

after exiting menuconfig use this again..

make dep clean bzImage modules modules_install install


if it fails somewhere other than install, work on the menuconfig some more and try again until it works

if make install fails post the error

you can manually install the kernel if you have a sucessful make bzImage modules modules_install

Last edited by DavidPhillips; 04-22-2003 at 03:47 PM.
 
Old 04-22-2003, 04:31 PM   #15
digsy
LQ Newbie
 
Registered: Mar 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Yes, I think the kernel build failed.
I think I typed bzLmage instead of bzimage (I typed L in lower case ).
I'll try it again and post an error message if it comes up.

Should I install the patch and Omnibook file again and go through these steps again?

Btw, I use GRUB, not LILO.
 
  


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
How to get ACPI working on Toshiba L10 Laptop???? mickyg Linux - Laptop and Netbook 3 09-15-2005 02:44 AM
Sound and ACPI issues on a Toshiba A60 Satellite laptop Fenster Fedora 9 10-18-2004 07:25 PM
ACPI problems with Toshiba Laptop Running Suse 9.1 lhawk Linux - Newbie 0 08-12-2004 01:51 PM
Toshiba Laptop with 11b network and redhat 9 dude_228 Linux - Networking 7 10-04-2003 04:47 PM
RedHat 9.0 Toshiba laptop reboot freeze sardaukar_siet Linux - Software 0 04-16-2003 01:25 PM


All times are GMT -5. The time now is 05:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration