Skip to content

nongnu: Add rtl8821cu-linux-module.

PRESFIL requested to merge PRESFIL/nonguix:rtl8821cu-linux-module into master

Description

This MR adds a package with an unofficial driver from morrownr for the RTL8821CU chip.

The rtw88 driver is recognized when a USB stick is connected (in my case, this is tp-link Archer T2UB Nano), but rtw88 driver does not work well (at least on linux<6.5 kernel). The driver from morrownr turned out to be the only working option.

In the repology, you can see that they are used in some distributions/repos (AUR, Gentoo overlay GURU, LiGurOS stable, nixpkgs, Rosa).

Maybe this is a temporary driver, but it works. Maybe it will be useful for someone.

How to use

To work, in addition to installing the driver, you need to disable the conflicting rtw88 driver:

(operating-system
  ;; ...
  ;; Blacklist conflicting kernel modules.
  (kernel-arguments '("modprobe.blacklist=rtw88_8821cu"))
  (kernel-loadable-modules (list rtl8821cu-linux-module))
  ;; ...
  )

Changes

  • nongnu/packages/linux.scm: (rtl8821cu-linux-module): New variable.

Merge request reports