Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 42

Thread: Unsupported wireless device RTL8822BE on Ubuntu 16.04

  1. #21
    Join Date
    Sep 2017
    Beans
    1

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    Hi everyone,

    It's just to say that we found a solution for this wifi card using ubuntu 16.04 (the link is in french, https://forum.ubuntu-fr.org/viewtopic.php?id=2018167 ). Two persons have this card with ubuntu 16.04, the first one can compile with
    sudo apt install build-essential git
    git clone https://github.com/rtlwifi-linux/rtlwifi-next
    cd rtlwifi-next
    make
    sudo make install
    sudo modprobe rtl8822be
    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

    After, we can compile (i used 4.4.0-101) and wifi works.

    At this time, bluetooth doesn't work, and wifi doesn't work with ubuntu 17.10. Maybe forks of
    https://github.com/rtlwifi-linux/rtlwifi-next
    can solve this problem.

  2. #22
    Join Date
    Jun 2016
    Beans
    1

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    I just got this working, it is fairly easy all up (after googling etc.)


    1. Install the latest 4.14 kernel with the driver code, (from the instructions [here](http://ubuntuhandbook.org/index.php/...tu-linux-mint/))


    wget http://kernel.ubuntu.com/~kernel-ppa...122031_all.deb


    wget http://kernel.ubuntu.com/~kernel-ppa...2031_amd64.deb


    wget http://kernel.ubuntu.com/~kernel-ppa...2031_amd64.deb


    sudo dpkg -i linux*.deb


    2. Download the `rtl8822befw.bin` firmware file from [here](https://github.com/wkennington/linux...tl8822befw.bin).


    3. Save it in `/lib/firmware/rtfwifi`.


    4. Reboot.


    Enjoy


    Please note that this driver is still in staging at the moment, so use at your own risk!

  3. #23
    Join Date
    Feb 2018
    Beans
    1

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    You are a life-saver!

    Quote Originally Posted by nick-hems View Post
    I just got this working, it is fairly easy all up (after googling etc.)


    1. Install the latest 4.14 kernel with the driver code, (from the instructions [here](http://ubuntuhandbook.org/index.php/...tu-linux-mint/))


    wget http://kernel.ubuntu.com/~kernel-ppa...122031_all.deb


    wget http://kernel.ubuntu.com/~kernel-ppa...2031_amd64.deb


    wget http://kernel.ubuntu.com/~kernel-ppa...2031_amd64.deb


    sudo dpkg -i linux*.deb


    2. Download the `rtl8822befw.bin` firmware file from [here](https://github.com/wkennington/linux...tl8822befw.bin).


    3. Save it in `/lib/firmware/rtfwifi`.


    4. Reboot.


    Enjoy


    Please note that this driver is still in staging at the moment, so use at your own risk!

  4. #24
    Join Date
    Dec 2006
    Beans
    345
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    I know this thread is about 16.04, but just to let you know, RTL8822BE works out of the box in 18.04 (alpha daily build), and works quite well. Something to look forward to in the next release.

    Just note that Secure Boot needs to be disabled or the driver module won't get loaded, due to missing a required key.

  5. #25
    Join Date
    Mar 2018
    Beans
    1

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    worked for me too on Lenovo E480! Thx alot, really really thx!

  6. #26
    Join Date
    Mar 2018
    Beans
    5

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    Hello All,

    I have Ubuntu 16.04 with kernel 4.15.8-041508-generic and my secure boot is disabled

    Here is my lspci -nnk output
    Code:
    04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter [10ec:b822] (rev ff)
        Kernel driver in use: r8822be
        Kernel modules: r8822be
    05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
        Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:5066]
        Kernel driver in use: r8169
        Kernel modules: r8169
    I do not see wifi
    or enable wifi under enable networking after clicking the internet symbol on the top right corner

    I tried this method and it worked for me before until recently. I had to reinstall my ubuntu due to nvidia driver installation disaster. my id is juichung_kuo in this thread.
    https://askubuntu.com/questions/8640...-disconnecting

    I also tried these instructions in one of 4.15.x kernet and it worked once, but after reinstalling ubuntu it stopped working and I have not been able to get this to work
    2. Download the `rtl8822befw.bin` firmware file from [here](https://github.com/wkennington/linux...tl8822befw.bin).

    3. Save it in `/lib/firmware/rtlwifi`.

    4. Reboot.
    I tried putting the rtl8822befw.bin while the 8821ce is installed and not installed, there was no difference.

    For the rtlwifi-next method, i get the following error. At first, I thought it was the same error as the timer error in the endless driver, but the function calls are different.
    Code:
    jkuo@jkuo-pc:~/rtlwifi-next$ make
    make -C /lib/modules/4.15.8-041508-generic/build M=/home/jkuo/rtlwifi-next modules
    make[1]: Entering directory '/usr/src/linux-headers-4.15.8-041508-generic'
    Makefile:941: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
      CC [M]  /home/jkuo/rtlwifi-next/base.o
    /home/jkuo/rtlwifi-next/base.c: In function ‘_rtl_init_deferred_work’:
    /home/jkuo/rtlwifi-next/base.c:460:2: error: implicit declaration of function ‘setup_timer’ [-Werror=implicit-function-declaration]
      setup_timer(&rtlpriv->works.watchdog_timer,
      ^
    /home/jkuo/rtlwifi-next/base.c: In function ‘rtl_check_beacon_key’:
    /home/jkuo/rtlwifi-next/base.c:2360:48: warning: ‘ht_cap_ie’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       bcn_key.ht_cap_info = __le16_to_cpu(ht_cap_ie->cap_info);
                                                    ^
    cc1: some warnings being treated as errors
    scripts/Makefile.build:316: recipe for target '/home/jkuo/rtlwifi-next/base.o' failed
    make[2]: *** [/home/jkuo/rtlwifi-next/base.o] Error 1
    Makefile:1515: recipe for target '_module_/home/jkuo/rtlwifi-next' failed
    make[1]: *** [_module_/home/jkuo/rtlwifi-next] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-4.15.8-041508-generic'
    Makefile:100: recipe for target 'all' failed
    make: *** [all] Error 2
    Does anyone have any clue?
    Thanks,
    JC

  7. #27
    Join Date
    Mar 2018
    Beans
    1

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    Worked for me too in HP Envy 17t, thanks nick-hems!

  8. #28
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    24,268
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    Quote Originally Posted by raymond30031 View Post
    Hello All,

    I have Ubuntu 16.04 with kernel 4.15.8-041508-generic and my secure boot is disabled

    Here is my lspci -nnk output
    Code:
    04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter [10ec:b822] (rev ff)
        Kernel driver in use: r8822be
        Kernel modules: r8822be
    05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
        Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:5066]
        Kernel driver in use: r8169
        Kernel modules: r8169
    I do not see wifi
    or enable wifi under enable networking after clicking the internet symbol on the top right corner

    I tried this method and it worked for me before until recently. I had to reinstall my ubuntu due to nvidia driver installation disaster. my id is juichung_kuo in this thread.
    https://askubuntu.com/questions/8640...-disconnecting

    I also tried these instructions in one of 4.15.x kernet and it worked once, but after reinstalling ubuntu it stopped working and I have not been able to get this to work


    I tried putting the rtl8822befw.bin while the 8821ce is installed and not installed, there was no difference.

    For the rtlwifi-next method, i get the following error. At first, I thought it was the same error as the timer error in the endless driver, but the function calls are different.
    Code:
    jkuo@jkuo-pc:~/rtlwifi-next$ make
    make -C /lib/modules/4.15.8-041508-generic/build M=/home/jkuo/rtlwifi-next modules
    make[1]: Entering directory '/usr/src/linux-headers-4.15.8-041508-generic'
    Makefile:941: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
      CC [M]  /home/jkuo/rtlwifi-next/base.o
    /home/jkuo/rtlwifi-next/base.c: In function ‘_rtl_init_deferred_work’:
    /home/jkuo/rtlwifi-next/base.c:460:2: error: implicit declaration of function ‘setup_timer’ [-Werror=implicit-function-declaration]
      setup_timer(&rtlpriv->works.watchdog_timer,
      ^
    /home/jkuo/rtlwifi-next/base.c: In function ‘rtl_check_beacon_key’:
    /home/jkuo/rtlwifi-next/base.c:2360:48: warning: ‘ht_cap_ie’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       bcn_key.ht_cap_info = __le16_to_cpu(ht_cap_ie->cap_info);
                                                    ^
    cc1: some warnings being treated as errors
    scripts/Makefile.build:316: recipe for target '/home/jkuo/rtlwifi-next/base.o' failed
    make[2]: *** [/home/jkuo/rtlwifi-next/base.o] Error 1
    Makefile:1515: recipe for target '_module_/home/jkuo/rtlwifi-next' failed
    make[1]: *** [_module_/home/jkuo/rtlwifi-next] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-4.15.8-041508-generic'
    Makefile:100: recipe for target 'all' failed
    make: *** [all] Error 2
    Does anyone have any clue?
    Thanks,
    JC
    Please try this instead: https://github.com/lwfinger/rtlwifi_...e/extended.zip

    Post back if you need a step-by-step.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  9. #29
    Join Date
    Mar 2018
    Beans
    5

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    Quote Originally Posted by chili555 View Post
    Please try this instead: https://github.com/lwfinger/rtlwifi_...e/extended.zip

    Post back if you need a step-by-step.
    So to try this extended.zip, I first sudo make uninstall 8821ce and removed the rtl8822befw.bin from the /lib/firmware/rtlwifi
    Then I make and sudo make install the extended driver

    Code:
    jkuo@jkuo-pc:~/Downloads/rtlwifi_new-extended$ sudo make install
    [sudo] password for jkuo: 
    make -C /lib/modules/4.15.8-041508-generic/build M=/home/jkuo/Downloads/rtlwifi_new-extended modules
    make[1]: Entering directory '/usr/src/linux-headers-4.15.8-041508-generic'
    Makefile:941: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
      Building modules, stage 2.
      MODPOST 19 module
    make[1]: Leaving directory '/usr/src/linux-headers-4.15.8-041508-generic'
    Install rtlwifi SUCCESS
    After reboot, I get Wifi-Network Device not ready now.
    output from lspci -nnk.
    I noticed that there are two kernel modules, is the rtl8822be the one installed from the extended?
    Code:
    04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter [10ec:b822]
    	Subsystem: Lenovo Device [17aa:b023]
    	Kernel driver in use: r8822be
    	Kernel modules: r8822be, rtl8822be
    05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
    	Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:5066]
    	Kernel driver in use: r8169
    	Kernel modules: r8169
    What should I do now? What information do you need?
    should I do a clean install and try the extended driver?
    or how do i know if there is a bios update such that the realtek wifi device is whitelisted or not?

    Thanks.
    Last edited by raymond30031; March 14th, 2018 at 10:00 AM.

  10. #30
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    24,268
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Unsupported wireless device RTL8822BE on Ubuntu 16.04

    Quote Originally Posted by raymond30031 View Post
    So to try this extended.zip, I first sudo make uninstall 8821ce and removed the rtl8822befw.bin from the /lib/firmware/rtlwifi
    Then I make and sudo make install the extended driver

    Code:
    jkuo@jkuo-pc:~/Downloads/rtlwifi_new-extended$ sudo make install
    [sudo] password for jkuo: 
    make -C /lib/modules/4.15.8-041508-generic/build M=/home/jkuo/Downloads/rtlwifi_new-extended modules
    make[1]: Entering directory '/usr/src/linux-headers-4.15.8-041508-generic'
    Makefile:941: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
      Building modules, stage 2.
      MODPOST 19 module
    make[1]: Leaving directory '/usr/src/linux-headers-4.15.8-041508-generic'
    Install rtlwifi SUCCESS
    After reboot, I get Wifi-Network Device not ready now.
    output from lspci -nnk.
    I noticed that there are two kernel modules, is the rtl8822be the one installed from the extended?
    Code:
    04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter [10ec:b822]
    	Subsystem: Lenovo Device [17aa:b023]
    	Kernel driver in use: r8822be
    	Kernel modules: r8822be, rtl8822be
    05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
    	Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:5066]
    	Kernel driver in use: r8169
    	Kernel modules: r8169
    What should I do now? What information do you need?
    should I do a clean install and try the extended driver?
    or how do i know if there is a bios update such that the realtek wifi device is whitelisted or not?

    Thanks.
    Let's dig a bit deeper. Please run and post:
    Code:
    lsmod | grep 8822
    dmesg | grep 8822
    I'll bet it wants the firmware that you carefully removed!
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

Page 3 of 5 FirstFirst 12345 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •