external usb breaks suspend

Bug #1454253 reported by god
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

After booting xubuntu 15.04 it's possible to suspend it the normal way BUT - only until you've plugged external usb hard drive. After that (even if it was unmounted and removed) it becomes impossible: the system goes to suspend briefly (for bout 1 second) but immediately wakes up for no apparent reason.

I suspect there's some weird bug in xfce power management - is there a way to disable it alltogether and rely on systemd directly instead?
---
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 15.04
EcryptfsInUse: Yes
Package: linux (not installed)
Tags: vivid
Uname: Linux 4.1.0-040100rc6-generic x86_64
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dialout dip fax floppy fuse kismet libvirtd lpadmin netdev plugdev sambashare scanner sudo tape video wireshark
_MarkForUpload: True
---
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 15.04
EcryptfsInUse: Yes
Package: linux (not installed)
Tags: vivid
Uname: Linux 4.1.0-040100rc6-generic x86_64
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dialout dip fax floppy fuse kismet libvirtd lpadmin netdev plugdev sambashare scanner sudo tape video wireshark
_MarkForUpload: True

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

You can disable xfce4-power-manager by deactivating its autostart launcher (Settings Manager > Session and Startup > Application Autostart).

However, this bug seems to be triggered by your hardware. Use journalctl to check if there are any related system log messages.

Changed in xfce4-session (Ubuntu):
status: New → Incomplete
Revision history for this message
Istimsak (saqman2060) wrote : Re: [Bug 1454253] Re: external usb breaks suspend

That is a strange bug. The system only suspends if an external drive is
attached.

Thaddaeus, what needs to work for Xubuntu to suspend correctly?
On May 23, 2015 5:25 PM, "Thaddaeus Tintenfisch" <email address hidden>
wrote:

> You can disable xfce4-power-manager by deactivating its autostart
> launcher (Settings Manager > Session and Startup > Application
> Autostart).
>
> However, this bug seems to be triggered by your hardware. Use journalctl
> to check if there are any related system log messages.
>
> ** Changed in: xfce4-session (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are a member of Xubuntu
> Bugs Team, which is subscribed to xfce4-session in Ubuntu.
> https://bugs.launchpad.net/bugs/1454253
>
> Title:
> external usb breaks suspend
>
> Status in xfce4-session package in Ubuntu:
> Incomplete
>
> Bug description:
> After booting xubuntu 15.04 it's possible to suspend it the normal way
> BUT - only until you've plugged external usb hard drive. After that
> (even if it was unmounted and removed) it becomes impossible: the
> system goes to suspend briefly (for bout 1 second) but immediately
> wakes up for no apparent reason.
>
> I suspect there's some weird bug in xfce power management - is there a
> way to disable it alltogether and rely on systemd directly instead?
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1454253/+subscriptions
>

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

Istimsak, you seem to describe a different bug (it may be related though).

Please use journalctl or look directly at /var/log/syslog for related system messages.

Revision history for this message
Istimsak (saqman2060) wrote :

On May 24, 2015 3:15 PM, "Thaddaeus Tintenfisch" <email address hidden>
wrote:
>
> Istimsak, you seem to describe a different bug (it may be related
> though).
>
> Please use journalctl or look directly at /var/log/syslog for related
> system messages.
>
Lol, misread, the system does not suspend once an external drive is
attached. Thanks for the suggestion. You have given more insight to system
diagnosing.
> --
> You received this bug notification because you are a member of Xubuntu
> Bugs Team, which is subscribed to xfce4-session in Ubuntu.
> https://bugs.launchpad.net/bugs/1454253
>
> Title:
> external usb breaks suspend
>
> Status in xfce4-session package in Ubuntu:
> Incomplete
>
> Bug description:
> After booting xubuntu 15.04 it's possible to suspend it the normal way
> BUT - only until you've plugged external usb hard drive. After that
> (even if it was unmounted and removed) it becomes impossible: the
> system goes to suspend briefly (for bout 1 second) but immediately
> wakes up for no apparent reason.
>
> I suspect there's some weird bug in xfce power management - is there a
> way to disable it alltogether and rely on systemd directly instead?
>
> To manage notifications about this bug go to:
>
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1454253/+subscriptions

Revision history for this message
god (humper) wrote :

I did not managed to find anything suspicious in the logs. Do you know how can I isolate events related to suspend/resume? Curiously, in my case the bug is triggered even if I already detached and removed external drive - system somehow "remembers" the fact. Also I highly doubt that it's hw-caused: bug appears with 3 different external usb drives, in 14.10 they worked just fine, as well as suspend on the same laptop.

Changed in xfce4-session (Ubuntu):
status: Incomplete → New
Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

It could be triggered by systemd which is used by default in 15.04.

affects: xfce4-session (Ubuntu) → systemd (Ubuntu)
Revision history for this message
god (humper) wrote :

I thought xfce4-session overrides systemd hybernation?

Revision history for this message
Martin Pitt (pitti) wrote :

To narrow this down, please do:

  * Under systemd, run

       echo mem | sudo tee /sys/power/state

    check if suspend works or fails, and if it fails attach the output of "dmesg".

 * If the former works, try again with "sudo systemctl suspend". If it fails, please attach "dmesg". If it works, it's a bug somewhere higher in the stack.

 * Try booting with upstart and check if suspend works then.

Thanks!

Changed in systemd (Ubuntu):
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

If it's broken at the kernel level, you can also try running 15.04 with the 14.10 kernel.

Revision history for this message
god (humper) wrote :

echo mem | sudo tee /sys/power/state - that fails the same way as suspending through xfce, dmesg is attached.

Changed in systemd (Ubuntu):
status: Incomplete → New
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for confirming! Reassigning to the kernel then.

affects: systemd (Ubuntu) → linux (Ubuntu)
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 1454253

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
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.1 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1-rc6-unstable/

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
god (humper) wrote :

Tried with 4.1.0-040100rc6-generic #201506010235 SMP x86_64 - the bug still persist in exactly the same way.

tags: added: apport-collected vivid
description: updated
Revision history for this message
god (humper) wrote : JournalErrors.txt

apport information

Revision history for this message
god (humper) wrote : ProcEnviron.txt

apport information

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

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
Revision history for this message
god (humper) wrote : JournalErrors.txt

apport information

description: updated
Revision history for this message
god (humper) wrote : ProcEnviron.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
god (humper) wrote :

I've run apport-collect twice already - what exactly are you missing?

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 1454253

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
Revision history for this message
god (humper) wrote :

Is there way to disable this useless brad-fagg bot somehow? It keeps complaining over logs which are already attached.

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

Ok, I've managed to track this down to bios setting regarding "keep feeding electrivity to usb ports while in sleep". So apparently this is some quirk related to failed efi firmware or acpi tables for asus ux31a laptop.

Revision history for this message
god (humper) wrote :

Hmm, scratch that - the failure reappears again even with this feature disabled in bios. But apparently it only happens with usb3 hard drives. I'm completely puzzled.

Revision history for this message
Kaarel (krlk89) wrote :

I am affected by the same bug, though I'm using Ubuntu 15.04. I have made a bug report (#1486581) that hasn't gained any attention yet.

Revision history for this message
Kaarel (krlk89) wrote :

Found two other bug reports about this issue: #1349879 and #1389990

Revision history for this message
god (humper) wrote :

4.2.0-17-generic #21-Ubuntu SMP x86_64 - the bug is still there with 15.10
I'm using asus ux31a btw.

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.