Thinkpad T61 crashes on resume from suspend

Bug #192407 reported by Karl Martin
14
Affects Status Importance Assigned to Milestone
linux-restricted-modules-2.6.24 (Ubuntu)
Won't Fix
Medium
Unassigned
linux-source-2.6.22 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello,

I would like to report a bug that sometimes (in about 10% of cases) inhibits wakeup from suspend of my Thinkpad T61 8889-2BG. I am using Ubuntu 7.10. This bug occurs with the standard kernel as well as with a self compiled vanilla kernel (2.6.24.2) patched with thinkpad-acpi. There is another bug while waking up from suspend in the standard kernel (notebook needs several key presses and trackpoint as well as trackpad movements to wake up) but this bug seems to be solved in 2.6.24.2. Therefore, I am only reporting the bug that persists in 2.6.24.2:

The notebook suspends without any problems at all times. However, sometimes (about 10% of cases) after opening the lid or pressing the power button when the notebook is suspended, the moon stays lit, the battery LED and the power LED are turned on, the harddisk starts to spin, but then nothing else happens. The screen stays dark and there is no harddisk activity. Then, I have to power off the notebook and restart. The recommended DebuggingKernelSuspend method produces the following messages in dmesg:

[ 1.864000] Using IPI No-Shortcut mode
[ 1.864000] Magic number: 0:35:998
[ 1.864000] hash matches /build/buildd/linux-source-2.6.22-2.6.22/drivers/base/power/resume.c:57
[ 1.864000] hash matches device ttyae
[ 1.868000] hash matches device 00:00
[ 1.868000] Freeing unused kernel memory: 364k freed

With kernel version 2.6.24.2 the messages are as follows:

[ 28.217234] Using IPI No-Shortcut mode
[ 28.217367] Magic number: 0:865:403
[ 28.217368] hash matches drivers/base/power/main.c:97
[ 28.217599] Freeing unused kernel memory: 340k freed

As the unreliability of suspending renders this feature completely useless I would be very grateful if someone could help me to solve the problem. Please let me know if you need any further information.

Many thanks in advance!

Karl Martin

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub [8086:2a00] (rev 0c)
     Subsystem: Lenovo Lenovo Thinkpad T61 [17aa:20b1]
01:00.0 VGA compatible controller [0300]: nVidia Corporation Quadro NVS 140M [10de:0429] (rev a1) (prog-if 00 [VGA])
     Subsystem: Lenovo Unknown device [17aa:20d8]

Revision history for this message
Karl Martin (klein-km) wrote :
Revision history for this message
Karl Martin (klein-km) wrote :
Revision history for this message
Karl Martin (klein-km) wrote :
Revision history for this message
Karl Martin (klein-km) wrote :
Revision history for this message
Karl Martin (klein-km) wrote :

I have tried to narrow down the problem further. This is quite time consuming as sometimes the crash does not occur in 20 suspend and resume cycles and next time it crashes after the second try.
Anyway, resume works reliably when booting with init=/bin/bash. It also works reliably if I switch to a text console and kill gdm leaving the nvidia module loaded. However, using both methods the screen stays black after resuming but the keyboard works. There were also no crashes so far using the vesa driver instead of the proprietary NVIDIA driver. I tried all combinations of the options in the acpi-support file but it did not work reliably with the proprietary NVIDIA driver. The kernel parameter acpi_sleep=s3_mode did not help too.
Nevertheless, the problem seams to be caused by the proprietary NVIDIA driver or the interaction of the kernel and this driver. Is there any way to remove this driver before suspending? Using the vesa driver is not a real alternative as it does not provide 3D acceleration and consumes much more energy from battery.

Revision history for this message
sander (sander2) wrote :

i can confirm this bug running gutsy on the T61 with Quadro NVS 140M and the latest nvidia driver (169.09) installed.

Revision history for this message
Karl Martin (klein-km) wrote :

Unfortunately, this bug persist in with the current nvidia driver (169.12).

Revision history for this message
Ralph Janke (txwikinger) wrote :

Thanks for reporting this issue.

Could you please test if this issues still occurs with the latest kernel for hardy and tell us if it does.

Thanks.

Changed in linux-source-2.6.22:
assignee: nobody → txwikinger
status: New → Incomplete
Revision history for this message
Brian Murray (brian-murray) wrote :

There is some interesting stuff about in your dmesg like:

[ 64.092000] ata1.00: exception Emask 0x2 SAct 0x6 SErr 0x0 action 0x2 frozen
[ 64.092000] ata1.00: (spurious completions during NCQ issue=0x0 SAct=0x6 FIS=005040a1:00000001)
[ 64.092000] ata1.00: cmd 60/80:08:8d:14:f3/00:00:08:00:00/40 tag 1 cdb 0x0 data 65536 in
[ 64.092000] res 50/00:01:8c:14:f3/00:00:08:00:00/40 Emask 0x2 (HSM violation)
[ 64.092000] ata1.00: cmd 60/7f:10:0d:15:f3/00:00:08:00:00/40 tag 2 cdb 0x0 data 65024 in
[ 64.092000] res 50/00:01:8c:14:f3/00:00:08:00:00/40 Emask 0x2 (HSM violation)

This is resolved in the lastest version of the kernel for Hardy though as your hard drive, HITACHI HTS541612J9SA00, is blacklisted for ncq.

Revision history for this message
Brian Murray (brian-murray) wrote :

Given what the reporter has said about this not happening with the vesa video driver this is probably directly related to the proprietary Nvidia driver. In which case the correct package would be linux-restricted-modules as this contains that driver.

Revision history for this message
Karl Martin (klein-km) wrote :

The bug persists using the latest kernel for hardy (2.6.24-11) and the proprietary nvidia driver (169.12) installed by envy.

Using the hardy kernel the mentioned error messages regarding ncq disappeared. However, despite these messages the harddisk works flawlessly in 2.6.22. Anyway, I will replace the harddisk with a Hitachi 7K200 200 GB as soon as the encrypted version is available in Germany.

Many thanks again!

Revision history for this message
Karl Martin (klein-km) wrote :
Revision history for this message
Karl Martin (klein-km) wrote :
Revision history for this message
Karl Martin (klein-km) wrote :
Revision history for this message
Ralph Janke (txwikinger) wrote :

Setting the report against the kernel to invalid for the moment, since the information seem to indicate that the problem is in the restricted ndivia driver.

Changed in linux-restricted-modules-2.6.24:
importance: Undecided → Medium
status: New → Triaged
Changed in linux-source-2.6.22:
assignee: txwikinger → nobody
status: Incomplete → Invalid
Changed in linux-restricted-modules-2.6.24:
assignee: nobody → ubuntu-kernel-team
Revision history for this message
Karl Martin (klein-km) wrote :

With a fresh installation of Ubuntu Hardy Beta 64bit the above mentioned problem does not occur anymore. Therefore, I conclude that this problem is restricted to the 32bit version.
However, there are other minor problems with suspending in the 64bit version: After resuming mostly a white screen is displayed instead of the password prompt. However, after entering the password the desktop is correctly displayed. Only sometimes a white area in the lower right corner of the screen remains even after suspending again. The mouse pointer is shown in this area but clicking on the area where the panel applets are usually located does not cause any reaction. After restarting X everything is fine.

Revision history for this message
Mayank (mayank-utexas) wrote :

Does anyone still see this bug with the latest Ubuntu kernel and the latest nvidia drivers?

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Bryce Harrington (bryce)
description: updated
Revision history for this message
Bryce Harrington (bryce) wrote : linux-restricted-modules-2.6.24 is obsolete

Thank you for reporting this issue about a driver from the
linux-restricted-modules package. lrm-2.4.24 was shipped with Ubuntu
8.04 which reached end-of-life for desktop support on May 12th, 2011.

For that reason, this bug report is being closed at this time. I'm
marking it wontfix because what you describe is probably a valid issue,
but there are no plans to work on lrm 2.4.24 bugs further.

The issue may be resolved in a newer version. If not, aside from filing
a new bug report, another angle may be to file it directly with the
driver vendor.

Changed in linux-restricted-modules-2.6.24 (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.