December 22, 2024

How to Install WiFi driver for RTL8723DE aka RealTek d723 in GNU/Linux Distributions

Sponsored

Update: See the installation of the  same driver in Ubuntu 18.04 or other operating systems which use kernel version higher than 4.14 here

GNU/Linux distributions have really matured enough in the last years to be used as a stable desktop operating system. But still there are some nasty WiFi modules and Graphics Cards that won’t work in GNU/Linux out-of-the-box. Today we are going to work on such a WiFi module. Let’s take a look at how to install WiFi driver for RTL8723DE aka RealTek d723.

Some of the newly arrived laptops, especially from HP, come with RealTek network cards such as RTL8723BE or RTL8723DE which may not work in many GNU/Linux distributions out-of-the-box. The Realtek RTL8723DE-CG is an 802.11bgn 2.4G single-chip that integrates Wireless LAN (WLAN) and a network PCIe interface controller with integrated Bluetooth 2.1/4.2 USB interface controller. This chip currently doesn’t have native GNU/Linux support. This puts many people into helpless situation who are desperately looking for how to install WiFi driver for RTL8723DE.

Sponsored

How to install WiFi Driver for RTL8723DE
RTL8723DE in an HP Laptop

How to Install WiFi Driver for RTL8723DE aka RealTek d723

Most people are not even able to find a solution for this online. Here in AskUbuntu, you can see that the question regarding how to install WiFi Driver for RTL8723DE on GNU/Linux is not properly answered. There’s also an issue in the GitHub repo rtlwifi_new mentioning that this chip isn’t supported. For some it may work while for others it may not be the case. That’s why I got tempted to write this post in order to share an alternate working solution.

If you have already searched about this device then you may have already found this repo. But unfortunately it didn’t work for me. So I did a detailed search and came across another repo from its comments. And this time it worked perfectly.

Steps to install RTL8723DE WiFi Driver

First you need to check whether your Linux kernel version is above 4.10. For that run the following command in terminal:

uname -r

If your Linux kernel version is above 4.10

1. Install required packages for building the driver

sudo apt-get install build-essential git dkms

2. Clone the driver repository

git clone https://github.com/jeremyb31/rtl8723de.git

3. Then follow these steps to install the driver

sudo dkms add ./rtl8723de
sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414

4. Now reboot your system and you will have your WiFi device working by now

If your Linux kernel is older than 4.10

All steps are same as above except for the step 2. You just need to replace the clone URL in the 2nd step with the one mentioned below.

git clone -b 4.10-down https://github.com/jeremyb31/rtl8723de.git

Sponsored

12 thoughts on “How to Install WiFi driver for RTL8723DE aka RealTek d723 in GNU/Linux Distributions

  1. THANK YOU! Was going in circles trying to follow other advice found around the net, this worked perfectly!

  2. Doesn,t work for me:
    sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414 gives an error.

    cat /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log
    DKMS make.log for rtl8723de-5.1.1.8_21285.20171026_COEX20170111-1414 for kernel 4.15.13-300.fc27.x86_64 (x86_64)
    Пт апр 6 13:23:18 MSK 2018
    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.13-300.fc27.x86_64/build M=/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build modules
    make[1]: Entering directory ‘/usr/src/kernels/4.15.13-300.fc27.x86_64’
    CC [M] /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o
    In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:42:0,
    from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:32,
    from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22:
    /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h: In function ‘_init_timer’:
    /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:287:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
    ptimer->data = (unsigned long)cntx;
    ^~
    /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:288:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
    init_timer(ptimer);
    ^~~~~~~~~~
    _init_timer
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:325: /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o] Error 1
    make[1]: *** [Makefile:1518: _module_/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build] Error 2
    make[1]: Leaving directory ‘/usr/src/kernels/4.15.13-300.fc27.x86_64’
    make: *** [Makefile:1884: modules] Error 2

    uname -a
    Linux ses-laptop.localnet 4.15.13-300.fc27.x86_64 #1 SMP Mon Mar 26 19:06:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

  3. There needs to be a bit more clarification on the kernel part. The other version isn’t for kernels older than 4.10 – it’s actually for kernels 4.10 or older.

    A very big distinction when your kernel is 4.10.

  4. I have 4.15 and get this message:

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    build-essential is already the newest version (12.1ubuntu2).
    dkms is already the newest version (2.2.0.3-2ubuntu11.5).
    git is already the newest version (1:2.7.4-0ubuntu1.5).
    0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

    Is this a problem that I’ll be able to fix eventually do you think?

  5. i have this error

    sudo dkms add ./rtl8723de
    Error! Could not find module source directory.
    Directory: /usr/src/.-rtl8723de does not exist.

    and this

    sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
    Error! Could not find module source directory.
    Directory: /usr/src/rtl8723de-5.1.1.8_21285.20171026_COEX20170111-1414 does not exist.

    help me

Share your Opinion

This site uses Akismet to reduce spam. Learn how your comment data is processed.