LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-23-2003, 06:58 AM   #1
WaRrK
LQ Newbie
 
Registered: Jul 2003
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
ACPI on Mandrake 9.1


Hi,

I'm trying to get ACPI working on my laptop running an unmodified Mandrake 9.1 (Its on a Compaq evo 1015v if it makes a difference). Now, I was out of my depth before I started doing this so what I have done already may be wrong;

I added "acpi=on apm=off" to the append tag in lilo.conf then disabled apmd from control centre then I installed acpid.

I'm now stuck with the error message "can't open /proc/acpi/event" when I try to start acpid. (btw. there isn't a file or folder at that path)

Any help getting further (or going backwards to undo the damage I've done!) would be greatly appreciated!

Thanks in advance,

-Ash
 
Old 07-23-2003, 11:37 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
"can't open /proc/acpi/event" probably means that acpi isn'it in the kernel. It may not be in your kernel by default, so you'll probably have to recompile with it in there.
 
Old 07-23-2003, 12:13 PM   #3
echapin
LQ Newbie
 
Registered: Jul 2003
Location: Puebla, Mexico
Distribution: Redhat 9.0, Suse 7.3
Posts: 5

Rep: Reputation: 0
It is likely that the stock kernel that you are using doesn't have ACPI compiled into it. I recently got Redhat 9 working on my laptop (a Dell Latitude D600), and the power management features could only work with ACPI. The last kernel I was using before compiling my own was the stock 2.4.20-18.9. Apprently these kernels have an ACPI option in the configuration (if you compile them yourself), but it doesn't work even when it is activated. I ended up having success using the patched Kernel 2.4.21-rc2-ac2 on my machine.
 
Old 07-23-2003, 06:46 PM   #4
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
I'm also running MDK9.1 and I got the same message in the beginning - the /proc/acpi/event message. My first lazy try was to see if it wasn't properly installed - and it wasn't. Just look for acpi or acpid packages on the installation cd's.

This doesn't mean I got it to work, though. I'm also a (happy?) owner of a D600 and with the broken DSDT it's (becoming) a mess. Today I tried to recompile the kernel with the osl patch and the hacked DSDT, but something went wrong. It loaded the kernel but then it just stopped and restarted the booting. I'm gonna try again tomorrow.

BTW, I tried this on the 2.4.21-0.24 kernel. Does anyone know if this is supposed to work? As with the 2.4.21-rc2-ac2, I mean.

Edit: Hmm, I just googled for this 2.4.21-0.24 kernel and didn't find it - does it even exist? Or is it some MDK invention?

Last edited by Bebo; 07-23-2003 at 07:02 PM.
 
Old 07-23-2003, 07:08 PM   #5
echapin
LQ Newbie
 
Registered: Jul 2003
Location: Puebla, Mexico
Distribution: Redhat 9.0, Suse 7.3
Posts: 5

Rep: Reputation: 0
If it's any use, I basically followed the instructions on the following web page verbatim:

http://mikehardy.net/linux_latitude_d800/

It's (obviously) for a d800, but most of the hardware is the same. The only real differences in my kernel config were that I turned off the firewire support (d600 doesn't have one), the bluetooth, and I put in CONFIG_DRM_RADEON=m instead of CONFIG_DRM_I830. I even used the same DSDT patch that Mike Hardy used - I just figured I'd try it, assuming the power management couldn't be too different on my machine, and (so far) it seems I guessed right.

My Kernel can now properly activate DMA for my 60gig HD (the original stock kernel I used 2.4.20-6 couldn't, *20-18.9 could if I explicitly turned it on), the Radeon module is good enough for tux racer and most of the OpenGL screen savers that came with KDE3. Haven't played much with the ACPI, but at least X doesn't crash when I close the lid. I seem to have a working battery indicator, and the computer properly powers down when I shut down. Just for reference, I have a revision 02 bios (I think there is now a patch for 05 on the Dell web page).
 
Old 07-24-2003, 02:57 AM   #6
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
Hello echapin,

Thanks for the advice. I have seen Hardy's page, and followed his advice last time I tried. Or, well, at least partly... When I did it, I assumed that my 2.4.21-0.24 kernel contained the patch for 2.4.21-rc2-ac2, but since it didn't work, I guess I was wrong. I used the hacked DSDT that Owen Cliffe has made; he has a nice page on the D600 at

http://www.cs.bath.ac.uk/~occ/laptop/

that also can be reached from Linux on Laptops. He has posted a hacked DSDT at sourceforge that I used. However, when I create the dsdt.hex with intel's iasl (that sourceforge recommends) I get error messages that look like this:

Code:
Intel ACPI Component Architecture
ASL Optimizing Compiler / AML Disassembler version 20030522 [May 23 2003]
Copyright (C) 2000 - 2003 Intel Corporation
Supports ACPI Specification Revision 2.0b

Dell-Latitude_D600-A03-custom.asl  1895:                 Method (_S0D, 0, NotSerialized)
Warning  2033 -                               Unknown reserved name ^  (_S0D)

Dell-Latitude_D600-A03-custom.asl  1939:                 Method (_S0D, 0, NotSerialized)
Warning  2033 -                               Unknown reserved name ^  (_S0D)

Dell-Latitude_D600-A03-custom.asl  1995:                 Method (_S0D, 0, NotSerialized)
Warning  2033 -                               Unknown reserved name ^  (_S0D)

Dell-Latitude_D600-A03-custom.asl  2039:                 Method (_S0D, 0, NotSerialized)
Warning  2033 -                               Unknown reserved name ^  (_S0D)

ASL Input:  Dell-Latitude_D600-A03-custom.asl - 2930 lines, 82477 bytes, 1167 keywords
AML Output: DSDT.aml - 10872 bytes 453 named objects 714 executable opcodes

Compilation complete. 0 Errors, 4 Warnings, 0 Remarks, 0 Optimizations
I've mailed to Owen and asked what it means, and he thinks that these warnings are due to a "stricter checking in a newer version of the compiler", and says to try the compiled DSDT.

I will make another try today - we'll see what comes out of it!
 
Old 07-24-2003, 10:35 AM   #7
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
Yay! It works! And now I have a bit of a warning to other Mandrake users...

My first try today was to follow Hardy's recipe all the way (also his .config file) with the DSDT from Cliffe, despite the warnings I showed in my former reply in this thread. It worked very well, although he doesn't say that one has to make an initrd image, by

mkinitrd /boot/initrd-2.4.21-rc2-ac2 2.4.21-rc2-ac2

And except for an old link it was completely painless - thanks Mike!

However, when it booted up I saw a message that supermount wasn't available and that my XP partition wasn't mounted. Comparing the config files of my "default" kernel, 2.4.21-0.24mdk, and the new one, I noticed that I had missed the options to configure supermount and the NTFS file system. The NTFS option was just to check, but the supermount was another issue. It's Mandrake's stuff, so this -rc2-ac2 kernel does not have it. Of course I want that feature, but I couldn't find an rpm to fill that gap. I found some patches at a Mandrake web page, but I couldn't patch the -rc2-ac2 kernel with them.

So, now what? Well, in this my second try - ever - to compile a kernel I realised that the .config I had used in my first attempt was completely wrong - I had missed that it should be placed in the kernel source "root", in this case /usr/src/linux-2.4.21-0.24mdk, when I tried the -0.24mdk kernel yesterday. So, I tried this kernel again, but now with the correct .config.

And what do you know, this works just as good as with the -rc-ac2 kernel, and even better, since one can keep Mandrakes kernel features. Ah, wait, maybe there is a difference with the graphic drivers in these two kernels, but that can be solved. The next step is to somehow get to manipulate the processor states and all this.
 
Old 07-24-2003, 11:13 AM   #8
WaRrK
LQ Newbie
 
Registered: Jul 2003
Distribution: Mandrake 9.1
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the help so far;
I thought that one of 9.1's selling points was the fact that it had ACPI already in the kernel? I have installed acpid, and it was after installing this that I started getting the error message.

Should I just compile a new kernel and forget the one that came in the distribution to get this to work?

Thanks

Ash
 
Old 07-24-2003, 11:37 AM   #9
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
If your distro's kernel is 2.4.20, get the 2.4.21 because it supports acpi sleep.
 
Old 07-24-2003, 12:02 PM   #10
echapin
LQ Newbie
 
Registered: Jul 2003
Location: Puebla, Mexico
Distribution: Redhat 9.0, Suse 7.3
Posts: 5

Rep: Reputation: 0
As a further reply to Bebo: I did have to change Mike Hardy's config to include NTFS support in the patched kernel (I'm trying the read-only module). I did some further checks of the ACPI support using his hacked D800 DSDT, and everything is working well. Examining the files in /proc/acpi, the ac_adapter, battery charge/discharge states, buttons (including lid), processor stats and states, and temperature all give reasonable values. ACPI sleep in the *.21 kernels supposedly won't work with this laptop (Dell Latitude D600).
 
Old 07-24-2003, 06:40 PM   #11
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
Hello again,

All the /proc/acpi files show good numbers now, and the klaptopdaemon that I use to monitor the power supply is also working good. Again with the links on Mike Hardy's page I have now suspend (S1) and the power button halts the system (init 0). The only thing is the backlight on the display that doesn't shut off in suspend or when the lid is closed. Looking at posts on this, it seems like the radeon driver doesn't support this. (Bug or feature? ) Hopefully this will be fixed soon. I actually found some guy who wrote his own driver but the package had the extension .pkg, and I have no clue what that is

Well, good luck guys!

/Stefan
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.1 & acpi inglor Linux - Laptop and Netbook 7 02-15-2005 12:15 AM
Enabling acpi on Mandrake 10 SamothB Linux - Laptop and Netbook 18 08-19-2004 12:20 PM
Mandrake ACPI 10.0 help ronin8600 Linux - Laptop and Netbook 5 04-19-2004 07:41 AM
Mandrake 10 acpi anyone? Jakkin Linux - Laptop and Netbook 2 03-06-2004 02:55 PM
Problems with acpi under Mandrake 9.1 MTBKR Linux - Newbie 1 08-20-2003 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration