
我的 Ubuntu 中的 wifi 有問題。它在 W10 中運作良好,但在 Ubuntu 中沒有可見的適配器。我嘗試了不同版本的 Ubuntu,現在我使用的是20.04
.
uname -a
Linux F6-Plus 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
當我lspci
在終端機中執行時,沒有有關網路控制器的資訊。
之後我執行:
echo 1 | sudo tee /sys/bus/pci/rescan
如果我lspci
之後執行,將顯示有關網路控制器的信息
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 79)
Wi-Fi 仍然無法工作,但控制器似乎在那裡。如果我重新啟動並執行,lspci
則不再有有關網路控制器的資訊。
我很失落,我不知道該怎麼做才能解決這個問題。
謝謝
編輯1添加更多信息
sudo dmesg modprobe iwlwifi && dmesg | grep -e wlp -e iwl
沒有什麼。
做完之後echo 1 | sudo tee /sys/bus/pci/rescan
sudo dmesg modprobe iwlwifi && dmesg | grep -e wlp -e iwl
[ 159.974862] iwlwifi 0000:02:00.0: enabling device (0000 -> 0002)
[ 159.975268] iwlwifi 0000:02:00.0: HW_REV=0xFFFFFFFF, PCI issues?
[ 159.998862] iwlwifi: probe of 0000:02:00.0 failed with error -5
dmesg | grep 02:00
[ 4.545917] Goodix-TS i2c-GDIX1002:00: i2c-GDIX1002:00 supply AVDD28 not found, using dummy regulator
[ 4.545940] Goodix-TS i2c-GDIX1002:00: i2c-GDIX1002:00 supply VDDIO not found, using dummy regulator
[ 4.548360] Goodix-TS i2c-GDIX1002:00: i2c test failed attempt 1: -121
[ 4.573798] Goodix-TS i2c-GDIX1002:00: i2c test failed attempt 2: -121
[ 4.601624] Goodix-TS i2c-GDIX1002:00: I2C communication failure: -121
[ 4.601749] Goodix-TS: probe of i2c-GDIX1002:00 failed with error -121
[ 159.971421] pci 0000:02:00.0: [8086:3165] type 00 class 0x028000
[ 159.971817] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[ 159.972300] pci 0000:02:00.0: Upstream bridge's Max Payload Size set to 128 (was 256, max 256)
[ 159.972318] pci 0000:02:00.0: Max Payload Size set to 128 (was 128, max 128)
[ 159.973158] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[ 159.974677] pci 0000:02:00.0: BAR 0: assigned [mem 0x80100000-0x80101fff 64bit]
[ 159.974862] iwlwifi 0000:02:00.0: enabling device (0000 -> 0002)
[ 159.975268] iwlwifi 0000:02:00.0: HW_REV=0xFFFFFFFF, PCI issues?
[ 159.998862] iwlwifi: probe of 0000:02:00.0 failed with error -5
無線網卡是焊接在主機板上的,不是外置pci適配器。
答案1
我終於讓我的轉接器在我的 Teclast F6 plus 上工作了。
關鍵是更新BIOS設定。這是一個適合我的配置:
BIOS
- 確保 D3Cold 已啟用(預設配置即可)
- 晶片組 > PCI Express 配置 > PCI Express 根端口2(這張卡是用的)
- 熱插拔:
enabled
- 發射機半擺幅:
enabled
- 額外預約巴士:7
- 熱插拔:
強制 PCI 重新掃描
正如OP所說,除非強制pci重新掃描,否則該卡不會列出。
我設定了一個小型 systemd 服務以在啟動時啟用
/opt/pci/rescan.sh
#!/bin/sh
set -e
echo 1 | tee /sys/bus/pci/rescan
lspci | grep 02:00.0
/etc/systemd/system/pci-rescan.service
[Unit]
Description=PCI rescan
[Service]
Type=oneshot
ExecStart=/opt/pci/rescan.sh
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
# setup and enable as root
chmod a+x /opt/pci/rescan.sh
systemctl enable pci-rescan
systemctl start pci-rescan
現在介面出現了,我可以使用它(wls1
在我的 Arch 系統上命名)。使用 nmcli 為例:
nmcli d wifi connect <SSID> password <password> ifname wls1