[Asus E502SA] Suspend/resume triggers random hang

Bug #1653361 reported by Janne Heikkinen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Resuming from suspend hangs the computer. This doesn't happen with Windows 10.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-57-generic 4.4.0-57.78
ProcVersionSignature: Ubuntu 4.4.0-57.78-generic 4.4.35
Uname: Linux 4.4.0-57-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jamse 1839 F.... pulseaudio
CurrentDesktop: Unity
Date: Sat Dec 31 18:01:35 2016
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=d46d5e40-bd0f-41a5-87bb-f4f470f7b4d6
InstallationDate: Installed on 2016-12-14 (17 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 04f2:b52b Chicony Electronics Co., Ltd
 Bus 001 Device 006: ID 13d3:3423 IMC Networks
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: ASUSTeK COMPUTER INC. E502SA
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-57-generic.efi.signed root=UUID=17457b58-fc63-470b-a916-2eedb0dbd58e ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-57-generic N/A
 linux-backports-modules-4.4.0-57-generic N/A
 linux-firmware 1.157.6
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/20/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: E502SA.300
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: E502SA
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: ATN12345678901234567
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrE502SA.300:bd07/20/2016:svnASUSTeKCOMPUTERINC.:pnE502SA:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnE502SA:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: E502SA
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :
Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

Suspend/resume triggers random hang. I ran "ubuntu-bug linux" after rebooting, suspending and then resuming and only couple minutes after bug report was finished I got hang. Now I'm writing this after booting with 4.9.0.

Kernels I've tested to have this hang issue:

Ubuntu 4.4.0-31-generic
Ubuntu 4.4.0-57-generic
Mainline 4.8.15
Mainline 4.9.0

Then mainline 4.10-rc1 didn't turn on display after resume so don't know if it still has this hang issue.

I've tested all the above kernels except 4.10-rc1 to run stable 5+ days without hangs when not using suspend.

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

There seems to be new BIOS available. I will try updating it next.

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

I just got confused with dates, I actually already have latest BIOS installed.

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

Janne Heikkinen, thank you for reporting this and helping make Ubuntu better.

To clarify, did this issue not occur in a prior kernel version or Ubuntu release?

tags: added: latest-bios-300
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

This computer is only two and half weeks old and Ubuntu 16.04.1 LTS with the kernels mentioned in comment #3 is the only release I've tested. I've got dual boot with Windows 10 and on the Windows side suspend/resume works without hangs.

penalvch (penalvch)
description: updated
tags: added: kernel-bug-exists-upstream-4.9
Revision history for this message
penalvch (penalvch) wrote :

Janne Heikkinen, could you please provide the missing information from https://wiki.ubuntu.com/DebuggingKernelSuspend ?

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

4.10-rc5 still suffered from this problem but today I did "git pull" on development kernel and built it and it seems that the problem is now gone. If it is so, then this should be fixed in 4.10-rc6 when it comes out.

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

With 4.10-rc6. the hang is gone.

But there is another issue. When trying to debug the issue I found that usually the fastest way to reproduce it was to play some content from Finland's national tv streaming service right after resuming:

http://areena.yle.fi/tv

Now when I do that, the video playback gets stuttered. When I boot the computer it works normally. But then again after resume I get stuttered playback. Netflix seems to work ok.

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

The issue is gone with 4.9.9. I suspect this commit did it:

commit f2a0409a08502d64fbe3990354dff5902b08d2fb
Author: Chris Wilson <email address hidden>
Date: Wed Sep 21 14:51:08 2016 +0100

    drm/i915/execlists: Reset RING registers upon resume

    commit bafb2f7d4755bf1571bd5e9a03b97f3fc4fe69ae upstream.

I'm still experiencing that video stuttering after suspend/resume but the hang doesn't happen anymore.

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

Well, it wasn't that one. I built 4.9.9 with that patch reversed and I didn't get hangs after suspend/resume.

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

I'm not able to debug this issue anymore properly. After running newer kernels with which the hang didn't anymore happen, I booted 4.9.0 and was not able to reproduce the hang. So I thought that maybe it's some register value that gets reset only after removing power completely. I opened up the computer and removed battery. Did that twice and after second time I've lost Wifi and Bluetooth. I can use the computer with Etherner cable and can't reproduce the hang with 4.10.0rc5 so it could be that it was Wifi or Bluetooth chip causing the issue.

The Wifi/Bluetooth chip is gone both in Linux and in Windows.

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

Also the video streaming stuttering issue is gone not when I'm using Ethernet so that also makes me think that there was something wrong with the code trying to resume the WiFi chip.

Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

> not when I'm using

now when I'm using

Revision history for this message
penalvch (penalvch) wrote :

Janne Heikkinen, regarding your WiFi/Bluetooth issue, would there be a BIOS setting you could flip or key combination that controls enabling it?

tags: added: kernel-bug-exists-upstream-4.10-rc5
removed: kernel-bug-exists-upstream-4.9
Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

The is no BIOS setting for it. In the Lspci.txt of this bug there is "Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter" and now it's absent from lspci listing. Windows can't find it either. I would be able to use the laptop without WiFi but second day when I booted it, it also put the fan to 100% so that the noise makes it unusable for me.

I might buy exactly same model for new laptop but it has to wait at least few weeks now.

penalvch (penalvch)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Janne Heikkinen (janne-m-heikkinen) wrote :

The hang still happens with kernel 4.12.3.

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.