Realtek RTL8812BU Wifi - How to blacklist the in kernel module

I have a Wlan Stick (RTL88x2bu) that comes with an driver that is loaded automaticly when the USB is inserted. The problem is, that driver is broken. I installed a Working custom version of the Driver on my PC but so far it only worked twice. I think thats because it tries to load the Driver inside the Wlanstick anyway. Thats why im asking how to disable the autoload from the drivers that comes with the USB.

System:
Kernel: 5.18.7-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=38add348-b329-4341-8751-7bbc309d28a1 rw rootflags=subvol=@
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=0 loglevel=3
Desktop: KDE Plasma v: 5.25.2 tk: Qt v: 5.15.5 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Micro-Star model: B450M PRO-VDH MAX (MS-7A38) v: 8.0
serial: <superuser required> UEFI: American Megatrends v: B.40
date: 11/07/2019
CPU:
Info: model: AMD Ryzen 5 3600X bits: 64 type: MT MCP arch: Zen 2 gen: 3
built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23)
model-id: 0x71 (113) stepping: 0 microcode: 0x8701013
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 32 MiB desc: 2x16 MiB
Speed (MHz): avg: 3638 high: 3866 min/max: 2200/4409 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 3866 2: 3617
3: 3592 4: 3620 5: 3654 6: 3599 7: 3753 8: 3598 9: 3580 10: 3599 11: 3588
12: 3599 bogomips: 91195
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Retpolines, IBPB: conditional, STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
vendor: Tul / PowerColor driver: amdgpu v: kernel arch: RDNA 1
process: TSMC n7 (7nm) built: 2019-20 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 2b:00.0
chip-ID: 1002:731f class-ID: 0300
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1182x380mm (46.54x14.96")
s-diag: 1242mm (48.88")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: right model: Asus VP228
serial: <filter> built: 2015 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
size: 476x268mm (18.74x10.55") diag: 546mm (21.5") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: primary,left
model: BenQ GL2706PQ serial: <filter> built: 2016 res: 2560x1440 hz: 60
dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23") diag: 685mm (27")
ratio: 16:9 modes: max: 2560x1440 min: 640x480
OpenGL: renderer: AMD Radeon RX 5600 XT (navi10 LLVM 13.0.1 DRM 3.46
5.18.7-zen1-1-zen)
v: 4.6 Mesa 22.1.2 direct render: Yes
Audio:
Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel pcie:
bus-ID: 3-3:4 gen: 4 chip-ID: 0d8c:013c class-ID: 0300 speed: 16 GT/s
lanes: 16 bus-ID: 2b:00.1 chip-ID: 1002:ab38 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 2d:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: C-Media CM108 Audio Controller type: USB
driver: hid-generic,snd-usb-audio,usbhid
Sound Server-1: ALSA v: k5.18.7-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 16.1 running: no
Sound Server-3: PipeWire v: 0.3.52 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: f000 bus-ID: 25:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp37s0 state: down mac: <filter>
Device-2: Realtek RTL8192CU 802.11n WLAN Adapter type: USB
driver: rtl8192cu bus-ID: 1-1:9 chip-ID: 0bda:8178 class-ID: 0000
serial: <filter>
IF: wlp3s0f0u1 state: up mac: <filter>
IF-ID-1: anbox0 state: down mac: <filter>
IF-ID-2: virbr0 state: down mac: <filter>
Drives:
Local Storage: total: 3.18 TiB used: 1.21 TiB (38.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: DT01ACA300
size: 2.73 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: <filter> rev: ABB0 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 750 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 1B6Q scheme: GPT
Partition:
ID-1: / raw-size: 448.27 GiB size: 448.27 GiB (100.00%)
used: 373.84 GiB (83.4%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 25.8 MiB (8.6%) fs: vfat dev: /dev/sdb1 maj-min: 8:17
ID-3: /home raw-size: 448.27 GiB size: 448.27 GiB (100.00%)
used: 373.84 GiB (83.4%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-4: /var/log raw-size: 448.27 GiB size: 448.27 GiB (100.00%)
used: 373.84 GiB (83.4%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-5: /var/tmp raw-size: 448.27 GiB size: 448.27 GiB (100.00%)
used: 373.84 GiB (83.4%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.57 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 17.2 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/sdb3 maj-min: 8:19
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 54.0 C
mem: 58.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 371 Uptime: 14m wakeups: 0 Memory: 15.57 GiB
used: 4.17 GiB (26.8%) Init: systemd v: 251 default: graphical
tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: apt: 0
pacman: 2514 lib: 542 Shell: fish v: 3.4.1 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.19
Garuda (2.6.4-2):
System install date:     2022-01-14
Last full system update: 2022-06-30
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Snapper
Failed units:            bluetooth-autoconnect.service rustdesk.service systemd-oomd.socket

Have you tried blacklisting the driver that comes with the stick?
https://wiki.archlinux.org/title/Kernel_module#Blacklisting
Consider also the install module_name /bin/true option.
I have no idea if this would work in this case, but it could be worth trying.

5 Likes

Your device is reported as an RTL8192CU in your garuda-inxi output.

Which driver did you install?

How did you install it?

Please post:

lsmod | sort
3 Likes

That is another Wifi Stick that is working. My “broken” Wifi stick wasnt connected at the time cause my system behaves weirdly cause of the broken driver. But the solution from filo worked.

1 Like

Well yes, that advice should do the trick, as it is the recommended procedure in these types of cases.

The reason I was asking for clarification is to help other users with the same wifi adapter you have. You have not posted the specs of the wifi adapter in question. You posted the output from another adapter, and failed to mention this in your OP.

For this post to be of any use to other users with the same Realtek Wifi adapter we need to know the following:

  • The terminal output identifying your adapter, (garuda-inxi or other).
  • The exact driver version with the source given, that you installed.
  • The exact method of installation of the driver.
  • The exact contents and name/location of the blacklist file you created.

Without this information this thread is of zero assistance to anyone with the same Realtek Wifi adapter (which we don't even know).

Please provide this information so that other users may also benefit from the assistance you received here.

Your cooperation in this matter would be greatly appreciated. I look forward to viewing all the required information that is currently missing from this thread.

3 Likes

Okey, here:
This is the Driver i installed: GitHub - cilynx/rtl88x2bu: rtl88x2bu driver updated for current kernels.
I installed it via the graphical gui just named Add/Remove Software
The version there is named "r112.9957138-1"
I created a file named "rtw88_8822bu.conf" in /etc/modprobe.d with
just "blacklist rtw88_8822bu" inside.

System:
Kernel: 5.18.7-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=38add348-b329-4341-8751-7bbc309d28a1 rw rootflags=subvol=@
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=0 loglevel=3
Desktop: KDE Plasma v: 5.25.2 tk: Qt v: 5.15.5 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Micro-Star model: B450M PRO-VDH MAX (MS-7A38) v: 8.0
serial: <superuser required> UEFI: American Megatrends v: B.40
date: 11/07/2019
CPU:
Info: model: AMD Ryzen 5 3600X bits: 64 type: MT MCP arch: Zen 2 gen: 3
built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23)
model-id: 0x71 (113) stepping: 0 microcode: 0x8701013
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 32 MiB desc: 2x16 MiB
Speed (MHz): avg: 4016 high: 4231 min/max: 2200/4409 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 4218 2: 4231
3: 4210 4: 3932 5: 4084 6: 4225 7: 4222 8: 4189 9: 4218 10: 3781 11: 3404
12: 3478 bogomips: 91201
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Retpolines, IBPB: conditional, STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
vendor: Tul / PowerColor driver: amdgpu v: kernel arch: RDNA 1
process: TSMC n7 (7nm) built: 2019-20 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 2b:00.0
chip-ID: 1002:731f class-ID: 0300
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1182x380mm (46.54x14.96")
s-diag: 1242mm (48.88")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: right model: Asus VP228
serial: <filter> built: 2015 res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2
size: 476x268mm (18.74x10.55") diag: 546mm (21.5") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: primary,left
model: BenQ GL2706PQ serial: <filter> built: 2016 res: 2560x1440 hz: 60
dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23") diag: 685mm (27")
ratio: 16:9 modes: max: 2560x1440 min: 640x480
OpenGL: renderer: AMD Radeon RX 5600 XT (navi10 LLVM 13.0.1 DRM 3.46
5.18.7-zen1-1-zen)
v: 4.6 Mesa 22.1.2 direct render: Yes
Audio:
Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel
bus-ID: 3-3:4 pcie: chip-ID: 0d8c:013c gen: 4 class-ID: 0300 speed: 16 GT/s
lanes: 16 bus-ID: 2b:00.1 chip-ID: 1002:ab38 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 2d:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: C-Media CM108 Audio Controller type: USB
driver: hid-generic,snd-usb-audio,usbhid
Sound Server-1: ALSA v: k5.18.7-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 16.1 running: no
Sound Server-3: PipeWire v: 0.3.52 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: f000 bus-ID: 25:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp37s0 state: down mac: <filter>
Device-2: Realtek RTL88x2bu [AC1200 Techkey] type: USB driver: rtl88x2bu
bus-ID: 1-1:3 chip-ID: 0bda:b812 class-ID: 0000 serial: <filter>
IF: wlp3s0f0u1 state: up mac: <filter>
IF-ID-1: anbox0 state: down mac: <filter>
IF-ID-2: ipv6leakintrf0 state: unknown speed: N/A duplex: N/A
mac: <filter>
IF-ID-3: proton0 state: unknown speed: 10 Mbps duplex: full mac: N/A
IF-ID-4: pvpnksintrf0 state: unknown speed: N/A duplex: N/A mac: <filter>
IF-ID-5: virbr0 state: down mac: <filter>
Drives:
Local Storage: total: 3.18 TiB used: 1.21 TiB (38.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: DT01ACA300
size: 2.73 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: <filter> rev: ABB0 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 750 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 1B6Q scheme: GPT
Partition:
ID-1: / raw-size: 448.27 GiB size: 448.27 GiB (100.00%)
used: 376.41 GiB (84.0%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 25.8 MiB (8.6%) fs: vfat dev: /dev/sdb1 maj-min: 8:17
ID-3: /home raw-size: 448.27 GiB size: 448.27 GiB (100.00%)
used: 376.41 GiB (84.0%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-4: /var/log raw-size: 448.27 GiB size: 448.27 GiB (100.00%)
used: 376.41 GiB (84.0%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-5: /var/tmp raw-size: 448.27 GiB size: 448.27 GiB (100.00%)
used: 376.41 GiB (84.0%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.57 GiB used: 1.21 GiB (7.7%)
priority: 100 dev: /dev/zram0
ID-2: swap-2 type: partition size: 17.2 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/sdb3 maj-min: 8:19
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 51.0 C
mem: 58.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 1296
Info:
Processes: 408 Uptime: 4h 43m wakeups: 0 Memory: 15.57 GiB
used: 7.67 GiB (49.3%) Init: systemd v: 251 default: graphical
tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: apt: 0
pacman: 2514 lib: 542 Shell: fish v: 3.4.1 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.19
Garuda (2.6.4-2):
System install date:     2022-01-14
Last full system update: 2022-06-30 ↻
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Snapper
Failed units:            bluetooth-autoconnect.service rustdesk.service systemd-oomd.socket

Thank you for posting that information as it will be very helpful to others with the same USB Wifi adapter. Your outputs now let us know which exact model you have. Your inxi output identifies it as a Realtek RTL8812BU chip wifi adapter.

I will amend your thread title to identify it as such, so that it is more clear for others with the same issue.

Glad you got your issue resolved, and thanks again for clarifying all the missing information.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.