View previous topic :: View next topic |
Author |
Message |
eeckwrk99 Apprentice
Joined: 14 Mar 2021 Posts: 171 Location: Gentoo forums
|
Posted: Thu Dec 21, 2023 11:25 am Post subject: USB WLAN adapter (TL-WN725N) not detected by NetworkManager |
|
|
I have a USB WLAN adapter (TL-WN725N) that used to work fine before. It is listed pretty much everywhere and so is the Wi-Fi interface, except with NetworkManager. I cannot enable Wi-Fi via nm-applet right click context menu.
On Arch Linux (installed on the same machine, on another SSD, I can enable Wi-Fi from nm-applet just fine and connect to any network.
Code: | $ lsusb
Bus 003 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter |
Code: | $ ip addr
4: wlp0s20u11: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether c4:6e:1f:1f:c0:2b brd ff:ff:ff:ff:ff:ff |
The interface (wlp0s20u11) isn't listed when running $ ifconfig.
However, it is after enabling it manually:
Code: | # ifconfig -v wlp0s20u11 up
$ echo $?
0 |
Code: | $ ifconfig
wlp0s20u11: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether c4:6e:1f:1f:c0:2b txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
Code: | $ tree /sys/class/net/
/sys/class/net/
└── wlp0s20u11 -> ../../devices/pci0000:00/0000:00:14.0/usb3/3-11/3-11:1.0/net/wlp0s20u11 |
Code: | $ lsmod | grep "8188"
r8188eu 376832 0 |
Code: | $ dmesg | grep -i -E "xx:xx.x|wlan|iwl|80211"
[ 54.877805] r8188eu 3-11:1.0 wlp0s20u11: renamed from wlan0
[ 64.945730] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 64.947264] cfg80211: Loaded X.509 cert 'sforshee:
00b28ddf47aef9cea7' |
The interface (wlp0s20u11) isn't listed with both $ nmcli device status and $ nmcli device status
I'm using sys-kernel/gentoo-sources. Tried with 6.1.67, 6.6.8, 5.15.42, same behavior.
As I said, it used to work before and I don't think I changed anything Wi-Fi related in my kernel config. My two Ethernet interfaces are working just fine with NetworkManager.
Wi-Fi is enabled as per Gentoo Wiki - Wi-Fi - Kernel:
Code: |
[*] Networking support --->
[*] Wireless --->
<M> cfg80211 - wireless configuration API
[ ] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 certification onus
[*] enable powersave by default
[ ] support CRDA
[ ] cfg80211 wireless extensions compatibility
[ ] lib80211 debugging messages
<M> Generic IEEE 802.11 Networking Stack (mac80211)
[ ] Minstrel
*** Some wireless drivers require a rate control algorithm ***
[ ] Enable mac80211 mesh networking support
[ ] Enable LED triggers
[ ] Trace all mac80211 debug messages
[ ] Select mac80211 debugging features ----
|
Realtek RTL8188EU Wireless LAN NIC driver is also enabled:
Code: | Realtek RTL8188EU Wireless LAN NIC driver
CONFIG_R8188EU:
This option adds support for the Realtek RTL8188EU chipset, used in USB
devices such as the ASUS USB-N10 Nano. This newer driver is based on GitHub
sources for version v4.1.4_6773.20130222, and contains modifications for
newer kernel features. If built as a module, it will be called r8188eu.
Symbol: R8188EU
Type :
Defined at drivers/staging/r8188eu/Kconfig:2
Prompt: Realtek RTL8188EU Wireless LAN NIC driver
Depends on: STAGING [=y] && WLAN [=y] && USB [=y] && CFG80211 [=m] && m && MODULES [=y]
Location:
-> Device Drivers
-> Staging drivers (STAGING [=y])
-> Realtek RTL8188EU Wireless LAN NIC driver (R8188EU [=m])
Selects: WIRELESS_EXT [=y] && WEXT_PRIV [=y] && LIB80211 [=m] && LIB80211_CRYPT_WEP [=m] && LIB80211_CRYPT_CCMP [=m] |
Code: | $ qlist -Iv networkmanager nm-applet wpa_supplicant
gnome-extra/nm-applet-1.32.0
net-misc/networkmanager-1.42.6-r2
net-wireless/wpa_supplicant-2.10-r3 |
I also tried with net-misc/networkmanager-1.44.2 + gnome-extra/nm-applet-1.34.0 (testing) followed by a reboot, but it doesn't make any difference.
Code: | $ qlist -U nm-applet
gnome-extra/nm-applet |
Code: | $ qlist -U networkmanager
net-misc/networkmanager abi_x86_64 concheck gtk-doc introspection nss policykit systemd tools wifi |
Code: | $ qlist -U wpa_supplicant
net-wireless/wpa_supplicant dbus fils hs2-0 mbo mesh readline |
Thanks. |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1712
|
Posted: Thu Dec 21, 2023 1:21 pm Post subject: |
|
|
Also try the replacement driver rtl8xxxu in kernel 6.5 or higher as the old staging driver has been removed. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54420 Location: 56N 3W
|
Posted: Thu Dec 21, 2023 1:27 pm Post subject: |
|
|
eeckwrk99,
You don't mention linux-firmware. Almost all USB Wifi needs that.
What does dmesg show, that's a pastebin ?
-- edit --
Code: | $ qlist -U wpa_supplicant
net-wireless/wpa_supplicant dbus fils hs2-0 mbo mesh readline |
Do you have an old insecure WiFi system that needs USE=tkip there? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
eeckwrk99 Apprentice
Joined: 14 Mar 2021 Posts: 171 Location: Gentoo forums
|
Posted: Thu Dec 21, 2023 2:58 pm Post subject: |
|
|
grknight wrote: | Also try the replacement driver rtl8xxxu in kernel 6.5 or higher as the old staging driver has been removed. |
Thank you, it's now working as expected with 6.6.8 after enabling this:
Code: |
Symbol: RTL8XXXU [=m]
Type : tristate
Defined at drivers/net/wireless/realtek/rtl8xxxu/Kconfig
Prompt: Realtek 802.11n USB wireless chips
Depends on: NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_REALTEK [=y] && MAC80211 [=m] && USB [=y] && LEDS_CLASS [=y]
Location:
-> Device Drivers
-> Network device support (NETDEVICES [=y])
-> Wireless LAN (WLAN [=y])
-> Realtek devices (WLAN_VENDOR_REALTEK [=y])
-> Realtek 802.11n USB wireless chips support (RTL8XXXU [=m]) |
However, as you point out, this option doesn't seem to exist with 6.1. The closest is:
Code: | Symbol: RTL8XXXU [=n]
Type : tristate
Defined at drivers/net/wireless/realtek/rtl8xxxu/Kconfig:5
Prompt: RTL8723AU/RTL8188[CR]U/RTL819[12]CU (mac80211) support
Depends on: NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_REALTEK [=y] && MAC80211 [=m] && USB [=y]
Location:
-> Device Drivers
-> Network device support (NETDEVICES [=y])
-> Wireless LAN (WLAN [=y])
-> Realtek devices (WLAN_VENDOR_REALTEK [=y])
-> RTL8723AU/RTL8188[CR]U/RTL819[12]CU (mac80211) support (RTL8XXXU [=m]) |
I didn't bother trying it before considering "RTL8188[CR]U" (not "[E]"U). I've just tried it just to make sure, unfortunately it doesn't change anything.
NeddySeagoon wrote: | You don't mention linux-firmware. |
Code: | $ qlist -Iv sys-kernel/linux-firmware
sys-kernel/linux-firmware-20231211 |
This is the same version than on my Arch install (where the adapter works with 6.6 and 6.1 kernels).
NeddySeagoon wrote: | Do you have an old insecure WiFi system that needs USE=tkip there? |
No, I'm using WPA2-AES.
dmesg doesn't print anything interesting on 6.1.67:
Code: | [ 1.926909] usb 3-11: new high-speed USB device number 4 using xhci_hcd
[ 2.067230] usb 3-11: New USB device found, idVendor=0bda, idProduct=8179, bcdDevice= 0.00
[ 2.067238] usb 3-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.067241] usb 3-11: Product: 802.11n NIC
[ 2.067243] usb 3-11: Manufacturer: Realtek
[ 2.067246] usb 3-11: SerialNumber: 00E04C0001
[ 17.587729] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[ 17.626897] r8188eu 3-11:1.0 wlp0s20u11: renamed from wlan0 |
I cannot remember if I ever got it working on any 6.1 kernel. I use it very rarely. Maybe it's not supposed to work with 6.1 at all? |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1712
|
Posted: Thu Dec 21, 2023 3:10 pm Post subject: |
|
|
eeckwrk99 wrote: | dmesg doesn't print anything interesting on 6.1.67:
Code: | [ 1.926909] usb 3-11: new high-speed USB device number 4 using xhci_hcd
[ 2.067230] usb 3-11: New USB device found, idVendor=0bda, idProduct=8179, bcdDevice= 0.00
[ 2.067238] usb 3-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.067241] usb 3-11: Product: 802.11n NIC
[ 2.067243] usb 3-11: Manufacturer: Realtek
[ 2.067246] usb 3-11: SerialNumber: 00E04C0001
[ 17.587729] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[ 17.626897] r8188eu 3-11:1.0 wlp0s20u11: renamed from wlan0 |
I cannot remember if I ever got it working on any 6.1 kernel. I use it very rarely. Maybe it's not supposed to work with 6.1 at all? |
The staging drivers for wireless exist there because they are not up to modern standards and may (not) work as other drivers do.
Recently, some contributions came in to merge in more Realtek drivers into rtl8xxxu which is better in most accounts.
They deleted the staging drivers after this support was added.
So 6.5 and higher is very nice for some USB devices. |
|
Back to top |
|
|
eeckwrk99 Apprentice
Joined: 14 Mar 2021 Posts: 171 Location: Gentoo forums
|
Posted: Thu Dec 21, 2023 3:17 pm Post subject: |
|
|
grknight wrote: | The staging drivers for wireless exist there because they are not up to modern standards and may (not) work as other drivers do.
Recently, some contributions came in to merge in more Realtek drivers into rtl8xxxu which is better in most accounts.
They deleted the staging drivers after this support was added.
So 6.5 and higher is very nice for some USB devices. |
I wonder why it works for me on Arch (with 6.1) and not on Gentoo then. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|