You are not logged in.

#1 2017-07-08 00:39:42

BahJiy
Member
Registered: 2015-12-11
Posts: 8

Laptop freeze during suspend

Lately I am unable to successfully suspend and resume my laptop.  I have not use Linux a while so it could have been because of an update (I do update Linux ever week or two so it is not like I am doing a 2 month update).  This problem started roughly in late Feb. I figure it was a kernel issue. The problem did appear to stop after a while in one of the kernel update, but it start again just either last month or the month before.  I don't remember what kernel update it was.

I already try using

echo mem > /sys/power/state
echo freeze > /sys/power/state
echo 0 > /sys/power/pm_async

Both freeze the system during the process of suspending.

I already try switching from pm-utils to systemctl (<- currently using).
A read that some people had success with this script. It looks like this script does the same as echo 0 > /sys/power/pm_async.
I enable

initcall_debug no_console_suspend ignore_loglevel 

for the kernel boot, but journalctl does not show anything

Jul 07 20:06:33 computer kernel: usb 2-8: USB disconnect, device number 4
Jul 07 20:06:33 computer systemd-logind[302]: Lid closed.
Jul 07 20:06:33 computer systemd-logind[302]: Suspending...
Jul 07 20:06:33 computer systemd-sleep[1252]: Suspending system...
Jul 07 20:06:33 computer root[1254]: LID closed
-- Reboot --
Jul 07 20:08:35 computer kernel: microcode: microcode updated early to revision 0x25, date = 2017-01-27
Jul 07 20:08:35 computer kernel: Linux version 4.11.9-1-ARCH (builduser@tobias) (gcc version 7.1.1 20170621 (GCC) ) #1 SMP PREEMPT Wed Jul 5 18:23:08 CEST 2017
Jul 07 20:08:35 computer kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=99999b5c-c528-4ffe-8a29-51fd54f071f1 rw initcall_debug no_console_suspend ignore_loglevel

I try to debug using

rtcwake -m mem -s 30 

but it does not work; the laptop nevers wakes up.

Here are some information about my laptop

> lspci
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1c.4 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #5 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
00:1f.6 Signal processing controller: Intel Corporation Wildcat Point-LP Thermal Management Controller (rev 03)
02:00.0 Network controller: Qualcomm Atheros QCA6164 802.11ac Wireless Network Adapter (rev 20)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
04:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev ff)

> uname -a
Linux computer 4.11.9-1-ARCH #1 SMP PREEMPT Wed Jul 5 18:23:08 CEST 2017 x86_64 GNU/Linux

I am dual boot Arch with Windows 10. Windows 10 suspend perfectly fine.

Last edited by BahJiy (2017-07-08 00:40:16)

Offline

#2 2017-07-08 01:03:59

BahJiy
Member
Registered: 2015-12-11
Posts: 8

Re: Laptop freeze during suspend

Ok after more research, I found this article.  Following the article, I try the driver section and found out that my athos 10k driver was making the suspend freeze. So what I did was make a create /etc/pm/sleep.d/20_suspend and wrote

#!/bin/sh
 
case "$1" in
  hibernate|suspend) 
  	  modprobe -r ath10k_pci
  	  modprobe -r ath10k_core
	  ;;
  resume|thaw)	
  	  modprobe ath10k_pci
  	  modprobe ath10k_core
	  ;;
esac

So far it looks like this solved the problem. Would this be a bug that I should report then?

Offline

#3 2017-07-08 16:34:07

GenkiSky
Member
From: This account is henceforth dis
Registered: 2017-04-04
Posts: 82

Re: Laptop freeze during suspend

Looks like these might be relevant, in which case reports have already been made. It might be worth adding comment of your own nonetheless.

- https://bugzilla.kernel.org/show_bug.cgi?id=193141
- https://bugzilla.redhat.com/show_bug.cgi?id=1421172
- http://lists.infradead.org/pipermail/at … 09069.html

Offline

Board footer

Powered by FluxBB