[Lenovo ThinkPad W530] Does not stay suspended

Bug #1326097 reported by Alejandro Virrueta
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

What happens:

I suspend my laptop by either 'pm-suspend' or via the gui. The screen blacks out as expected for about 3 seconds, but instead of staying suspended, it 'wakes up' automatically, displays some white text against a black background for a few seconds, and goes to the login page.

I believe this may ave something to do with my graphics driver. I also have an external monitor connected to my laptop.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: linux-image-3.13.0-27-generic 3.13.0-27.50
ProcVersionSignature: Ubuntu 3.13.0-27.50-generic 3.13.11
Uname: Linux 3.13.0-27-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: av376 2280 F.... pulseaudio
CurrentDesktop: Unity
Date: Mon Jun 2 21:06:38 2014
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=287248c5-91d8-4fb7-9061-39d9d9f45004
InstallationDate: Installed on 2014-01-17 (136 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MachineType: LENOVO 2436CTO
ProcFB:
 0 inteldrmfb
 1 nouveaufb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-27-generic.efi.signed root=UUID=5c57f04c-3589-44cd-ab88-b0fcddd258fe ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-27-generic N/A
 linux-backports-modules-3.13.0-27-generic N/A
 linux-firmware 1.127.2
SourcePackage: linux
UpgradeStatus: Upgraded to trusty on 2014-05-15 (18 days ago)
dmi.bios.date: 05/24/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: G5ET93WW (2.53 )
dmi.board.asset.tag: Not Available
dmi.board.name: 2436CTO
dmi.board.vendor: LENOVO
dmi.board.version: Win8 Pro DPK TPG
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrG5ET93WW(2.53):bd05/24/2013:svnLENOVO:pn2436CTO:pvrThinkPadW530:rvnLENOVO:rn2436CTO:rvrWin8ProDPKTPG:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 2436CTO
dmi.product.version: ThinkPad W530
dmi.sys.vendor: LENOVO

Revision history for this message
Alejandro Virrueta (alejandro-virrueta) wrote :
Revision history for this message
Alejandro Virrueta (alejandro-virrueta) wrote :

This is the text that appears on the screen.

Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
penalvch (penalvch)
tags: added: bios-outdated-2.58
Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
summary: - Laptop does not stay suspended
+ [Lenovo ThinkPad W530] Does not stay suspended
Revision history for this message
Alejandro Virrueta (alejandro-virrueta) wrote :

I updated the BIOS to 2.59, actually. Throughout the whole process, I had my externam monitor disconnected from my laptop. In this situation, my laptop is able to suspend correctly. However, when I plug in my monitor via a VGA cable, I cannot suspend my laptop, and the same text reappears momentarily (please see my previously attached 'suspendError.jpg' file). I need to disconnect my monitor and shut off my laptop for suspend to work correctly. Hence, I believe the error is related with the nouveau and external display drivers. Please advise.

I have also provided the bios output:

G5ET99WW (2.59 )
05/15/2014

Revision history for this message
penalvch (penalvch) wrote :

Alejandro Virrueta, could you also please test the latest upstream kernel available (the one all the way at the top, and not the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-3.15-rc8

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, firstly, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

Secondly, please remove the tag:
needs-upstream-testing

Thirdly, could you please provide the missing information following https://wiki.ubuntu.com/DebuggingKernelSuspend ?

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
importance: Low → Medium
Revision history for this message
ah_lam (llcheng) wrote :

I got the same problem on my Laptop, which is Lenovo G480. The problem exists on kernel 3.13.0-27.50. Then, I fallback to 3.13.0-24.47, and it's working fine. It looks like there is a bug in the -27.50 kernel.

Revision history for this message
ah_lam (llcheng) wrote :

Please ignore my previous post. The behaviour is rather random on my laptop. It's not related to the kernel versions i mentioned.
I will try to check more to find out the pattern of the problem.

Revision history for this message
penalvch (penalvch) wrote :

ah_lam, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into the default Ubuntu kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

penalvch (penalvch)
tags: added: bios-outdated-2.59
removed: bios-outdated-2.58
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Changed in linux (Ubuntu):
status: Expired → In Progress
Revision history for this message
Alejandro Virrueta (alejandro-virrueta) wrote :

Just tested v3.18-rc3-vivid - seems to be working fine. The original bug would occur whenever I tried to sleep after disconnecting from an external monitor or projector. Will update if bug randomly comes back. Should I just keep this kernel version? I'm quite new to this... Thanks!

tags: added: kernel-fixed-upstream kernel-fixed-upstream-3.18-rc3-vivid-generic
Changed in linux (Ubuntu):
status: In Progress → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Alejandro Virrueta, the mainline kernel is not supported as per https://wiki.ubuntu.com/Kernel/MainlineBuilds#Does_the_kernel_team_support_the_mainline_kernel_builds.3F .

Despite this, if it continues to work without problems, if you would like a backport to Trusty, the next step would be to fully reverse commit bisect the kernel in order to identify the fix commit following https://wiki.ubuntu.com/Kernel/KernelBisection#How_do_I_reverse_bisect_the_upstream_kernel.3F . Just finding adjacent kernel versions is not fully commit commit bisecting.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
penalvch (penalvch)
tags: added: kernel-fixed-upstream-3.18-rc3
removed: kernel-fixed-upstream-3.18-rc3-vivid-generic
tags: added: latest-bios-2.59
removed: bios-outdated-2.59
Revision history for this message
Alejandro Virrueta (alejandro-virrueta) wrote :

penalvch, can you help me? I am trying to map my regular kernel version to mainline. I used 'uname' and 'lsb_release' to get the following info:

Linux av376-ThinkPad-W530 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

I cannot find the correct mapping (http://people.canonical.com/~kernel/info/kernel-version-map.html).

Revision history for this message
penalvch (penalvch) wrote :

Alejandro Virrueta, I would just use the last entry of the trusty linux table and take it from there.

Revision history for this message
Alejandro Virrueta (alejandro-virrueta) wrote :

Ok, so I tried a few:

v3.14-rc2-trusty/ Bug NOT present
v3.14-rc1-trusty/ Cannot test - when I click the 'Apply' button in System Settings -> Displays, my laptop freezes.
v3.13.11.10-trusty/ Bug present

Any thoughts?

Revision history for this message
penalvch (penalvch) wrote :

Alejandro Virrueta, you would want to reverse commit bisect between 3.14-r2 and 3.13.11.10 as outlined in the previously provided article.

Revision history for this message
Alejandro Virrueta (alejandro-virrueta) wrote :

So, just execute the following in my terminal:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git && cd linux
git checkout v3.14-rc2
git bisect start
git bisect good v3.13.11.10
git bisect bad v3.14-rc2

What exactly will this accomplish? Is there anything else I will need to do?

description: updated
Revision history for this message
Alejandro Virrueta (alejandro-virrueta) wrote :

Ok, I think I have a better understanding of this entire process: goal is to conduct bisections until I find the kernel version that resolves my bug and is closest to my current version. Git does all of the bisections, but I have to build and manually test the kernel version it gives me. When I find the correct version, build and use that kernel.

So, I did the following:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git && cd linux
git checkout v3.14-rc2
git bisect start
git bisect good v3.13 (this is the only version available)
git bisect bad v3.14-rc2

I then got this:

[09da8dfa98682d871987145ed11e3232accac860] Merge tag 'pm+acpi-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

However, I cannot build/make the kernel. I used the following commands (taken from https://wiki.ubuntu.com/KernelTeam/GitKernelBuild):

cp /boot/config-`uname -r` .config
yes '' | make oldconfig
make clean
make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-custom

And this is the end result:

Setup is 16960 bytes (padded to 17408 bytes).
System is 5634 kB
CRC 96111e33
Kernel: arch/x86/boot/bzImage is ready (#1)
ERROR: "__clk_get_hw" [drivers/clk/clk-max77686.ko] undefined!
make[3]: *** [__modpost] Error 1
make[2]: *** [modules] Error 2
make[1]: *** [deb-pkg] Error 2
make: *** [deb-pkg] Error 2

There were no .deb files located in the directory above. Help?

Revision history for this message
penalvch (penalvch) wrote :

Alejandro Virrueta, any fails to build one would want to consider this a bad commit and continue on the bisection.

Revision history for this message
Alejandro Virrueta (alejandro-virrueta) wrote :

So the steps I have taken above are all correct?
I should be able to conduct this entire procedure regardless of what kernel I am currently using (I am on v3.14-rc2 - didn't go back to my original v3.13.0-39-generic)?

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

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.