Suspend not working intermittently when closing lid on ThinkPad T420s

Bug #1429489 reported by Pirouette Cacahuète
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Suspend doesn't work when closing the lid on my ThinkPad T420s. There is no issue with 14.10 or 14.04. Kernel 4.0 do not help.

dmesg when closing/opening with kernel "Linux alex-ThinkPad-T420s 3.19.0-7-generic #7-Ubuntu SMP Thu Feb 26 20:19:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux":
[ 94.842668] systemd-logind[1262]: Lid closed.
[ 102.468204] systemd-logind[1262]: Lid opened.
[ 102.468661] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 124.075694] systemd-logind[1262]: Removed session c1.

The i915 seems to be unrelated: it appears after the lid is opened again, and "pci=noacpi" makes it disappear but the bug stays.

I managed to got it to work, after playing with the e1000e driver as suggested on https://bbs.archlinux.org/viewtopic.php?pid=1414261#p1414261, but with a dubious and inconsistent state:
 - doing nothing, e1000e loaded, it never goes to suspend when I close the lid (tried 5 times)
 - removing e1000e, goes to suspend when I close the lid
 - doing nothing, e1000e removed, it again cannot go to suspend when I close the lid
 - loading e1000e, goes to suspend when I close the lid

WORKAROUND: Manually suspend.
---
ApportVersion: 2.16.2-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: alex 1914 F.... pulseaudio
CurrentDesktop: Unity
DistroRelease: Ubuntu 15.04
InstallationDate: Installed on 2015-03-07 (0 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
MachineType: LENOVO 4171CTO
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.19.0-7-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.19.0-7.7-generic 3.19.0
Tags: vivid
Uname: Linux 3.19.0-7-generic x86_64
UpgradeStatus: Upgraded to vivid on 2015-03-07 (0 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 07/18/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: 8CET58WW (1.38 )
dmi.board.asset.tag: Not Available
dmi.board.name: 4171CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr8CET58WW(1.38):bd07/18/2013:svnLENOVO:pn4171CTO:pvrThinkPadT420s:rvnLENOVO:rn4171CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 4171CTO
dmi.product.version: ThinkPad T420s
dmi.sys.vendor: LENOVO

tags: added: kernel-bug-exists-upstream
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1429489

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
penalvch (penalvch)
tags: added: regression-release vivid
Changed in linux (Ubuntu):
importance: Undecided → Low
description: updated
description: updated
description: updated
Revision history for this message
Pirouette Cacahuète (lissyx) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Pirouette Cacahuète (lissyx) wrote : CRDA.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : HookError_source_linux.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : IwConfig.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : Lspci.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : Lsusb.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : ProcEnviron.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : ProcModules.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : PulseList.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : RfKill.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : UdevDb.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : UdevLog.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Pirouette Cacahuète (lissyx) wrote : AlsaInfo.txt

apport information

description: updated
Revision history for this message
Pirouette Cacahuète (lissyx) wrote : CRDA.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : HookError_source_linux.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : IwConfig.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : Lspci.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : Lsusb.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : ProcEnviron.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : ProcModules.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : PulseList.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : RfKill.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : UdevDb.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : UdevLog.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : WifiSyslog.txt

apport information

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : Re: Suspend not working when closing lid on ThinkPad T420s

So I've uploaded a second batch of logs. Please note that the first batch is after closing the lid a couple of times and the system NOT going to suspend, while the second batch is a couple of minutes later, and at that point, closing the lid DID got into suspend.

So the issue is intermittent, and I would roughly document that suspend when lid closing works about 10-15% of the cases.

penalvch (penalvch)
description: updated
tags: added: latest-bios-1.38
Revision history for this message
penalvch (penalvch) wrote :

Pirouette Cacahuète, could you please clarify which 4.0 kernel version you tested specifically?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Pirouette Cacahuète (lissyx) wrote :
Revision history for this message
penalvch (penalvch) wrote :

Pirouette Cacahuète, the next step is to fully commit bisect from kernel 3.16 to 3.19 in order to identify the last good kernel commit, followed immediately by the first bad one. This will allow for a more expedited analysis of the root cause of your issue. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection ?

Please note, finding adjacent kernel versions is not fully commit bisecting.

Thank you for your understanding.

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

tags: added: kernel-bug-exists-upstream-4.0-rc2 needs-bisect
Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

Except if you have prebuilt packages for bisecting, I won't have time to do this.

Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

Can we even be sure the bug lies on the kernel side ?

summary: - Suspend not working when closing lid on ThinkPad T420s
+ Suspend not working intermittently when closing lid on ThinkPad T420s
Revision history for this message
Pirouette Cacahuète (lissyx) wrote : Re: Suspend not working intermittently when closing lid on ThinkPad T420s/T450s

So, I've received my T450s and put my SSD with 15.04, the exact same issue gets reproduced.

summary: - Suspend not working intermittently when closing lid on ThinkPad T420s
+ Suspend not working intermittently when closing lid on ThinkPad
+ T420s/T450s
Revision history for this message
penalvch (penalvch) wrote :

Pirouette Cacahuète, please file a new report regarding the T450s. The scope of this report is the T420s.

summary: - Suspend not working intermittently when closing lid on ThinkPad
- T420s/T450s
+ Suspend not working intermittently when closing lid on ThinkPad T420s
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
Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

I have successfully upgraded this laptop from 14.10 to 15.04 and then immediately to 15.10: I have not reproduced the issue so far.

Revision history for this message
penalvch (penalvch) wrote :

Pirouette Cacahuète, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1429489/comments/43 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

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