Skip to content

Instantly share code, notes, and snippets.

@w4ilun
Last active Sep 8, 2021
Embed
What would you like to do?
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
@barbararusso

This comment has been minimized.

Copy link

@barbararusso barbararusso commented Oct 14, 2017

Sorry, when I type:

sudo apt-get install linux-headers-generic build-essential git

I get the following message:

Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-generic' has no installation candidate

Please, can someone tell me what's wrong!

@pmmidhunpam

This comment has been minimized.

Copy link

@pmmidhunpam pmmidhunpam commented Jul 7, 2020

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

@lazyCodes7

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 8, 2020

i am also getting repo not found after git clone https://github.com/lwfinger/rtlwifi_new.git

@srvadmit

This comment has been minimized.

Copy link

@srvadmit srvadmit commented Jul 8, 2020

@lazyCodes7

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 8, 2020

for me the network connector was rtl8723de when i checked using lspci under network connector. so i cloned the repo for it and did it as repo said and now my wifi is up finally. I am a newbie so i don't know much but this way worked for me.

@vaishnavinambiar

This comment has been minimized.

Copy link

@vaishnavinambiar vaishnavinambiar commented Jul 9, 2020

for me the network connector was rtl8723de when i checked using lspci under network connector. so i cloned the repo for it and did it as repo said and now my wifi is up finally. I am a newbie so i don't know much but this way worked for me.

can you share the steps?

@lazyCodes7

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 9, 2020

i used lspci command and then i copied the name of the network connector and pasted it on google based on which I found some site that supported the driver i wanted and then i installed it

@lazyCodes7

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 9, 2020

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

@sudo-kaizen

This comment has been minimized.

Copy link

@sudo-kaizen sudo-kaizen commented Jul 12, 2020

@pmmidhunpam @srvadmit @lazyCodes7

Have you been able to solve that problem?

@lazyCodes7

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 12, 2020

i have been able to solve mine. Check my last comment

@sudo-kaizen

This comment has been minimized.

Copy link

@sudo-kaizen sudo-kaizen commented Jul 12, 2020

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

@lazyCodes7

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 13, 2020

ok cool nice to hear that

@ravi9000

This comment has been minimized.

Copy link

@ravi9000 ravi9000 commented Jul 13, 2020

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

@ravi9000

This comment has been minimized.

Copy link

@ravi9000 ravi9000 commented Jul 13, 2020

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

This comment has been minimized.

Copy link

@ravibeli ravibeli commented Jul 14, 2020

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

This comment has been minimized.

Copy link

@gokul4127 gokul4127 commented Jul 14, 2020

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

This comment has been minimized.

Copy link

@vishalk663 vishalk663 commented Jul 17, 2020

i have also facing same problem as @gokul4127

@lazyCodes7

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 17, 2020

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

@heavyrahul

This comment has been minimized.

Copy link

@heavyrahul heavyrahul commented Jul 17, 2020

@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

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 17, 2020

wilkommen @heavyrahul

@heavyrahul

This comment has been minimized.

Copy link

@heavyrahul 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

This comment has been minimized.

Copy link

@vishalk663 vishalk663 commented Jul 17, 2020

@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

This comment has been minimized.

Copy link

@vishalk663 vishalk663 commented Jul 17, 2020

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

@lazyCodes7

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 18, 2020

nice to hear @vishalk663

@yogi1098

This comment has been minimized.

Copy link

@yogi1098 yogi1098 commented Jul 18, 2020

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

This comment has been minimized.

Copy link

@samsharpy samsharpy commented Jul 22, 2020

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

This comment has been minimized.

Copy link

@xtrator 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

This comment has been minimized.

Copy link

@lazyCodes7 lazyCodes7 commented Jul 23, 2020

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

This comment has been minimized.

Copy link

@Vinceent Vinceent commented Jul 23, 2020

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

@xtrator

This comment has been minimized.

Copy link

@xtrator 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

This comment has been minimized.

Copy link

@xtrator 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

This comment has been minimized.

Copy link

@ViKrAm-Bais ViKrAm-Bais commented Aug 7, 2020

@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

This comment has been minimized.

Copy link

@Qammarbhat Qammarbhat commented Aug 10, 2020

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

This comment has been minimized.

Copy link

@Aryan2601 Aryan2601 commented Aug 15, 2020

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

This comment has been minimized.

Copy link

@ghodki99 ghodki99 commented Aug 23, 2020

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

This comment has been minimized.

Copy link

@ajitamishra ajitamishra commented Sep 9, 2020

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

Thanks it worked for me

@vishal-mewada

This comment has been minimized.

Copy link

@vishal-mewada vishal-mewada commented Dec 13, 2020

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

This comment has been minimized.

Copy link

@shivasm 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

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