LinuxQuestions.org
Help answer threads with 0 replies.
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-01-2006, 07:47 AM   #1
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
How to suspend to ram ? I have problems.


I have an acer aspire 9113 laptop and I am trying to get suspend to ram (S3 acpi state) working. I tried two programs. First, powersave/kpowersave which is the default on suse. Powersave initially detected my system as unable to suspend to ram (although both the linux kernel and the windows device management report S3 as an available state). I had to force it by editing its configuration and when I tried it, I just locked my kde session. The output in /var/log/messages was that:
Code:
Sep  1 13:50:09 gklaptop PM: Preparing system for mem sleep
Sep  1 13:50:11 gklaptop Freezing cpus ...
Sep  1 13:50:11 gklaptop CPU 1 is now offline
Sep  1 13:50:11 gklaptop SMP alternatives: switching to UP code
Sep  1 13:50:11 gklaptop CPU1 is down
Sep  1 13:50:11 gklaptop Stopping tasks: ======================================================================|
Sep  1 13:50:11 gklaptop suspend_device(): usb_generic_suspend+0x0/0xf6() returns -16
Sep  1 13:50:11 gklaptop Could not suspend device 1-4: error -16
Sep  1 13:50:11 gklaptop Some devices failed to suspend
Sep  1 13:50:11 gklaptop Restarting tasks... done
Sep  1 13:50:11 gklaptop Thawing cpus ...
Sep  1 13:50:11 gklaptop SMP alternatives: switching to SMP code
Sep  1 13:50:11 gklaptop Booting processor 1/1 eip 3000
Sep  1 13:50:11 gklaptop Initializing CPU#1
Sep  1 13:50:11 gklaptop Calibrating delay using timer specific routine.. 3657.60 BogoMIPS (lpj=1828804)
Sep  1 13:50:11 gklaptop CPU: After generic identify, caps: bfe9fbff 00100000 00000000 00000000 0000c1a9 00000000 00000000
Sep  1 13:50:11 gklaptop CPU: After vendor identify, caps: bfe9fbff 00100000 00000000 00000000 0000c1a9 00000000 00000000
Sep  1 13:50:11 gklaptop monitor/mwait feature present.
Sep  1 13:50:11 gklaptop CPU: L1 I cache: 32K, L1 D cache: 32K
Sep  1 13:50:11 gklaptop CPU: L2 cache: 2048K
Sep  1 13:50:11 gklaptop CPU: Physical Processor ID: 0
Sep  1 13:50:11 gklaptop CPU: Processor Core ID: 1
Sep  1 13:50:11 gklaptop CPU: After all inits, caps: bfe9fbff 00100000 00000000 00000140 0000c1a9 00000000 00000000
Sep  1 13:50:11 gklaptop Intel machine check architecture supported.
Sep  1 13:50:11 gklaptop Intel machine check reporting enabled on CPU#1.
Sep  1 13:50:11 gklaptop CPU1: Intel Genuine Intel(R) CPU           T2400  @ 1.83GHz stepping 08
Sep  1 13:50:11 gklaptop APIC error on CPU1: 00(40)
Sep  1 13:50:11 gklaptop CPU1 is up
It seems unable to shut down usb, and then it also produces an apic error. Powersave has the same behaviour in both my suse and gentoo installations. I tried to boot gentoo with the noapic kernel parameter but that causes a system freeze after the coldplug service is started.

Then, I tried klaptop on gentoo. KLaptop is not actually the best app for this job and I prefer powersave, but using suspend to ram with it works! The system goes successfully to S3 acpi state. When I resume, though, few seconds after I get back to kde, the screen switches to vt1 and the system is powered off (without entering runlevel 0).

Does anybody have a clue how I can use suspend to ram without turning off my laptop on resume? And does anybody know why powersave does not make it?
 
Old 09-02-2006, 10:42 AM   #2
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
You could try adding "noapic" to the append line at startup for Grub - disabling APIC is recommended for getting resume to work on a lot of systems, and it does appear to be causing you some trouble here.
 
Old 09-04-2006, 01:37 PM   #3
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by cathectic
You could try adding "noapic" to the append line at startup for Grub - disabling APIC is recommended for getting resume to work on a lot of systems, and it does appear to be causing you some trouble here.
Well, I'll try it in suse too, but as I said, in gentoo the noapic command causes the system to freeze after the coldplug service is started.
 
Old 09-09-2006, 03:45 AM   #4
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Original Poster
Rep: Reputation: 30
Well, I think I found the solution. I unload "ehci_hcd" and "uhci_hcd" as well as "ac" and "battery" modules before suspending. I also compiled in the kernel usb suspend support (for suspending individual devices, needed for my internal camera, which is connected to the ehci usb controller) and switched to suspend2-sources in gentoo.
In addition, I use the hibernate-ram script.

Now the problem is that when I resume I get no sound. The hibernate script automatically restarts the alsasound service but that doesn't do anything.
 
  


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
[Help!]Laptop can not suspend to ram Crossa Linux - Laptop and Netbook 3 08-20-2006 12:29 AM
Requirements for Suspend to RAM kushalkoolwal Linux - Laptop and Netbook 15 08-14-2006 09:51 PM
modem usability problems after starting from "suspend to RAM" pusrob Linux - Networking 1 06-17-2006 02:54 AM
Suspend to RAM/HD question Lake-end Linux - Laptop and Netbook 6 07-05-2005 01:10 AM
suspend to ram works at last!!!! jwn7 Linux - Laptop and Netbook 4 03-31-2005 06:42 AM

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

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