Fresh lenny install and suspend to ram problems

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
mavior
Posts: 5
Joined: Tue Feb 05, 2008 10:22 am
Location: Milan,Italy

Fresh lenny install and suspend to ram problems

#1 Post by mavior » Mon Feb 09, 2009 4:45 pm

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

Jricks
Posts: 20
Joined: Sat Feb 07, 2009 10:15 pm
Location: Dhahran, Saudi Arabia

Re: Fresh lenny install and suspend to ram problems

#2 Post by Jricks » Sat Feb 21, 2009 12:13 pm

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
T41 2373-7FU, 1.6 ghz, 768mb ram, ATI 7500 32mb, Arch Linux - Win XP

BigCatAndy
Sophomore Member
Posts: 129
Joined: Wed Feb 02, 2005 4:37 am
Location: Hamburg / Germany
Contact:

Re: Fresh lenny install and suspend to ram problems

#3 Post by BigCatAndy » Fri Mar 06, 2009 5:21 am

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
IBM TP T60p 2008-9EG 2.33GHz / 3 GB / 100 GB, 15' UXGA 1600x1200, 320 GB in Ultrabay
Win7 Pro (32 bit) + Linux Mint 15

stkris
Freshman Member
Posts: 66
Joined: Wed Feb 27, 2008 5:29 am
Location: Oslo, Norway

Re: Fresh lenny install and suspend to ram problems

#4 Post by stkris » Sat Mar 28, 2009 7:49 am

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...
W530 with 3610QM, 20GB RAM, 2xSSD and Intel/nVidia gfx running Debian Wheezy.

bluesceada
Freshman Member
Posts: 82
Joined: Thu Mar 05, 2009 7:20 am
Location: Karlsruhe, Germany
Contact:

Re: Fresh lenny install and suspend to ram problems

#5 Post by bluesceada » Mon Mar 30, 2009 7:30 am

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

gongo2k1
Sophomore Member
Posts: 200
Joined: Mon Jun 30, 2008 10:25 pm

Re: Fresh lenny install and suspend to ram problems

#6 Post by gongo2k1 » Tue Mar 31, 2009 9:11 pm

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.

archer6
Moderator Emeritus
Moderator Emeritus
Posts: 2674
Joined: Thu Mar 09, 2006 10:51 pm
Location: California, USA

Re: Fresh lenny install and suspend to ram problems

#7 Post by archer6 » Tue Mar 31, 2009 11:36 pm

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...
Favorites From My ThinkPad Collection

Workstations... T40p ~ T41p ~ T42p ~ T43p ~ T60p ~ T61p ~ W500 ~ W510
T Series..... T22 ~ 30 ~ 40 ~ 41 ~ 42 ~ 43 ~ 60 ~ 400 ~ 500 ~ 510
X Series..... X20 ~ 30 ~ 40 ~ 60 ~ 60s ~ 200 ~ 200s ~ 301
Netbooks... S-10 ~ S-12

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 0 guests