Removed USB3 device from USB3 port causes S3 Resume to Fail

Bug #1486581 reported by Kaarel
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I am using Ubuntu 15.04 with Mainline Kernel 4.2 RC7 on a Lenovo B5400 laptop.

When I plug an USB3 flash drive into either of the USB3 ports, then remove the flash drive and try to suspend (using the GUI), the computer will resume automatically from suspend in a second.

The problem is not present when using a USB2 device in USB3 ports or when using a USB3 device in the USB2 port.
If I do not remove the flash drive from the USB3 port suspend will work as expected.

I've googled for this bug and found some guides in fixing a similar problem, but none of them worked.

I'm not _sure_ what package is the cause of this problem, so acpid might be the wrong choice.

Below is attached /proc/acpi/wakeup as suggested by the DebuggingKernelSuspend, please tell me if more information or logs are needed.

NB! Please read #3 for more information!!!
---
ApportVersion: 2.17.2-0ubuntu1.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC1D0p: kaarel 1284 F...m pulseaudio
 /dev/snd/controlC1: kaarel 1284 F.... pulseaudio
 /dev/snd/controlC0: kaarel 1284 F.... pulseaudio
CurrentDesktop: Unity
DistroRelease: Ubuntu 15.04
InstallationDate: Installed on 2015-04-06 (136 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Beta amd64 (20150326)
MachineType: LENOVO 80B6QB0
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-26-generic root=UUID=13bb1cd3-a667-4b84-b5ca-9ccd55e2dfdd ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.19.0-26.28-generic 3.19.8-ckt4
RelatedPackageVersions:
 linux-restricted-modules-3.19.0-26-generic N/A
 linux-backports-modules-3.19.0-26-generic N/A
 linux-firmware 1.143.3
Tags: vivid
Uname: Linux 3.19.0-26-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip disk lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 03/03/2014
dmi.bios.vendor: LENOVO
dmi.bios.version: J7ET61WW (2.06 )
dmi.board.asset.tag: Not Available
dmi.board.name: 80B6QB0
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrJ7ET61WW(2.06):bd03/03/2014:svnLENOVO:pn80B6QB0:pvrB5400:rvnLENOVO:rn80B6QB0:rvrNotDefined:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 80B6QB0
dmi.product.version: B5400
dmi.sys.vendor: LENOVO

Revision history for this message
Kaarel (krlk89) wrote :
Revision history for this message
TJ (tj) wrote :

Please report what happens with the stock kernel installed by Ubuntu.

Changed in acpid (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
status: New → Incomplete
Changed in acpid (Ubuntu):
status: Incomplete → Invalid
summary: - Automatic resume from suspend
+ Removed USB3 device from USB3 port causes S3 Resume to Fail
Kaarel (krlk89)
no longer affects: acpid (Ubuntu)
Revision history for this message
Kaarel (krlk89) wrote :

I've booted up with the latest Ubuntu 15.04 kernel (3.19.0-26-generic) and did some more testing, it seems that this bug is only present when I do a "Safely remove" for the USB3 flash drive.

If I stick it in a USB3 port and just pull it out again, suspend works fine.

Also, when I do a "Safely remove", but leave the flash drive in the port, suspend breaks. I've attached /var/log/kern.log to this comment, it contains wake-up - suspend - wake-up events.

Please tell me if more logs are needed

description: updated
Revision history for this message
Kaarel (krlk89) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected vivid
description: updated
Revision history for this message
Kaarel (krlk89) wrote : CRDA.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : IwConfig.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : JournalErrors.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : Lspci.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : Lsusb.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : ProcEnviron.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : ProcModules.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : PulseList.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : RfKill.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : UdevDb.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : UdevLog.txt

apport information

Revision history for this message
Kaarel (krlk89) wrote : WifiSyslog.txt

apport information

penalvch (penalvch)
tags: added: bios-outdated-2.08
removed: usb
Changed in linux (Ubuntu):
importance: Undecided → Low
Revision history for this message
Kaarel (krlk89) wrote :

Thank you very much for your response!

I would try updating my BIOS, but unfortunately it seems that under the BIOS Update (Bootable ISO) is only a .exe file. Do I need to contact Lenovo in order to get the .iso or is there some other way?

Thank you

Revision history for this message
Kaarel (krlk89) wrote :

@penalvch

I contacted Lenovo, there isn't an .iso available for the BIOS upgrade. The .exe provided by the download page is also not a wrapper for an image file. Is my only chance of upgrading the BIOS by temporarily installing Windows on my laptop? :\

Revision history for this message
Kaarel (krlk89) wrote :

I finally got to update my laptops BIOS.

sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date

J7ET63WW (2.08 )
03/24/2015

The problem described in the original post is still present, no change whatsoever.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Kaarel, could you please test the latest upstream kernel available from the very top line at the top of the page from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D (the release names are irrelevant for testing, and please do not test the daily folder)? Install instructions are available at https://wiki.ubuntu.com/Kernel/MainlineBuilds . This will allow additional upstream developers to examine the issue.

If the latest kernel did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this issue is fixed in the mainline kernel, please add the following tags by clicking on the yellow circle with a black pencil icon, next to the word Tags, located at the bottom of the report description:
kernel-fixed-upstream
kernel-fixed-upstream-X.Y-rcZ

Where X, Y, and Z are numbers corresponding to the kernel version.

If the mainline kernel does not fix the issue, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-X.Y-rcZ

Please note, an error to install the kernel does not fit the criteria of kernel-bug-exists-upstream.

Once testing of the latest upstream kernel is complete, please mark this report's Status as Confirmed. Please let us know your results.

Thank you for your understanding.

tags: added: latest-bios-2.08
removed: bios-outdated-2.08
Changed in linux (Ubuntu):
importance: Low → Medium
status: Confirmed → Incomplete
Revision history for this message
Kaarel (krlk89) wrote :

I tried latest stable Mainline kernel (4.2) and latest Mainline RC kernel (4.3 RC2), the problem still occurred with both of those versions.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-bug-exists-upstream kernel-bug-exists-upstream-4.3-rc2
Revision history for this message
penalvch (penalvch) wrote :

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

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Kaarel (krlk89) wrote :

I upgraded to Ubuntu 15.10 (Wily Werewolf) and the bug is still present. Can I continue providing information using the development release or will it be irrelevant before Wily is officially released?

Revision history for this message
penalvch (penalvch) wrote :

Kaarel, testing Wily is preferred given it's the development release.

tags: added: wily
Revision history for this message
Kaarel (krlk89) wrote :

Attached to this post is /proc/acpi/wakeup

Revision history for this message
Kaarel (krlk89) wrote :

Is there any more information needed on my part at the moment? Is anyone looking into fixing this issue?

Revision history for this message
penalvch (penalvch) wrote :

Kaarel, you are still missing the dmesg as noted in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1486581/comments/26 .

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.