Ubuntu 17.10 not resuming from suspend, freezing on shut down

Bug #1740175 reported by Matt G
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I'm on an Acer Espire with intel microcode running dual boot Xorg 17.10 using Gnome. I'd say it's usually 50/50 that i'm able to suspend and successfully resume. Same goes for shutting down now, where it will freeze on the purple Ubuntu screen. When I suspend, the monitor will go out but the hard drive will still be running and I have to hard power off. Here's a pm-suspend log:

Initial commandline parameters:
Fri Dec 22 16:24:14 EST 2017: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:
/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.

Running hook /usr/lib/pm-utils/sleep.d/000record-status suspend suspend:
/usr/lib/pm-utils/sleep.d/000record-status suspend suspend: success.

Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux qs-ubuntu 4.14.8-041408-generic #201712200555 SMP Wed Dec 20 10:57:38 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Module Size Used by
msr 16384 0
ccm 20480 6
binfmt_misc 20480 1
nls_iso8859_1 16384 1
ath3k 20480 0
uvcvideo 86016 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
btusb 45056 0
btrtl 16384 1 btusb
videobuf2_core 40960 2 uvcvideo,videobuf2_v4l2
btbcm 16384 1 btusb
videodev 176128 3 uvcvideo,videobuf2_core,videobuf2_v4l2
media 40960 2 uvcvideo,videodev
cmdlinepart 16384 0
btintel 16384 1 btusb
bluetooth 540672 6 btrtl,btintel,btbcm,ath3k,btusb
ecdh_generic 24576 1 bluetooth
intel_spi_platform 16384 0
intel_spi 20480 1 intel_spi_platform
spi_nor 32768 1 intel_spi
joydev 20480 0
mtd 57344 4 spi_nor,intel_spi,cmdlinepart
intel_rapl 20480 0
x86_pkg_temp_thermal 16384 0

I attached the dmesg.log.

I'm pretty new to linux, so please let me know if there's another log I should get for more details. I upgraded to kernel 4.14.8-041408-generic last week, which didn't help.
---
ApportVersion: 2.20.7-0ubuntu3.6
Architecture: amd64
CurrentDesktop: GNOME
DistroRelease: Ubuntu 17.10
InstallationDate: Installed on 2017-09-16 (101 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Tags: artful
Uname: Linux 4.14.8-041408-generic x86_64
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: Upgraded to artful on 2017-10-20 (66 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Matt G (mooze) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1740175

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
tags: added: artful
Revision history for this message
Matt G (mooze) wrote : JournalErrors.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Matt G (mooze) wrote : ProcCpuinfoMinimal.txt

apport information

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

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.15-rc6/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Matt Gorzka (qorka)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-bug-exists-upstream
description: updated
Revision history for this message
Matt Gorzka (qorka) wrote :

Upgraded to v4.15 kernel; used systemctl suspend today and couldn't resume ~ the screen and hard drive "suspended", but the hard drive was still running (with my laptop, a blue light indicates the hard drive is on).

Revision history for this message
Matt Gorzka (qorka) wrote :

One observation that i've made: upon powering on, if I attempt to suspend after little to no activity, ie: quickly going through Chromium, the system is almost always able to suspend and resume thereafter. During periods when i'm doing projects that last a couple hours using Sublime Text, CLion, or Pycharm, etc, suspending and resuming will often not work. Not sure if this is meaningful or if this has any randomness to it.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
Matt G (mooze) wrote :

So, 'echo freeze | sudo tee /sys/power/state' seems to work quite smoothly. Is there any reason NOT to use this from here on out instead of 'systemctl suspend'. Could quite well solve my issue.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote : Re: [Bug 1740175] Re: Ubuntu 17.10 not resuming from suspend, freezing on shut down
Download full text (3.9 KiB)

> On 5 Jan 2018, at 7:54 AM, Matt G <email address hidden> wrote:
>
> So, 'echo freeze | sudo tee /sys/power/state' seems to work quite
> smoothly. Is there any reason NOT to use this from here on out instead
> of 'systemctl suspend'. Could quite well solve my issue.
>

`freeze` (aka modern standby or s2idle) doesn’t touch system firmware (BIOS).
CPU is in lower power mode but doesn’t get turned off, so it will draw slightly more power.

> --
> You received this bug notification because you are subscribed to linux
> in Ubuntu.
> https://bugs.launchpad.net/bugs/1740175
>
> Title:
> Ubuntu 17.10 not resuming from suspend, freezing on shut down
>
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I'm on an Acer Espire with intel microcode running dual boot Xorg
> 17.10 using Gnome. I'd say it's usually 50/50 that i'm able to suspend
> and successfully resume. Same goes for shutting down now, where it
> will freeze on the purple Ubuntu screen. When I suspend, the monitor
> will go out but the hard drive will still be running and I have to
> hard power off. Here's a pm-suspend log:
>
> Initial commandline parameters:
> Fri Dec 22 16:24:14 EST 2017: Running hooks for suspend.
> Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:
> /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.
>
> Running hook /usr/lib/pm-utils/sleep.d/000record-status suspend suspend:
> /usr/lib/pm-utils/sleep.d/000record-status suspend suspend: success.
>
> Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
> Linux qs-ubuntu 4.14.8-041408-generic #201712200555 SMP Wed Dec 20 10:57:38 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
> Module Size Used by
> msr 16384 0
> ccm 20480 6
> binfmt_misc 20480 1
> nls_iso8859_1 16384 1
> ath3k 20480 0
> uvcvideo 86016 0
> videobuf2_vmalloc 16384 1 uvcvideo
> videobuf2_memops 16384 1 videobuf2_vmalloc
> videobuf2_v4l2 24576 1 uvcvideo
> btusb 45056 0
> btrtl 16384 1 btusb
> videobuf2_core 40960 2 uvcvideo,videobuf2_v4l2
> btbcm 16384 1 btusb
> videodev 176128 3 uvcvideo,videobuf2_core,videobuf2_v4l2
> media 40960 2 uvcvideo,videodev
> cmdlinepart 16384 0
> btintel 16384 1 btusb
> bluetooth 540672 6 btrtl,btintel,btbcm,ath3k,btusb
> ecdh_generic 24576 1 bluetooth
> intel_spi_platform 16384 0
> intel_spi 20480 1 intel_spi_platform
> spi_nor 32768 1 intel_spi
> joydev 20480 0
> mtd 57344 4 spi_nor,intel_spi,cmdlinepart
> intel_rapl 20480 0
> x86_pkg_temp_thermal 16384 0
>
> I attached the dmesg.log.
>
> I'm pretty new to linux, so please let me know if there's another log I should get for more details. I upgraded to kernel 4.14.8-041408-generic last week, which didn't help.
> ---
> ApportVersion: 2.20.7-0ubuntu3.6
> Architecture: amd64
> Curren...

Read more...

Revision history for this message
Matt G (mooze) wrote :

I did a number of the steps in the link provided for debugging to the best of my ability (i'm pretty new). Last night I had an issue with shutdown: after running a stop job on mysql community server the system froze on 'reboot: Power down'. I just properly turned off the i915 driver and updated grub, so i'll see if that has any impact.

Revision history for this message
Matt G (mooze) wrote :

I was able to fix the stop job on shut down, but I froze again on 'reboot: Power down' - it looks like the hard drive is turning off but the screen stays on.

Revision history for this message
Dan (dfeeny) wrote :

This bug is crippling on an Ubuntu laptop and the importance should be raised. Without the ability to recover from hibernation, there's no way to travel with your laptop and maintain your session during travel. This means having to shutdown and then restore all development VMs, IDEs, running services, etc each time you need to begin work again.

Simply sleeping is not sufficient as battery drain is high while Ubuntu is sleeping. Hibernate ensures minimal battery drain while in transit.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

So is it about suspend or hibernate? The original description didn't mention hibernate at all...

Revision history for this message
Matt G (mooze) wrote :

The issue is with suspend. It suspends perfectly if I just boot up and immediately try it. If I work on a project in vs code for a couple hours, it almost always freezes.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

You were using 16.10, did the suspend work in 16.10?

Revision history for this message
Matt G (mooze) wrote :

Yes, suspend had no issues on 16.10.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

16.10 use linux kernel v4.8.
Do you still have linux kernel v4.8 in your grub menu? Please try if that one works.

Revision history for this message
Roberta (roberta-btt) wrote :

I can confirm the same behaviour:
Can't suspend Asus Laptop. It blocks and I continue to see the pointer of the mouse, but everyhing is blocked. Can't resume and it's impossible performe any action.

4.13.0-36-generic #40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Linux version 4.13.0-36-generic (buildd@lcy01-amd64-017) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)) #40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018

Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful

It happens after my attempts to install other desktop environments, that I removed completely, and their dependencies.

Any idea is appreciated, I am annoyed to start running by IDE and dev Environment from the beginning every time.

Thanks

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.