Kernel 2.6.26 broke suspend to ram (solved)

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
bodiless
Posts: 19
Joined: Sun Mar 09, 2008 4:50 pm
Location: Heraklion, Greece

Kernel 2.6.26 broke suspend to ram (solved)

#1 Post by bodiless » Mon Oct 06, 2008 5:38 am

Suspend to ram was working perfectly on my x61s with debian lenny when I was using the 2.6.25 kernel. It was working both by closing the lid or with the FN+F4 keys. After a dist-upgrade to the 2.6.26 it stopped working. What happens is: it goes to suspend but after 1-2 sec it resumes back. This happens either with the FN+F4 or the closing lid or gnome's suspend command found in the panel.

Any ideas how to debug this problem?

Thanks
Last edited by bodiless on Sat Nov 15, 2008 1:19 pm, edited 1 time in total.
My new: X61s, Debian Lenny
My old: omnibook xe4500, dual boot-->XP/Lenny

GomJabbar
Moderator
Moderator
Posts: 9765
Joined: Tue Jun 07, 2005 6:57 am

#2 Post by GomJabbar » Mon Oct 06, 2008 5:58 am

I went from 2.6.25 to 2.6.27 and experienced the same problem. I could not get 2.6.27 to work with the hotkeys - except for Fn+F3 to turn on/off the display backlight. I went back to 2.6.25 and all is well again. This is with Mandriva Linux 2008.1.
DKB

tarvoke
Junior Member
Junior Member
Posts: 273
Joined: Sun Mar 25, 2007 12:45 pm
Location: Slightly Outside America

#3 Post by tarvoke » Mon Oct 06, 2008 1:40 pm

had this problem too: kubuntu 8.04.1, with kernel from 8.10 repository. 2.6.26 would suspend but every time it tried to resume, would end up rebooting instead. 2.6.27 seemed to fix that, although about 25% of the time it still fails. haven't really tried to debug it yet.

2.6.24 suspended fine in most cases, but a couple of the minor revisions were problematic.
go away.

kalle
Posts: 4
Joined: Mon Oct 06, 2008 11:52 am
Location: Saarbruecken, Germany

#4 Post by kalle » Mon Oct 06, 2008 4:59 pm

Hi!

Had the same problem, already starting at 2.6.25 if I remember correctly.

It helped to unload the modules ehci_hcd and uhci_hcd, and to load them after resume. I did this in /etc/acpi/sleep.sh, around the bottommost command (dont have the system here in the moment, but since the file is rather small you will identify the location).

Some internet resources also mentioned the LAN module (e1000 or e1000e, check with lsmod).

Hope this works for you as well.

Best,
Kalle

lightweight
Sophomore Member
Posts: 234
Joined: Sat Jun 30, 2007 10:56 pm
Location: L. A.

#5 Post by lightweight » Mon Oct 06, 2008 10:39 pm

Check /var/log/kern.log and the most recent backup. I think kalle is on the right track with a failed module unload. Also, I've seen instances where X wakes back up and ruins sleep -- you'll find this in /var/log/Xorg.0.log

(and checking messages and acpid logs, any tuxonice messages if you're using it, etc will help. It never hurts to take an ls -l of /var/log and looking at whatever was written to during your failed hibernation attempt.)
Have: x60s ultralight 1705-CTO, Debian SiD, Linux 2.6.25-2 | x61s ultralight 7668-CTO, Debian SiD/Experimental, Linux 2.6.27-git5 | Model M 1391401, white label, 07-17-91
Had: x22, Debian Testing/SiD, Linux 2.6.18-22

GomJabbar
Moderator
Moderator
Posts: 9765
Joined: Tue Jun 07, 2005 6:57 am

#6 Post by GomJabbar » Mon Oct 06, 2008 11:40 pm

Well, in my case, I could Suspend to RAM or Hibernate to disk by issuing a command from Konsole. This worked even with the new kernel 2.6.24.7. This is on a T42 ThinkPad.

Suspend: # s2ram
Hibernate: # pm-hibernate

I just could not get the hotkeys Fn + F4 and Fn + F12 to actually do anything with kernel 2.6.24.7. This is with KPowersave uninstalled. KPowersave makes my system suspend or hibernate twice.

With kernel 2.6.24.5 the hotkeys worked even with KPowersave uninstalled.
DKB

Ryushin
Posts: 27
Joined: Thu Jun 12, 2008 8:31 am
Location: Castle Rock, Colorado

#7 Post by Ryushin » Wed Oct 08, 2008 11:25 am

I use Suspend2/TuxOnIce instead of what comes with them. I roll my own kernel and patch it. I've had no problems all the way from the beginning of 2.6 to 2.6.27-rc8. I run Debian as well.

lightweight
Sophomore Member
Posts: 234
Joined: Sat Jun 30, 2007 10:56 pm
Location: L. A.

#8 Post by lightweight » Fri Oct 10, 2008 10:17 pm

GomJabbar,

What are the scripts currently being called for Fn+F4 and F12?

Code: Select all

grep -A1 -e "00001004|0000100c" /etc/acpi/events/* |perl -wnl -e 'if ( /action=(.*)$/ ) {print "\n\n$1:\n"; system "cat $1";}'
If it's just ending up with hibernate.sh and sleep.sh, you could replace with pm-hibernate and s2ram if you really wanted.
Have: x60s ultralight 1705-CTO, Debian SiD, Linux 2.6.25-2 | x61s ultralight 7668-CTO, Debian SiD/Experimental, Linux 2.6.27-git5 | Model M 1391401, white label, 07-17-91
Had: x22, Debian Testing/SiD, Linux 2.6.18-22

GomJabbar
Moderator
Moderator
Posts: 9765
Joined: Tue Jun 07, 2005 6:57 am

#9 Post by GomJabbar » Sat Oct 11, 2008 5:41 am

lightweight wrote:GomJabbar,
What are the scripts currently being called for Fn+F4 and F12?
I'm sure you know this, but it is the ibm-acpi - IBM ThinkPad ACPI Extras Driver that puts the scripts there initially.
http://ibm-acpi.sourceforge.net/

I did modify them a little. Here is what I currently have.

/etc/acpi/events/suspend

Code: Select all

event=ibm/hotkey HKEY 00000080 00001004 
action=/etc/acpi/actions/suspend.sh
/etc/acpi/actions/suspend.sh

Code: Select all

#!/bin/bash 
/usr/sbin/s2ram
s2ram is part of the suspend utility. http://suspend.sourceforge.net/intro.shtml

/etc/acpi/events/hibernate

Code: Select all

event=ibm/hotkey HKEY 00000080 0000100c 
action=/usr/sbin/pm-hibernate
pm-hibernate is a file of pm-utils I believe.

I have all of my hotkeys working except for Fn + F7 - which appears to be a limitation of the ATI propriatary driver. I know of no reason to upgrade my kernel from 2.6.24.5 to 2.6.24.7. I was only posting to this thread to relate my similar experience.
DKB

bodiless
Posts: 19
Joined: Sun Mar 09, 2008 4:50 pm
Location: Heraklion, Greece

Kernel 2.6.26 broke suspend to ram (Solved)

#10 Post by bodiless » Sat Nov 15, 2008 1:06 pm

I am posting back here since it seems I found what was causing the problem. It was the wireless usb mouse. I have to say though that I did a couple of updates in between so I don't know if this helped. Somehow, if I leave the little usb mouse connector on the computer it goes to sleep but wakes up immediately. If i take it off however both Fn+F4 and closing the lid suspends the computer to ram.

So I am a happy traveler again who doesn't need to shut down all the time.
My new: X61s, Debian Lenny
My old: omnibook xe4500, dual boot-->XP/Lenny

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