Intel AC7260 wireless (iwlwifi) stops working after computer sleep/wakeup

Bug #1658016 reported by Brain
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Since about the beginning of 2017 the Intel AC7260 wireless card on my Asus UX501 stops working correctly when the computer suspends to RAM and wakes up again (laptop lid closed and opened).
The message is:

[ 7679.281856] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

The only way to come around this problem is to re-insert the iwlwifi module:

sudo modprobe -r iwlwifi; sudo modprobe iwlwifi

To be more precise what it means stops working: The wifi does not see the networks correctly. nm-applet reports only one of many networks in my area. My network is not there and it does not connect.

I used to have the problem rarely in the past. However it happened only occasionally and I could live with the above workaround. Since about the beginning of 2017 it happens __always__. Not sure, which update exactly caused it, but you can imagine how annoying it is.
I would appreciate if it could be fixed. Thanks!

Here is the relevant dmesg log:

[ 7679.149644] PM: resume of devices complete after 737.622 msecs
[ 7679.150241] PM: Finishing wakeup.
[ 7679.150242] Restarting tasks ... done.
[ 7679.163190] Bluetooth: hci0: read Intel version: 3707100180012d0d00
[ 7679.163197] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.1.2d.d.bseq
[ 7679.188077] bbswitch: disabling discrete graphics
[ 7679.188089] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
[ 7679.279490] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 7679.280238] asix 3-3:1.0 eth0: link down
[ 7679.280695] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 7679.281856] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 7679.281960] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7679.282220] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7679.342219] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[ 7679.467403] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7679.467709] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7679.483163] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 7679.549503] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 7700.394009] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7700.544809] cfg80211: World regulatory domain updated:
[ 7700.544812] cfg80211: DFS Master region: unset
[ 7700.544812] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 7700.544814] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 7700.544815] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 7700.544816] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 7700.544817] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 7700.544818] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 7700.544819] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 7700.544820] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 7700.544821] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 7700.545380] Intel(R) Wireless WiFi driver for Linux
[ 7700.545382] Copyright(c) 2003- 2015 Intel Corporation
[ 7700.546038] iwlwifi 0000:3b:00.0: loaded firmware version 17.352738.0 op_mode iwlmvm
[ 7700.557859] iwlwifi 0000:3b:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144
[ 7700.557914] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7700.558147] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7700.741439] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[ 7700.747514] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 7700.747609] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7700.747849] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7700.931190] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7700.931425] iwlwifi 0000:3b:00.0: L1 Disabled - LTR Enabled
[ 7700.946613] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 7700.999856] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-extra-4.4.0-62-generic 4.4.0-62.83
ProcVersionSignature: Ubuntu 4.4.0-62.83-generic 4.4.40
Uname: Linux 4.4.0-62-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: brain 2827 F.... pulseaudio
 /dev/snd/controlC0: brain 2827 F.... pulseaudio
CurrentDesktop: Unity
Date: Fri Jan 20 09:51:58 2017
HibernationDevice: RESUME=UUID=5165b586-2b44-4e4b-be49-177090e3b609
InstallationDate: Installed on 2015-05-26 (604 days ago)
InstallationMedia: Kubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: ASUSTeK COMPUTER INC. N501JW
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-62-generic root=UUID=299cfed8-e49e-40d4-a8dd-fd66089e6d8a ro quiet splash iwlwifi.power_save=1 iwlwifi.power_level=5 acpi_osi= acpi_backlight=vendor acpi_enforce_resources=lax acpi=force nmi_watchdog=0 drm.vblankoffdelay=1 i915.semaphores=1 i915.enable_rc6=7 i915.lvds_downclock=1 rcutree.rcu_idle_gp_delay=1 pcie_aspm=force i915.enable_psr=1 i915.enable_fbc=1 i915.disable_power_well=1 vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-62-generic N/A
 linux-backports-modules-4.4.0-62-generic N/A
 linux-firmware 1.157.8
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/03/2015
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: N501JW.210
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: N501JW
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.:bvrN501JW.210:bd08/03/2015:svnASUSTeKCOMPUTERINC.:pnN501JW:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnN501JW:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: N501JW
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Brain (brain) wrote :
summary: - iwlwifi does not work after computer sleep/wakeup
+ Intel AC7260 wireless (iwlwifi) stops working after computer
+ sleep/wakeup
Brain (brain)
description: updated
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
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.10 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.10-rc5

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Brain (brain)
tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Brain (brain) wrote :

Just tried the mainstream kernel "4.10.0-041000rc5-lowlatency" as mentioned above and I do confirm the very same problem exists there too.

Just to give a hint - this regression was introduced approximately in the first two weeks of 2017, so it shouldn't be that difficult to trace back the change, which could then point to the actual root cause.

Revision history for this message
GrzesiekC (grzesiekc) wrote :

I can confirm the same behaviour
$ uname -a
Linux E7470 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

My workaround:

Create a file /etc/systemd/system/wifi-resume.service

#/etc/systemd/system/wifi-resume.service
#sudo systemctl enable wifi-resume.service
[Unit]
Description=Restart networkmanager at resume
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl stop network-manager.service
ExecStart=/bin/systemctl start network-manager.service
ExecStart=/bin/sleep 3
ExecStart=/sbin/modprobe -r iwlwifi
ExecStart=/sbin/modprobe iwlwifi

[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

to enable the service
$sudo systemctl enable wifi-resume.service

to disable the service
$sudo systemctl disable wifi-resume.service
and remove the file

Revision history for this message
Brain (brain) wrote :

Thank you for the workaround. It is definitely more convenient than executing sudo modprobe iwlwifi from the command line after every resume!

Revision history for this message
GrzesiekC (grzesiekc) wrote :

FYI - these updates arrived today -

2017-02-23 09:56:29 status installed libnm-util2:amd64 1.2.6-0ubuntu0.16.04.1
2017-02-23 09:56:29 status installed libnm-glib-vpn1:amd64 1.2.6-0ubuntu0.16.04.1
2017-02-23 09:56:29 status installed libnm-glib4:amd64 1.2.6-0ubuntu0.16.04.1
2017-02-23 09:56:29 status installed libnm0:amd64 1.2.6-0ubuntu0.16.04.1
2017-02-23 09:56:40 status installed linux-image-4.8.0-39-generic:amd64 4.8.0-39.42~16.04.1
2017-02-23 09:56:50 status installed linux-image-extra-4.8.0-39-generic:amd64 4.8.0-39.42~16.04.1
2017-02-23 09:56:50 status installed linux-image-generic-hwe-16.04:amd64 4.8.0.39.10
2017-02-23 09:56:50 status installed linux-headers-4.8.0-39:all 4.8.0-39.42~16.04.1
2017-02-23 09:56:50 status installed linux-headers-4.8.0-39-generic:amd64 4.8.0-39.42~16.04.1
2017-02-23 09:56:50 status installed linux-headers-generic-hwe-16.04:amd64 4.8.0.39.10
2017-02-23 09:56:50 status installed linux-generic-hwe-16.04:amd64 4.8.0.39.10
2017-02-23 09:56:51 status installed linux-libc-dev:amd64 4.4.0-64.85
2017-02-23 09:56:51 status installed network-manager:amd64 1.2.6-0ubuntu0.16.04.1

I disabled my workaround "service" and I've suspended the laptop couple of times today.
It works properly now.

Revision history for this message
Brain (brain) wrote :

Now it works for me too. 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.