Rtl wifi driver linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

License

tomaspinho/rtl8821ce

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Fix incorrect kernel option and add grubby equivalent.

Git stats

Files

Failed to load latest commit information.

README.md

This repository hosts the code for the Arch Linux AUR Package. It’s targeting Linux > 4.14 and is being developed for Arch Linux and Ubuntu 18.10. No support will be provided for other Linux distributions or Linux Kernel versions outside of that range.

The maintainers of this repository are not Realtek employees and are maintaining this repository for their own usage. Further feature development (such as proper power saving, etc.) will not be pursued here, but will be gladly integrated if newer driver sources are provided by Realtek. Use at your own risk.

This driver can be installed using DKMS. This 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.

Make sure you have a proper build environment and dkms installed.

The following steps are required prior to building the driver on Ubuntu/Debian:

sudo apt install bc module-assistant build-essential dkms sudo m-a prepare 

Ubuntu users may also install the prebuilt rtl8821ce-dkms package, an older version of the driver maintained by the Ubuntu MOTU Developers group for bionic, eoan and focal. It has been known to work in cases where the newer driver available here does not. Bugs and issues with that package should be reported at Launchpad rather than here.

Читайте также:  Linux узнать версию bluetooth

Make sure you have the base-devel package group installed before you proceed for the necessary compilation tools.

Dependencies for manual installation on Arch Linux

sudo pacman -Syu linux-headers dkms bc 

If you are running a non-vanilla kernel then install the headers to match the kernel package. Proceed to the section below.

An unofficial Gentoo package is available, using this repository as upstream. It is available from the trolltoo overlay. Gentoo does not use or require dkms for packaged drivers.

# layman -a trolltoo # emerge --ask net-wireless/rtl8821ce-driver 

Manual installation of driver

In order to install the driver open a terminal in the directory with the source code and execute the following command:

Open a terminal window and git clone the repository to your local disk

git clone https://github.com/tomaspinho/rtl8821ce.git cd rtl8821ce 

Then run the removal script:

Make sure you have your local copy of this repository fully updated:

When reporting issues, please make sure that debugging is enabled. To enable debugging either set MAKEFLAGS=»CONFIG_RTW_DEBUG = y» before compilation or edit Makefile:

This will enable verbose debug logging, helpful to developers.

PCIe Active State Power Management

Your distribution may come with PCIe Active State Power Management enabled by default. That may conflict with this driver. To disable:

sudo $EDITOR /etc/default/grub 

Add pcie_aspm=off at the end of GRUB_CMDLINE_LINUX_DEFAULT. Line should look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=off" 

Then update your GRUB configuration:

On systems that doesn’t have update-grub but have grubby like Fedora, you can directly execute instead:

sudo grubby --update-kernel=ALL --args=pcie_aspm=off 

Some new Yoga laptops (like the Yoga 530) come with rtl8821ce as the Wi-Fi/Bluetooth chip. But the ideapad-laptop module, which may come included in your distribution, may conflict with this driver. To disable:

sudo modprobe -r ideapad_laptop 

This may be due to the Kernel loading up the wrong firmware file for this card. Please take a look at @wahsot’s tutorial at #19 (comment) to see if that helps you out.

If your system uses Secure Boot, the kernel will not accept user-supplied modules. There are two ways to solve this issue:

  1. Disable Secure Boot via BIOS/UEFI settings.
  2. Create or use an existing MOK (Machine Owner Key) to sign the compiled .ko linux kernel object produced by DKMS.

Unstable connection — slowdowns or dropouts

The problem may be due to the periodic scanning of access points by the network applet.

This fix worked helpful on Pop! _OS/Ubuntu 20.10 and Fedora 33. Both with GNOME and NetworkManager. #179

Set the BSSID from your network applet. In GNOME this can be done in WiFi Settings > Your profile > Identity > BSSID .

We are going to disable the Connectivity Check option in NetworkManager. This by editing the file in /var/lib/NetworkManager/NetworkManager-intern.conf and adding the following instructions at the end:

[connectivity] .set.enabled=false 

Then, just reboot or restart the NetworkManager unit to fix the problem.

Читайте также:  Область уведомлений astra linux

Wi-Fi not working for kernel >= 5.9

The Linux Kernel 5.9 version comes with a broken rtw88 module developed by Realtek that has poor compatibility with most revisions of the 8821ce chip.

You must disable it by adding the following to your module blacklists ( /etc/modprobe.d/blacklist.conf ):

Then, make sure you have the rtl8821ce module correctly installed.

Turn off your computer, wait a few seconds (to force firmware reload) and then turn it on again.

Wi-Fi and Bluetooth don’t work after suspend

This is a bug that won’t be fixed until/if Realtek implements proper power management themselves. Given they are now only working in rtw88 , this driver will most likely never be fixed in this regard. Please avoid opening issues about this.

Monitor (promiscuous) mode doesn’t work

This driver doesn’t support it and never will. Please avoid opening issues about this.

Источник

Rtl wifi driver linux

Установка драйвера для Wi-Fi адаптера от Realtek под Linux может стать небольшой проблемой. Есть несколько версий драйверов на github, но не все подходят для ядра линукс версий 5.+ . Здесь покажу рабочий вариант

У меня USB адаптер, и вот так он выглядит в lsusb. ID: 0bda:c811

Bus 001 Device 003: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC 

Установка

Вот этот драйвер подойдет к адаптерам на базе RTL8811CU RTL8821CU RTL8731AU, и к Linux kernel версий 4.19-6.1: https://github.com/morrownr/8821cu-20210916

Устанавливаю на Ubuntu 22.10:

sudo apt update && sudo apt install build-essential git dkms bc git clone https://github.com/morrownr/8821cu-20210916.git cd 8821cu-20210916 sudo ./install-driver.sh 

Если все прошло успешно, скрипт спросит “Do you want to edit the driver options file now?” — отказываемся. На предложение перезагрузки соглашаемся 🙂

iwconfig

После ребута получаем рабочий Wi-Fi адаптер:

Источник

Как установить драйвер Realtek RTL8821CE

Обычно, когда мы устанавливаем дистрибутив Linux на ноутбук, то зачастую поддержка Wi-Fi присутствует полностью или частично для большинства моделей. Драйверы интегрированы в ядро Linux и в результате всё «просто работает» из коробки. Но проблемы начинаются если драйвер для вашего Wi-Fi отсутствует. Вам нужно его найти и установить вручную.

С такой проблемой могут столкнуться, например, владельце ноутбуков HP CM-0078AU.

Если у вас Wi-Fi адаптер на основе чипсета Realtek RTL8821CE, то в Linux по умолчанию отсутствует драйвер для него. В результате ОС не видит устройство, и в панели рядом с часами вовсе отсутствует значок Wi-Fi.

Для исправления данной проблемы достаточно установить необходимый драйвер.

Этот драйвер работает на ядре Linux > 4.14 (все современные дистрибутивы удовлетворяют этому требованию). Этот драйвер тестировался на Debian, Ubuntu, Linux Mint, Arch Linux, Gentoo и должен работать на всех производных дистрибутивах.

Этот драйвер может быть установлен с использованием DKMS. Эта система, которая автоматически перекомпилирует и устанавливает модули ядра когда в результате обновления устанавливается новое ядро. Для использования DKMS, установите пакет dkms.

Чтобы проверить, какой именно у вас интегрированный Wi-Fi адаптер, выполните команду:

Если у вас вывод содержит строку RTL8821CE, значит эта инструкция вам поможет:

Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter

Офлайн установка Realtek RTL8821CE

Если на компьютере, на который вы хотите установить драйвер, отсутствует Интернет-подключение, то вы можете скачать установочный файл из репозиториев Ubuntu, перенести его на флешке на компьютер без Интернета и попробовать установить его вручную. Этот способ может не сработать по той причине, что для установки драйвера требуются зависимости (например, заголовки ядра), которые смогли бы установиться будь у компьютера Интернет-подключение, но если компьютер офлайн, то приходится надеяться, что все нужные файлы присутствуют по умолчанию.

Читайте также:  Php script for linux

Скачайте установочный файл драйвера:

wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rtl8821ce/rtl8821ce-dkms_5.5.2.1-0ubuntu4_all.deb

Если ссылка на драйвер перестала работать, то для поиска актуальной ссылки перейдите на страницу: https://pkgs.org/search/?q=rtl8821ce-dkms

Перенесите скаченный файл на компьютер, где его нужно установить, перейдите в директорию с драйвером и запустите установку следующей командой:

sudo apt install ./rtl8821ce-dkms_5.5.2.1-0ubuntu4_all.deb

Установка драйвера Realtek RTL8821CE в Ubuntu 21.04 и более поздние

Драйвер помещён в стандартный репозиторий, поэтому достаточно выполнить команду:

sudo apt install rtl8821ce-dkms

Установка драйвера Realtek RTL8821CE в Ubuntu 20.04

Начиная с Ubuntu 20.04, этот драйвер имеется в Дополнительном ПО (Additional Drivers (Software & Updates)). Откройте настройки дополнительного ПО и поставьте галочку “Using DKMS source for the Realtek 8821C …” (использовать DKMS источник для Realtek 8821C) и затем перезагрузитесь. После перезагрузки всё будет работать.

Как установить драйвер Realtek RTL8821CE в Debian, Ubuntu, Kali Linux, Linux Mint и их производные

Выполните следующие команды:

sudo apt install bc module-assistant build-essential dkms git clone https://github.com/tomaspinho/rtl8821ce cd rtl8821ce sudo m-a prepare sudo ./dkms-install.sh

Затем перезагрузите компьютер — всё должно работать.

Как установить драйвер Realtek RTL8821CE в Arch Linux, BlackArch и их производные

Установите pikaur, как это показано в статье «Автоматическая установка и обновление пакетов AUR», а затем просто выполните команду:

pikaur -S rtl8821ce-dkms-git

Как установить драйвер Realtek RTL8821CE в Gentoo

Выполните с правами root команды:

layman -a trolltoo emerge --ask net-wireless/rtl8821ce-driver

Удаление драйвера

Откройте терминал и используйте git clone для клонирования репозитория на локальный диск:

git clone https://github.com/tomaspinho/rtl8821ce.git cd rtl8821ce

Затем выполните скрипт для деинсталяции:

Обновление драйвера

Убедитесь, что у вас последняя версия репозитория на диске:

Удалите все несвежие бинарные файлы:

Возможные проблемы

Secure Boot

Если ваша система использует безопасную загрузку, отключите её в настройках BIOS, иначе ядро не будет принимать пользовательские модули.

PCIe Activate State Power Management

Ваш дистрибутив может поставляться с включённым по умолчанию управлением питанием активного состояния PCIe (PCIe Activate State Power Management). Это может конфликтовать с этим драйвером. Чтобы отключить:

sudo $EDITOR /etc/default/grub

Добавьте pci=noaer в конец GRUB_CMDLINE_LINUX_DEFAULT. Строка должна выглядеть примерно так:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer"

Затем обновите вашу конфигурацию GRUB:

Ноутбуки Lenovo Yoga

Некоторые новые ноутбуки Yoga (например, Yoga 530) поставляются с rtl8821ce в качестве чипа Wi-Fi/Bluetooth. Но модуль ideapad-laptop, который может входить в ваш дистрибутив, может конфликтовать с этим драйвером. Чтобы отключить его:

sudo modprobe -r ideapad_laptop

BlueTooth не работает

Это может быть связано с тем, что ядро загружает неправильный файл прошивки для этой карты. Взгляните на руководство wahsot по адресу https://github.com/tomaspinho/rtl8821ce/issues/19#issuecomment-452196840, чтобы узнать, сможет ли оно решить вашу проблему.

Смотрите также:

Связанные статьи:

Источник

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