suspend broken for thinkpad t400

Asked by konnew_ads@gmx.de

Hi,
I'm using Ubuntu 10.10 64bit with standard kernel and an T400 Thinkpad.
Soon after the upgrade to 10.10 suspend mode did not work some of the time.
The problem is described in more detail in the following post: (is german, you may use google to translate it)

http://www.thinkpad-forum.de/software/linux/106946-x200-ubuntu-10-10-64bit-suspend-problem/

It seemed to only be a ubuntu problem cause going to standby was reliable using sysfs.
echo mem > /sys/power/state

But since I upgraded a week ago or so standby does not work at all anymore. If I try to go into standby
the laptop will wakeup right away again.

The following messages are produces in /var/log/kern.log

Jan 25 03:07:28 konne-laptop kernel: [ 1506.149358] PM: Syncing filesystems ... done.
Jan 25 03:07:28 konne-laptop kernel: [ 1506.152300] PM: Preparing system for mem sleep
Jan 25 03:07:31 konne-laptop kernel: [ 1506.670189] Freezing user space processes ... (elapsed 0.01 seconds) done.
Jan 25 03:07:31 konne-laptop kernel: [ 1506.690125] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Jan 25 03:07:31 konne-laptop kernel: [ 1506.710105] PM: Entering mem sleep
Jan 25 03:07:31 konne-laptop kernel: [ 1506.710201] Suspending console(s) (use no_console_suspend to debug)
Jan 25 03:07:31 konne-laptop kernel: [ 1506.913776] PM: suspend of drv:psmouse dev:serio2 complete after 162.409 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1506.913999] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
Jan 25 03:07:31 konne-laptop kernel: [ 1506.914059] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Jan 25 03:07:31 konne-laptop kernel: [ 1506.914151] sd 0:0:0:0: [sda] Stopping disk
Jan 25 03:07:31 konne-laptop kernel: [ 1506.914180] sd 1:0:0:0: [sdb] Stopping disk
Jan 25 03:07:31 konne-laptop kernel: [ 1506.980100] tpm_tis 00:0a: tpm_transmit: tpm_send: error -5
Jan 25 03:07:31 konne-laptop kernel: [ 1506.980109] legacy_suspend(): pnp_bus_suspend+0x0/0x90 returns -5
Jan 25 03:07:31 konne-laptop kernel: [ 1506.980114] PM: Device 00:0a failed to suspend: error -5
Jan 25 03:07:31 konne-laptop kernel: [ 1507.219669] PM: suspend of drv:sd dev:1:0:0:0 complete after 305.673 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1507.219696] PM: suspend of drv:scsi dev:target1:0:0 complete after 305.656 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1507.219708] PM: suspend of drv:scsi dev:host1 complete after 305.590 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1507.341865] PM: suspend of drv:sd dev:0:0:0:0 complete after 427.806 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1507.341891] PM: suspend of drv:scsi dev:target0:0:0 complete after 427.802 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1507.341902] PM: suspend of drv:scsi dev:host0 complete after 427.763 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1507.341915] PM: Some devices failed to suspend
Jan 25 03:07:31 konne-laptop kernel: [ 1507.342189] sd 0:0:0:0: [sda] Starting disk
Jan 25 03:07:31 konne-laptop kernel: [ 1507.342562] sd 1:0:0:0: [sdb] Starting disk
Jan 25 03:07:31 konne-laptop kernel: [ 1507.896773] PM: resume of drv:sd dev:0:0:0:0 complete after 554.582 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1507.896785] PM: resume of drv:scsi_disk dev:0:0:0:0 complete after 502.224 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1507.896800] PM: resume of drv:scsi_device dev:0:0:0:0 complete after 554.299 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1508.228441] PM: resume of drv:sd dev:1:0:0:0 complete after 885.877 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1508.228452] PM: resume of drv:scsi_disk dev:1:0:0:0 complete after 331.641 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1508.228468] PM: resume of drv:scsi_device dev:1:0:0:0 complete after 885.854 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1508.380116] PM: resume of drv:pcmcia_socket dev:pcmcia_socket0 complete after 151.586 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1508.382515] PM: resume of devices complete after 1040.596 msecs
Jan 25 03:07:31 konne-laptop kernel: [ 1508.382639] PM: resume devices took 1.040 seconds
Jan 25 03:07:31 konne-laptop kernel: [ 1508.382653] PM: Finishing wakeup.

The problem seems to be that a device can not be suspended. I'm sure that it is not a hardware problem because
everything works fine with my parallel installation of ubuntu 10.4 32bit.

Same thing happens using sysfs in order to fall asleep.
echo mem > /sys/power/state

Any thoughts on how to solve the problem?

Thanks
Konne

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu acpi Edit question
Assignee:
No assignee Edit question
Solved by:
konnew_ads@gmx.de
Solved:
Last query:
Last reply:
Revision history for this message
Mustafa Kaya (mustail) said :
#1

I have the same problem. Since upgrading to 10.10, my T400 had irregularly occurring suspend problems: the system would just not suspend and hang, the crescent icon blinking forever, that is, until I powered the laptop down.. I really found it annoying, because I use suspend a lot, as most people.

Then, just as Konne described, after an update a couple of days ago, now my computer is unable to suspend totally. When I close the lid, or choose suspend from the menu, the crescent blinks for several times and then the computer resumes again. My kern.log produced identical logs as Konne's, most importantly:
Jan 28 16:04:33 mustafa-ThinkPad-T400 kernel: [ 3603.944152] tpm_tis 00:0a: tpm_transmit: tpm_send: error 4294967291
Jan 28 16:04:33 mustafa-ThinkPad-T400 kernel: [ 3603.944162] legacy_suspend(): pnp_bus_suspend+0x0/0x70 returns -5
Jan 28 16:04:33 mustafa-ThinkPad-T400 kernel: [ 3603.944166] PM: Device 00:0a failed to suspend: error -5

Revision history for this message
ChrisInCambo (chrisincambo) said :
#2

I have exactly the same problem on my Thinkpad T500, suspend now doesn't work at all and fails with the same message as the two users above.

Revision history for this message
ChrisInCambo (chrisincambo) said :
#3

I have exactly the same problem on my Thinkpad T500, suspend now doesn't work at all and fails with the same message as the two users above.

Revision history for this message
Kim Wong (kwong) said :
#4

sudo modprobe -r tpm_tis && sudo modprobe tpm_tis itpm=1

The command before solve the problem. It works on my ThinkPad X200.

Revision history for this message
Michael Adam (obnox) said :
#5

Wow, the modprobe commands helped on x200, too - thanks!

Revision history for this message
konnew_ads@gmx.de (konnew-ads) said :
#6

Does not work for T400.

Revision history for this message
Adam Aviv (aaviv) said :
#7

I can confirm this works on a T400s

Revision history for this message
Mustafa Kaya (mustail) said :
#8

I had seen a suggestion, just like Wong's on some forum I don't remember. What I did was I think similar.

First:
sudo rmmod tpm_tis

And, then add this to /etc/modprobe/d./blacklist.conf :
blacklist tpm_tis

It seemed to solve the problem for a while, but now it's back. In most cases, when I close the lid, the laptop would either freeze, or do nothing. This is on a Thinkpad T400..

I can't help but say that I have found 10.10 to be the buggiest Ubuntu ever, in my experience as a 4-years user.