LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-09-2009, 08:36 PM   #1
Jessard
Member
 
Registered: Jun 2005
Location: Boston, USA
Distribution: Gentoo, CentOS
Posts: 82

Rep: Reputation: 16
Problem with sleep (suspend-to-ram, S3)


I have a problem with my laptop where suspending to ram seems to work, but the system won't recover properly afterwards. (It'll go to sleep, it just won't wake up!) I can put it to sleep with the ACPI lid event, Gnome's power manager, or just "echo -n mem > /sys/power/state", and it looks like it works fine.

When I try to bring it back by pressing the power or function button, the power light comes on and the fan revs, but nothing else responds and the screen stays blank. Nothing in the logs looks like it ever really wakes up. This is on gentoo with kernel 2.6.25 (and tried on 2.6.27), and on an Acer Aspire 5100-3372 laptop. Everything else with power and ACPI seems to work fine. Any tips on where to start looking?
Attached Files
File Type: txt kernel-conf.txt (46.8 KB, 8 views)

Last edited by Jessard; 02-09-2009 at 08:40 PM. Reason: attached kernel config file
 
Old 02-10-2009, 03:10 PM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
I remember there's some procedure somewhere in the web telling you what to do in (not uncommon) cases like this.
What I usually do to try to understand what happens:
1) try to go to runlevel 3 (no GUI) and try to suspend
2) play with the various options of your suspend tools - on opensuse for instance, you can make use of the s2ram/s2disk utilities, that have options like --vbe_save --vbe_post --vbe_mode --pci_save to try to be a bit more robust
3) try to remove as many external devices as you can, and as many modules as you can. I saw that some distribution tries to remove troublesome modules before trying to suspend. In my case, for instance, I have problems with my wifi usb device (rtl8187), removing its kernel module is enough to allow me to suspend and resume

Hope this helps!
 
Old 02-10-2009, 08:12 PM   #3
Jessard
Member
 
Registered: Jun 2005
Location: Boston, USA
Distribution: Gentoo, CentOS
Posts: 82

Original Poster
Rep: Reputation: 16
Ah, thanks! I've narrowed it down a bit (not a module problem, or an issue with X), and using s2ram lets me resume almost correctly. The only problem left is that the screen is garbled when it starts up again, and only fixes itself if I start X (haven't tried it while running an X server yet). This is definitely progress, though.

s2ram says the Aspire 5100 is recognized as "entry 17", so I'm hopeful; I'll try fiddling with the different options. The other thing that comes to mind is that I'm using the framebuffer; could that be causing trouble?
 
Old 02-14-2009, 10:44 AM   #4
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
I don't think that the framebuffer could cause problems more than using another video driver... anyway I would suggest changing it as using the card's specific module usually leads to superior performance.
 
Old 02-14-2009, 11:02 AM   #5
Jessard
Member
 
Registered: Jun 2005
Location: Boston, USA
Distribution: Gentoo, CentOS
Posts: 82

Original Poster
Rep: Reputation: 16
The card's specific module for the framebuffer? (I can do that?) I'm using ATI's fglrx module for X, but maybe I don't have a firm grasp of what's going on for the console. I think I'll try a kernel without any of that just to see what happens, and then go from there. Thanks for the advice.
 
Old 02-15-2009, 02:51 PM   #6
Jessard
Member
 
Registered: Jun 2005
Location: Boston, USA
Distribution: Gentoo, CentOS
Posts: 82

Original Poster
Rep: Reputation: 16
You're right, it's not a framebuffer issue (and it turns out I've been using the radeonfb driver, compiled in, without even realizing it). I'm not getting any success with the different s2ram options... any other ideas?
 
Old 02-15-2009, 03:03 PM   #7
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
If you tried all the options --vbe_save --vbe_post --vbe_mode --pci_save I don't know what else you could try...
yes you could try using the VESA video driver, just to see if something changes, or using the non-proprietary "radeon" module, that usually leads to good performance but less than the proprietary one, as of my experience.
Last, updating (more or less in order of importance) xorg, the driver itself, and the kernel could lead to some improvement... I hope there's someone else that can report his own experience
 
Old 02-15-2009, 09:17 PM   #8
Jessard
Member
 
Registered: Jun 2005
Location: Boston, USA
Distribution: Gentoo, CentOS
Posts: 82

Original Poster
Rep: Reputation: 16
Well, I haven't had any luck without X (or any extra video drivers at all), and I'm on the most recent kernel provided by Gentoo's package manager (2.6.27.8), so I'm a bit stuck. But, after fiddling with the kernel options, it looks like suspend-to-disk actually works just fine, so I think for the moment I'll just set up ACPI to do that in some of the events instead of going to ram. I guess it's a fair bit slower, but at least it works properly. I consider it a success, in any case. Anyway, thanks a lot for your help!
 
  


Reply

Tags
acpi, power, sleep



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
[SOLVED] xlock password on suspend-to-ram problem / not working xj25vm Linux - Laptop and Netbook 1 10-20-2011 06:06 AM
Suspend to disk/ram problem tea of evil Linux - Laptop and Netbook 2 03-05-2008 04:49 AM
Plz explain Suspend to Disk and Suspend to Ram pkhera_2001 Linux - Newbie 2 02-18-2008 07:23 AM
suspend to ram problem. ghostofsin Debian 1 03-21-2007 02:59 PM
Another suspend-to-RAM problem coldsalmon Linux - Laptop and Netbook 16 08-14-2006 09:57 PM

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

All times are GMT -5. The time now is 02:52 PM.

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