Realtek 8821ce 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.

hackson99/rtl8821ce-for-debian10

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

Git stats

Files

Failed to load latest commit information.

README.md

This repository hosts the code for the ArchLinux AUR Package. It’s targetting Linux > 4.14 and is being developed for ArchLinux 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.

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

Generally speaking, Arch Linux already comes with a compiler toolchain installed. If you have a weird installation, just make sure you have the base-devel package group installed before you proceed.

yaourt -Sy aur/rtl8821ce-dkms-git 

Depencies for manual installation on Arch Linux

sudo pacman -Syu linux-headers dkms 

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

Читайте также:  Linux audio output to input

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 installation script:

PCIe Activate 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 pci=noaer at the end of GRUB_CMDLINE_LINUX_DEFAULT. Line should look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer" 

Then update your GRUB configuration:

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 tomaspinho#19 (comment) to see if that helps you out.

Источник

How to install the Realtek RTL8821CE driver

Usually, when we install a Linux distribution on a laptop, often Wi-Fi support is present in whole or in part for most models. The drivers are integrated into the Linux kernel and as a result, everything “just works” out of the box. But problems start if there is no driver for your Wi-Fi. You need to find it and install it manually.

For example, the owner of HP CM-0078AU notebooks may encounter such a problem.

If you have a Wi-Fi adapter based on the Realtek RTL8821CE chipset, then Linux does not have a driver for it by default. As a result, the OS does not see the device, and there is no Wi-Fi icon at all in the panel next to the clock.

To fix this problem, just install the required driver.

This driver works on Linux kernels > 4.14 (all modern distributions meet this requirement). This driver has been tested on Debian, Ubuntu, Linux Mint, Arch Linux, Gentoo and should work on all derivative distributions.

This driver can be installed using DKMS. This is a system that automatically recompiles and installs kernel modules when a new kernel is installed as a result of an upgrade. To use DKMS, install the dkms package.

To check which integrated Wi-Fi adapter you have, run the command:

If your output contains the line RTL8821CE, then this instruction will help you:

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

Offline installation of Realtek RTL8821CE

If the computer on which you want to install the driver does not have an Internet connection, then you can download the installation file from the Ubuntu repositories, transfer it to a USB flash drive to a computer without the Internet, and try to install it manually. This method may not work for the reason that the driver installation requires dependencies (for example, kernel headers) that could be installed if the computer had an Internet connection, but if the computer is offline, then you have to hope that all the necessary files are present by default.

Читайте также:  Настройка syslog сервера linux

Download the driver installation file:

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

If the link to the driver stopped working, then go to the page to find the actual link: https://pkgs.org/search/?q=rtl8821ce-dkms

Transfer the downloaded file to the computer where you want to install it, go to the directory with the driver and start the installation with the following command:

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

How to install Realtek RTL8821CE Driver on Ubuntu 21.04 and Later

The driver has been placed in the standard repository, so you just need to run the command:

sudo apt install rtl8821ce-dkms

How to install Realtek RTL8821CE Driver on Ubuntu 20.04

Starting with Ubuntu 20.04, this driver is available in Additional Drivers (Software & Updates). Open the additional software settings and check the box “Using DKMS source for the Realtek 8821C…” (use DKMS source for the Realtek 8821C) and then reboot. After a reboot, everything will work.

How to install Realtek RTL8821CE driver on Debian, Ubuntu, Kali Linux, Linux Mint and their derivatives

Run the following commands:

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

Then restart your computer and everything should work.

How to install Realtek RTL8821CE driver on Arch Linux, BlackArch and their derivatives

Install pikaur as shown in the “Automatic installation and update of AUR packages” article, then simply run the command:

pikaur -S rtl8821ce-dkms-git

How to Install Realtek RTL8821CE Driver in Gentoo

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

Removing the driver

Open a terminal and use git clone to clone the repository to your local drive:

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

Then run the uninstall script:

Driver update

Make sure you have the latest version of the repository on disk:

Remove any stale binaries:

Possible problems

Secure Boot

If your system uses secure boot, disable it in the BIOS settings, otherwise the kernel will not accept custom modules.

PCIe Activate State Power Management

Your distribution may ship with PCIe Activate State Power Management enabled by default. It may conflict with this driver. To disable:

sudo $EDITOR /etc/default/grub

Add pci=noaer to the end of GRUB_CMDLINE_LINUX_DEFAULT. The line should look something like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer"

Then update your GRUB config:

Lenovo Yoga Laptops

Some newer Yoga laptops (like the Yoga 530) come with rtl8821ce as a Wi-Fi/Bluetooth chip. But the ideapad-laptop module that may be included with your distribution may conflict with this driver. To turn it off:

sudo modprobe -r ideapad_laptop

BlueTooth not working

This could be because the kernel is loading the wrong firmware file for this card. Take a look at the wahsot manual at https://github.com/tomaspinho/rtl8821ce/issues/19#issuecomment-452196840 to see if it can fix your issue.

Источник

How do I install drivers for the RTL8821CE Network Controller on Ubuntu 20.04?

My Laptop (HP Laptop 14-ck1xxx) came with the RTL8821CE Network Controller. When I run lspci | grep Network I get:

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter 
  1. Download the repo at https://github.com/tomaspinho/rtl8821ce.
  2. Unzip the file and rename the folder from rtl8821ce-master to rtl8821ce .
  3. Run the following commands in the terminal:
    • cd Downloads/rtl8821ce/
    • sudo apt install bc module-assistant build-essential dkms
    • sudo m-a prepare
    • sudo ./dkms-install.sh
Читайте также:  Android windows linux mac apple

Everything seemed to install and execute successfully. Then, I rebooted my laptop and made sure secure boot is disabled. However, Ubuntu still displays:

No Wi-Fi Adapter Found - make sure you have a Wi-Fi adapter plugged in and turned on 

The command uname -r returns:

The command sudo lshw -C network returns:

*-network description: Ethernet interface product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:02:00.0 logical name: eno1 version: 15 serial: c4:65:16:08:52:bf size: 1Gbit/s capacity: 1Gbit/s width: 64 bits clock: 33MHz capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.178.37 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s resources: irq:16 ioport:4000(size=256) memory:a1204000-a1204fff memory:a1200000-a1203fff *-network UNCLAIMED description: Network controller product: RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:03:00.0 version: 00 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress cap_list configuration: latency=0 resources: ioport:3000(size=256) memory:a1100000-a110ffff 

What am I doing wrong? How can this be solved?

Start with sudo apt install rtl8821ce-dkms . I am not sure it is quite up-to-date. There is a git repo with working drivers too. I answered it many times.

4 Answers 4

This fixed the No Wifi on my ASUS D509DA laptop, Ubuntu 20.04.1 LTS:

First Ensure that you disable Secure Boot in the BIOS(See snip below) NOTE: I did not have do Step C as I had already disabled Secure boot.

sudo apt-get install rtl8821ce-dkms 

To see what adaptor you have and hence which dtiver to install:

sudo lshw -C network *-network UNCLAIMED description: Network controller product: RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Realtek Semiconductor Co., Ltd. 

read full details at this link for your specific driver, see snip from that page below https://easylinuxtipsproject.blogspot.com/p/realtek.html#ID6

Realtek RTL8821CE chipset 6. Below you’ll find a how-to for installing a driver, which should get your RTL8821CE chipset to work.

Proceed like this:

a. First establish temporary internet connection by other means.

b. Launch a terminal window. (You can launch a terminal window like this: Click)

c. Copy/paste the following command line into the terminal, in order to install the application mokutil and to let it examine the Secure Boot status of your machine:

sudo apt-get install mokutil && mokutil —sb-state

Press Enter. Type your password when prompted. In Ubuntu this remains entirely invisible, not even dots will show when you type it, that’s normal. In Mint this has changed: you’ll see asterisks when you type. Press Enter again.

If it reports that Secure Boot is enabled: reboot and disable Secure Boot in the BIOS. In order to do this, you might need to set an administrator password in the BIOS first.

Disabling Secure Boot is no loss: it adds no meaningful security anyway. It’s primarily a means for Microsoft to enforce its vendor lock-in on your computer.

d. Copy/paste the following command line into the terminal, in order to install the driver:

sudo apt-get install rtl8821ce-dkms

Press Enter.

e. Reboot your computer. Your WiFi card should work now. If not: try the rtw88 driver, as described in item 7 below.

Источник

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