You are not logged in.

#1 2022-01-20 15:25:58

Kallix_
Member
Registered: 2022-01-09
Posts: 19

[SOLVED] RTL8188 driver got broken after updating arch linux

(AFTER UPGRADING)

so i have installed some legacy drivers for my computer because i need to do so (one for nvidia-390xx which i fixed it myself by removing the packages and installing them again), and one for my wifi usb stick (realtek-8188), so i noticed something isn't correct and my wifi interface isn't going up successfully. whenever i tried to connect using wifi-menu this error throws in the console:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Scanning for networks... Could not set interface wlp0s29u1u1 flags (UP): Operation not permitted
WEXT: Could not set interface 'wlp0s29u1u1' UP
wlp0s29u1u1: Failed to initialize driver interface
failed
No networks found

i can't connect to wifi, i tried to do any solution for this such as "connecting manually by creating the netctl profile" which all of them ended up with same error.
after that i thought the cause of it must be installation of the driver with aur package, so then i listed packges with

pacman -Q > packages.txt

and boom! got two packages that i installed before!

8188fu-dkms r13.586d795-1
8188fu-kelebek333-dkms-git r95.adeb8a4-1

so i tried to remove them, at the first i was happy because i thought it's going to removed without any problems! but! i rebooted and saw that interface laying around in

ip l

again. ok then i tried to do

dkms status

and removed the two modules manually, then restarted my pc and the wifi interface is still there!!! i mean it's my dongle because everytime i eject it, it will go away, and when i plug it back again, the "wlp0s29u1u1" interface appears in the list again! i want to get rid of it! any help appreciated thanks! big_smile

Last edited by Kallix_ (2022-01-21 12:08:57)

Offline

#2 2022-01-20 17:05:36

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

locale: Cannot set LC_CTYPE to default locale: No such file or directory

Unrelated, https://wiki.archlinux.org/title/Locale

Run "dmesg -w", plug the dongle and post the tailing dmesg ouput it causes.
Also the outputs of "lsusb" and "lsmod" (when the dongle is plugged)

when i plug it back again, the "wlp0s29u1u1" interface appears in the list again! i want to get rid of it

Don't plug the dongle?
You'll have that NIC regardless of what driver operates it in the end and I assume you plug the dongle because you want to use the wifi? You just want it functional?

Offline

#3 2022-01-20 18:02:30

Kallix_
Member
Registered: 2022-01-09
Posts: 19

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

seth wrote:

locale: Cannot set LC_CTYPE to default locale: No such file or directory

Unrelated, https://wiki.archlinux.org/title/Locale

Run "dmesg -w", plug the dongle and post the tailing dmesg ouput it causes.
Also the outputs of "lsusb" and "lsmod" (when the dongle is plugged)

when i plug it back again, the "wlp0s29u1u1" interface appears in the list again! i want to get rid of it

Don't plug the dongle?
You'll have that NIC regardless of what driver operates it in the end and I assume you plug the dongle because you want to use the wifi? You just want it functional?

I mean i want to fix the driver, and get rid of the broken one first, then compile and install the new one. there must be a broken driver installed which handles the interface.

dmesg output:

[11062.411118] usb 2-1.1: new high-speed USB device number 11 using ehci-pci
[11062.508627] usb 2-1.1: New USB device found, idVendor=0bda, idProduct=f179, bcdDevice= 0.00
[11062.508637] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[11062.508640] usb 2-1.1: Product: 802.11n
[11062.508643] usb 2-1.1: Manufacturer: Realtek
[11062.508645] usb 2-1.1: SerialNumber: 00E0212D487C
[11062.508995] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_B_CUT_1T1R_RomVer(0)
[11076.577724] EEPROM ID(0xff00) is invalid!!
[11076.577734] EEPROM ID = 0xff00
[11076.580429] usb 2-1.1: USB disconnect, device number 11

Last edited by Kallix_ (2022-01-20 18:05:47)

Offline

#4 2022-01-20 18:24:41

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

What is the output of lsmod?  At a guess rtlwifi will be loaded.

Offline

#5 2022-01-20 18:37:17

Kallix_
Member
Registered: 2022-01-09
Posts: 19

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

loqs wrote:

What is the output of lsmod?  At a guess rtlwifi will be loaded.

lsmod:

Module                  Size  Used by
rndis_host             24576  0
cdc_ether              24576  1 rndis_host
usbnet                 53248  2 rndis_host,cdc_ether
mii                    16384  1 usbnet
cfg80211             1077248  0
rfkill                 32768  4 cfg80211
8021q                  40960  0
garp                   16384  1 8021q
mrp                    20480  1 8021q
stp                    16384  1 garp
llc                    16384  2 stp,garp
r8188eu               667648  0
libarc4                16384  1 r8188eu
vfat                   24576  1
fat                    90112  1 vfat
mousedev               24576  0
joydev                 28672  0
intel_rapl_msr         20480  0
intel_rapl_common      32768  1 intel_rapl_msr
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
coretemp               20480  0
kvm_intel             364544  0
kvm                  1089536  1 kvm_intel
irqbypass              16384  1 kvm
iTCO_wdt               16384  0
intel_pmc_bxt          16384  1 iTCO_wdt
at24                   28672  0
crct10dif_pclmul       16384  1
mei_pxp                20480  0
ppdev                  24576  0
iTCO_vendor_support    16384  1 iTCO_wdt
crc32_pclmul           16384  0
mei_hdcp               24576  0
ghash_clmulni_intel    16384  0
cryptd                 28672  1 ghash_clmulni_intel
rapl                   16384  0
intel_cstate           20480  0
snd_hda_codec_realtek   159744  1
intel_uncore          208896  0
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_intel          61440  6
r8169                 106496  0
i2c_i801               45056  0
pcspkr                 16384  0
snd_intel_dspcfg       32768  1 snd_hda_intel
realtek                36864  1
i2c_smbus              20480  1 i2c_i801
mdio_devres            16384  1 r8169
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
lpc_ich                28672  0
snd_hda_codec         184320  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
libphy                167936  3 r8169,mdio_devres,realtek
mei_me                 53248  2
snd_hda_core          118784  4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
nvidia_drm             53248  3
mei                   167936  5 mei_hdcp,mei_pxp,mei_me
nvidia_modeset       1060864  27 nvidia_drm
snd_hwdep              20480  1 snd_hda_codec
parport_pc             69632  0
mac_hid                16384  0
parport                77824  2 parport_pc,ppdev
nvidia_uvm           1912832  0
nvidia              15896576  1039 nvidia_uvm,nvidia_modeset
squashfs               77824  14
loop                   36864  28
ipmi_devintf           20480  0
ipmi_msghandler        81920  2 ipmi_devintf,nvidia
snd_aloop              36864  1
snd_pcm               167936  6 snd_hda_intel,snd_hda_codec,snd_aloop,snd_hda_core
snd_timer              45056  2 snd_aloop,snd_pcm
snd                   126976  20 snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_aloop,snd_pcm
soundcore              16384  1 snd
v4l2loopback_dc        36864  0
videodev              307200  1 v4l2loopback_dc
mc                     65536  1 videodev
crypto_user            20480  0
fuse                  172032  5
bpf_preload            16384  0
ip_tables              32768  0
x_tables               61440  1 ip_tables
ext4                  999424  1
crc32c_generic         16384  0
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  192512  1 ext4
sr_mod                 28672  0
xhci_pci               20480  0
crc32c_intel           24576  2
cdrom                  81920  1 sr_mod
usbhid                 73728  0
xhci_pci_renesas       24576  1 xhci_pci
i915                 3301376  0
intel_gtt              28672  1 i915
video                  57344  1 i915
ttm                    86016  1 i915

is it this line??

libarc4                16384  1 r8188eu

Offline

#6 2022-01-20 18:51:28

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

It's gonna be r8188eu, you can try to blacklist that one, but the invalid eeprom id looks scary enough.

Offline

#7 2022-01-20 19:22:15

Kallix_
Member
Registered: 2022-01-09
Posts: 19

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

seth wrote:

It's gonna be r8188eu, you can try to blacklist that one, but the invalid eeprom id looks scary enough.

what do you mean by "scary enough"?? is this something bad?

wait.. oh
https://github.com/lwfinger/rtl8188eu/issues/385

Offline

#8 2022-01-20 19:27:05

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

So 5.16 is missing https://github.com/torvalds/linux/commi … 38bd909211 which should stop the r8188eu module from loading for a NIC it does not support?

Offline

#9 2022-01-20 20:00:59

Kallix_
Member
Registered: 2022-01-09
Posts: 19

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

loqs wrote:

So 5.16 is missing https://github.com/torvalds/linux/commi … 38bd909211 which should stop the r8188eu module from loading for a NIC it does not support?

i don't think so, i read an article about a fact which there is a driver conflicting with it and you should blacklist it for me its "r8188eu"
so, i deleted the r8188eu driver and installed kelebek's driver for the device, however i could get the dongle working, but it couldn't find any networks around me, and i can't get it to connect to a network.

https://github.com/kelebek333/rtl8188fu

this was working for the older kernel version, what driver suggested to install?

Last edited by Kallix_ (2022-01-20 20:05:53)

Offline

#10 2022-01-20 20:29:57

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

https://github.com/kelebek333/rtl8188fu actually tells you to blacklist r8188eu (what you shoud do instead of deleting it because it will be re-installed and might end up copied in the initramfs as well)

Are you currently on 5.16? Does the kelebek333 driver still work w/ the LTS kernel?
Did you follow all the other instructions on the rtl8188fu github page, notably installing the firmware and disabling power management and especially MAC spoofing?
Did you reboot after cleaning up the module situation (to reset the chip, in doubt perform a cold reboot where you first power off the system)?

Offline

#11 2022-01-20 20:44:37

Kallix_
Member
Registered: 2022-01-09
Posts: 19

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

seth wrote:

https://github.com/kelebek333/rtl8188fu actually tells you to blacklist r8188eu (what you shoud do instead of deleting it because it will be re-installed and might end up copied in the initramfs as well)

Are you currently on 5.16? Does the kelebek333 driver still work w/ the LTS kernel?
Did you follow all the other instructions on the rtl8188fu github page, notably installing the firmware and disabling power management and especially MAC spoofing?
Did you reboot after cleaning up the module situation (to reset the chip, in doubt perform a cold reboot where you first power off the system)?

Thank you.

yes it works now! i forgot the disabling random mac address part which rendering it unusable. big_smile

shoutout to kelebek333: thank you for supporting these devices nowadays.

Last edited by Kallix_ (2022-01-20 20:44:57)

Offline

#12 2022-01-20 20:46:16

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] RTL8188 driver got broken after updating arch linux

cool
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB