Wifi not working in debian 8.9 having RTL8723de driver ([10ec:d723])

Please help me to make my wifi working. I was working on this for last two weeks and tried many workarounds. Now I have freshly reinstalled Debian and ready to start from the beginning. Below are the details of system network.

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

The output of 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]

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

Unofficial Linux driver here: https://github.com/smlinux/rtl8723de

Please note that, I am not the author or contributor to the above driver. I came to know about this project run by user “smlinux” while subscribed to lwfinger’s rtlwifi-new git project page.

I have a HP 15-BS576TX laptop with RTL8727DE wireless module and this driver worked fine. Compiling it is simple; You may either clone the source using git or download the source as zip from the above link.

Then, open a terminal in the source directory (rtl8723de) and run below commands which will install 8723de.ko kernel module to the modules directory.

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

That’s it. After few months of owning this laptop, finally Wifi worked! Though, community must be aware that, official accommodation of this driver or other driver for this module in Linux kernel may take time. Also, please look into https://github.com/lwfinger/rtlwifi_new for any updated driver available, which is provided by Realtek, the manufacture of the said WiFi module.

Solution 2

Ethernet

Edit your /etc/network/interfaces as follows:

# 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

To get the internet working through eth0:

ifdown eth0
ifup eth0

Wifi

Update

A working driver is available on smlinux repository (see the comments)

To install the rtl8723de driver you should have a kernel version >=4.11.

The easy way is to install Debian Stretch then upgrade your kernel version from backports (kernel 4.13 is available)

To install the rtl8723de on Debian Jessie you should compile your kernel >4.11

the install process:

The driver can be installed as follow:

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

Realtek RTL8723DE module for Linux kernel version 5:

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

Update debian 10

The driver is available on lwfinger/rtw88:

Note:1) This code will build on any kernel 4.19 and newer as long as the distro has not modified any of the kernel APIs.

  1. This repository includes drivers for the following cards:

RTL8822BE, RTL8822CE, RTL8821CE, and 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 

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply