LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
LinkBack Search this Thread
Old 10-18-2003, 06:17 AM   #1
rodevriendje
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
Smile Mandrake 9.2 hangs when I plug/unplug powercord on Dell Latitude


I did a clean install of mandrake 9.2 powerpack on my Dell Latitude C640 laptop (1.8 Ghz pentium IV, 512 Mb memory).
It works fine, except whenever I plug/unplug the power, the machine hangs (with 100% reliability). It completely freezes (no respond, no ctrl+alt+backspace, no ctrl+alt+delete, no ctrl+alt+F1-F5), and the only way out is pressing the powerdown button for a couple of seconds and rebooting. Not exactly what was expected.

I did not have this problem with Mandrake 9.1 / 9.2RC2 (yes, I did a complete clean reinstall, formatting the partitions, etc, over three times, nothing wrong with the memory or other hardware. My windows partition is just fine and dandy). Anyone know if this is a kernel problem, or did I forget to install something?

Thanks for any suggestions! I am about to download another distro.

Last edited by rodevriendje; 10-20-2003 at 02:37 AM.
 
Old 10-19-2003, 09:42 AM   #2
Ginux
Member
 
Registered: Oct 2003
Location: Montpellier, Milano
Distribution: RedHat
Posts: 81

Rep: Reputation: 15
The first thing that popped into my mind was "Speed Step", it's used on certain mobile CPU, to reduce the battery cunsumption when on battery.
Try this,
Reboot the PC, press F2 at the DELL logo, and go to page (6 or 7) using ALT-P, there (some where) you should see a line that says SpeedStep ENABLED, disable it andthen boot under linux and try.
If all workes then I would advise to download the latest BIOS from the Dell website, and/or recompile the kernel, to reflect your processor or how should it work.

Cheers
Ginux
 
Old 10-19-2003, 12:37 PM   #3
rodevriendje
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I disabled all power management features in the Bios, and it still hangs.
I am sure the problem is related to the powermanagement, so I will try to upgrade the Bios and see what happens.

There was something on the mandrake site about related problems with some HP laptops, inclduing the fix for it (passing nolapic to the kernel at boot). I tried this, but it does not solve my problem.

Thanks for the suggestion though.
 
Old 10-19-2003, 12:56 PM   #4
Ginux
Member
 
Registered: Oct 2003
Location: Montpellier, Milano
Distribution: RedHat
Posts: 81

Rep: Reputation: 15
That was a shot....

Listen does it happen under a terminal (not X)? i.e. if you boot in init 3?
 
Old 10-19-2003, 01:59 PM   #5
rodevriendje
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Yes it does. Even in failsafe mode (only command line) it freezes completely when I unplug the power.
 
Old 10-19-2003, 02:55 PM   #6
Ginux
Member
 
Registered: Oct 2003
Location: Montpellier, Milano
Distribution: RedHat
Posts: 81

Rep: Reputation: 15
It was working whith a previous release.... The only major change other than the small pakages should be the kernel.
Have you tried to recompile the kernel?
What kernel rev. are you currently using?
 
Old 10-19-2003, 03:09 PM   #7
rodevriendje
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Original Poster
Rep: Reputation: 0
It is kernel version 2.4.22 that is used in mandrake 9.2
I have not tried to recompile the kernel, but I am installing everything again right now (just to make sure nothing is broken in the file system because of all of the sudden freezes).
Compiling the kernel will be the next thing I'll try (never did it before, first time for everything). Or maybe I could see if I can get an answer from Mandrake directly.
 
Old 10-19-2003, 03:46 PM   #8
rodevriendje
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks. I have solved the problem.

You were right. It was the Intel Speedstep. Just taking the power saving features offline was not enough. Somewhere further down in the Bios I found a setting to turn Intel Speedstep off, and after that it works like a dream!

Do you think kernel developers need to know this? Or can it be a Mandrake specific problem?
 
Old 10-19-2003, 05:45 PM   #9
rodevriendje
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Original Poster
Rep: Reputation: 0
OK, I have filed the bug with the kernel development team at Mandrake.
It does not seem to be reported before, so we might have solved a premium here.
Thanks again!
 
Old 10-20-2003, 12:49 PM   #10
Ginux
Member
 
Registered: Oct 2003
Location: Montpellier, Milano
Distribution: RedHat
Posts: 81

Rep: Reputation: 15
Hey good news
I'm happy for you

Happy to have helped (even a little bit )

Cheers
Ginux
 
Old 10-31-2003, 12:08 PM   #11
thekswenson
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
another solution to unplug and hang

This was happening to me with my inspiron 8000.
Since the power saving feature is actually nice to have with a laptop you have other options:

I found this link
http://www.cs.helsinki.fi/linux/linu...1-41/0120.html
that explains which features to turn off when compiling the kernel.
(which is pretty easy but does take a first-timer a few hours)


The lazy way:

The other option is to use the kernel from 9.1...
just get the package from one of the ftp mirrors and install it.
(ftp://mirrors.usc.edu/pub/linux/dist...-1mdk.i586.rpm for instance)

When you boot the machine pick the old linux kernel in lilo.
Once your sure everything is good. You can remove the kernel package for 9.2.
 
Old 11-06-2003, 11:48 AM   #12
thekswenson
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
maybe not?

This might not be a good idea as it seems to have messed up power management in other ways...
can't get the status of the battery.
 
Old 11-07-2003, 12:34 PM   #13
thekswenson
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
build the mdk kernel

I built the kernel source from the package kernel-source-2.4.22-21mdk.i586.rpm (the most recent) and everything works well now...
1. Install the package from an update sight.
2. Using the directions at http://www.aerospacesoftware.com/ker...ile-howto.html get to the xconfig window for /usr/src/linux-2.4.22-21mdk/.
3. Under the "Processor type and features" button make "Local APIC support on uniprocessor" = no.
** You should also pick your processor type while your here.
4. Under the "General Setup"->"PCI Hotplug Support" buttons choose "IBM PCI Hotplug driver" = no .
** Unresolved symbol errors will occur during linking in the "make modules_install" phase if this is not done (if you don't know what I'm talking about, just do it).
5. Continue with the directions from the above link.

This worked for me so I assume it will work for you.
 
Old 11-07-2003, 12:48 PM   #14
thekswenson
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
You can bypass steps 3,4 by using the .config file at http://www.cs.unm.edu/~kswenson/kern...mdk-i8k.config

** You still have to run "make xconfig" and then save as you quit out of it.
 
Old 11-30-2003, 12:48 AM   #15
alexchannell
Member
 
Registered: Nov 2003
Posts: 47

Rep: Reputation: 15
I did this and am very pleased my comp no longer locks when the lid is closed or the power cord is unplugged.

Problem: I tried to install acpi and acpid, and they don't seem to load at startup. No errors are shown, it acts as though they don't exist even though the files are in rc.5
Can acpi be run?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No sound Dell Latitude CP Mandrake 10 tropicon Linux - Hardware 1 05-17-2005 02:19 PM
USB plug & unplug JrLz Slackware 6 12-09-2004 08:07 AM
USB mouse works only if i unplug then re-plug it allelopath Linux - Hardware 3 11-20-2004 12:48 PM
usb wlan works but only after i unplug and plug triagladad Linux - Wireless Networking 0 09-21-2004 06:45 AM
cdrw won't write on dell latitude with Mandrake krome Linux - Hardware 2 06-26-2004 11:20 AM


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