thinkpads.com Support Community Forum Index Bill Morrow's thinkpads.com Open Forum - The Original Thinkpad Support Forum
Follow ThinkpadsForum on Twitter
eCoupons
Save with Lenovo ThinkPad eCoupons
Exclusive 4% CASH BACK from eCoupons.com
Support this forum, shop at newmodeus.com
 
It is currently Fri May 24, 2013 12:13 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: [SOLVED] Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Thu Feb 03, 2011 3:09 pm 
Offline
Sophomore Member

Joined: Mon Sep 22, 2008 9:18 pm
Posts: 204
Location: Denver, Colorado
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?

_________________
ThinkPad X200

Think Different


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

Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Thu Feb 03, 2011 3:36 pm 
Offline
Freshman Member

Joined: Thu Jan 27, 2011 2:56 pm
Posts: 83
Location: Prague, Czech Republic
Try forcing suspend-to-ram directly:
Code:
echo mem > /sys/power/state


If it does work, then the problem is most likely caused by something Ubuntu-GUI-specific.


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Thu Feb 03, 2011 3:46 pm 
Offline
Sophomore Member

Joined: Mon Sep 22, 2008 9:18 pm
Posts: 204
Location: Denver, Colorado
comps wrote:
Try forcing suspend-to-ram directly:
Code:
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


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Thu Feb 03, 2011 4:43 pm 
Offline
Freshman Member

Joined: Thu Jan 27, 2011 2:56 pm
Posts: 83
Location: Prague, Czech Republic
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.


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Thu Feb 03, 2011 8:41 pm 
Offline
Senior ThinkPadder
Senior ThinkPadder

Joined: Wed May 20, 2009 9:54 am
Posts: 2316
Location: near RTP, NC
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:
Current laptop: Lenovo ThinkPad T420 (running Debian Wheezy) - kestrel [pending retirement]
Current workstation: IBM Intellistation 9228 (running FreeBSD 9.1) - blackbird


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Thu Feb 03, 2011 11:35 pm 
Offline
Sophomore Member

Joined: Mon Sep 22, 2008 9:18 pm
Posts: 204
Location: Denver, Colorado
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


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Wed Feb 09, 2011 3:54 am 
Offline
Sophomore Member

Joined: Mon Sep 22, 2008 9:18 pm
Posts: 204
Location: Denver, Colorado
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:

Quote:
[ 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


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Wed Feb 09, 2011 9:55 am 
Offline
Senior ThinkPadder
Senior ThinkPadder

Joined: Wed May 20, 2009 9:54 am
Posts: 2316
Location: near RTP, NC
Try disabling VTd in the BIOS.

_________________
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.
Code:
Current laptop: Lenovo ThinkPad T420 (running Debian Wheezy) - kestrel [pending retirement]
Current workstation: IBM Intellistation 9228 (running FreeBSD 9.1) - blackbird


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Wed Feb 09, 2011 11:25 am 
Offline
Sophomore Member

Joined: Mon Sep 22, 2008 9:18 pm
Posts: 204
Location: Denver, Colorado
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


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Wed Feb 09, 2011 2:34 pm 
Offline
Senior ThinkPadder
Senior ThinkPadder

Joined: Wed May 20, 2009 9:54 am
Posts: 2316
Location: near RTP, NC
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:
Current laptop: Lenovo ThinkPad T420 (running Debian Wheezy) - kestrel [pending retirement]
Current workstation: IBM Intellistation 9228 (running FreeBSD 9.1) - blackbird


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Wed Feb 09, 2011 2:37 pm 
Offline
Sophomore Member

Joined: Mon Sep 22, 2008 9:18 pm
Posts: 204
Location: Denver, Colorado
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


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Wed Feb 09, 2011 2:52 pm 
Offline
Senior ThinkPadder
Senior ThinkPadder

Joined: Wed May 20, 2009 9:54 am
Posts: 2316
Location: near RTP, NC
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:
Current laptop: Lenovo ThinkPad T420 (running Debian Wheezy) - kestrel [pending retirement]
Current workstation: IBM Intellistation 9228 (running FreeBSD 9.1) - blackbird


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Wed Feb 09, 2011 2:56 pm 
Offline
Sophomore Member

Joined: Mon Sep 22, 2008 9:18 pm
Posts: 204
Location: Denver, Colorado
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


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Wed Feb 09, 2011 5:26 pm 
Offline
Sophomore Member

Joined: Mon Sep 22, 2008 9:18 pm
Posts: 204
Location: Denver, Colorado
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


Top
 Profile  
 
 Post subject: Re: Ubuntu 10, ThinkPad X200. Sleep broken
PostPosted: Wed Feb 09, 2011 9:47 pm 
Offline
Senior ThinkPadder
Senior ThinkPadder

Joined: Wed May 20, 2009 9:54 am
Posts: 2316
Location: near RTP, NC
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:
Current laptop: Lenovo ThinkPad T420 (running Debian Wheezy) - kestrel [pending retirement]
Current workstation: IBM Intellistation 9228 (running FreeBSD 9.1) - blackbird


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group