[SOLVED] Ubuntu 10, ThinkPad X200. Sleep broken

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

[SOLVED] Ubuntu 10, ThinkPad X200. Sleep broken

#1 Post by i-SnipeZ » Thu Feb 03, 2011 3:09 pm

I'm stumped here. It used to work fine, but now I can't seem to get it to work.

When I close the lid, or try to put it to sleep from the menu, it appears to work fine, then, the checklist disappears and it goes straight to my screensaver.

Any ideas?
Last edited by i-SnipeZ on Wed Feb 09, 2011 5:26 pm, edited 1 time in total.
ThinkPad X200

Think Different

comps
Freshman Member
Posts: 83
Joined: Thu Jan 27, 2011 2:56 pm
Location: Prague, Czech Republic

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#2 Post by comps » Thu Feb 03, 2011 3:36 pm

Try forcing suspend-to-ram directly:

Code: Select all

echo mem > /sys/power/state
If it does work, then the problem is most likely caused by something Ubuntu-GUI-specific.

i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#3 Post by i-SnipeZ » Thu Feb 03, 2011 3:46 pm

comps wrote:Try forcing suspend-to-ram directly:

Code: Select all

echo mem > /sys/power/state
If it does work, then the problem is most likely caused by something Ubuntu-GUI-specific.
It came up with a whole list of things that failed to suspend, flashed, and just left me at the desktop again.
ThinkPad X200

Think Different

comps
Freshman Member
Posts: 83
Joined: Thu Jan 27, 2011 2:56 pm
Location: Prague, Czech Republic

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#4 Post by comps » Thu Feb 03, 2011 4:43 pm

i-SnipeZ wrote:It came up with a whole list of things that failed to suspend, flashed, and just left me at the desktop again.
Try to get this "whole list of things" from "dmesg" output (pastebin it / post it here). You may also try pm-utils, namely pm-suspend.

ThinkRob
Senior ThinkPadder
Senior ThinkPadder
Posts: 2364
Joined: Wed May 20, 2009 9:54 am
Location: near RTP, NC

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#5 Post by ThinkRob » Thu Feb 03, 2011 8:41 pm

Also, knowing what version of Ubuntu you're using would be helpful. Are you using 10.04 or 10.10?
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.

Code: Select all

Current laptop: X1 Carbon 3
Current workstation: none

i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#6 Post by i-SnipeZ » Thu Feb 03, 2011 11:35 pm

ThinkRob wrote:Also, knowing what version of Ubuntu you're using would be helpful. Are you using 10.04 or 10.10?
10.10. I'll post the list of things shortly...
ThinkPad X200

Think Different

i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#7 Post by i-SnipeZ » Wed Feb 09, 2011 3:54 am

Sorry it's taken me this long, but here's what I'm assuming you want, I'm not a total linux noob, but, I'm still learning quite a bit:
[ 456.290120] PM: Entering mem sleep
[ 456.290219] Suspending console(s) (use no_console_suspend to debug)
[ 456.321583] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 456.321780] sd 0:0:0:0: [sda] Stopping disk
[ 456.350097] tpm_tis 00:0a: tpm_transmit: tpm_send: error -5
[ 456.350106] legacy_suspend(): pnp_bus_suspend+0x0/0x90 returns -5
[ 456.350111] PM: Device 00:0a failed to suspend: error -5
[ 456.571320] PM: suspend of drv:usb dev:1-5 complete after 249.681 msecs
[ 456.571383] PM: suspend of drv:usb dev:usb1 complete after 235.173 msecs
[ 456.910378] PM: suspend of drv:sd dev:0:0:0:0 complete after 588.797 msecs
[ 456.910408] PM: suspend of drv:scsi dev:target0:0:0 complete after 588.789 ms
ThinkPad X200

Think Different

ThinkRob
Senior ThinkPadder
Senior ThinkPadder
Posts: 2364
Joined: Wed May 20, 2009 9:54 am
Location: near RTP, NC

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#8 Post by ThinkRob » Wed Feb 09, 2011 9:55 am

Try disabling VTd in the BIOS.
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.

Code: Select all

Current laptop: X1 Carbon 3
Current workstation: none

i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#9 Post by i-SnipeZ » Wed Feb 09, 2011 11:25 am

ThinkRob wrote:Try disabling VTd in the BIOS.
It was, and has been, disabled. Re-enabling it doesn't effect the outcome when I try to suspend.
ThinkPad X200

Think Different

ThinkRob
Senior ThinkPadder
Senior ThinkPadder
Posts: 2364
Joined: Wed May 20, 2009 9:54 am
Location: near RTP, NC

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#10 Post by ThinkRob » Wed Feb 09, 2011 2:34 pm

i-SnipeZ wrote: It was, and has been, disabled. Re-enabling it doesn't effect the outcome when I try to suspend.
Huh. I only suggested that since I'd seen issues with it in the past.

Not that it helps, but the X200 definitely functions flawlessly under Debian 6.0 and Ubuntu 10.04 -- so I'd guess it's a regression from 10.04 -> 10.10.

A few more things to try:

- disable wireless prior to suspend
- switch ttys to a non-X one before suspend
- disable TPM via the BIOS

Also, I assume you're running the latest BIOS version?
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.

Code: Select all

Current laptop: X1 Carbon 3
Current workstation: none

i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#11 Post by i-SnipeZ » Wed Feb 09, 2011 2:37 pm

Yes I am. It was working fine, however, I remember a kernel update around when it stopped suspending. So I may have to revert somehow?
ThinkPad X200

Think Different

ThinkRob
Senior ThinkPadder
Senior ThinkPadder
Posts: 2364
Joined: Wed May 20, 2009 9:54 am
Location: near RTP, NC

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#12 Post by ThinkRob » Wed Feb 09, 2011 2:52 pm

i-SnipeZ wrote:Yes I am. It was working fine, however, I remember a kernel update around when it stopped suspending. So I may have to revert somehow?
Oh dear. You got Ubuntud. Well -- if it was a kernel update that broke it, there's not much that you can do short of tracking down an older version of the package or switching to the mainline PPA. I'd recommend the latter, as I'd suspect it's less likely to break userland.

(Honestly, this sort of thing is the reason that I'm rather critical of Ubuntu: I've never had a "mainstream" distro issue as many breaking updates as Ubuntu does.)
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.

Code: Select all

Current laptop: X1 Carbon 3
Current workstation: none

i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#13 Post by i-SnipeZ » Wed Feb 09, 2011 2:56 pm

I've been noticing this as well. As good as Ubuntu is, I'm afraid to update anything. I may just reinstall, and only install security updates. At least it only takes a little less than an hour for me to get all set up again. :?
ThinkPad X200

Think Different

i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#14 Post by i-SnipeZ » Wed Feb 09, 2011 5:26 pm

Well, I found a solution, at least for now. From the standard USA repo theres a program called "StartUp-Manager". It's just a simple GUI interface for editing the GRUB boot loader. Anyway, Ubuntu keeps the last version of the kernel as well as the most recently updated. I simply selected the boot with the old kernel, now everything works as it should. I'm not sure how this will be effected with future kernel updates (hopefully this problem is fixed by then) but, for now it works just fine.

Thanks for all the help.
-Ryan
ThinkPad X200

Think Different

ThinkRob
Senior ThinkPadder
Senior ThinkPadder
Posts: 2364
Joined: Wed May 20, 2009 9:54 am
Location: near RTP, NC

Re: Ubuntu 10, ThinkPad X200. Sleep broken

#15 Post by ThinkRob » Wed Feb 09, 2011 9:47 pm

i-SnipeZ wrote:Well, I found a solution, at least for now. From the standard USA repo theres a program called "StartUp-Manager". It's just a simple GUI interface for editing the GRUB boot loader. Anyway, Ubuntu keeps the last version of the kernel as well as the most recently updated. I simply selected the boot with the old kernel, now everything works as it should. I'm not sure how this will be effected with future kernel updates (hopefully this problem is fixed by then) but, for now it works just fine.
Well you might have a bit of a problem if your current kernel turns out to have security holes... but I guess for now it's a workaround.
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.

Code: Select all

Current laptop: X1 Carbon 3
Current workstation: none

rjwilmsi
Freshman Member
Posts: 97
Joined: Tue May 07, 2013 1:10 pm
Location: London, UK

Re: [SOLVED] Ubuntu 10, ThinkPad X200. Sleep broken

#16 Post by rjwilmsi » Sat Sep 28, 2013 7:54 am

Realize I'm posting on an old thread, but think this info may be useful for others: had a painful time getting suspend to work on an X200 tablet (7453-BN9, BIOS 3.21) with opensuse 12.3 (just a quick default install from USB live image). I've just got the machine second hand and am testing functionality & setting it up prior to actual use. It would go into suspend as normal but would not resume via opening lid or any key presses. Had to hard reset by long press on power button. It turned out for me that enabling the security chip in the BIOS was the required change. After that suspend worked fine. No idea why this change is needed, and I did not have any issues with suspend on my X200s, though I don't know what the BIOS security setting is on that machine.

Cross reference to other posts on Lenovo Forums where I found the BIOS change info: http://forums.lenovo.com/t5/T400-T500-a ... rue#M12002 and http://forums.lenovo.com/t5/W-Series-Th ... nding#M599

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 1 guest