Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new fu..k version of RTL8723 - RTL8723de #270

Closed
mpelan opened this issue Sep 22, 2017 · 99 comments

Comments

@mpelan
Copy link

commented Sep 22, 2017

A lot of middle market laptops from HP brand has got inside module M.2 with RTL 8723DE.
Unfortunately drivers from this repository did not cooperate with them.
Is possible to change this ?

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Sep 22, 2017

The Realtek guys have not yet released a Linux driver to me. Sorry.

@goyans

This comment has been minimized.

Copy link

commented Sep 29, 2017

any news for the driver on linux

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Sep 29, 2017

Just this morning, I got the following statement from Realtek "The driver for RTL8723DE will be ready on 2017 Q4.", thus it will be in 3 months, or so.

@GnuLegax

This comment has been minimized.

Copy link

commented Oct 1, 2017

Thanks for the info!

@mohdomama

This comment has been minimized.

Copy link

commented Oct 3, 2017

@lwfinger Thanks for the update. And hats off to the work you are doing 👍

@Emmanuel616

This comment has been minimized.

Copy link

commented Oct 26, 2017

Some news ?

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Oct 26, 2017

Not yet.

@Emmanuel616

This comment has been minimized.

Copy link

commented Oct 26, 2017

Did someone try an usb-wifi module?

@NicolasBarsimanto

This comment has been minimized.

Copy link

commented Oct 27, 2017

Today, I bought a TP-Link TL-WN722N v2.0
It works, but only on Ubuntu (also kubuntu, lubuntu, etc), but not even on his derivatives, like Elementary

@AvirahJ

This comment has been minimized.

Copy link

commented Nov 8, 2017

@Emmanuel616 👍 Yes. I'm using a US $3 worth usb wifi module of ralink mediatek 7601u - https://goo.gl/VshtZo . It is well supported in Linux and better signal than the RTL8723DE (as confirmed when using on Windows 10). Nothing need to be done to get that usb wlan adapter to work. Some observations with RTL8723DE: with Windows 10 also has poor antenna. I don't know if it'll improve. But, with Linux driver for RTL8723DE hope some kernel module option to tweak antenna settings will be available.

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Nov 9, 2017

Do not count on module parameter help. Making such a parameter for the RTL8723BE has led to considerable grief for me due to inconsiderate, demanding users. For that reason, I have decided never to do that again. The users will need to complain to their vendors. Perhaps, HP will either decide to spend a few pennies more to put two antennas in their laptop, or finally figure out how to encode the EFUSE in the device to match the connector they are using for their single antenna.

As long as Windows and Linux both have weak signal, take off the bottom of the laptop and move the antenna connector to the other post. That should improve the signal.

@lwfinger lwfinger closed this Nov 9, 2017

@r3pek

This comment has been minimized.

Copy link

commented Nov 9, 2017

@lwfinger maybe keep the issue opened until the driver is available?

@daloonik

This comment has been minimized.

Copy link

commented Nov 9, 2017

I'm getting around the issue for now by using a cheap Bluetooth dongle on my laptop and using my phone's Wifi connection by Bluetooth tethering. It's easy to do using the GUI in Xubuntu. I'm only doing this because I don't have a Wifi USB dongle handy.

@yaniselmalki

This comment has been minimized.

Copy link

commented Nov 15, 2017

Any news?

@lordkeks

This comment has been minimized.

Copy link

commented Nov 29, 2017

Just got a new HP notebook on black friday. Any news about the driver?

@mikhailnov

This comment has been minimized.

Copy link

commented Dec 2, 2017

@lwfinger @rtlwifi-linux "or finally figure out how to encode the EFUSE in the device to match the connector they are using for their single antenna"
Can't Realtek provide specification or contribute code?

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Dec 2, 2017

That cannot be done in the field. HP would need to do that in the factory!!!!!

@lordkeks

This comment has been minimized.

Copy link

commented Dec 2, 2017

@lwfinger But that would just ensure better antenna range, right? Do you have any new information from Realtek when we are going to see the linux drivers for the chipset? Or do you know a person we can annoy, so it goes a little faster?

@procedural

This comment has been minimized.

Copy link

commented Dec 3, 2017

As @lordkeks I'm interested in Linux driver too.

"The driver for RTL8723DE will be ready on 2017 Q4.", thus it will be in 3 months, or so.

Apparently we have to wait until the end of the year? :)

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Dec 3, 2017

It will appear WHEN it is READY!!!!

@ayanb280

This comment has been minimized.

Copy link

commented Dec 14, 2017

How will we know when the driver is ready? Will a system update install it (in Ubuntu)?

@mikhailnov

This comment has been minimized.

Copy link

commented Dec 14, 2017

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Dec 14, 2017

You will likely learn of it here. Getting it into the kernel will take the following steps: (1) The Realtek group will submit a set of patches that add the driver to the staging tree. (2) After several rounds of editing and revision, those patches will be introduced into kernel 4.16, 4.17, or ... The uncertainty is depending on how long it takes Realtek to get the driver ready, and how long the revision cycle takes. (3) That kernel will be released. (4) The distros will release that kernel, eventually.

If this group stops bugging me, I might add the new driver to my repo and make it available sooner, but given the history of this issue, I suspect that I will be more pissed off than cooperative!

@kzadlo

This comment has been minimized.

Copy link

commented Dec 18, 2017

People are impatient, because they bought new laptop and can't use WiFi, what is really funny in these times. Anyway you're doing great job. Thanks. :) I'm waiting for the driver too.

@browebro

This comment has been minimized.

Copy link

commented Dec 21, 2017

Realtek 8723de is working :):):)

Good signal and no issues.

Many Thanks for the extraordinary work from people like @lwfinger, @smlinux, etc.

The solution in:
https://github.com/smlinux/rtl8723de

I downloaded the zip and:
make
sudo make install

If no gcc:
sudo apt-get install gcc

HP 17-bs028ng.
Lubuntu 16.04.3
Kernel 4.10.0-42

@aniket-pp

This comment has been minimized.

Copy link

commented Dec 21, 2017

@browebro can you guide me through the process...

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Dec 21, 2017

@browebro: I had nothing to do with this driver!

One comment: It is OK to download the zip version, but be aware that even the smallest change in the source will mean a complete reload of the ENTIRE source. If you use the recommended 'git clone' to get started, then the updates only download a compressed version of the changes. If you have a slow link, or have low data limits, the git version is a lot better.

@Emmanuel616

This comment has been minimized.

Copy link

commented Dec 21, 2017

Works for me...!!
:D
Ubuntu 17
HP PAVILION 15-CD003LA

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Feb 12, 2018

That sounds like a user-space error. Using openSUSE (any version) with NetworkManager, I have no problem switching among my various APs. Check with the Ubuntu forums to see if this problem has been reported there.

@romifra

This comment has been minimized.

Copy link

commented Feb 12, 2018

Thanks for you answer. I didn't find anything like that on Ubuntu forums yet. I will check again later.

@serhumanos

This comment has been minimized.

Copy link

commented Feb 16, 2018

i had the same "problem" that romifra has, when i try to connect another network, it stuck in "configuring interface", and if i try to rollback connection i can not. the solution is disable wifi and enable again, or turn on and off the airplane mode. (kde neon plasma and network-manager service)

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Feb 16, 2018

As I said earlier, KDE plasma and NetworkManager running on openSUSE Leap 15.0 can change APs just fine. I have three running, and I tested all 3 (two 802.11n and one 802.11ac). My conclusion is that you have some kind of user-space problem. For the driver, I'm using the one built into kernel 4.15.0-rc1.

@kenbenobi666

This comment has been minimized.

Copy link

commented Mar 12, 2018

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.7-300.fc27.x86_64/build M=/home/msarubbi/Descargas/rtl8723de modules
make[1]: se entra en el directorio '/usr/src/kernels/4.15.7-300.fc27.x86_64'
CC [M] /home/msarubbi/Descargas/rtl8723de/core/rtw_cmd.o
In file included from /home/msarubbi/Descargas/rtl8723de/include/osdep_service.h:42:0,
from /home/msarubbi/Descargas/rtl8723de/include/drv_types.h:32,
from /home/msarubbi/Descargas/rtl8723de/core/rtw_cmd.c:22:
/home/msarubbi/Descargas/rtl8723de/include/osdep_service_linux.h: En la función ‘_init_timer’:
/home/msarubbi/Descargas/rtl8723de/include/osdep_service_linux.h:287:8: error: ‘_timer {también conocido como struct timer_list}’ no tiene un miembro llamado ‘data’
ptimer->data = (unsigned long)cntx;
^~
/home/msarubbi/Descargas/rtl8723de/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

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Mar 12, 2018

You need to run 'git pull'. All 3 branches that I am maintaining (master, kernel_version, extended) build fine here with kernel 4.16-rc4. Your problem has already been fixed.

Of course, you will not need this repo with kernel 4.15.7 UNLESS you need the rtl8723de driver.

@ghost

This comment has been minimized.

Copy link

commented Apr 4, 2018

Is this kernel module gonna be mainlined anytime soon??

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Apr 4, 2018

As soon as possible.

@ritajitk

This comment has been minimized.

Copy link

commented Apr 5, 2018

Hi,
I am using HP-Laptop-15-bs0xx 4.13.0-37-generic #42~16.04.1-Ubuntu . Have been trying to run Wi-fi on my laptop since I bought it last December using ndiswrapper but all my attempts were in vain. Today I installed the driver from your repo but it was still not working. I figured out that the ndiswrapper is taking command over the driver. So I manually removed ndiswrapper from my system and performed a reboot, now it works fine. My laptop detects wifi for the first time and can connect with it without any problem.
Thanks a lot. Awesome work.

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Apr 5, 2018

Never use ndiswrapper!!!!!!!

@selvamorgana

This comment has been minimized.

Copy link

commented Apr 20, 2018

hi everybody,
of course i've the ssame problems, but still i cannot fix it. i tried now @LEODAC instrauctions but i get an error that occured also to @shebinraphel ... sopmeone knows hot to proced?

[root@selvalaptop selvalaptop]# dkms install rtl8723de/5.1.1.8_20171026_COEX20170111-1414
Error! Could not find module source directory.
Directory: /usr/src/rtl8723de-5.1.1.8_20171026_COEX20170111-1414 does not exist.

@krixano

This comment has been minimized.

Copy link

commented Apr 21, 2018

@selvamorgana Use the extended branch of this repo (lwfinger/rtlwifi_new), not the smlinux one. Instructions are pretty well explained in readme.

@praveshchauhan

This comment has been minimized.

Copy link

commented May 24, 2018

Hi,

I am trying to use "make" command but showing following errors.

===================================================
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-22-generic/build M=/rtl8723de modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-22-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /rtl8723de/core/rtw_cmd.o
In file included from /rtl8723de/include/osdep_service.h:42:0,
from /rtl8723de/include/drv_types.h:32,
from /rtl8723de/core/rtw_cmd.c:22:
/rtl8723de/include/osdep_service_linux.h: In function ‘_init_timer’:
/rtl8723de/include/osdep_service_linux.h:287:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
ptimer->data = (unsigned long)cntx;
^~
/rtl8723de/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
scripts/Makefile.build:332: recipe for target '/rtl8723de/core/rtw_cmd.o' failed
make[2]: *** [/rtl8723de/core/rtw_cmd.o] Error 1
Makefile:1552: recipe for target 'module/rtl8723de' failed
make[1]: *** [module/rtl8723de] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-22-generic'
Makefile:1884: recipe for target 'modules' failed
make: *** [modules] Error 2

Please help to solve this issue. Thanks in advance.

@selvamorgana

This comment has been minimized.

Copy link

commented May 24, 2018

@lwfinger

This comment has been minimized.

Copy link
Owner

commented May 24, 2018

First of all, if you use an out-of-kernel driver, you will need to rerun "make" and "sudo make install". That is an absolute requirement of Linux kernels - it is a safety feature. As an alternative, you can implement dkms, which will automatically rebuild the kernels on the fly.

@praveshchauhan - That update to build with kernels 4.15 and newer was pushed some time ago (when tah kernel was in the -rcX phase). You need to do a "git pull".

@peteresasi

This comment has been minimized.

Copy link

commented May 29, 2018

Ayuda, mi kernel es 4.15 que puedo hacer? no lo puedo hacer andar.

@peteresasi

This comment has been minimized.

Copy link

commented May 29, 2018

MI drivers es el rtl8723de

@selvamorgana

This comment has been minimized.

Copy link

commented Jun 1, 2018

@serhumanos

This comment has been minimized.

Copy link

commented Jun 1, 2018

@selvamorgana recomiendo

actualizar a kernel 4.17, hay varios métodos explicados, agregaré uno mas:

para los drivers tanto de wifi como de bluetooth seguir los pasos de @AvirahJ en smlinux/rtl8723de#4

@andres2490

This comment has been minimized.

Copy link

commented Jun 20, 2018

mi kernel es 4.15 y mi tarjeta de red es el rtl8723de.
no funciona mi wifi que puedo hacer (estoy usando Xubuntu)

@serhumanos

This comment has been minimized.

Copy link

commented Jun 21, 2018

@andres2490 debes, descargar y compilar los drivers para ese kernel o bien actualizar primero el kernel a 4.17 y luego proceder con la compilacion.

Está bien explicado más arriba
saludos!

@andres2490

This comment has been minimized.

Copy link

commented Jun 21, 2018

Estaba por hacer estos pasos:
Realtek RTL8723DE module for Linux kernel version >= 4.15

Install:

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

(Tomados del ReadMe de https://github.com/smlinux/rtl8723de)
¿es correcto?

@eduardo-tirado

This comment has been minimized.

Copy link

commented May 30, 2019

En Ubuntu 18.04 me ocurrieron muchos errores de este post.
Mi solución fue está:
Primero: Para ver las tarjetas de Red presentes en el equipo
Comando: sudo lspci | awk '/[Nn]et/ {print $1}' | xargs -i% lspci -ks %
Resultado:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723
Subsystem: Hewlett-Packard Company Device 8319

Segundo: Luego ver la versión del kernel
Comando: uname-a
Resultado:
Linux odoo-HP 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Tercero: Instalar paquete dkms sino se tiene instalado
https://www.ubuntuupdates.org/package/core/bionic/main/proposed/dkms

Cuarto: Descargar el controlador rtl8723de para la versión de kernel superior a 4.15
sudo git clone https://github.com/smlinux/rtl8723de.git -b 4.15-up

Quinto: Agregar el controlador
sudo dkms add ./rtl8723de

Sexto: Instalar el controlador
sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414

Septimo:
depmod -a
reboot

Octavo: Luego de reiniciar se ejecuta nuevamente el comando sudo lspci | awk '/[Nn]et/ {print $1}' | xargs -i% lspci -ks %
y el resultado es el siguiente:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723
Subsystem: Hewlett-Packard Company Device 8319
Kernel driver in use: rtl8723de
Kernel modules: rtl8723de

Lo cual indica que se encuentra instalado el driver de la tarjeta inalambrica.
Ademas de que ya aparecen todas la redes inalambricas cercanas.

(Para de los comandos son tomados de (https://github.com/smlinux/rtl8723de)

@lwfinger

This comment has been minimized.

Copy link
Owner

commented May 30, 2019

Why do you post here if you are not using the driver from this repo?

@Redtiger777

This comment has been minimized.

Copy link

commented May 31, 2019

when i try to use the make command I receive a similar error as praveshchauhan about a year ago. I did do 'git pull', and I am 'Already up to date'. I would appreciate some help, please.
The error is as follow:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-50-generic/build M=/usr/src/rtl8723de modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-50-generic'
CC [M] /usr/src/rtl8723de/os_dep/linux/rtw_android.o
/usr/src/rtl8723de/os_dep/linux/rtw_android.c: In function ‘rtw_android_priv_cmd’:
/usr/src/rtl8723de/os_dep/linux/rtw_android.c:635:49: error: macro "access_ok" requires 3 arguments, but only 2 given
if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
^
/usr/src/rtl8723de/os_dep/linux/rtw_android.c:635:7: error: ‘access_ok’ undeclared (first use in this function)
if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
^~~~~~~~~
/usr/src/rtl8723de/os_dep/linux/rtw_android.c:635:7: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:330: recipe for target '/usr/src/rtl8723de/os_dep/linux/rtw_android.o' failed
make[2]: *** [/usr/src/rtl8723de/os_dep/linux/rtw_android.o] Error 1
Makefile:1552: recipe for target 'module/usr/src/rtl8723de' failed
make[1]: *** [module/usr/src/rtl8723de] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-50-generic'
Makefile:1885: recipe for target 'modules' failed
make: *** [modules] Error 2

@lwfinger

This comment has been minimized.

Copy link
Owner

commented May 31, 2019

The code has a snippet that looks like:

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0))
        if (!access_ok(priv_cmd.buf, priv_cmd.total_len)){
#else
        if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)){
#endif

The kernel API changed in kernel 5.0; however, your distro has backported that change to a 4.15 kernel. As I have said many times, I refuse to handle this type of backporting, which makes life really difficult for those people that must use an out-of-kernel driver.

You will need to change that KERNEL_VERSION(5, 0, 0) to KERNEL_VERSION(4, 15, 0), or run a vanilla kernel.

@LEO-DAC

This comment has been minimized.

Copy link

commented Jun 1, 2019

@eduardo-tirado no logro entender como lograste instalar el controlador con esa versión de kernel, si el readme del driver dice kernel version>=5, mi computadora cuenta con las mismas especificaciones que la tuya a excepción de la versión del kernel, yo cuento con la versión 4.18 y el controlador me ha dado dolores de cabeza al no poder instalarlo

@eduardo-tirado

This comment has been minimized.

Copy link

commented Jun 1, 2019

@LEO-DAC es que usé el branch para la versión >= 4.15.
El que sale en el Readme es un ejemplo para la ultima versión que subieron >=5.0.

Si tu kernel es versión 4.18
Descarga sudo git clone https://github.com/smlinux/rtl8723de.git -b 4.15-up

Captura de pantalla de 2019-06-01 23-55-55

@LEO-DAC

This comment has been minimized.

Copy link

commented Jun 1, 2019

@eduardo-tirado gracias buen hombre, estoy comenzando a usar github y desconozco el uso de las ramas, pero gracias a esto ya solucionaré mi error, se lo agadesco

@serhumanos

This comment has been minimized.

Copy link

commented Jul 10, 2019

Hi! i have installed de extended branch driver (to make work wifi+bt). the wifi works very good (set ant 2). but the Bluetooth don't works well, when i connect bt mouse or speakers, they disconnect after time with errors, BT crash y i connect to wifi.. this driver is so good for wifi, but i can not make it works with bluetooth, (wif+bt bad too).

Question 1: i want to know if exist some way to make works wifi + bt stable.
i am using linux KDE Neon 5.16. (ubuntu 18LTS based) kernel 4.18 on HP x360 with RTL8723DE

Question 2: (not driver related): do you know some wificard to replace the RTL8723DE, other alternative internal (not usb) with WIFI+BT and be compatible with linux? thanks!)

thanks for your driver!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.