Realtek wlan linux driver

Realtek wlan linux driver

2019-07-11: Updated to compile against kernel 5.2

Realtek 802.11ac (rtl8812au)

This is a fork of the Realtek 802.11ac (rtl8812au) v4.2.2 (7502.20130507) driver altered to build on Linux kernel version >= 3.10.

My D-Link DWA-171 wireless dual-band USB adapter needs the Realtek 8812au driver to work under Linux.

The current rtl8812au version (per nov. 20th 2013) doesn’t compile on Linux kernels >= 3.10 due to a change in the proc entry API, specifically the deprecation of the create_proc_entry() and create_proc_read_entry() functions in favor of the new proc_create() function.

The Makefile is preconfigured to handle most x86/PC versions. If you are compiling for something other than an intel x86 architecture, you need to first select the platform, e.g. for the Raspberry Pi, you need to set the I386 to n and the ARM_RPI to y:

There are many other platforms supported and some other advanced options, e.g. PCI instead of USB, but most won’t be needed.

The driver is built by running make , and can be tested by loading the built module using insmod :

After loading the module, a wireless network interface named Realtek 802.11n WLAN Adapter should be available.

Installing the driver is simply a matter of copying the built module into the correct location and updating module dependencies using depmod :

The driver module should now be loaded automatically.

Automatically rebuilds and installs on kernel updates. DKMS is in official sources of Ubuntu, for installation do:

Источник

Realtek wlan linux driver

Realtek RTL8811CU/RTL8821CU USB wifi adapter driver version 5.4.1 for Linux 4.4.x up to 5.x

Before build this driver make sure make , gcc , linux-header / kernel-devel , bc and git have been installed.

First, clone this repository

Check the name of the interface

Check the interface name of your wifi adapter using ifconfig . Usually, it will be wlan0 by default, but it may vary depends on the kernel and your device. On Ubuntu, for example, it may be named as wlx + MAC address. (https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/)

If this is the case, you can either disable the feature following the link above, or replace the name used in the driver by

Build and install with DKMS

DKMS is a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated. To make use of DKMS, install the dkms package.

To make use of the DKMS feature with this project, just run:

Читайте также:  Ошибка диска при установке linux

If you later on want to remove it, run:

Plug your USB-wifi-adapter into your PC

If wifi can be detected, congratulations. If not, maybe you need to switch your device usb mode by the following steps in terminal:

  1. find your usb-wifi-adapter device ID, like «0bda:1a2b», by type:
  1. switch the mode by type: (the device ID must be yours.)

Need install usb_modeswitch (Archlinux: sudo pacman -S usb_modeswitch )

Make it permanent

If steps above worked fine and in order to avoid periodically having to make usb_modeswitch you can make it permanent (Working in Ubuntu 18.04 LTS):

Edit usb_modeswitch rules:

Append before the end line LABEL=»modeswitch_rules_end» the following:

Make sure to set your ATTR and the -v argument to the left portion of the output of lsusb device ID, and your ATTR and -p argument to the right portion of the lsusb device ID. For example (for the Cudy AC600 usb wifi adapter) the output from lsusb command looks like this:

then your configuration in /lib/udev/rules.d/40-usb_modeswitch.rules should be

Build and install without DKMS

Use following commands:

If you later on want to remove it, do the following:

Checking installed driver

If you successfully install the driver, the driver is installed on /lib/modules/
/kernel/drivers/net/wireless/realtek/rtl8821cu . Check the driver with the ls command:

Make sure 8821cu.ko file present on that directory

Check with DKMS (if installing via DKMS):

sudo dkms status

ARM architecture tweak for this driver (this solves compilation problem of this driver):

Use the tool ‘iw’, please don’t use other tools like ‘airmon-ng’

About

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux

Источник

Install Realtek d723 WiFi driver for GNU/Linux

I’ve been doing a lot of Linux Mint installations lately and one very annoying thing that I found in 2 laptops was the non availability of WiFi driver. Apparently, it’s a new hardware and is not in the Linux kernel.

The hardware is Realtek device d723 . This new WiFi hardware is being shipped in new PCs and laptops now. Without having the internet, one can’t do almost anything. So it’s important to have this fixed up.

UPDATE : Added a new method to make it work on Ubuntu 18.04 LTS

If method 1 doesn’t work for you, try method 2 or method 3.

Getting Internet

We need a temporary internet connection to fix WiFi. Ways to connect :

  • Connect USB cable and use USB Tethering in your phone to connect your computer to the internet (through phone’s cellular data/WiFi)
  • Use wired ethernet cable for connecting to internet

Finding Device

Open a terminal and do the command lspci . You will see all the PCI devices of your system. If you have the d723 device, you can see it at the bottom :

Читайте также:  Приложения автозапуска windows 10 как отключить

Or to quickly know if you have the d723 WiFi hardware, do :

Prerequisite

You should install the corresponding header of your kernel :

Next, install the packages necessary for building :

Method 1

This is the RECOMMENDED METHOD because in future, when kernel is updated, the installed driver will be automatically compiled to make it work in newer kernel.

To simplify everything, run the following commands one by one :

Restart your computer. And you’ll get your WiFi !

Method 2

To simplify everything, run the following commands one by one :

What the commands does is download the GitHub repository (extended branch) with wget . If your system doesn’t have wget , install it :

After that, the downloaded zip file is extracted with unzip . Then inside the extracted folder, the drivers are compiled and installed with make & make install

After that the drivers are enabled using the modprobe command with sudo .

PS : Thanks to Bruno Loy for confirming that this works !

Method 3

smlinux has made a driver for d723 . Compiling it and installing it will help you connect to WiFi.

First step is to identify the version of your Linux kernel :

The driver is different according to the Linux kernel version. Only the driver to download will vary. Rest of the installation steps are the same.

Download

Now according to the kernel version download the driver :

4.11 and up

If the Linux kernel version is 4.11 or greater (>=4.11), then download this file :

4.10 and down

If the Linux kernel version is 4.10 or below ( /etc/rc.local :

Replace gedit above with whatever text editor you have.

Then, in that file add :

Replace ant_sel=1 above with the one that worked for you. Either ‘1’ or ‘2’.

Источник

Как установить драйвер Wi-Fi для Realtek RTL8821CE в Ubuntu 18.04?

Я пытаюсь установить драйверы для моего Wi-Fi на моем рабочем столе HP All-in-one. Мне сказали показать вывод команды «sudo lshw -C network», вот она:

Вывод из «lspci -nnk | grep -A2 0280»:

2 ответа

(Этот вопрос является дубликатом Wi-Fi, который не работает на Lenovo ThinkPad E570 (Realtek RTL8821CE), но я был рад, что в итоге мы нашли решение, поэтому напишу, что сработало для Haz.)

Насколько я могу судить, на момент написания этой статьи в официальных репозиториях Ubuntu еще не было Wifi Driver для Realtek RTL8821CE.

На github есть репозиторий с драйвером RTL8821CE, предназначенный для ядер 4.14 и выше и специально для Arch Linux, без поддержки других дистрибутивов Linux: https://github.com/tomaspinho/rtl8821ce

(Незначительное замечание: по состоянию на февраль 2019 года tomaspinho, к сожалению, больше не может поддерживать драйвер, поскольку у него больше нет доступа к компьютеру с этим чипсетом, и поэтому может потребоваться новый сопровождающий, но драйвер по-прежнему работает с Ubuntu 18.04 по состоянию на то время.)

Читайте также:  Windows setup master что это

Однако, как сообщается, он прекрасно работает с Ubuntu 18.04.

Решение взято непосредственно из поста № 4 Praseodym: https://ubuntuforums.org/showthread.php?t=2398917 и установит несколько пакетов для сборки модуля драйвера wifi (git, dkms, build-essential & linux). -headers) и клонировать репозиторий git из tomaspinho.

DKMS используется потому, что это «система, которая автоматически перекомпилирует и устанавливает модуль ядра при установке или обновлении нового ядра».

Откройте терминал и введите следующие строки (Вы можете вырезать и вставить, если хотите):

После того, как это успешно завершено, вы должны перезагрузиться и обнаружить, что ваш Wi-Fi работает.

Вы также хотите убедиться, что SecureBoot отключен в настройках BIOS, иначе он не позволит вам загрузить неподписанный модуль самодостаточного ядра.

Источник

Realtek wlan linux driver

REALTEK RTL88x2B USB Linux Driver

Current Driver Version: 5.8.7.4
Support Kernel: 2.6.24

5.14 (with unofficial patches)

Official release note please check ReleaseNotes.pdf

Note: if you believe your device is RTL8812BU or RTL8822BU but after loaded the module no NIC shows up, the device ID maybe not in the driver whitelist. In this case please submit a new issue with lsusb result, and your device name, brand, website, etc.

  • ASUS AC1300 USB-AC55 B1
  • ASUS U2
  • ASUS USB-AC58
  • Dlink — DWA-181
  • Dlink — DWA-182
  • Edimax EW-7822ULC
  • Edimax EW-7822UTC
  • Edimax EW-7822UAD
  • NetGear A6150
  • TP-Link Archer T3U
  • TP-Link Archer T3U Plus
  • TP-Link Archer T4U V3
  • TP-Link Archer T4U PLus
  • TRENDnet TEW-808UBM

How to use this kernel module

  • Ensure you have C compiler & toolchains, e.g. build-essential for Debian/Ubuntu, base-devel for Arch, etc.
  • Make sure you have installed the corresponding kernel headers
  • All commands need to be run in the driver directory
  • You need rebuild the kernel module everytime you update/change the kernel if you are not using DKMS
  • Make sure you cleaned old build files before builds new one

Building module for current running kernel

Building module for other kernels

Manual DKMS installation

You can try use modprobe 88x2bu rtw_switch_usb_mode=1 to force the adapter run under USB 3.0. But if your adapter/port/motherboard not support it, the driver will be in restart loop. Remove the parameter and reload the driver to restore. Alternatively, modprobe 88x2bu rtw_switch_usb_mode=2 let’s it run as USB 2 device.

Notice: If you had already loaded the moduel, use modprobe -r 88x2bu to unload it first.

If you want to force a given mode permanently (even when switching the adapter across devices), create the file /etc/modprobe.d/99-RTL88x2BU.conf with the following content: options 88x2bu rtw_switch_usb_mode=1

Set debug log use echo 5 > /proc/net/rtl88x2bu/log_level or modprobe 88x2bu rtw_drv_log_level=5

Источник

Оцените статью