You are not logged in.

#1 2017-01-27 12:57:02

rvroom
Member
Registered: 2016-04-17
Posts: 26

laptop doesn't suspend after kernel update

Hello,

Today there was a kernel update from 4.8 to 4.9. After the kernel update my laptop will not suspend.

When I try:

 $ poweroff 

I get this output:

 Failed to power off system via logind: There's already a shutdown or sleep operation in progress 

The wireless is will disable when I try to suspend. But does not turn on again when I try to resume.

The specs of my laptop are:
Lenovo u31-70
intel core i5 5200u
4gb of ram
250gb ssd drive

Is there anyone who could help?

Thanks,

Rico

Offline

#2 2017-01-28 18:18:56

JoshWinter
Member
Registered: 2017-01-28
Posts: 12

Re: laptop doesn't suspend after kernel update

My laptop can't suspend either after the latest kernel update. `dmesg` outputs something like "unable to freeze userspace processes". does anything look fishy when you run `dmesg`?
My wireless also doesn't work after i try to suspend and resume

EDIT: upon further inspection, it looks like wpa_supplicant is doing something funny. if i turn off my wireless before attempting to suspend, it works fine. A frustrating, but acceptable workaround (at least until the next update). I'd like to know your results from trying to turn off wireless before suspending.


here is my relevant dmesg output


[ 1262.897406] Freezing user space processes ...
[ 1282.902257] Freezing of tasks failed after 20.004 seconds (2 tasks refusing to freeze, wq_busy=0):
[ 1282.902276] wpa_supplicant  D    0   600      1 0x00000004
[ 1282.902279]  ffff880252c33800 0000000000000000 ffff88025076e3c0 ffff88025f2980c0
[ 1282.902282]  ffff880255a73900 ffffc90001567878 ffffffff81605cdf ffff88025f28fd00
[ 1282.902283]  0000000000000000 ffff88025f2980c0 ffffc900015678c0 ffff88025076e3c0
[ 1282.902285] Call Trace:
[ 1282.902291]  [<ffffffff81605cdf>] ? __schedule+0x22f/0x6e0
[ 1282.902293]  [<ffffffff816061cd>] schedule+0x3d/0x90
[ 1282.902295]  [<ffffffff81608f88>] schedule_timeout+0x1f8/0x3d0
[ 1282.902297]  [<ffffffff810f0580>] ? del_timer_sync+0x50/0x50
[ 1282.902299]  [<ffffffff810f141e>] msleep+0x2e/0x40
[ 1282.902303]  [<ffffffffa05d4d54>] ath10k_pci_hif_stop+0x64/0xd0 [ath10k_pci]
[ 1282.902311]  [<ffffffffa0d22b55>] ath10k_core_stop+0x45/0x70 [ath10k_core]
[ 1282.902314]  [<ffffffffa0d1bb1a>] ath10k_halt+0x11a/0x170 [ath10k_core]
[ 1282.902317]  [<ffffffffa0d1bba9>] ath10k_stop+0x39/0x70 [ath10k_core]
[ 1282.902330]  [<ffffffffa0adc86e>] drv_stop+0x2e/0x130 [mac80211]
[ 1282.902337]  [<ffffffffa0b12553>] ieee80211_stop_device+0x43/0x50 [mac80211]
[ 1282.902344]  [<ffffffffa0af2203>] ieee80211_do_stop+0x563/0x870 [mac80211]
[ 1282.902347]  [<ffffffff8150882a>] ? __rtnl_unlock+0x2a/0x50
[ 1282.902349]  [<ffffffff81334616>] ? nla_memcpy+0x26/0x50
[ 1282.902356]  [<ffffffffa0af38fe>] ieee80211_sdata_stop+0x1e/0x50 [mac80211]
[ 1282.902363]  [<ffffffffa0af8dc2>] ieee80211_stop_p2p_device+0x12/0x20 [mac80211]
[ 1282.902369]  [<ffffffffa06ebc9f>] cfg80211_stop_p2p_device+0x4f/0x1b0 [cfg80211]
[ 1282.902374]  [<ffffffffa0700b0e>] nl80211_stop_p2p_device+0x2e/0x40 [cfg80211]
[ 1282.902376]  [<ffffffff8152abb1>] genl_family_rcv_msg+0x1e1/0x3d0
[ 1282.902377]  [<ffffffff8152718c>] ? __netlink_sendskb+0x4c/0x60
[ 1282.902379]  [<ffffffff81529556>] ? netlink_sendskb+0x16/0x40
[ 1282.902380]  [<ffffffff8152ada0>] ? genl_family_rcv_msg+0x3d0/0x3d0
[ 1282.902382]  [<ffffffff8152ae27>] genl_rcv_msg+0x87/0xc0
[ 1282.902383]  [<ffffffff81529e14>] netlink_rcv_skb+0xa4/0xc0
[ 1282.902384]  [<ffffffff8152a9b8>] genl_rcv+0x28/0x40
[ 1282.902385]  [<ffffffff815296fc>] netlink_unicast+0x17c/0x240
[ 1282.902387]  [<ffffffff81529bd8>] netlink_sendmsg+0x348/0x3b0
[ 1282.902389]  [<ffffffff814d32c7>] sock_sendmsg+0x17/0x30
[ 1282.902390]  [<ffffffff814d3a6d>] ___sys_sendmsg+0x2cd/0x2e0
[ 1282.902391]  [<ffffffff815299ac>] ? netlink_sendmsg+0x11c/0x3b0
[ 1282.902393]  [<ffffffff81232fdc>] ? mntput_no_expire+0x2c/0x1b0
[ 1282.902394]  [<ffffffff81233184>] ? mntput+0x24/0x40
[ 1282.902397]  [<ffffffff81213f60>] ? __fput+0x140/0x1f0
[ 1282.902399]  [<ffffffff814d4bc4>] __sys_sendmsg+0x54/0x90
[ 1282.902400]  [<ffffffff814d4c12>] SyS_sendmsg+0x12/0x20
[ 1282.902403]  [<ffffffff8160a737>] entry_SYSCALL_64_fastpath+0x1a/0xa9
[ 1282.902405] Qt bearer threa D    0   822    747 0x00000004
[ 1282.902407]  ffff880252c30400 ffff880252f21400 ffff880250bd0000 ffff88025f2180c0
[ 1282.902409]  ffff88023e6d9c80 ffffc90002267c88 ffffffff81605cdf 0000000150bd0000
[ 1282.902411]  00ff880250bd0a00 ffff88025f2180c0 ffffc90002267cb0 ffff880250bd0000
[ 1282.902412] Call Trace:
[ 1282.902414]  [<ffffffff81605cdf>] ? __schedule+0x22f/0x6e0
[ 1282.902415]  [<ffffffff816061cd>] schedule+0x3d/0x90
[ 1282.902417]  [<ffffffff81606515>] schedule_preempt_disabled+0x15/0x20
[ 1282.902418]  [<ffffffff816079eb>] __mutex_lock_slowpath+0xcb/0x150
[ 1282.902420]  [<ffffffff81607a87>] mutex_lock+0x17/0x30
[ 1282.902422]  [<ffffffff81505849>] rtnetlink_rcv+0x19/0x30
[ 1282.902423]  [<ffffffff815296fc>] netlink_unicast+0x17c/0x240
[ 1282.902425]  [<ffffffff81529bd8>] netlink_sendmsg+0x348/0x3b0
[ 1282.902426]  [<ffffffff815280ff>] ? netlink_insert+0x20f/0x330
[ 1282.902428]  [<ffffffff814d32c7>] sock_sendmsg+0x17/0x30
[ 1282.902429]  [<ffffffff814d4707>] SyS_sendto+0x107/0x190
[ 1282.902431]  [<ffffffff814d44ea>] ? SyS_getsockname+0xaa/0xe0
[ 1282.902432]  [<ffffffff814d1485>] ? sock_alloc_file+0xa5/0x130
[ 1282.902434]  [<ffffffff81230b25>] ? fd_install+0x25/0x30
[ 1282.902435]  [<ffffffff814d3d3f>] ? SyS_socket+0x9f/0xf0
[ 1282.902437]  [<ffffffff8160a737>] entry_SYSCALL_64_fastpath+0x1a/0xa9

Last edited by JoshWinter (2017-01-28 18:28:15)

Offline

#3 2017-01-29 12:32:41

rvroom
Member
Registered: 2016-04-17
Posts: 26

Re: laptop doesn't suspend after kernel update

When I turn off the wifi and then suspend, everything works fine. I must say that I don't know that much about about the outputs form dmesg but here are the last few lines:

[   86.677638] wlp3s0: deauthenticating from ec:55:f9:2d:a0:f7 by local choice (Reason: 3=DEAUTH_LEAVING)
[   86.684808] ath10k_pci 0000:03:00.0: firmware crashed! (uuid 02fe2558-7377-47a7-9176-8a855b515604)
[   86.684816] ath10k_pci 0000:03:00.0: qca6164 hw2.1 target 0x05010000 chip_id 0x003405ff sub 17aa:3545
[   86.684819] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 0
[   86.685221] ath10k_pci 0000:03:00.0: firmware ver SW_RM.1.1.1-00157-QCARMSWPZ-1 api 5 features ignore-otp,no-4addr-pad crc32 10bf8e08
[   86.685434] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 ae2e275a
[   86.685436] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[   86.687454] ath10k_pci 0000:03:00.0: firmware register dump:
[   86.687457] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x00000000 0x0092E4DE 0x00000000
[   86.687458] ath10k_pci 0000:03:00.0: [04]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687459] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687460] ath10k_pci 0000:03:00.0: [12]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687462] ath10k_pci 0000:03:00.0: [16]: 0x00000000 0x00000000 0x00000000 0x0092E4DE
[   86.687463] ath10k_pci 0000:03:00.0: [20]: 0x00000000 0x004018F0 0x00000000 0x00000000
[   86.687464] ath10k_pci 0000:03:00.0: [24]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687465] ath10k_pci 0000:03:00.0: [28]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687467] ath10k_pci 0000:03:00.0: [32]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687468] ath10k_pci 0000:03:00.0: [36]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687469] ath10k_pci 0000:03:00.0: [40]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687470] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687472] ath10k_pci 0000:03:00.0: [48]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687473] ath10k_pci 0000:03:00.0: [52]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687474] ath10k_pci 0000:03:00.0: [56]: 0x00000000 0x00000000 0x00000000 0x00000000
[   86.687561] ath10k_pci 0000:03:00.0: failed to create WMI vdev 0: -108
[   86.735395] ath10k_pci 0000:03:00.0: device has crashed during init
[   86.765856] ath10k_pci 0000:03:00.0: device has crashed during init
[   86.765859] ath10k_pci 0000:03:00.0: failed to wait for target init: -70
[   86.768065] ieee80211 phy0: Hardware restart was requested
[   86.768094] ath10k_pci 0000:03:00.0: failed to delete WMI vdev 1: -108
[   86.815768] ath10k_pci 0000:03:00.0: device has crashed during init
[   86.842464] ath10k_pci 0000:03:00.0: device has crashed during init
[   86.842465] ath10k_pci 0000:03:00.0: failed to wait for target init: -70
[  247.505103] INFO: task kworker/3:3:239 blocked for more than 120 seconds.
[  247.505112]       Not tainted 4.9.6-1-ARCH #1
[  247.505115] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  247.505118] kworker/3:3     D    0   239      2 0x00000000
[  247.505151] Workqueue: events_freezable ieee80211_restart_work [mac80211]
[  247.505155]  ffff880157ac2800 0000000000000000 ffff880157602ac0 ffff88015ed980c0
[  247.505161]  ffff8801590e1c80 ffffc9000097bd38 ffffffff81605cdf 0000000000000001
[  247.505167]  00ffc9000097bd40 ffff88015ed980c0 ffffc9000097bd60 ffff880157602ac0
[  247.505173] Call Trace:
[  247.505184]  [<ffffffff81605cdf>] ? __schedule+0x22f/0x6e0
[  247.505189]  [<ffffffff816061cd>] schedule+0x3d/0x90
[  247.505194]  [<ffffffff81606515>] schedule_preempt_disabled+0x15/0x20
[  247.505199]  [<ffffffff816079eb>] __mutex_lock_slowpath+0xcb/0x150
[  247.505204]  [<ffffffff81607a87>] mutex_lock+0x17/0x30
[  247.505210]  [<ffffffff81502635>] rtnl_lock+0x15/0x20
[  247.505226]  [<ffffffffa093d962>] ieee80211_restart_work+0x42/0xc0 [mac80211]
[  247.505232]  [<ffffffff81098a95>] process_one_work+0x1e5/0x470
[  247.505237]  [<ffffffff81098d68>] worker_thread+0x48/0x4e0
[  247.505242]  [<ffffffff81098d20>] ? process_one_work+0x470/0x470
[  247.505247]  [<ffffffff81098d20>] ? process_one_work+0x470/0x470
[  247.505250]  [<ffffffff8109e8f9>] kthread+0xd9/0xf0
[  247.505255]  [<ffffffff8102d752>] ? __switch_to+0x2d2/0x630
[  247.505259]  [<ffffffff8109e820>] ? kthread_park+0x60/0x60
[  247.505262]  [<ffffffff8160a995>] ret_from_fork+0x25/0x30
[  247.505280] INFO: task iw:899 blocked for more than 120 seconds.
[  247.505284]       Not tainted 4.9.6-1-ARCH #1
[  247.505286] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  247.505289] iw              D    0   899    861 0x00000000
[  247.505294]  ffff880157ac0400 0000000000000000 ffff880157982ac0 ffff88015ed180c0
[  247.505300]  ffff88015946b900 ffffc9000161fb48 ffffffff81605cdf ffffc9000161fb58
[  247.505305]  00ffffff81605ce7 ffff88015ed180c0 ffffc9000161fb70 ffff880157982ac0
[  247.505311] Call Trace:
[  247.505316]  [<ffffffff81605cdf>] ? __schedule+0x22f/0x6e0
[  247.505320]  [<ffffffff816061cd>] schedule+0x3d/0x90
[  247.505325]  [<ffffffff81606515>] schedule_preempt_disabled+0x15/0x20
[  247.505329]  [<ffffffff816079eb>] __mutex_lock_slowpath+0xcb/0x150
[  247.505335]  [<ffffffff8152ada0>] ? genl_family_rcv_msg+0x3d0/0x3d0
[  247.505340]  [<ffffffff81607a87>] mutex_lock+0x17/0x30
[  247.505344]  [<ffffffff8152ae55>] genl_rcv_msg+0xb5/0xc0
[  247.505348]  [<ffffffff81529e14>] netlink_rcv_skb+0xa4/0xc0
[  247.505352]  [<ffffffff8152a9b8>] genl_rcv+0x28/0x40
[  247.505356]  [<ffffffff815296fc>] netlink_unicast+0x17c/0x240
[  247.505360]  [<ffffffff81529bd8>] netlink_sendmsg+0x348/0x3b0
[  247.505366]  [<ffffffff814d32c7>] sock_sendmsg+0x17/0x30
[  247.505370]  [<ffffffff814d3a6d>] ___sys_sendmsg+0x2cd/0x2e0
[  247.505376]  [<ffffffff811bb7d7>] ? vm_insert_pfn_prot+0x87/0xf0
[  247.505383]  [<ffffffff81204a5e>] ? mem_cgroup_commit_charge+0x7e/0x4e0
[  247.505388]  [<ffffffff81193af6>] ? lru_cache_add_active_or_unevictable+0x36/0xb0
[  247.505393]  [<ffffffff811bbf00>] ? handle_mm_fault+0x400/0x16d0
[  247.505397]  [<ffffffff8120e734>] ? __check_object_size+0x54/0x1d6
[  247.505403]  [<ffffffff814d4bc4>] __sys_sendmsg+0x54/0x90
[  247.505409]  [<ffffffff814d4c12>] SyS_sendmsg+0x12/0x20
[  247.505414]  [<ffffffff8160a737>] entry_SYSCALL_64_fastpath+0x1a/0xa9

As far as I can see is that the firmware is crashed of the wifi card. I don't understand much more of the output.

Offline

#4 2017-01-29 18:38:14

arwidow
Member
Registered: 2017-01-29
Posts: 3

Re: laptop doesn't suspend after kernel update

I have a similar problem. The first lid close/suspend/lid open works but with the second lid close/suspend/lid open the system hangs. I reverted back to the 4.8 kernel where all works fine. I have a Xiaomi Mi Air 12, here is more info and the journalctl: https://bbs.archlinux.org/viewtopic.php?id=222499

Offline

#5 2017-01-29 20:47:36

JoshWinter
Member
Registered: 2017-01-28
Posts: 12

Re: laptop doesn't suspend after kernel update

the firmware crashing is a known issue, (it's not an issue with the kernel, but with the wifi card itself, i have the same atheros card) and it doesn't actually cause any problems as far as i can tell (happens on my machine too). dmesg is a tool that can show you what is in the kernels log buffer. if you try to suspend, (with wifi on) and it doesn't work, then dmesg can help tell you what went wrong. in my case, it tells me that the kernel couldn't freeze the wpa_supplicant service and that caused it to hang on the suspend, and subsequently not work once you resume again. anyway, the issue here seems to be caused by wpa_supplicant, so maybe we'll see an update for it in the next few days.

Last edited by JoshWinter (2017-01-29 20:52:10)

Offline

#6 2017-01-30 07:38:03

rvroom
Member
Registered: 2016-04-17
Posts: 26

Re: laptop doesn't suspend after kernel update

Okay thanks for your help. I will wait for the update then.

Thanks,
Rico

Offline

#7 2017-02-28 13:20:25

stepovic
Member
Registered: 2016-05-09
Posts: 3

Re: laptop doesn't suspend after kernel update

Still got that problem with my Atheros QCA6174 and kernel version 4.9.11-1. Works both flawlessly with 4.8 and 4.4.52-1 (LTS).
But now, as LTS will switch to 4.9, I still would like to fix this, dmesg log looks pretty much the same as the one from rvroom.

Offline

Board footer

Powered by FluxBB