Wednesday, 5 July 2017

Ubuntu 16.04 Realtek rtl8822be WiFi Problem, No WiFi after Installation

Thanks for the comments. I searched for a Chinese post and have the driver installed.

http://blog.csdn.net/xingce_cs/article/details/76851087 (if you can read Chinese)

Key steps:

sudo apt update sudo apt install git git clone https://github.com/rtlwifi-linux/rtlwifi-next cd rtlwifi-next make sudo make install sudo modprobe rtl8822be
Restart~

20180319 additional info

After some updates, wifi of this poor laptop down again. Check the err msg "RX_FLAG_40MHZ" undeclared, we find Possible issue with new kernels #247, so instead of the original git address, using

git clone https://github.com/synthtc/rtlwifi-next

Same steps after that, build and install. Make sure that your system is up-to-date then proceed. Hope this driver problem can be solved by official release soon..

20181017
if you have met the following err msg

error: ‘NUM_NL80211_BANDS’ undeclared here (not in a function)

https://ubuntuforums.org/showthread.php?t=2382631

check this link and we got

The second can't compile without making a little change in the source code. The change is to add the line
#define IEEE80211_NUM_BANDS NUM_NL80211_BANDS
in two files: 
----in wifi.h after
#ifndef __RTL_WIFI_H__
#define __RTL_WIFI_H__
and before #include lines

---in base.c before #include lines

-----Original Post----------

Seems this is a very common problem. After my fresh installation, good thing is that Nvidia did not give me much problem.

This is time goes to WiFi...

Some people suggest if no wifi when PC awake from hibernation, We could simply restart it.

sudo service network-manager restart
This definitely doesn't work for my case.


Firstly, we need to find out our more details of our wifi adapter.

sudo lshw -class network

Product and vendor: Realtek Semiconductor Co., Ltd. So we should google for corresponding solutions. Skip the post or videos working on Broadcom problems. Because in my Software & Updates dialogue, the Additional Drivers tab, there is no Broadcom items. In my case, only Unknown besides Nvidia.

If your Realtek adapter is rtl8723be, you could follow the steps shown in the video. I tried to follow the steps also.

If you execute

sudo airmon-ng

command not found. Try to install aircrack. Mentioned in the comments.

sudo apt-get install aircrack-ng

Then problem comes. when execute suds arimon-ng, It does not give me any info. Login to windows and checked the type of my realtek is rtl8822be, from the official website we know that this is a 802.11ac/abgn PCIe WLAN with Bluetooth 4.1 Single-Chip Controller.
Seems my rtl8822be is too new to be recognized by the ubuntu system...

Now google
ubuntu 16.04 + "rtl8822" + driver

This time the results are not so off the target.

https://askubuntu.com/questions/926364/how-to-make-my-pci-wifi-card-rtl8822-working-on-ubuntu#

So excited that someone has the same problem on the same brand new HP omen..

Hints from the comments that I should upgrade the linux firmware.

Check this page
https://launchpad.net/ubuntu/+source/linux-firmware/1.161

Ok, it mentioned that
rtl_bt: Add firmware and config file for RTL8822BE
Lets download the .deb and install...

seems the blue tooth is working now but nothing happens to the wifi -_-!

Install linux firmware 1.167, still no wifi.. So do not know what to do and stops here.. waiting for the new official updates.




8 comments:

  1. https://github.com/rtlwifi-linux/rtlwifi-next

    You can find a driver here

    ReplyDelete
    Replies
    1. Thanks! working properly now

      Delete
    2. The same problem for me i use kali linux but the wifi not work 😫

      Delete
    3. Pity.. Have you tried the github rtlwifi repo?

      Delete
  2. How do I get it to install through that repo. I used the make command and it gave me errors...

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. https://www.cyberciti.biz/faq/howto-install-kernel-headers-package/

      Delete
    3. I have updated the post. You'd better give you err msg

      Delete