我的wifi一直可以用,但是我已经好几天无法连接了,因为找不到无线接口。
我有一台配备 Intel 双频无线 AC(2x2) 8265 的 Thinkpad T470。在 Debian 测试中,安装了固件-linux-nonfree 和固件-iwlwifi(暂时未更新)。
lspci 输出不显示网络适配器
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-LM (rev 21)
dmesg | grep iwl
是空的。rfkill
只显示蓝牙。由于根本没有检测到该卡,因此 lsmod 没有加载无线模块。另一方面,蓝牙功能齐全且工作正常。
我使用 debian-live-10.10.0-amd64-xfce+nonfree.iso 启动,一切都应该工作,但再次未检测到无线卡。
所以我对日志进行了更多的挖掘。 9 月 9 日,我的 wifi 工作正常,并且已正确加载
Sep 9 13:26:50 jupiter kernel: [ 5.791176] Intel(R) Wireless WiFi driver for Linux
Sep 9 13:26:50 jupiter kernel: [ 5.791529] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002)
Sep 9 13:26:50 jupiter kernel: [ 5.801795] resource sanity check: requesting [mem 0xfed10000-0xfed15fff], which spans more than pnp 00:07 [mem 0xfed10000-0xfed13fff]
Sep 9 13:26:50 jupiter kernel: [ 5.801804] caller snb_uncore_imc_init_box+0x78/0xc0 [intel_uncore] mapping multiple BARs
Sep 9 13:26:50 jupiter kernel: [ 5.815752] iwlwifi 0000:04:00.0: firmware: direct-loading firmware iwlwifi-8265-36.ucode
Sep 9 13:26:50 jupiter kernel: [ 5.816246] iwlwifi 0000:04:00.0: loaded firmware version 36.ad812ee0.0 8265-36.ucode op_mode iwlmvm
Sep 9 13:26:50 jupiter kernel: [ 5.816877] iwlwifi 0000:04:00.0: firmware: failed to load iwl-debug-yoyo.bin (-2)
最后一个错误显然是无害的。
我将计算机暂停了几次,直到第二天(9 月 10 日)恢复时,kern.log 出现以下错误和(选定的)消息
: can't change power state from unknown to D0 (config space inaccessible)
Sep 10 14:45:28 jupiter kernel: [63338.686918] pcieport 0000:00:1c.6: can't change power state from D3hot to D0 (config space inaccessible)
Sep 10 14:45:28 jupiter kernel: [63338.703520] iwlwifi 0000:04:00.0: can't change power state from D3hot to D0 (config space inaccessible)
----------------
Sep 10 14:45:28 jupiter kernel: [63338.814434] iwlwifi 0000:04:00.0: iwlwifi transaction failed, dumping registers
Sep 10 14:45:28 jupiter kernel: [63338.814441] iwlwifi 0000:04:00.0: iwlwifi device config registers:
Sep 10 14:45:28 jupiter kernel: [63338.814808] iwlwifi 0000:04:00.0: 00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814817] iwlwifi 0000:04:00.0: 00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814826] iwlwifi 0000:04:00.0: 00000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814834] iwlwifi 0000:04:00.0: 00000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814842] iwlwifi 0000:04:00.0: 00000080: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814850] iwlwifi 0000:04:00.0: 000000a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814858] iwlwifi 0000:04:00.0: 000000c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814866] iwlwifi 0000:04:00.0: 000000e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814874] iwlwifi 0000:04:00.0: 00000100: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814883] iwlwifi 0000:04:00.0: 00000120: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814891] iwlwifi 0000:04:00.0: 00000140: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814896] iwlwifi 0000:04:00.0: iwlwifi device memory mapped registers:
Sep 10 14:45:28 jupiter kernel: [63338.814968] iwlwifi 0000:04:00.0: 00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.814976] iwlwifi 0000:04:00.0: 00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.816693] iwlwifi 0000:04:00.0: iwlwifi parent port (0000:00:1c.6) config registers:
Sep 10 14:45:28 jupiter kernel: [63338.817206] iwlwifi 0000:00:1c.6: 00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817214] iwlwifi 0000:00:1c.6: 00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817223] iwlwifi 0000:00:1c.6: 00000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817230] iwlwifi 0000:00:1c.6: 00000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817238] iwlwifi 0000:00:1c.6: 00000080: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817246] iwlwifi 0000:00:1c.6: 000000a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817254] iwlwifi 0000:00:1c.6: 000000c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817262] iwlwifi 0000:00:1c.6: 000000e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817270] iwlwifi 0000:00:1c.6: 00000100: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817279] iwlwifi 0000:00:1c.6: 00000120: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817287] iwlwifi 0000:00:1c.6: 00000140: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817295] iwlwifi 0000:00:1c.6: 00000160: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817303] iwlwifi 0000:00:1c.6: 00000180: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817311] iwlwifi 0000:00:1c.6: 000001a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817319] iwlwifi 0000:00:1c.6: 000001c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817341] iwlwifi 0000:00:1c.6: 000001e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
Sep 10 14:45:28 jupiter kernel: [63338.817346] iwlwifi 0000:00:1c.6: 00000200: ffffffff ffffffff ffffffff
----------
Sep 10 14:45:28 jupiter kernel: [63339.904678] iwlwifi 0000:04:00.0: Could not load the [0] uCode section
Sep 10 14:45:28 jupiter kernel: [63339.904684] iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
Sep 10 14:45:28 jupiter kernel: [63339.904685] iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5
Sep 10 14:45:28 jupiter kernel: [63339.904686] iwlwifi 0000:04:00.0: Failed to start RT ucode: -5
Sep 10 14:45:28 jupiter kernel: [63339.904687] iwlwifi 0000:04:00.0: Collecting data: trigger 16 fired.
Sep 10 14:45:28 jupiter kernel: [63339.961017]
------------
Sep 10 14:45:28 jupiter kernel: [63339.961023] WARNING: CPU: 3 PID: 32706 at drivers/net/wireless/intel/iwlwifi/mvm/../iwl-trans.h:1391 iwl_mvm_dump_lmac_error_log+0x4eb/0x540 [iwlmvm]
Sep 10 14:45:28 jupiter kernel: [63339.961023] Modules linked in: wacom hid_generic usbhid hid uinput acpi_call(OE) ctr ccm rfcomm cmac algif_hash algif_skcipher af_alg snd_seq_dummy snd_hrtimer snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device bnep btusb btrtl btbcm btintel bluetooth uvcvideo videobuf2_vmalloc jitterentropy_rng videobuf2_memops videobuf2_v4l2 drbg videobuf2_common videodev mc ansi_cprng ecdh_generic ecc nls_ascii nls_cp437 snd_hda_codec_hdmi vfat intel_rapl_msr snd_soc_skl intel_rapl_common fat snd_soc_hdac_hda intel_pmc_core_pltdrv snd_hda_codec_realtek intel_pmc_core snd_hda_ext_core snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_codec_generic snd_soc_acpi_intel_match snd_soc_acpi x86_pkg_temp_thermal snd_hda_intel intel_powerclamp snd_intel_dspcfg coretemp mei_hdcp mei_wdt soundwire_intel soundwire_generic_allocation ghash_clmulni_intel snd_soc_core snd_compress aesni_intel iwlmvm soundwire_cadence libaes crypto_simd mac80211 snd_hda_codec cryptd glue_helper libarc4 snd_hda_core rapl
Sep 10 14:45:28 jupiter kernel: [63339.961050] intel_cstate snd_hwdep soundwire_bus intel_uncore snd_pcm_oss joydev iwlwifi snd_mixer_oss efi_pstore serio_raw pcspkr snd_pcm iTCO_wdt intel_pmc_bxt iTCO_vendor_support wmi_bmof intel_wmi_thunderbolt watchdog snd_timer ee1004 cfg80211 mei_me ucsi_acpi intel_xhci_usb_role_switch sg typec_ucsi roles mei intel_pch_thermal typec thinkpad_acpi nvram ledtrig_audio snd soundcore tpm_crb ac evdev rfkill tpm_tis tpm_tis_core tpm rng_core acpi_pad parport_pc ppdev lp parport fuse configfs efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic sd_mod t10_pi crc_t10dif crct10dif_generic uas usb_storage i915 i2c_algo_bit drm_kms_helper crct10dif_pclmul crct10dif_common xhci_pci crc32_pclmul e1000e cec ahci crc32c_intel libahci psmouse xhci_hcd libata drm ptp scsi_mod pps_core i2c_i801 usbcore i2c_smbus usb_common wmi battery video button
--------------
Sep 10 14:45:28 jupiter kernel: [63339.961214] iwlwifi 0000:04:00.0: HW error, resetting before reading
Sep 10 14:45:28 jupiter kernel: [63339.996772] iwlwifi 0000:04:00.0: Start IWL Error Log Dump:
Sep 10 14:45:28 jupiter kernel: [63339.996774] iwlwifi 0000:04:00.0: Status: 0x00000000, count: 3072
Sep 10 14:45:28 jupiter kernel: [63339.996775] iwlwifi 0000:04:00.0: Loaded firmware version: 36.ad812ee0.0 8265-36.ucode
-------------
Sep 10 14:45:30 jupiter kernel: [63344.915798] iwlwifi 0000:04:00.0: Could not load the [0] uCode section
Sep 10 14:45:30 jupiter kernel: [63344.915814] iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
Sep 10 14:45:30 jupiter kernel: [63344.915815] iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5
Sep 10 14:45:30 jupiter kernel: [63344.915816] iwlwifi 0000:04:00.0: Failed to start RT ucode: -5
Sep 10 14:45:30 jupiter kernel: [63344.915819] iwlwifi 0000:04:00.0: Collecting data: trigger 16 fired.
------------
Sep 10 14:45:34 jupiter kernel: [63348.625521] iwlwifi 0000:04:00.0: can't change power state from D3cold to D0 (config space inaccessible)
Sep 10 14:45:34 jupiter kernel: [63348.625564] iwlwifi 0000:04:00.0: can't change power state from D3hot to D0 (config space inaccessible)
Sep 10 14:45:34 jupiter kernel: [63348.625856] iwlwifi 0000:04:00.0: HW_REV=0xFFFFFFFF, PCI issues?
Sep 10 14:45:34 jupiter kernel: [63348.635076] iwlwifi: probe of 0000:04:00.0 failed with error -5
重启后 iwlwifi 不再出现在 kern.log 中
我猜这是硬件故障,但如果有人有办法恢复我的卡,我将不胜感激。
答案1
我拔掉了主电源,打开了笔记本电脑,取出了两块电池,完全取出了无线网卡。然后将其放回(和电池)。
无线网络现已恢复正常。我想它只需要一个超级硬重置。
lspci
04:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
答案2
“Config space inaccessible”表示硬件错误:PCIe 配置空间包含有关 PCIe 卡的基本信息,例如硬件寄存器所在的位置。如果这些突然消失,则意味着 WLAN 硬件根本没有响应。
同样,如果它没有出现在 中lspci
,则意味着所有 PCI 硬件实现的最基本的硬件支持已经停止工作。
我会同意移除电池和主电源的过程,因为这将进行“真正的”冷启动,尽可能地重置硬件。
另一件需要注意的事情是 BIOS/UEFI 设置,您可能可以启用/禁用 WIFI 硬件,并且可能会出现“禁用”故障。
如果这两个都没有帮助,我会认为 WIFI 硬件已经死了。
答案3
这行在这里:
firmware: failed to load iwl-debug-yoyo.bin (-2)
...是一个知道问题并且可能不需要该调试固件。
nano /etc/modprobe.d/iwlwifi.conf
然后删除/注释掉这一行:
options iwlwifi enable_ini=N
我会尝试启动 livelinux,如果在那里不起作用,只需更换 WiFi 模块即可。它们并不昂贵,而且 ThinkPad 也很耐用,因此更换这样的模块并不困难。虽然大多数 ThinkPad 还具有用于无线电的小型硬件开关……可以完全禁用它。