Page 1 of 1

Fresh lenny install and suspend to ram problems

Posted: Mon Feb 09, 2009 4:45 pm
by mavior
Hello,
I've just installed Lenny on my thinkpad T61 (model 6460).I am posting here because I've googled around and tried some things reported from people with similar issues,but I am starting to be stuck in a deadlock where I feel to just don't get the point of the situation.
On my system all seems to work as expected (even suspend to disk), but I am facing problems with the suspend to ram feature.
The problem is:
if I suspend to ram the system(from the gnome power button) I have the system regularly suspended to ram (the t61 half-moon blinks showing that is going to sleep).
It sleeps for two seconds and then it immediately resumes back, but it just fail to resume - I can hear the HD spin up and the fan starts to work but the half-moon doesn't blink and the screen remains black.
At this point the keyboard doesn't seem to respond to any input or combination of key pressed, and all I can do is a an hard rebooting by keep pressed the power button.

Now reading around (http://www.thinkwiki.org/wiki/Problems_ ... end-to-ram) I was able to isolate the first half of the problem:
if I do :
modprobe -r ehci_hcd
and then I try to suspend, the system effectively suspend and sleeps well without any more resumes.I have tried to understand where lenny looks for modules to be rmmoded before actually suspend but I was not successfull, or better: around there is such confusion on the topic that I can't seem to understand which files or script gnome uses to make the system sleeps (acpi,hibernate.conf etc... googling get you a "babele" of different informations)...so if someone could be so kind to clear the situation and point me in the right direction would be very appreciated.

After that still remains the second half of the problem: even if the system is suspended to ram, if I try to resume it back, I get again the over-mentioned problem: I can hear the HD spin up and the fan starts to work but the half-moon doesn't blink and the screen remains black.At this point the keyboard doesn't seem to respond.

Some suggestions here would be really appreciated too.
I should also add here that I have on the same thinkpad a Gutsy installation with suspend2ram working (but there I am using the nvidia binary drivers) while on lenny I guess I am using the X11 nv driver (even though I can't be able to check this because lsmod |grep nv does return only "nvram") - I have a nvidia quadro 140m on my thinkpad.

Probably the resume problem is related to this difference of drivers.

thank you

Re: Fresh lenny install and suspend to ram problems

Posted: Sat Feb 21, 2009 12:13 pm
by Jricks
I don't use debian anymore, and never faced this kind of situation when i used it, i can tell you how i fixed my suspend2ram under Arch. This fix may or may not work for you but most workarounds aren't distro-specific.

You should check Grub's menu list:

Code: Select all

# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro resume=/dev/[swap partition] 
initrd /boot/kernel26.img
or the equivalent in Debian. Make sure "resume" points to your swap partition. Before i did that i had problems with the screen flickering then systems goes to stand by then it wakes up in like 3 seconds

Another thing if Grub is set up correctly, would be Xorg. On my ATI, when i enabled Dynamic Clocks and rendering,, waking from suspend equals a full system lock and had to do a hard shutdown . The solution was using the correct Xorg settings along with the correct Xorg modules for my card.

This may or may not be relevant to your problem, but i`m sharing my experience with you so you can try to get down to the specific fault. Look for, in Debian, what is needed to suspend/ hibernate : grub, hal, xorg,, permissions, daemons, etc, etc...

Sometimes something unexpected like the Power Manager needs proper configuration or your User isn't permitted to do certian actions.

good luck

Re: Fresh lenny install and suspend to ram problems

Posted: Fri Mar 06, 2009 5:21 am
by BigCatAndy
Hello mavior,

I have read your post and would like to try to help you. Try to check, if you have a folder called /etc/acpi. If you have, go there and check for the following subfolders - "events" and "actions". In the "events" you can have a file called "lid". This file defines, which action/script from "actions" is called, when ACPI event "lid" happens. Please, let us know, if you could find anything.

I want to report another issue with Lenny and Suspend-to-RAM. I use Debian for several years already, and it worked perfectly on my T43p. After one of the updates I noticed the following behaviour: when I close my lid, the notebook goes to sleep mode (hard drive sops spinning, the fan stops, the half-moon LED is on). Eveything is OK. When I open the lid, it starts very shortly, and then goes to sleep again. So, I have to close my lid and open it again for the computer to wake up (sometimes it's enough just to press the small lid button, which is pressed when lid gets closed). I didn't have it earlier.

I use custom script for the "lid" event. I have nothing changed there for years. Has anyone observed the similair issue? Can anyone give me a hint how to resolve it?

Cheers,
Andrey

Re: Fresh lenny install and suspend to ram problems

Posted: Sat Mar 28, 2009 7:49 am
by stkris
I just installed Debian Squeeze on my T61 (intel gfx) and suspend to RAM works out of the box. I'm quite impressed actually.

You may not want to run "testing" and also this may not work on your hardware...

Re: Fresh lenny install and suspend to ram problems

Posted: Mon Mar 30, 2009 7:30 am
by bluesceada
Setting up /etc/default/acpi-support to your needs would've probably solved it, but good that it works now.
I also always still have to tweak the scripts in /etc/acpi/ and the acpi-support settings for a new thinkpad to my needs.
The acpi stuff is probably the only thing in which Ubuntu is better (for my needs) than plain Debian.

-------------------------------
You could have just tried installing all the acpi packages from squeeze by pinning:

These to /etc/apt/sources.list:

Code: Select all

deb http://ftp2.de.debian.org/debian/ squeeze main non-free contrib
deb-src http://ftp2.de.debian.org/debian/ squeeze main non-free contrib
These to /etc/apt/preferences:

Code: Select all

Package: *
Pin: release a=lenny
Pin-Priority: 1000

Package: *
Pin: release a=squeeze
Pin-Priority: -1
Then install by
aptitude -t squeeze install acpid acpi-support

Re: Fresh lenny install and suspend to ram problems

Posted: Tue Mar 31, 2009 9:11 pm
by gongo2k1
I'm running Lenny on my X41 for several months now and never had problems with suspend. Didn't have to install or tweak anything, it just worked.

Re: Fresh lenny install and suspend to ram problems

Posted: Tue Mar 31, 2009 11:36 pm
by archer6
After using a half dozen other distros I finally settled on Ubuntu just over one year ago. While I'm very satisfied, I've begun trying Lenny and its only the second distro (after Ubuntu) that has worked properly after being installed on two of my ThinkPads so far, without any additional work. Very impressive.
.
Cheers...