Debian

Wifi 無法在具有 RTL8723de 驅動程序的 debian 8.9 中工作(10ec:d72310和C:d72310ec:d723)

  • December 21, 2020

請幫我讓我的wifi正常工作。過去兩週我一直在研究這個問題,並嘗試了許多解決方法。現在我重新安裝了 Debian 並準備從頭開始。以下是系統網路的詳細資訊。

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Subsystem: Hewlett-Packard Company Device 8328
Flags: bus master, fast devsel, latency 0, IRQ 141
I/O ports at 4000 [size=256]
Memory at b1104000 (64-bit, non-prefetchable) [size=4K]
Memory at b1100000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
Capabilities: [170] Latency Tolerance Reporting
Capabilities: [178] L1 PM Substates
Kernel driver in use: r8169

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723
Subsystem: Hewlett-Packard Company Device 8319
Flags: bus master, fast devsel, latency 0, IRQ 11
I/O ports at 3000 [size=256]
Memory at b1000000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [148] Virtual Channel
Capabilities: [168] Device Serial Number 00-e0-4c-00-00-00-00-00
Capabilities: [178] Latency Tolerance Reporting
Capabilities: [180] L1 PM Substates

# iwconfig 
usb0      no wireless extensions.
lo        no wireless extensions.
eth0      no wireless extensions.

# iwlist scan
usb0      Interface doesn't support scanning
lo        Interface doesn't support scanning
eth0      Interface doesn't support scanning

# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 18:60:24:11:f8:77 brd ff:ff:ff:ff:ff:ff
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000
link/ether fe:47:68:4a:9f:e3 brd ff:ff:ff:ff:ff:ff

# dmesg | grep 8168
[    0.372439] pci 0000:01:00.0: [10ec:8168] type 00 class 0x020000
[    0.949919] r8169 0000:01:00.0 eth0: RTL8168b/8111b at 0xffffc900006b4000, 18:60:24:11:f8:77, XID 14100800 IRQ 141

# dmesg | grep 8169
[    0.949289] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    0.949299] r8169 0000:01:00.0: can't disable ASPM; OS doesn't have ASPM control
[    0.949443] r8169 0000:01:00.0 (unregistered net_device): unknown MAC, using family default
[    0.949679] r8169 0000:01:00.0: irq 141 for MSI/MSI-X
[    0.949919] r8169 0000:01:00.0 eth0: RTL8168b/8111b at 0xffffc900006b4000, 18:60:24:11:f8:77, XID 14100800 IRQ 141
[    0.949922] r8169 0000:01:00.0 eth0: jumbo features [frames: 4080 bytes, tx checksumming: ko]
[   15.868934] r8169 0000:01:00.0 eth0: link down

的輸出lspci -knn | grep Net -A2

02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device 
[10ec:d723] 
Subsystem: Hewlett-Packard Company Device [103c:8319]

乙太網

編輯您/etc/network/interfaces的如下:

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
   
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

要讓網際網路正常工作eth0

ifdown eth0
ifup eth0

無線上網

更新

smlinux儲存庫中提供了一個工作驅動程序(見評論

要安裝rtl8723de驅動程序,您的核心版本應該 >=4.11。

簡單的方法是安裝 Debian Stretch,然後從 backports 升級您的核心版本(核心 4.13可用)

rtl8723de在 Debian Jessie 上安裝,你應該編譯你的核心 >4.11

安裝過程:

驅動程序可以安裝如下:

git clone https://github.com/smlinux/rtl8723de.git
cd rtl8723de
make
make install 

適用於 Linux 核心版本 5 的 Realtek RTL8723DE 模組:

git clone https://github.com/smlinux/rtl8723de.git -b current
dkms add ./rtl8723de
dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
depmod -a
reboot

更新Debian 10

該驅動程序在lwfinger/rtw88上可用:

注意:1)只要發行版沒有修改任何核心 API,此程式碼將建構在任何核心 4.19 和更高版本上。

  1. 此儲存庫包括以下卡的驅動程序:

RTL8822BE、RTL8822CE、RTL8821CE 和 RTL8723DE

sudo apt-get update
sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git

git clone https://github.com/lwfinger/rtw88.git
cd rtw88
make
sudo make install

sudo modprobe -rv rtw_8723de 
sudo modprobe -v rtw_8723de 

這裡的非官方 Linux 驅動程序:https ://github.com/smlinux/rtl8723de

請注意,我不是上述驅動程序的作者或貢獻者。我在訂閱 lwfinger 的 rtlwifi-new git 項目頁面時了解了使用者“smlinux”執行的這個項目。

我有一台帶有 RTL8727DE 無線模組的 HP 15-BS576TX 筆記型電腦,該驅動程序執行良好。編譯很簡單;您可以使用 git 複製原始碼,也可以從上面的連結以 zip 格式下載原始碼。

然後,在源目錄(rtl8723de)中打開一個終端並執行以下命令,將 8723de.ko 核心模組安裝到模組目錄中。

make
sudo make install && sync;
sudo modprobe 8723de

就是這樣。擁有這台筆記型電腦幾個月後,終於 Wifi 工作了!不過,社區必須意識到,在 Linux 核心中為該模組提供此驅動程序或其他驅動程序的正式住宿可能需要一些時間。此外,請查看https://github.com/lwfinger/rtlwifi_new以獲取由上述 WiFi 模組製造商 Realtek 提供的任何可用更新驅動程序。

引用自:https://unix.stackexchange.com/questions/394012