Kernel 2.6.26 broke suspend to ram (solved)
Kernel 2.6.26 broke suspend to ram (solved)
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
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
My old: omnibook xe4500, dual boot-->XP/Lenny
-
tarvoke
- Junior Member

- Posts: 273
- Joined: Sun Mar 25, 2007 12:45 pm
- Location: Slightly Outside America
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.
2.6.24 suspended fine in most cases, but a couple of the minor revisions were problematic.
go away.
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
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.
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.)
(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
Had: x22, Debian Testing/SiD, Linux 2.6.18-22
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.
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
-
lightweight
- Sophomore Member
- Posts: 234
- Joined: Sat Jun 30, 2007 10:56 pm
- Location: L. A.
GomJabbar,
What are the scripts currently being called for Fn+F4 and F12?
If it's just ending up with hibernate.sh and sleep.sh, you could replace with pm-hibernate and s2ram if you really wanted.
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";}'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
Had: x22, Debian Testing/SiD, Linux 2.6.18-22
I'm sure you know this, but it is the ibm-acpi - IBM ThinkPad ACPI Extras Driver that puts the scripts there initially.lightweight wrote:GomJabbar,
What are the scripts currently being called for Fn+F4 and F12?
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.shCode: Select all
#!/bin/bash
/usr/sbin/s2ram/etc/acpi/events/hibernate
Code: Select all
event=ibm/hotkey HKEY 00000080 0000100c
action=/usr/sbin/pm-hibernateI 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
Kernel 2.6.26 broke suspend to ram (Solved)
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.
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
My old: omnibook xe4500, dual boot-->XP/Lenny
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Broke middle scroll key x230
by blink » Sun Feb 19, 2017 9:20 pm » in ThinkPad X230 and later Series - 3 Replies
- 502 Views
-
Last post by blink
Tue Feb 28, 2017 9:04 pm
-
-
-
Wake up after suspend problem on T41 with new SSD on IDE2SATA controller
by Mac-Chatter » Sat Mar 04, 2017 6:10 am » in ThinkPad T4x Series - 0 Replies
- 1723 Views
-
Last post by Mac-Chatter
Sat Mar 04, 2017 6:10 am
-
-
-
SOLVED IDTech IAQX10 QXGA panel
by x3o2 » Sun Jan 15, 2017 8:20 am » in Marketplace - Forum Members only - 8 Replies
- 1048 Views
-
Last post by x3o2
Mon Apr 03, 2017 12:09 pm
-
-
-
SOLVED! Recovery media for T410 2518-4LU W7 Pro 64
by rakirkp » Sun Jan 22, 2017 11:22 am » in Marketplace - Forum Members only - 1 Replies
- 258 Views
-
Last post by theterminator93
Sun Jan 22, 2017 1:28 pm
-
Who is online
Users browsing this forum: No registered users and 1 guest




