You are not logged in.

#1 2015-05-11 01:35:38

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Unreliable wifi on a Thinkpad X201

Hello all,

For several months now I've been dealing with networking issues on my battle-scarred X201. Periodically, my network card will simply become unresponsive, and I will be unable to connect to any new networks until after a reboot. If I try to reconnect, I get the error "The device could not be configured." If I try to restart the interface with

ip link set dev wlp2s0 up

, I get:

RNETLINK answers: Connection timed out

I also get similar output from dmesg to what Don Coyote describes here: https://bbs.archlinux.org/viewtopic.php?id=171467 but my "Failed to load Firmware Chunk!" error was repeated several times.

This has been happening for quite a while. It started with just the occasional hiccup a couple of times a week, and gradually has become more frequent. I think the root cause is a simple hardware failure, as I've noticed the same issue on my Debian installation as well. That being said, the issue appears to be far worse since I installed KDE Plasma 5 yesterday - at this point, I'm unable to stay connected to the internet for more than a few minutes at a time. Maybe there's a software issue that's preventing my system from handling the hardware hiccups properly?

If it is a pure hardware issue, I can accept that. If that's the case, as a workaround, is there an easier way to restart my network card without a full shutdown? Also, are there specific log files I can check to get perhaps more detailed error messages?

Last edited by TheGuyWithTheFace (2015-05-11 01:42:32)

Offline

#2 2015-05-11 01:39:30

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,425

Re: Unreliable wifi on a Thinkpad X201

What is the wifi card exactly? 

lspci

Then maybe we can tell you what firmware you might need.

Last edited by nomorewindows (2015-05-11 01:40:45)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2015-05-11 01:42:17

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Unreliable wifi on a Thinkpad X201

According to lspci, I have an Intel Centrino Advanced-N 6200 (rev-ff)

Offline

#4 2015-05-11 01:46:59

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Unreliable wifi on a Thinkpad X201

I don't know if this is related, but figured it couldn't hurt: I am using KDE, and if I try to click on a wifi network in NetworkManager after being disconnected, it causes my system to hang temporarily.  Also, if I suspend after being disconnected, my system is completely frozen after coming out of suspend.

Offline

#5 2015-05-11 01:49:49

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,425

Re: Unreliable wifi on a Thinkpad X201

TheGuyWithTheFace wrote:

According to lspci, I have an Intel Centrino Advanced-N 6200 (rev-ff)

Looks like it is supported by iwlwifi, and the firmware is apparently in linux-firmware.  Intel is starting to put support behind linux, so this is a positive.  So now let's see some

dmesg

.
We can confirm the iwlwifi driver by

lsmod | grep iwlwifi

or

lspci -vv | grep iwlwifi

.

Last edited by nomorewindows (2015-05-11 01:51:20)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2015-05-11 01:56:50

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Unreliable wifi on a Thinkpad X201

I wasn't sure how much was relevant and how much wasn't so the complete output is here: http://pastebin.com/dpKAr5mY

EDIT: after reading through the file, it appears the kernel was nice enough to include a marker of where to cut and paste:

[  132.014073] ------------[ cut here ]------------
[  132.014102] WARNING: CPU: 0 PID: 105 at net/mac80211/util.c:1780 ieee80211_reconfig+0x15a4/0x19b0 [mac80211]()
[  132.014105] Hardware became unavailable during restart.
[  132.014107] Modules linked in: ctr ccm toshiba_acpi sparse_keymap toshiba_haps hp_accel joydev lis3lv02d input_polldev hdaps(O) coretemp intel_powerclamp kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel snd_hda_codec_hdmi arc4 aes_x86_64 i915 iwldvm mac80211 iTCO_wdt iTCO_vendor_support lrw mousedev drm_kms_helper gf128mul glue_helper drm ablk_helper evdev cryptd mac_hid e1000e i2c_algo_bit thinkpad_acpi snd_hda_codec_conexant tpm_tis nvram i2c_i801 i2c_core iwlwifi ptp cfg80211 shpchp mei_me mei psmouse pcspkr serio_raw tpm intel_agp led_class rfkill snd_hda_codec_generic hwmon pps_core wmi intel_gtt intel_ips snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd lpc_ich soundcore thermal battery ac video button acpi_cpufreq processor sch_fq_codel
[  132.014190]  tp_smapi(O) thinkpad_ec(O) ext4 crc16 mbcache jbd2 sd_mod atkbd libps2 ahci libahci libata scsi_mod ehci_pci ehci_hcd usbcore usb_common i8042 serio
[  132.014216] CPU: 0 PID: 105 Comm: kworker/0:2 Tainted: G           O    4.0.1-1-ARCH #1
[  132.014218] Hardware name: LENOVO 3626F5U/3626F5U, BIOS 6QET67WW (1.37 ) 06/29/2011
[  132.014229] Workqueue: events ieee80211_restart_work [mac80211]
[  132.014231]  0000000000000000 00000000dd83a170 ffff8801b322fca8 ffffffff8156de97
[  132.014236]  0000000000000000 ffff8801b322fd00 ffff8801b322fce8 ffffffff81074d7a
[  132.014240]  ffff8801b322fcc8 00000000ffffff92 ffff8800b6fd06a0 ffff8801bbc17f00
[  132.014245] Call Trace:
[  132.014258]  [<ffffffff8156de97>] dump_stack+0x4c/0x6e
[  132.014268]  [<ffffffff81074d7a>] warn_slowpath_common+0x8a/0xc0
[  132.014273]  [<ffffffff81074e05>] warn_slowpath_fmt+0x55/0x70
[  132.014290]  [<ffffffffa04e2df4>] ieee80211_reconfig+0x15a4/0x19b0 [mac80211]
[  132.014300]  [<ffffffffa04ac342>] ieee80211_restart_work+0x42/0x80 [mac80211]
[  132.014307]  [<ffffffff8108d95b>] process_one_work+0x14b/0x470
[  132.014313]  [<ffffffff8108e0a8>] worker_thread+0x48/0x4b0
[  132.014318]  [<ffffffff8108e060>] ? init_pwq.part.7+0x10/0x10
[  132.014323]  [<ffffffff8108e060>] ? init_pwq.part.7+0x10/0x10
[  132.014327]  [<ffffffff81093338>] kthread+0xd8/0xf0
[  132.014332]  [<ffffffff81093260>] ? kthread_worker_fn+0x170/0x170
[  132.014338]  [<ffffffff81573718>] ret_from_fork+0x58/0x90
[  132.014343]  [<ffffffff81093260>] ? kthread_worker_fn+0x170/0x170
[  132.014346] ---[ end trace 54ed2664eb437062 ]---
[  132.014386] ------------[ cut here ]------------
[  132.014401] WARNING: CPU: 0 PID: 105 at net/mac80211/driver-ops.h:12 ieee80211_do_stop+0x915/0x940 [mac80211]()
[  132.014404] wlp2s0:  Failed check-sdata-in-driver check, flags: 0x4
[  132.014406] Modules linked in: ctr ccm toshiba_acpi sparse_keymap toshiba_haps hp_accel joydev lis3lv02d input_polldev hdaps(O) coretemp intel_powerclamp kvm crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel snd_hda_codec_hdmi arc4 aes_x86_64 i915 iwldvm mac80211 iTCO_wdt iTCO_vendor_support lrw mousedev drm_kms_helper gf128mul glue_helper drm ablk_helper evdev cryptd mac_hid e1000e i2c_algo_bit thinkpad_acpi snd_hda_codec_conexant tpm_tis nvram i2c_i801 i2c_core iwlwifi ptp cfg80211 shpchp mei_me mei psmouse pcspkr serio_raw tpm intel_agp led_class rfkill snd_hda_codec_generic hwmon pps_core wmi intel_gtt intel_ips snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd lpc_ich soundcore thermal battery ac video button acpi_cpufreq processor sch_fq_codel
[  132.014472]  tp_smapi(O) thinkpad_ec(O) ext4 crc16 mbcache jbd2 sd_mod atkbd libps2 ahci libahci libata scsi_mod ehci_pci ehci_hcd usbcore usb_common i8042 serio
[  132.014491] CPU: 0 PID: 105 Comm: kworker/0:2 Tainted: G        W  O    4.0.1-1-ARCH #1
[  132.014493] Hardware name: LENOVO 3626F5U/3626F5U, BIOS 6QET67WW (1.37 ) 06/29/2011
[  132.014502] Workqueue: events ieee80211_restart_work [mac80211]
[  132.014505]  0000000000000000 00000000dd83a170 ffff8801b322fb28 ffffffff8156de97
[  132.014509]  0000000000000000 ffff8801b322fb80 ffff8801b322fb68 ffffffff81074d7a
[  132.014513]  ffff8801b322fb90 ffff8801b301e8c0 ffff8800b6fd06a0 ffff8800b6fd1550
[  132.014518] Call Trace:
[  132.014523]  [<ffffffff8156de97>] dump_stack+0x4c/0x6e
[  132.014528]  [<ffffffff81074d7a>] warn_slowpath_common+0x8a/0xc0
[  132.014533]  [<ffffffff81074e05>] warn_slowpath_fmt+0x55/0x70
[  132.014550]  [<ffffffffa04db79b>] ? ieee80211_clear_tx_pending+0x4b/0x70 [mac80211]
[  132.014564]  [<ffffffffa04c4495>] ieee80211_do_stop+0x915/0x940 [mac80211]
[  132.014571]  [<ffffffff814974dd>] ? dev_deactivate_many+0x22d/0x270
[  132.014585]  [<ffffffffa04c44da>] ieee80211_stop+0x1a/0x20 [mac80211]
[  132.014590]  [<ffffffff8146c8fd>] __dev_close_many+0x9d/0x100
[  132.014595]  [<ffffffff8146c9f1>] dev_close_many+0x91/0x140
[  132.014600]  [<ffffffff81471965>] dev_close.part.18+0x45/0x70
[  132.014605]  [<ffffffff814719b1>] dev_close+0x21/0x30
[  132.014617]  [<ffffffffa02edc95>] cfg80211_shutdown_all_interfaces+0x45/0xb0 [cfg80211]
[  132.014633]  [<ffffffffa04e1975>] ieee80211_reconfig+0x125/0x19b0 [mac80211]
[  132.014643]  [<ffffffffa04ac342>] ieee80211_restart_work+0x42/0x80 [mac80211]
[  132.014649]  [<ffffffff8108d95b>] process_one_work+0x14b/0x470
[  132.014654]  [<ffffffff8108e0a8>] worker_thread+0x48/0x4b0
[  132.014658]  [<ffffffff8108e060>] ? init_pwq.part.7+0x10/0x10
[  132.014663]  [<ffffffff8108e060>] ? init_pwq.part.7+0x10/0x10
[  132.014667]  [<ffffffff81093338>] kthread+0xd8/0xf0
[  132.014672]  [<ffffffff81093260>] ? kthread_worker_fn+0x170/0x170
[  132.014676]  [<ffffffff81573718>] ret_from_fork+0x58/0x90
[  132.014681]  [<ffffffff81093260>] ? kthread_worker_fn+0x170/0x170
[  132.014684] ---[ end trace 54ed2664eb437063 ]---
[  132.014895] cfg80211: Calling CRDA to update world regulatory domain

There are errors logged before these two traces, but I'll refrain from posting them to avoid breaking the paste limit rule too much. If it is relevant, it is in the linked pastebin content.

Last edited by TheGuyWithTheFace (2015-05-11 02:17:07)

Offline

#7 2015-05-11 02:22:14

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Unreliable wifi on a Thinkpad X201

Just saw your edit about confirming the driver, here are the relevant outputs:

$ lsmod | grep iwlwifi
iwlwifi               172032  1 iwldvm
cfg80211              483328  3 iwlwifi,mac80211,iwldvm
$ lspci -vv | grep iwlwifi
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

Offline

#8 2015-05-11 02:29:22

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,425

Re: Unreliable wifi on a Thinkpad X201

TheGuyWithTheFace wrote:

systemd-udevd[320]: failed to execute '/usr/bin/iw' '/usr/bin/iw dev wlp2s0 set power_save on': No such file or directory

Do you have wireless_tools installed?
It does look like you have the firmware loaded.
But the kernel messages above indicate what you need to be looking at.  This might be a bug that needs to be filed.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#9 2015-05-11 02:41:43

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Unreliable wifi on a Thinkpad X201

Yes, I do have wireless_tools installed. I see that wireless_tools is deprecated, is this something I could easily swap out in favor of iw? I don't see any instructions in the wiki. Do you think this is the problem?

EDIT: After reading further, I don't understand how wireless_tools or iw is relevant, since my wireless should be automatically managed with NetworkManager. Do you have any idea why something might be trying to call iw in dmesg?

Last edited by TheGuyWithTheFace (2015-05-11 02:45:30)

Offline

#10 2015-05-11 02:45:47

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,425

Re: Unreliable wifi on a Thinkpad X201

Iw is owned by the iw package.  Do you have iw package installed?  Seems to me that iw and wireless_tools were overlapped at one point.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#11 2015-05-11 02:47:17

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,425

Re: Unreliable wifi on a Thinkpad X201

TheGuyWithTheFace wrote:

Do you have any idea why something might be trying to call iw in dmesg?

Systemd is calling it to configure power saving settings.

Last edited by nomorewindows (2015-05-11 02:47:41)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#12 2015-05-11 02:53:06

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Unreliable wifi on a Thinkpad X201

So after poking around with pacman a bit, I did not have iw installed. It looks like I had wireless_tools installed as an optional dependency of laptop_mode_tools. I installed iw, and will give it a try at browsing around for a bit. I will report back in a little bit if the issue persists.

Offline

#13 2015-05-11 03:16:21

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Unreliable wifi on a Thinkpad X201

No dice, wifi gave out almost immediately. New dmesg output: http://pastebin.com/cS8PBMTi

You mentioned that I might need to file a bug report - any idea which program the bug report would be for?

Offline

#14 2015-05-11 12:17:57

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Unreliable wifi on a Thinkpad X201

Though I am of no help, the '-->' marked parts of the dmesg may be helpful:

    [   58.165488] ieee80211 phy0: Hardware restart was requested
    [   58.165539] iwlwifi 0000:02:00.0: L1 Disabled - LTR Disabled
    [   58.165581] iwlwifi 0000:02:00.0: Radio type=0x1-0x3-0x1
--> [   63.162050] iwlwifi 0000:02:00.0: Failed to load firmware chunk!
    [   63.162057] iwlwifi 0000:02:00.0: Could not load the [0] uCode section
    [   63.162153] iwlwifi 0000:02:00.0: Failed to run INIT ucode: -110
    [   63.162213] iwlwifi 0000:02:00.0: Unable to initialize device.
    [   63.162216] ------------[ cut here ]------------
    [   63.162237] WARNING: CPU: 1 PID: 104 at net/mac80211/util.c:1780 ieee80211_reconfig+0x15a4/0x19b0 [mac80211]()
--> [   63.162238] Hardware became unavailable during restart.

Are you sure your hardware isn't failing?


Matt

"It is very difficult to educate the educated."

Offline

#15 2015-05-11 14:26:31

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,425

Re: Unreliable wifi on a Thinkpad X201

TheGuyWithTheFace wrote:

[   13.106094] iwlwifi 0000:02:00.0: loaded firmware version 9.221.4.1 build 25532 op_mode iwldvm
[   13.184608] iwlwifi 0000:02:00.0: CONFIG_IWLWIFI_DEBUG disabled
[   13.184612] iwlwifi 0000:02:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
[   13.184614] iwlwifi 0000:02:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[   13.184617] iwlwifi 0000:02:00.0: Detected Intel(R) Centrino(R) Advanced-N 6200 AGN, REV=0x74
[   13.184672] iwlwifi 0000:02:00.0: L1 Enabled - LTR Disabled

TheGuyWithTheFace wrote:

[  126.960494] wlp2s0: HW problem - can not stop rx aggregation for 98:fc:11:94:1f:18 tid 0
[  126.960668] ieee80211 phy0: Hardware restart was requested
[  126.982780] iwlwifi 0000:02:00.0: iwl_trans_wait_tx_queue_empty bad state = 0
[  127.016909] iwlwifi 0000:02:00.0: L1 Enabled - LTR Disabled
[  127.016953] iwlwifi 0000:02:00.0: Radio type=0x1-0x3-0x1
[  132.013927] iwlwifi 0000:02:00.0: Failed to load firmware chunk!
[  132.013940] iwlwifi 0000:02:00.0: Could not load the [0] uCode section
[  132.014017] iwlwifi 0000:02:00.0: Failed to run INIT ucode: -110
[  132.014070] iwlwifi 0000:02:00.0: Unable to initialize device.

That's a little bizarre!  It says it has loaded the firmware, but upon restarting the interface it can't reload the firmware.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#16 2015-05-11 19:47:03

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Unreliable wifi on a Thinkpad X201

Yeah, at this point I'm fairly certain that the root cause is hardware related. That being said, the fact that it is so much more frequent after the upgrade on my arch install as opposed to my debian install makes me wonder if there's a better way for the software to handle these hiccups. Do either of you know of an easy way to restart the network card short of a full reboot, or if there is a specific piece of software in the stack that might be failing to handle the errors properly?

Offline

#17 2015-05-12 13:13:25

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,425

Re: Unreliable wifi on a Thinkpad X201

ifconfig <interface> down
rmmod iwlwifi
blacklist iwlwifi in modprode.d/.conf file


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#18 2015-05-12 20:33:59

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Unreliable wifi on a Thinkpad X201

I'm at work right now but will definitely try that when I have a chance and report back.

rmmod iwlwifi
blacklist iwlwifi in modprode.d/.conf file

Pardon my ignorance, what does blacklisting iwlwifi do?

Offline

#19 2015-05-14 16:37:25

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,425

Re: Unreliable wifi on a Thinkpad X201

Blacklist will prevent it from loading when rebooting.
Rmmod removes the current module from memory.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB