Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
Thread Tools Display Modes
Old November 4th, 2008   #11
mulatu
First Cup of Ubuntu
 
Join Date: May 2008
Beans: 1
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

I can confirm the above entries. Lenovo T400 under Ubuntu 8.10 Intrepid hibernates, but doesn't wake up under Gnome. Waking up to a console works.
mulatu is offline   Reply With Quote
Old November 4th, 2008   #12
petri0
First Cup of Ubuntu
 
Join Date: Nov 2008
Beans: 3
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

Hi!

This problem affects not just the Lenovo T400 but also for example the new Dell Latitude E4200, HP EliteBook 2530p, Sony Vaio VGN-TT1, Toshiba R600, or anything else with the "Mobile Intel® GM45 Express Chipset" or X4500. I have exactly the same symptoms on my E4200 running intrepid.

The bug most certainly resides in the xserver-xorg-video-intel code. The fact that is manifests itself only with gnome desktop and not with KDE or text mode gives some clue. It is not compiz related as disabling compiz has no effect. I would say that this is a classical multiprocessor concurrency control problem! Disabling all but one core makes the bug disappear.

Here is my suggestion for a workaround. Save in /etc/pm/sleep.d/00CPU with 755 permissions. Note that it has to be called 00CPU so that it gets executed before and after anything else.

Code:
#!/bin/sh
# Workaround for concurrency bug in xserver-xorg-video-intel 2:2.4.1-1ubuntu10.
# Save this as /etc/pm/sleep.d/00CPU

. "${PM_FUNCTIONS}"

case "$1" in
	hibernate|suspend)
		for i in /sys/devices/system/cpu/cpu*/online ; do
			echo 0 >$i
		done
		;;
	thaw|resume) 
		sleep 10	# run with one core for 10 secs
		for i in /sys/devices/system/cpu/cpu*/online ; do
			echo 1 >$i
		done
		;;
	*)
		;;
esac
Please report if this works for you! The sleep period can easily be made longer if necessary.

Petri K
petri0 is offline   Reply With Quote
Old November 4th, 2008   #13
jango4
First Cup of Ubuntu
 
Join Date: Mar 2008
Location: Vienna - Austira
Beans: 11
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

Hi!

Thank you for your workaround script.... tested it as you told, but unfortunately it does not work for me. Same problem, screen freezes!
Should i change sleeping period?

jango
jango4 is offline   Reply With Quote
Old November 4th, 2008   #14
jango4
First Cup of Ubuntu
 
Join Date: Mar 2008
Location: Vienna - Austira
Beans: 11
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

Changed sleeping period to 20 seconds, but without any effect.
I want Suspend working without troubles!
jango4 is offline   Reply With Quote
Old November 4th, 2008   #15
petri0
First Cup of Ubuntu
 
Join Date: Nov 2008
Beans: 3
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

You could try that. I tried first with 5 seconds but that wasn't enough.
Or just as a test you could forget the script and try running with just one core temporarily. Of course it's possible that the T400 problem is something else, this works for Dell E4200.

Petri K
petri0 is offline   Reply With Quote
Old November 4th, 2008   #16
jango4
First Cup of Ubuntu
 
Join Date: Mar 2008
Location: Vienna - Austira
Beans: 11
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

-

Last edited by jango4; November 4th, 2008 at 05:50 PM..
jango4 is offline   Reply With Quote
Old November 4th, 2008   #17
jango4
First Cup of Ubuntu
 
Join Date: Mar 2008
Location: Vienna - Austira
Beans: 11
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

You really got it! It works perfectly with only one CPU enabled in BIOS settings.

but why is your script not working for me?
typed: sudo gedit
pasted your code, saved in /etc/pm/sleep.d/00CPU
typed sudo chown 755 /etc/pm/sleep.d/00CPU
should work, or?

jango
jango4 is offline   Reply With Quote
Old November 5th, 2008   #18
jango4
First Cup of Ubuntu
 
Join Date: Mar 2008
Location: Vienna - Austira
Beans: 11
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

I am such a noob... chmod... not chown!
It works perfekt!
Thanks a lot for your help!

lg Jango
jango4 is offline   Reply With Quote
Old November 5th, 2008   #19
eeejay
First Cup of Ubuntu
 
Join Date: Aug 2008
Beans: 3
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

I got resume/suspend working by simply disabling Bluetooth in BIOS...
eeejay is offline   Reply With Quote
Old November 5th, 2008   #20
afty
First Cup of Ubuntu
 
Join Date: Oct 2008
Beans: 7
Re: Lenovo T400 Suspend / Hibernate / Resume Problems

Quote:
Originally Posted by eeejay View Post
I got resume/suspend working by simply disabling Bluetooth in BIOS...
My T400 doesn't have Bluetooth, but I do have the suspend problem. It goes into suspend fine, but when you try to bring it out, the machine sits there for a minute and then reboots.

I found this suggestion over at Notebook Review:
Quote:
Good news, i think i've just solved suspend/hibernation problem.

I cant paste url here, but on lkml Jassie Barnes wrote about similar issue:

"On many machines, we've found that re-POSTing the video device is incompatible with the i915 driver's suspend/resume functionality. So things like s3_bios and vbetool shouldn't be used if the i915 driver works by itself."

After deleting vbetool i have absolutely no problems with suspend and hibernation .
I haven't tried it yet, but maybe someone here could try and report back?
afty is offline   Reply With Quote

Bookmarks

Tags
gnome, hibernate, intel 4500 video card, lenovo, suspend

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:35 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry