Skip to content

Instantly share code, notes, and snippets.

@w4ilun
Last active June 30, 2022 05:49
Show Gist options
  • Save w4ilun/68d032b82993812a0a883ae992b6e696 to your computer and use it in GitHub Desktop.
Save w4ilun/68d032b82993812a0a883ae992b6e696 to your computer and use it in GitHub Desktop.
RealTek WiFi rtl8723be driver installation
sudo apt-get install linux-headers-generic build-essential git
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install
sudo modprobe rtl8723be
ifconfig wlp2s0 up
@orimdominic
Copy link

Yeah. Solved mine too, although I don't remember the solution @LazyCodes

@lazyCodes7
Copy link

ok cool nice to hear that

@ravi9000
Copy link

git clone https://github.com/lwfinger/rtlwifi_new.git
repo not found.!

@ravi9000
Copy link

git clone https://github.com/lwfinger/rtlwifi_new.git
repo not found.!

hi i'm also getting same error...how can u resolved it...

@ravibeli
Copy link

Me too. Repo not found error. Looks like that repo no more exists.
If anyone found solution for this finally. I am still looking for steps to fix it.

@gokul4127
Copy link

i have also same problem my hp lap driver name is RTL8111/8167/8411 and i facing problem on wifi connection so i tried to install driver by using command git clone https://github.com/lwfinger/rtlwifi_new.git but it shows repo not found ... is there any alternate solution available

@vishalk663
Copy link

i have also facing same problem as @gokul4127

@lazyCodes7
Copy link

https://github.com/silenoth/rtlwifi_new-extended. Follow the README of this repo, it might help you.

@heavyrahul
Copy link

@lazyCodes7 Thanks It working for me
I am using following commands
git clone https://github.com/silenoth/rtlwifi_new-extended
mv rtlwifi_new-extended rtlwifi_new
cd rtlwifi_new/
sudo make install
sudo modprobe -r rtl8723de
sudo modprobe rtl8723de
Wi fi is working again

@lazyCodes7
Copy link

wilkommen @heavyrahul

@heavyrahul
Copy link

heavyrahul commented Jul 17, 2020

https://github.com/silenoth/rtlwifi_new-extended. Follow the README of this repo, it might help you.

Please use following Steps

git clone https://github.com/silenoth/rtlwifi_new-extended
mv rtlwifi_new-extended rtlwifi_new
cd rtlwifi_new/
sudo make install
sudo modprobe -r rtl8723de
sudo modprobe rtl8723de

@vishalk663
Copy link

@lazyCodes7
my os is ubuntu 18.04.04 LTS bionic
I got below issue

/opt/rtlwifi_new/rc.c: In function ‘rtl_get_rate’:
/opt/rtlwifi_new/rc.c:191:6: error: implicit declaration of function ‘rate_control_send_low’; did you mean ‘rate_control_set_rates’? [-Werror=implicit-function-declaration]
if (rate_control_send_low(sta, priv_sta, txrc))
^~~~~~~~~~~~~~~~~~~~~
rate_control_set_rates
/opt/rtlwifi_new/rc.c: At top level:
/opt/rtlwifi_new/rc.c:339:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.alloc = rtl_rate_alloc,
^~~~~~~~~~~~~~

@vishalk663
Copy link

my issue is resolved using this github code
https://github.com/smlinux/rtl8723de.git

@lazyCodes7
Copy link

nice to hear @vishalk663

@yogi1098
Copy link

https://github.com/smlinux/rtl8723de
i cloned this repo and followed README. For you it could be a different driver just check using lspci

It worked in my system perfectly. Thank you so much

@samsharpy
Copy link

using ubuntu 18.04 during "sudo make install "
geting this error

home/dell/rtlwifi_new/rtl8821ae/hw.c: In function ‘_rtl8821ae_mrate_idx_to_arfr_id’:
/home/dell/rtlwifi_new/rtl8821ae/hw.c:3453:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
ret = 7;
~~~~^~~
/home/dell/rtlwifi_new/rtl8821ae/hw.c:3454:2: note: here
case RATR_INX_WIRELESS_AC_5N:
^~~~
CC [M] /home/dell/rtlwifi_new/rtl8821ae/led.o
CC [M] /home/dell/rtlwifi_new/rtl8821ae/phy.o
/home/dell/rtlwifi_new/rtl8821ae/phy.c: In function ‘_rtl8812ae_phy_set_rfe_reg_24g’:
/home/dell/rtlwifi_new/rtl8821ae/phy.c:389:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (rtlpriv->btcoexist.bt_coexistence) {
^
/home/dell/rtlwifi_new/rtl8821ae/phy.c:397:2: note: here
case 0:
^~~~
CC [M] /home/dell/rtlwifi_new/rtl8821ae/pwrseq.o
CC [M] /home/dell/rtlwifi_new/rtl8821ae/rf.o
CC [M] /home/dell/rtlwifi_new/rtl8821ae/sw.o
CC [M] /home/dell/rtlwifi_new/rtl8821ae/table.o
CC [M] /home/dell/rtlwifi_new/rtl8821ae/trx.o
LD [M] /home/dell/rtlwifi_new/rtl8821ae/rtl8821ae.o
CC [M] /home/dell/rtlwifi_new/rtl8822be/fw.o
CC [M] /home/dell/rtlwifi_new/rtl8822be/hw.o
CC [M] /home/dell/rtlwifi_new/rtl8822be/led.o
CC [M] /home/dell/rtlwifi_new/rtl8822be/phy.o
CC [M] /home/dell/rtlwifi_new/rtl8822be/sw.o
CC [M] /home/dell/rtlwifi_new/rtl8822be/trx.o
LD [M] /home/dell/rtlwifi_new/rtl8822be/rtl8822be.o
CC [M] /home/dell/rtlwifi_new/base.o
CC [M] /home/dell/rtlwifi_new/cam.o
CC [M] /home/dell/rtlwifi_new/core.o
CC [M] /home/dell/rtlwifi_new/debug.o
CC [M] /home/dell/rtlwifi_new/efuse.o
CC [M] /home/dell/rtlwifi_new/ps.o
CC [M] /home/dell/rtlwifi_new/rc.o
/home/dell/rtlwifi_new/rc.c: In function ‘rtl_get_rate’:
/home/dell/rtlwifi_new/rc.c:191:6: error: implicit declaration of function ‘rate_control_send_low’; did you mean ‘rate_control_set_rates’? [-Werror=implicit-function-declaration]
if (rate_control_send_low(sta, priv_sta, txrc))
^~~~~~~~~~~~~~~~~~~~~
rate_control_set_rates
/home/dell/rtlwifi_new/rc.c: At top level:
/home/dell/rtlwifi_new/rc.c:339:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.alloc = rtl_rate_alloc,
^~~~~~~~~~~~~~
/home/dell/rtlwifi_new/rc.c:339:11: note: (near initialization for ‘rtl_rate_ops.alloc’)
cc1: some warnings being treated as errors
scripts/Makefile.build:273: recipe for target '/home/dell/rtlwifi_new/rc.o' failed
make[2]: *** [/home/dell/rtlwifi_new/rc.o] Error 1
Makefile:1731: recipe for target '/home/dell/rtlwifi_new' failed
make[1]: *** [/home/dell/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
Makefile:87: recipe for target 'all' failed
make: *** [all] Error 2

@lazyCodes7

@xtrator
Copy link

xtrator commented Jul 23, 2020

ubuntu 20.04 lts rtl8821ae and getting this problem please halp im just a noob....

make -C /lib/modules/5.4.0-42-generic/build M=/home/alexander/rtlwifi_new-extended modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-42-generic'
CC [M] /home/alexander/rtlwifi_new-extended/rc.o
/home/alexander/rtlwifi_new-extended/rc.c: In function ‘rtl_get_rate’:
/home/alexander/rtlwifi_new-extended/rc.c:191:6: error: implicit declaration of function ‘rate_control_send_low’; did you mean ‘rate_control_set_rates’? [-Werror=implicit-function-declaration]
191 | if (rate_control_send_low(sta, priv_sta, txrc))
| ^~~~~~~~~~~~~~~~~~~~~
| rate_control_set_rates
/home/alexander/rtlwifi_new-extended/rc.c: At top level:
/home/alexander/rtlwifi_new-extended/rc.c:339:11: error: initialization of ‘void * (*)(struct ieee80211_hw )’ from incompatible pointer type ‘void * ()(struct ieee80211_hw *, struct dentry *)’ [-Werror=incompatible-pointer-types]
339 | .alloc = rtl_rate_alloc,
| ^~~~~~~~~~~~~~
/home/alexander/rtlwifi_new-extended/rc.c:339:11: note: (near initialization for ‘rtl_rate_ops.alloc’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /home/alexander/rtlwifi_new-extended/rc.o] Error 1
make[1]: *** [Makefile:1731: /home/alexander/rtlwifi_new-extended] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
make: *** [Makefile:87: all] Error 2

@lazyCodes7
Copy link

once type ls in whatever directory you are executing the make command and see if there is a README. And check out if there is some steps.For me once this type of issue happened.

@Vinceent
Copy link

@xtrator
I had the same issue but following these steps helped: https://askubuntu.com/a/1238017/993667

@xtrator
Copy link

xtrator commented Jul 23, 2020

@Vinceent
Is it alright if I install a rtl8723de driver even though my wireless device is rtl8821ae? asking truthfully

@xtrator
Copy link

xtrator commented Jul 29, 2020

@Vinceent
Alright I grew some balls and I've recovered my wifi strength. although I am still having the lag spikes from time to time.

@vikram-bais
Copy link

@lazyCodes7 Thanks It working for me
I am using following commands
git clone https://github.com/silenoth/rtlwifi_new-extended
mv rtlwifi_new-extended rtlwifi_new
cd rtlwifi_new/
sudo make install
sudo modprobe -r rtl8723de
sudo modprobe rtl8723de
Wi fi is working again

Its working for me, thank you so much

@Qammarbhat
Copy link

git clone https://github.com/lwfinger/rtlwifi_new.git
repo not found.!

I think they deleted the repo. Did you find any other solution if yes please share the link. Than
you in advance

@Aryan2601
Copy link

git clone https://github.com/lwfinger/rtlwifi_new.git
repo not found.!

I think they deleted the repo. Did you find any other solution if yes please share the link. Than
you in advance

I think this can Work https://github.com/rtlwifi-linux/rtlwifi_new

@ghodki99
Copy link

Install: "it worked for me"

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

@ajitamishra
Copy link

my issue is resolved using this github code
https://github.com/smlinux/rtl8723de.git

Thanks it worked for me

@vishal-mewada
Copy link

ake[3]: *** [scripts/Makefile.build:290: /home/vishal/Desktop/rtlwifi_new/rtl8822be/trx.o] Error 1
make[2]: *** [scripts/Makefile.build:519: /home/vishal/Desktop/rtlwifi_new/rtl8822be] Error 2
make[1]: *** [Makefile:1780: /home/vishal/Desktop/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-28-generic'
make: *** [Makefile:87: all] Error 2

I an also get this problem

@shivasm
Copy link

shivasm commented Feb 22, 2021

sudo git clone https://github.com/lwfinger/rtlwifi_new.git
Cloning into 'rtlwifi_new'...
Username for 'https://github.com':

I am getting this result and I entered my credensials og git then also it is not taking

@rv0x00
Copy link

rv0x00 commented Feb 19, 2022

I was going through the same trouble and this solution worked for me.

https://connectwww.com/how-to-solve-realtek-rtl8723be-weak-wifi-signal-problem-in-ubuntu/4625/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment