Default support for rtl8192eu - is it possible?

What would be required to include rtl8192eu wifi driver in Fedora?

I have an adaptor, TP-Link TL-WN821N v5/v6 [RTL8192EU] driver: rtl8xxxu

But it does not work OOTB with Fedora (I swear it did once on my wife’s Fedora, around 6.14).

Why is the device calling rtl8xxxu driver when it doesn’t work?

The best way to install this device is via GitHub - clnhub/rtl8192eu-linux: Realtek rtl8192eu official Linux driver, versions: 5.2.19.1 (master), 5.6.3.1, 5.6.4 and 5.11.2.1 (default) but that does not work with the F43 testing kernel 6.17.1 that is current at this time.

I am on Sway WM and installed via Everything NetInstall with a Custom Minimal selection.

device ids?

see

Bus 001 Device 002: ID 2357:0107 TP-Link TL-WN821N v5/v6 [RTL8192EU]

Realtek is not really collaborating with the linux kernel. That’s why it is so messy with them.
Just some coments about them I found in (Reddit):
Are realtek wifi cards unique with poor Linux?

Topics as above propose to replace Realtek with Intel. Unfortunately this just works with internal wifi cards.

I feel your pain, Intel is kinda the gold standard when it comes to Linux wireless but they don’t make a USB chipset.
(source see link above)

Explain?, it compiles ok.

  MODPOST Module.symvers
  CC [M]  8192eu.mod.o
  CC [M]  .module-common.o
  LD [M]  8192eu.ko
  BTF [M] 8192eu.ko
Skipping BTF generation for 8192eu.ko due to unavailability of vmlinux
make[2]: Leaving directory '/home/leigh/Downloads/rtl8192eu-linux-5.11.2.1'
make[1]: Leaving directory '/usr/src/kernels/6.17.0-63.fc43.x86_64'
[leigh@mpd-pc rtl8192eu-linux-5.11.2.1]$ 

You’re on 6.17, I’m on 6.17.1

That shouldn’t make any difference, it a release kernel so there shouldn’t be any major changes

I’ll give it another go then.

It compiles on the newer kernel

  MODPOST Module.symvers
  CC [M]  8192eu.mod.o
  CC [M]  .module-common.o
  LD [M]  8192eu.ko
  BTF [M] 8192eu.ko
Skipping BTF generation for 8192eu.ko due to unavailability of vmlinux
make[2]: Leaving directory '/home/leigh/Downloads/rtl8192eu-linux-5.11.2.1'
make[1]: Leaving directory '/usr/src/kernels/6.17.1-300.fc43.x86_64'
[leigh@mpd-pc rtl8192eu-linux-5.11.2.1]$
1 Like

I got the rtl8192eu driver to build.

I think my problem was that I followed the instructions on the github site which has the command for installing C development tools with DNF4.
So I installed them with the commands sudo dnf install @c-development and sudo dnf install @development-tools

I now have the USB adaptor using the rtl8192eu driver, as seen with inxi -N however I still can’t get the adaptor to pick up wifi signal with nmcli dev wifi list and yes I made sure the radio is on with nmcli radio wifi on

When I run lspci no wireless controllers show up.

lshw shows

*-network DISABLED
       description: Ethernet interface
       physical id: 8
       bus info: usb@1:1
       logical name: wlp3s0f3u1
       serial: f0:a7:31:be:ce:81
       capabilities: ethernet physical
       configuration: broadcast=yes driver=rtl8192eu driverversion=v5.11.2.1-18-g8e7df912b.2021052 firmware=0.0 link=no multicast=yes
WARNING: output may be

Edit: I enabled the device with sudo ifconfig wlp3s0f3u1 up yet the wifi still doesn’t work.

Can you post

lsmod
1 Like

I have followed Vlad’s commands, and am in almost the same position.

Output of lsmod

Module                  Size  Used by
snd_seq_dummy          12288  0
snd_hrtimer            12288  1
nft_fib_inet           12288  1
nft_fib_ipv4           12288  1 nft_fib_inet
nft_fib_ipv6           12288  1 nft_fib_inet
nft_fib                12288  3 nft_fib_ipv6,nft_fib_ipv4,nft_fib_inet
nft_reject_inet        12288  10
nf_reject_ipv4         12288  1 nft_reject_inet
nf_reject_ipv6         20480  1 nft_reject_inet
nft_reject             12288  1 nft_reject_inet
nft_ct                 28672  8
nft_chain_nat          12288  3
nf_nat                 65536  1 nft_chain_nat
nf_conntrack          212992  2 nf_nat,nft_ct
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         12288  1 nf_conntrack
nf_tables             430080  274 nft_ct,nft_reject_inet,nft_fib_ipv6,nft_fib_ipv4,nft_chain_nat,nft_reject,nft_fib,nft_fib_inet
binfmt_misc            28672  1
vfat                   24576  1
fat                   126976  1 vfat
amd_atl                77824  1
intel_rapl_msr         20480  0
intel_rapl_common      61440  1 intel_rapl_msr
snd_hda_codec_alc269   147456  1
snd_hda_scodec_component    20480  1 snd_hda_codec_alc269
snd_hda_codec_realtek_lib    65536  1 snd_hda_codec_alc269
snd_hda_codec_generic   139264  2 snd_hda_codec_realtek_lib,snd_hda_codec_alc269
snd_hda_codec_atihdmi    20480  1
snd_hda_codec_hdmi     65536  1 snd_hda_codec_atihdmi
snd_hda_intel          73728  4
edac_mce_amd           40960  0
snd_hda_codec         233472  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek_lib,snd_hda_codec_alc269,snd_hda_codec_atihdmi
snd_hda_core          159744  7 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek_lib,snd_hda_codec_alc269,snd_hda_codec_atihdmi
kvm_amd               253952  0
snd_intel_dspcfg       45056  1 snd_hda_intel
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
snd_hwdep              24576  1 snd_hda_codec
snd_seq               135168  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
kvm                  1490944  1 kvm_amd
ee1004                 16384  0
snd_pcm               212992  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
r8169                 151552  0
snd_timer              57344  3 snd_seq,snd_hrtimer,snd_pcm
irqbypass              16384  1 kvm
i2c_piix4              40960  0
snd                   155648  21 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_hda_codec_realtek_lib,snd_hda_codec_alc269,snd_pcm
wmi_bmof               12288  0
rapl                   20480  0
i2c_smbus              20480  1 i2c_piix4
soundcore              12288  1 snd
k10temp                16384  0
realtek                53248  1
8192eu               2457600  0
cfg80211             1527808  1 8192eu
rfkill                 45056  2 cfg80211
fuse                  274432  3
loop                   49152  0
nfnetlink              20480  3 nf_tables
zram                   73728  1
lz4hc_compress         20480  1 zram
lz4_compress           24576  1 zram
dm_crypt               77824  1
amdgpu              20668416  14
amdxcp                 12288  1 amdgpu
i2c_algo_bit           20480  1 amdgpu
drm_ttm_helper         16384  2 amdgpu
ttm                   135168  2 amdgpu,drm_ttm_helper
drm_exec               12288  1 amdgpu
gpu_sched              69632  1 amdgpu
drm_suballoc_helper    20480  1 amdgpu
drm_panel_backlight_quirks    12288  1 amdgpu
drm_buddy              32768  1 amdgpu
drm_display_helper    331776  1 amdgpu
cec                   106496  2 drm_display_helper,amdgpu
nvme                   73728  3
nvme_core             274432  4 nvme
polyval_clmulni        12288  0
nvme_keyring           20480  1 nvme_core
ghash_clmulni_intel    12288  0
nvme_auth              32768  1 nvme_core
sp5100_tco             20480  0
video                  81920  1 amdgpu
wmi                    32768  2 video,wmi_bmof
uas                    40960  0
usb_storage            94208  1 uas
i2c_dev                28672  0

lshw now shows

*-network
       description: Ethernet interface
       physical id: 8
       bus info: usb@1:1
       logical name: wlp3s0f3u1
       serial: f0:a7:31:be:ce:81
       capabilities: ethernet physical
       configuration: broadcast=yes driver=rtl8192eu driverversion=v5.11.2.1-18-g8e7df912b.2021052 firmware=35.7 link=no multicast=yes

ip a gives

3: wlp3s0f3u1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether f0:a7:31:be:ce:81 brd ff:ff:ff:ff:ff:ff
    altname wlxf0a731bece81
[dict@ip6-dynamic-adsl ~]$ lsusb -v -v -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb1  /dev/bus/usb/001/001
    |__ Port 001: Dev 002, If 0, Class=Vendor Specific Class, Driver=rtl8192eu, 480M
        ID 2357:0107 TP-Link TL-WN821N v5/v6 [RTL8192EU]
        /sys/bus/usb/devices/1-1  /dev/bus/usb/001/002
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb2  /dev/bus/usb/002/001
    |__ Port 002: Dev 002, If 0, Class=Mass Storage, Driver=uas, 5000M
        ID 0bda:9210 Realtek Semiconductor Corp. RTL9210 M.2 NVME Adapter
        /sys/bus/usb/devices/2-2  /dev/bus/usb/002/002
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb3  /dev/bus/usb/003/001
    |__ Port 001: Dev 002, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        ID 413c:2113 Dell Computer Corp. KB216 Wired Keyboard
        /sys/bus/usb/devices/3-1  /dev/bus/usb/003/002
    |__ Port 001: Dev 002, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
        ID 413c:2113 Dell Computer Corp. KB216 Wired Keyboard
        /sys/bus/usb/devices/3-1  /dev/bus/usb/003/002
    |__ Port 002: Dev 003, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 05e3:0608 Genesys Logic, Inc. Hub
        /sys/bus/usb/devices/3-2  /dev/bus/usb/003/003
        |__ Port 002: Dev 004, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 0461:4d22 Primax Electronics, Ltd 
            /sys/bus/usb/devices/3-2.2  /dev/bus/usb/003/004
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb4  /dev/bus/usb/004/001
[dict@ip6-dynamic-adsl ~]$ lsmod | grep -e 8192eu
8192eu               2457600  0
cfg80211             1527808  1 8192eu
[dict@ip6-dynamic-adsl ~]$ uname -r
6.17.1-300.fc43.x86_64
[dict@ip6-dynamic-adsl ~]$ dkms status
rtl8192eu/git, 6.17.1-300.fc43.x86_64, x86_64: installed
[dict@ip6-dynamic-adsl ~]$ nmcli radio all
WIFI-HW  WIFI     WWAN-HW  WWAN    
missing  enabled  missing  enabled 
[dict@ip6-dynamic-adsl ~]$ rfkill list all
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
[dict@ip6-dynamic-adsl ~]$ mokutil --sb-state
SecureBoot disabled
Platform is in Setup Mode
[dict@ip6-dynamic-adsl ~]$ sudo mokutil -t /var/lib/dkms/mok.pub
/var/lib/dkms/mok.pub is already in the enrollment request
[dict@ip6-dynamic-adsl ~]$ sudo modprobe 8192eu

EDIT: I rebooted again (after posting the above) and the MOL enrollment screen came up - for the first time ever.

Ran all the test command again after reboot - all the same except

[dict@ip6-dynamic-adsl ~]$ sudo mokutil -t /var/lib/dkms/mok.pub
/var/lib/dkms/mok.pub is not enrolled

Which I assume is as I don’t have secure boot enabled.

Finally made it work.
I was a victim of my own minimalism :slight_smile:
As I have a ‘custom’ install from the Everything NetInstall, running Sway, I did not have NetworkManager-wifi installed.
I installed it and rebooted, now my wifi works. Thanks to Nmtui <Radio> Wi-Fi Hardware: Missing - #8 by scottro - Rocky Linux Help & Support - Rocky Linux Forum
But also big thanks to Leigh and Vlad for helping me get there.

1 Like

This happened to me with KDE Plasma too.

The subtlety is that if you’d chosen “Sway Desktop” from the environments on the left-hand side of the selector screen, you would have got networkmanager-submodules, which includes NetworkManager-wifi.

But if instead you select “Fedora Custom Operating System” on the left, then the Sway groups on the right, you don’t get networkmanager-submodules without explicitly selecting it.

1 Like

The upside is I get to learn what goes into a full desktop edition, without the bloatware.
The main reason I don’t go for the Sway Spin, is the background pic and the menu.
This is only the second problem I’ve had with the minimal Sway in about two years.

1 Like