epretorious Posted September 28, 2004 Report Share Posted September 28, 2004 Hello, All: I've installed MandrakeLinux 10.0 on my Dell Latitude and have been super impressed. :D There is one nagging problem, however: How can I make my laptop go to sleep when I close the lid? ACPI is enabled at boot time (acpi=on), ACPI & ACPID are both started by default (/etc/init.d/acpi & /etc/init.d/acpid). Quote Link to comment Share on other sites More sharing options...
jeremy1701 Posted September 29, 2004 Report Share Posted September 29, 2004 You should be able to adjust the setting for what happens when you close your lid using the klaptop. Jeremy Quote Link to comment Share on other sites More sharing options...
epretorious Posted September 30, 2004 Author Report Share Posted September 30, 2004 You should be able to adjust the setting for what happens when you close your lid using the klaptop. Great! How do I adjust the settings? Quote Link to comment Share on other sites More sharing options...
epretorious Posted October 5, 2004 Author Report Share Posted October 5, 2004 When I boot into Gentoo (this is a dual-boot Mandrake/Gentoo box) it suspends quite normally (without any options passed to the kernel at startup) so I checked the kernel options and found that I compiled APM into the kernel and did not compile APCI into the kernel. So that leaves me asking one question: How do I make APM work on Mandrake? Quote Link to comment Share on other sites More sharing options...
epretorious Posted October 6, 2004 Author Report Share Posted October 6, 2004 After disabling APCI and enabling APM (through the Mandrake Control Center) there's still no love goin' on here: [root@zippy root]# apmd No APM support in kernel Quote Link to comment Share on other sites More sharing options...
epretorious Posted October 6, 2004 Author Report Share Posted October 6, 2004 BTW: Don't get me wrong - I'm still very impressed with M10! These little flaws are just so frustrating! :D Quote Link to comment Share on other sites More sharing options...
DragonMage Posted October 6, 2004 Report Share Posted October 6, 2004 Is it a recent laptop? (Made after 2000 or so). If it is, I am surprised it uses APM since usually APM is replaced by ACPI after late 1990s. Quote Link to comment Share on other sites More sharing options...
aRTee Posted October 6, 2004 Report Share Posted October 6, 2004 Don't use apm! acpi lets you speedstep the cpu, prolonging battery life! apm is quite rudimentary, of acpi works, use that. Normally, in kde, you should get an icon on the tray, right click and configure it. You have to initialise it to be able to use all options, just go to the last tab and click the button for the setup. You will have to enter the root password, then you have the options in the other tabs on what to do when you close the lid, etc.. Quote Link to comment Share on other sites More sharing options...
adamw Posted October 6, 2004 Report Share Posted October 6, 2004 you can do it all manually too, of course. try it, it's fun :). look in /etc/acpi/events and /etc/acpi/scripts (i think...I'm not in front of a Linux box right now). basically you can put little scripts in events which will get run when certain events happen - power cord plugged / unplugged, power button pressed, lid closed - and in turn will call a bigger script to actually do stuff. This is a brilliantly flexible system that lets you do all sorts of stuff. When I unplug my laptop the CPU throttles down to 3/4 full speed, the backlight is set to its dimmest level, and my hard disk is set to spin down after 30 seconds of no activity (instead of the default 15 mins or so). I can try and post more detailed info later, but you can work it all out yourself with a little hacking about and some google skills :). Start off at http://acpi.sourceforge.net/ . Quote Link to comment Share on other sites More sharing options...
coverup Posted October 7, 2004 Report Share Posted October 7, 2004 There could be a BIOS option that will allow you suspend on closing lid (my thinkpad has such an option) Quote Link to comment Share on other sites More sharing options...
aRTee Posted October 8, 2004 Report Share Posted October 8, 2004 BIOS control of things means using apm, if you want acpi (and yes, you want that) your OS will have to deal with things. adamw, I'll be looking into the things you mention, thanks. epretorious, have you managed? Quote Link to comment Share on other sites More sharing options...
epretorious Posted November 10, 2004 Author Report Share Posted November 10, 2004 (edited) BIOS control of things means using apm, if you want acpi (and yes, you want that) your OS will have to deal with things. epretorious, have you managed? After reviewing the output of `dmesg` I passed the kernel a few arguments at start-up... %> cat /proc/cmdline root=/dev/hda1 pci=noacpi acpi=off ...and turned-off apmd... chkconfig --level 2345 apmd off ...and things usually work as-expected. Sometimes, though (e.g., If my USB mouse is plugged-in) things don't work as-expected. I'm still workin' out the kinks. I may eventually re-compile the kerel. Either way, I'll post the results here for future generations. Edited November 10, 2004 by epretorious Quote Link to comment Share on other sites More sharing options...
SoulSe Posted November 10, 2004 Report Share Posted November 10, 2004 You could compile your own kernel for Mandrake, use the kernel you compiled for Gentoo as a base... As for ACPI vs. APM - I think that's been answered. Quote Link to comment Share on other sites More sharing options...
epretorious Posted November 16, 2004 Author Report Share Posted November 16, 2004 (edited) Is it a recent laptop? (Made after 2000 or so). If it is, I am surprised it uses APM since usually APM is replaced by ACPI after late 1990s. The Dell Latitude CPx - unfortunately - does not implement/support ACPI in the BIOS. :sad: Edited November 16, 2004 by epretorious Quote Link to comment Share on other sites More sharing options...
epretorious Posted November 16, 2004 Author Report Share Posted November 16, 2004 (edited) After reviewing the output of `dmesg` I passed the kernel a few arguments at start-up... %> cat /proc/cmdline root=/dev/hda1 pci=noacpi acpi=off ...and turned-off apmd... chkconfig --level 2345 apmd off ...and things usually work as-expected. Sometimes, though (e.g., If my USB mouse is plugged-in) things don't work as-expected. I'm still workin' out the kinks. I may eventually re-compile the kerel. Either way, I'll post the results here for future generations. I've had increasingly good luck with ACPI lately: Through trial-and-error experimentation I've discovered hotplug seems to be most of the problem (so I disabled it)... chkconfig --level 2345 hotplug off ...and that as long as I change to a TTY before closing the lid the laptop enters sleepmode when the lid is closed and awakens when the lid is opened. (If I close the lid while using X I have to restart X - i.e., Ctrl-Alt-Back - to re-awaken X on TTY7.) Also, if I have a USB mouse plugged-in when I close the lid, it's no longer available after re-awakening. I can live with having to un-plug the mouse before closing the lid, though. :D Edited November 16, 2004 by epretorious Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.