Realtek bluetooth driver linux

Realtek bluetooth driver linux

RTL8821CU BT Driver

This is a copy of the RTL8821CU Bluetooth driver tweaked to compile on 3.16 branch of the Linux kernel. Its intention is to be used with Openpeak OpenFrame devices, but no significant changes have been made to the driver.

The RTL8821CU IC provides both 2.5 / 5 GHz WLAN (802.11ac / 802.11abgn) and Bluetooth 4.2 in a single package. This driver is BT only and doesn’t provide WLAN compatibility.

However, the code in my rtl8821cu_wlan repo should get wireless up and running with 3.16 kernels as well.

Instructions below apply to OpenFrame Ubuntu Images but should be generic enough to apply to other flavours.

This has been tested against the following adapters:

  • EZCast EZC-5200BS (ID 0bda:c820 Realtek Semiconductor Corp.) — Amazon UK

Yes, that’s a shill link to Amazon if you’d like to buy one, though they’re pretty ubiquitous and easy to identify, even where they’ve been rebadged.

Ensure you have kernel headers and build-essential installed. These can be added to the OpenFrame automatically with:

Fetch, Compile, Install

The make command installs the firmware and module automatically.

Fire up the module with:

Check its presence with:

If you experience any odd behaviour at this point, power down your device entirely, then reboot. The driver should load automatically.

Источник

Realtek bluetooth driver linux

Realtek RTL8821CE Driver

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.

Installation of Driver

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

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

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.

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

Installing from AUR

Dependencies for manual installation on Arch Linux

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.

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:

Removal of Driver

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

Then run the installation script:

Remove the driver:

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

Clean any stale binaries:

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

Add pci=noaer at the end of GRUB_CMDLINE_LINUX_DEFAULT. Line should look like this:

Then update your GRUB configuration:

Lenovo Yoga laptops

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:

Читайте также:  Предыдущая версия windows совместимость

BlueTooth is not working

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 https://github.com/tomaspinho/rtl8821ce/issues/19#issuecomment-452196840 to see if that helps you out.

If your system uses Secure Boot, disable it via BIOS settings, otherwise the kernel will not accept user-supplied modules.

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:

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

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 revision 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.

Источник

Realtek 8723DE wifi module & Bluetooth Linux driver available now — Ubuntu/Fedora/Arch users*

‎12-22-2017 11:41 AM — edited ‎08-19-2018 05:54 AM

  • Mark as New
  • Bookmark
  • Subscribe
  • Permalink
  • Print
  • Email to a Friend
  • Flag Post

it is recommended to use the official driver hosted at the rtlwifi-new git repsitory maintained by Larry Fingers.

Well, at last, RTL8723DE officially supported driver is made available in the rtlwifi-new git extended branch. What is left to do is, Bluetooth support for this laptop. Bluetooth share the same RTL8723DE hardware? Bluetooth is working with kernel 4.17 and above.

Before installing RTL8723DE driver, you have to make sure that Linux kernel headers for your respective distros are installed. For example: In Debian/Ubuntu the package name sounds like «linux-headers-4.xx-generic». In Fedora/RedHat, it will be kernel-headers-4.xx-x86_64 etc.

For installing from git sources in Ubuntu:

Either download a «.zip» copy of the git sources for RTL8723DE driver from https://github.com/lwfinger/rtlwifi_new/archive/extended.zip , extract it and follow step (2) below

1. Make sure you have git installed. You can install git using apt install git or through synaptic/software manager. If you want to use dkms to make and install the driver, make sure that dkms also is installed. You can download and install using below commands, in a terminal:

2. The RTL8723DE driver is in the git extended branch. So,

Open a terminal:

^^ That should work. If firmware error is shown, reboot and will work. Make sure, you have linux-headers for the respective kernel(s) and build-essential packages installed.

For me, ant_sel=2 shows the maximum WiFi signal gain. So, I’ve added below lines in a separate conf file:

Hope this helps. If it does not build, use :

RTL8723D Bluetooth works now. You need Kernel 4.17 or newer to get Bluetooth working with RTL8723DE.

The steps are elaborately explained in this post: https://superuser.com/a/1322067/850732

RTL8723D Bluetooth Firmware is available in Linux firmware git directory as committed by Larry Fingers (rtlwifi-new) :

Firmware file names:

You have to git clone the directory to get the firmware and place the specific rtl8723d firmware in /lib/firmware/rtl_bt folder.

EDIT: Now, Bluetooth for RTL8723DE works with kernel Linux-4.17-rc2 and newer. Here is the dmesg log, in my case:

Источник

Realtek bluetooth driver linux

News: A new version of this driver is now available. Testing has shown it to be a solid driver. The driver located here will be discontinued in the near future so please transition to the new driver as you are able to do so.

Linux Driver for USB WiFi Adapters that are based on the RTL8811AU and RTL8821AU Chipsets

Читайте также:  Lego classroom ev3 linux

  • v5.8.2.3 (Realtek) (2020-04-01)
  • Plus updates from the Linux community
  • IEEE 802.11 b/g/n/ac WiFi compliant
  • 802.1x, WEP, WPA TKIP and WPA2 AES/Mixed mode for PSK and TLS (Radius)
  • IEEE 802.11b/g/n/ac Client mode
    • Support wireless security for WEP, WPA TKIP and WPA2 AES PSK
    • Support site survey scan and manual connect
    • Support power saving mode
  • Supported interface modes
    • IBSS
    • Managed
    • AP
    • Monitor
    • P2P-client
    • P2P-GO
  • Log level control
  • LED control
  • Power saving control
  • VHT control (allows 80 MHz channel width in AP mode)

A FAQ is available at the end of this document.

  • Kernels: 2.6.24 — 5.1 (Realtek)
  • Kernels: 5.2 — 5.15

Tested Linux Distributions

Arch Linux (kernel 5.4)

Arch Linux (kernel 5.9)

Fedora (kernel 5.11)

Linux Mint 20.2 (Linux Mint based on Ubuntu) (kernel 5.11)

Linux Mint 20 (Linux Mint based on Ubuntu) (kernel 5.4)

LMDE 4 (Linux Mint based on Debian) (kernel 4.19)

Manjaro 20.1 (kernel 5.9)

Raspberry Pi OS (2021-01-11) (ARM 32 bit) (kernel 5.10)

Raspberry Pi Desktop (x86 32 bit) (kernel 4.19)

Ubuntu 21.04 (kernel 5.11)

Ubuntu 20.04 (kernel 5.4)

Download Locations for Tested Linux Distributions

  • Alfa AWUS036ACS
  • Buffalo WI-U2-433DHP
  • Edimax EW-7811UTC
  • Edimax EW-7811UAC
  • Edimax EW-7811UCB
  • ELECOM WDC-433DU2H
  • GMYLE — AC450
  • Netgear A6100
  • Planex GW-450S
  • TP Link T2U Nano
  • TP Link T2U Plus
  • Numerous products that are based on the supported chipsets

Warning: Beware of «multi-state» USB WiFi adapters. Some USB WiFi adapters have proprietary Windows drivers onboard. When plugged in, they act like a flash drive or CDROM and on Windows will attempt to start installing the Windows driver. That won’t work on Linux or MAC or any other non-Windows OS so the adapter sits there in flash drive or CDROM mode. The problem is that the state of the adapter has to be changed for the adapter to show up as the device that you expect, in this case, a WiFi adapter. Most modern Linux distributions ship with a utility called «usb-modeswitch» that will handle this issue for you if it has the correct information for your adapter. It is a good utility but if you buy adapters that are «multi-state,» that is one more potential headache you may have to deal with when something goes wrong. Often you can indentify adapters that are «multi-state» as they are advertised as «free driver» or «free installation driver.» If you are looking to buy a USB WiFi adapter for use on Linux, MAC OS, *NIX or anything besides Windows, it is a good idea to seek out single-state adapters.

Note: Some adapter makers change the chipsets in their products while keeping the same model number so please check to confirm that the product you plan to buy has the chipset you are expecting.

The installation instructions are for the novice user. Experienced users are welcome to alter the installation to meet their needs.

Temporary internet access is required for installation. There are numerous ways to enable temporary internet access depending on your hardware and situation. One method is to use tethering from a phone.. Another method to enable temporary internet access is to keep a wifi adapter that uses an in-kernel driver in your toolkit.

You will need to use the terminal interface. The quick way to open a terminal: Ctrl+Alt+T (hold down on the Ctrl and Alt keys then press the T key)

DKMS is used for the installation. DKMS is a system utility which will automatically recompile and install this driver when a new kernel is installed. DKMS is provided by and maintained by Dell.

It is recommended that you do not delete the driver directory after installation as the directory contains information and scripts that you may need in the future.

There is no need to disable Secure Mode to install this driver. If Secure Mode is properly setup on your system, this installation will support it.

Step 1: Open a terminal (Ctrl+Alt+T)

Step 2: Update the system (select the option for the OS you are using)

Step 3: Install the required packages (select the option for the OS you are using)

Step 4: Create a directory to hold the downloaded driver

Step 5: Move to the newly created directory

Step 6: Download the driver

Step 7: Move to the newly created driver directory

Step 8: Warning: this step only applies if you are installing to Raspberry Pi hardware.

Run a preparation script

Читайте также:  Разметка диска средствами windows

Step 9: Run the installation script (For automated builds, use NoPrompt as an option)

A file called 8821au.conf will be installed in /etc/modeprobe.d by default.

This file will be read and applied to the driver on each system boot.

To edit the driver options file, run the edit-options.sh script.

Documentation for Driver Options is included in the file 8821au.conf .

Removal of the Driver

Note: This script should be used in the following situations:

  • the driver is no longer needed
  • a fresh start with default settings is needed
  • a new version of the driver needs to be installed
  • a major operating system upgrade is going to be applied

Note: This script removes everything that has been installed, with the exception of the packages installed in Step 3 and the driver directory. The driver directory can and probably should be deleted in most cases after running the script.

Step 1: Open a terminal (Ctrl+Alt+T)

Step 2: Move to the driver directory

Step 3: Run the removal script

Recommended WiFi Router/ Access Point Settings

Note: These are general recommendations, some of which may not apply to your specific situation.

Security: Set WPA2-AES. Do not set WPA2 mixed mode or WPA or TKIP.

Channel width for 2.4G: Set 20 MHz fixed width. Do not use 40 MHz or 20/40 automatic.

Channels for 2.4G: Set channel 1 or 6 or 11 depending on the congestion at your location. Do not set automatic channel selection.

Mode for 2.4G: For best performance, set «N only» if you no longer use B or G capable devices.

Network names: Do not set the 2.4G Network and the 5G Network to the same name. Note: Unfortunately many routers come with both networks set to the same name.

Channels for 5G: Not all devices are capable of using DFS channels. It may be necessary to set a fixed channel in the range of 36 to 48 or 149 to 161 in order for all of your devices to work on 5g. (for US, other countries may vary)

Best location for the wifi router/ access point: Near center of apartment or house, at least a couple of feet away from walls, in an elevated location.

Check congestion: There are apps available for smart phones that allow you to check the congestion levels on wifi channels. The apps generally go by the name of WiFi Analyzer or something similar.

After making and saving changes, reboot the router.

Set regulatory domain to correct setting in OS

Check the current setting

If you get 00, that is the default and may not provide optimal performance.

Set it temporarily

Note: Substitute your country code if you are not in the United States.

Set it permanently

Recommendations regarding USB

Moving your USB WiFi adapter to a different USB port has been known to fix a variety of problems. Problems include WiFi going on and off as well as connections coming and going.

If connecting your USB WiFi adapter to a desktop computer, use the USB ports on the rear of the computer. Why? The ports on the rear are directly connected to the motherboard which will reduce problems with interference and disconnection that can happen with front ports that use cables.

If your USB WiFi adapter is USB 3 capable then plug it into a USB 3 port.

Avoid USB 3.1 Gen 2 ports if possible as almost all currently available adapters have been tested with USB 3.1 Gen 1 (aka USB 3) and not with USB 3.1 Gen 2.

If you use an extension cable and your adapter is USB 3 capable, the cable needs to be USB 3 capable.

Some USB WiFi adapters require considerable electrical current and push the capabilities of the power available via USB port. One example is devices that use the Realtek 8814au chipset. Using a powered multiport USB extension can be a good idea in cases like this.

How to disable onboard WiFi on Raspberry Pi 3B, 3B+, 3A+, 4B and Zero W.

Add the following line to /boot/config.txt

How to forget a saved WiFi network on a Raspberry Pi

Delete the relevant WiFi network block (including the ‘network=’ and opening/closing braces.

Press ctrl-x followed by ‘y’ and enter to save the file.

About

Linux Driver for USB WiFi Adapters that are based on the RTL8811AU and RTL8821AU Chipsets

Источник

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