LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-25-2003, 10:50 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Unhappy Mandrake 9.2 power problems


Hey, guys! How are you? Hope you can help me on this one:

I have a Dell Inspiron 8100. It works fairly well.... up to mandrake 9.1. Mandrake 9.2 has brought me a couple of problems. Let's start:

If I unplugged the ac power, the box completely freezes. It doesn't matter if I use apm or acpi. It doesn't matter if I'm finely working or just booting.. it freezes. If the power source changes, It freezes. I checked bios settings, disabled some capabilities of the laptop, microprocessor speed doesn't change, just to give it a try... didn't work. It still freezes. Due to that problem, I'm using the old kernel instead. That way, It's OK. Due to the fact that it froze once I chaged the power source when loading the kernel, I guess it's a kernel related problem.

Another thing I noticed was that with this new kernel my laptop doesn't turn off itself. I have to press the power button to turn it off. I noticed it with Knoppix 3.3, which I had just tried 3 minutes before updating mandrake 9.2... but haven't made sure knoppix has the same trouble again a again. Could it be kernel related too?

That's it for my power problems.

I'm having problems letting mandrake configure my nic, so I guess I will have to do it with my bare hands, but That's just another crap-pile. The power problems are keeping me tied to the old kernel. Any ideas here? Hope you do?!

Thanks for at least reading it.
 
Old 12-25-2003, 02:07 PM   #2
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Rep: Reputation: 30
i've been dealing w/ that problem on my desktop, not a laptop, but i hope maybe this would get u start here:

log as root
go to: /boot, type: cat conf | grep APM,
then type: cat conf | grep ACPI

see what u got. if you don't have those on, go to:
/usr/src/linux<version number>/

type: make xconfig, and turn those option (i think acpi and stuff are under general, but u wanna view everything)

then save, and here goes the happy compile kernel process
should i walk u through how to do it? or would u rather read kernel-howto?

i briefly walk u through (i'm not good at compile kernel either heheh)
type: make dep

if you wanna make ur own kernel name:
edit: /usr/src/linux/Makefile change EXTRAVERSION

type: make clean
type: make bzImage
type: make modules
type: make modules_install

type: rm -rf /boot/System.map
type: rm -rf /boot/vmlinuz
type: cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-x.x.x
type: cp /usr/src/linux/System.map /boot/System.map-x.x.x

type: ln -s /boot/vmlinuz-x.x.x /boot/vmlinuz
type: ln -s /boot/System.map-x.x.x /boot/System.map

type: rm -rf /boot/initrd.x.x.x.img
type: /sbin/mkinitrd /boot/initrd-x.x.x.img x.x.x (x.x.x is the ur new modified kernel #, ...)

then edit ur lilo.conf under /etc

image = /boot/vmlinuz-x.x.x
label = New Kernel
root = /dev/hdx
read-only

for hdx, look at ur other image to see whast root is = to...

type: lilo
reboot, and ur acpi and apm should be running.
 
Old 12-25-2003, 05:25 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Thanks man

OK. I have compiled a kernel, can deal with that.

But let's talk about the source of the problem. Is it that the kernel as compiled by mandrake for 9.2 comes without the ACPI or APM support?

I tried installing both deamons, but didn't work either of them. Once I changed the power source, the box froze up. And I thought that the deamons needed the support by the kernel... therefore I thought the kernel was comppiled with it.

I'll do it as you tell anyway... and thanks. Tell you about the result once I try.

Thanks!
 
Old 12-27-2003, 10:02 AM   #4
derbaff
LQ Newbie
 
Registered: Dec 2003
Posts: 3

Rep: Reputation: 0
any luck?

I have the same problem on my Dell c640. It freezes when ever a BIOS call is made, I think it doesn't power down because the computer really locks up right when the bios tries to turn it off. If I close my lid and the bios signals the panel to turn itself off, the computer locks up. I haven't tried initiating a suspend, but I suspect it would cause the same thing. I used apm in 9.1 and everything worked fine, with 9.2 it doesn't. Apm is running; I get a battery status when I type apm in a shell. Switching to acpi (which is mostly broken on this laptop) doesn't change anything. Perhaps a kernel recompile would work if anybody knew what change in the mandrake kernel has caused this. Does anyone have an ideas?
 
Old 12-27-2003, 11:39 AM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
UPDATE:
Guys: I took a very deep breath, opened up my eyes.... and downloadad kernel 2.6.0. Fine tuned it for my laptop, compiled it, installed it... it's working now... COOL DOWN, COOL DOWN. It's not like i'm surfing the web, listening to music through it. I still have my own business to take care of with it... but it certainly doesn't have the prower problems the MDK 9.2 kernel comes with.

I had to install a module-init-tools before doing make modules_install. (in fact i tried without it but the make modules_install failed and told me to try WITH it ).

so... what are the problems now? Well.... I have a win-modem in this laptop... so I have to get the modules for it. I have to get the sound to work, and get the virtual terminals show up.... I must have f***ed something up with that. The computer is turning itself off just like it always did before. The klaptop icon is working properly, my computer doesn't freeze anymore.

I'm working with the mdk 9.1 kernel right now.

Well..... any comments?

Good look!
 
Old 12-28-2003, 03:12 PM   #6
ManK
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake, Redhat, Knoppix
Posts: 9

Rep: Reputation: 0
To work around power management issues with stock kernel, pass the following kernel parameters: acpi=ht nolapic

It's a known issue and the solution was in mandrake 9.2 errata.
 
Old 12-28-2003, 10:51 PM   #7
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
SuperUPDATE
Guys, I chaked ManK's comment... and it happens to work perfectly well!

I'm working with the mdk 9.2 kernel. Can unplug just like that.. and it turns off the laptop. Hope ity works for you too, guys!

Can't complain. Thanks, ManK. I love the linux community.
 
Old 12-29-2003, 03:12 AM   #8
-=MaGo=-
Member
 
Registered: Jun 2003
Location: Italy
Distribution: mandrake; debian
Posts: 33

Rep: Reputation: 15
Question just a little hand...

Hy guys,
I have your same problems on my dell 8k, I try to solve it by myself but I was not able.
I read the massage posted by ManK, and the errata in MDK site, but the problem is that I do not know I can pass the kernel parameter "acpi=no lapic"

Then, if acpi will work , can anyone give me some tips to use it:
I have seen I have to define the right commands in klaptop to let my lap go in suspend mode and standby mode. Who know this commands

Thank you
 
Old 12-29-2003, 11:27 AM   #9
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
It's not thah difficult. The easiest way (I think) is editing the file /etc/lilo.conf

There you will find the entries that mandrake has setup up for lilo when the computer starts.

Find the new kernel's entries. Each one of them has to have a append line. There is where you will add the apci=ht nolapic words, resulten in an item like this:
image=/boot/vmlinuz
label="linux"
root=/dev/hda5
initrd=/boot/initrd.img
append="quiet devfs=mount splash=silent acpi=ht nolapic"
vga=788
read-only

look at the line append. There it is.

After you have edited and saved the file. Run this command:
lilo
and that's it. Restart.

There's a way with the drakconf, but I think it's kind of more annoying to explain.
 
Old 12-30-2003, 03:11 AM   #10
-=MaGo=-
Member
 
Registered: Jun 2003
Location: Italy
Distribution: mandrake; debian
Posts: 33

Rep: Reputation: 15
it works

Thank you eantoranz

I learned an other thing
 
  


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
Can't Power Off in Mandrake 10.0 hacchan Mandriva 1 05-31-2005 09:36 PM
Mandrake and power down eqxro Mandriva 2 09-18-2004 11:14 AM
Power Meter on Mandrake 10 iamstorm Linux - Laptop and Netbook 3 09-11-2004 09:02 PM
Power off in Mandrake 10 SGFHK321 Linux - Newbie 15 07-11-2004 01:52 PM
Mandrake 9.2 Laptop power problems eantoranz Linux - Laptop and Netbook 1 12-29-2003 10:33 AM

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

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