LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-20-2003, 02:55 PM   #1
andrewb758
Member
 
Registered: Jan 2003
Location: Columbus, OH USA
Distribution: Debian unstable
Posts: 63

Rep: Reputation: 15
Getting swsusp and ACPI to play nicely


I am trying to set up swsusp on my laptop with Mandrake 9.1. It is a new machine and therefore supports ACPI only. Swsusp will work successfully only if I turn off ACPI by passing 'acpi=off' to the kernel at boot time.

I need ACPI because I will be using this laptop on battery frequently and need to know my power level. But again I also need swsusp to pick up where I left off when I need to shut down the machine.

If ACPI is enabled and I invoke swsusp, upon resume the machine will give me the X login prompt after a LONG wait. It does not run the resume script. I am using kernel 2.4.22-9mdk which appears to have simply stable version 1.0 of the swsusp patch. It also appears to have the acpi-option patch (I tried to add it and it said it had already been applied).

This is a bit frustrating so if anyone has any suggestions as to how to get ACPI and swsusp to play nicely, it would be much appreciated!! Thanks.

P.S. Just in case in makes a difference, the laptop is a Dell Inspiron 300m and being a Dell it needed a "hacked" DSDT table added to the kernel at compile time. The DSDT table is at: http://www.hoolehan.com/300mlinux/#acpi
 
Old 12-17-2003, 12:06 PM   #2
shortcircuit
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
Post swsusp

That delay is from your system checking its filesystems for corruption. I've never used Mandrake, but I assume it has a sort of splash screen that prevents you from seeing a lot of text scrolling by in the background.

Have you read the kernel docs for software suspend support?

From the 2.6.0-test11 Docs (power/swsusp.txt):

"...it saves the state of the machine into active swaps and then reboots. You must explicitly specify the swap partition to resume from with "resume=" kernel option."

So, essentially, you need to add an entry in your grub.conf or lilo.conf that adds the kernel option "resume=/dev/(wherever your swap partition is)" ... That'll take care of that part of the problem.

I've never heard of a "resume script" ... as I understand it, the resume function is executed by the kernel, reading in a memory image from your swap partition. I doubt you should even see a splash screen.

But then, I've never run Mandrake. Can someone confirm?
 
  


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
Nvidia not playing nicely with TV Wonder VE Ben64 Linux - General 3 03-05-2006 08:52 PM
How to get udev to play nicely with ALSA ProtoformX Slackware 6 08-18-2005 10:41 AM
The two won't play nicely. onelung02 Linux - Networking 3 08-17-2005 10:32 AM
sudo isn't playign nicely Cichlid Linux - Security 6 09-26-2004 04:50 AM
swsusp with ACPI on 9.1 andrewb758 Mandriva 0 09-20-2003 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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