You are not logged in.

#1 2016-11-23 17:01:01

susse
Member
Registered: 2016-11-23
Posts: 9

[SOLVED] rtl8192eu USB Wifi not working

Hello,

i got myself a new TP-LINK TL-WN821N 300Mbps USB Dongle which won't work (out of the box) with Archlinux.

The official drivers from http://www.tp-link.com/en/download/TL-W … tml#Driver didn't compile at all.
So i tried these: https://github.com/Mange/rtl8192eu-linux-driver
Which compiled & loaded just fine.

lsusb:

Bus 001 Device 005: ID 2357:0107

kernel:

Linux hostname 4.8.10-1-ARCH #1 SMP PREEMPT Mon Nov 21 11:55:43 CET 2016 x86_64 GNU/Linux

iwconfig:

lo        no wireless extensions.

wifi0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
ifconfig wifi0 up

works fine.

But when i try to connect to my AP

wpa_supplicant -B -iwifi0 -c/etc/wpa_supplicant.conf

it fails with:

Successfully initialized wpa_supplicant
nl80211: Could not configure driver mode
nl80211: deinit ifname=wifi0 disabled_11b_rates=0
wifi0: Failed to initialize driver interface

What am i missing?

Thank you guys (and girls) in advance!



Edit:
I also tried ndiswrapper-dkms, but i didn't get any wireless device at all (iwconfig)

Last edited by susse (2016-11-23 19:22:13)

Offline

#2 2016-11-23 18:40:31

susse
Member
Registered: 2016-11-23
Posts: 9

Re: [SOLVED] rtl8192eu USB Wifi not working

After playing around a little i managed to get it working:

Adding -Dwext

wpa_supplicant -iwifi0 -c/etc/wpa_supplicant.conf -Dwext

results in

rfkill: Cannot get wiphy information
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument

but connects without problems.

Last edited by susse (2016-11-23 18:42:18)

Offline

#3 2016-11-23 18:44:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 28,156
Website

Re: [SOLVED] rtl8192eu USB Wifi not working

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-11-26 13:15:27

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,006

Re: [SOLVED] rtl8192eu USB Wifi not working

You could try out the new rtl8xxxu driver, it usually works much better.


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2016-11-28 13:19:32

susse
Member
Registered: 2016-11-23
Posts: 9

Re: [SOLVED] rtl8192eu USB Wifi not working

Mr.Elendig wrote:

You could try out the new rtl8xxxu driver, it usually works much better.

URL?
The ones from archlinux won't recognize my wifi dongle

Offline

#6 2016-11-28 14:05:02

seth
Member
Registered: 2012-09-03
Posts: 13,086

Re: [SOLVED] rtl8192eu USB Wifi not working

You blacklist rtl8192eu and (in doubt explicitly) load rtl8xxxu.
With a little "luck", you can tear down the network, unload rtl8192eu and load rtl8xxxu w/o having to edit the system setup.

Offline

#7 2016-11-28 14:30:20

susse
Member
Registered: 2016-11-23
Posts: 9

Re: [SOLVED] rtl8192eu USB Wifi not working

$ sudo rmmod 8192eu
$ sudo rmmod rtl8192eu
rmmod: ERROR: Module rtl8192eu is not currently loaded
$ sudo modprobe rtl8xxxu
$ sudo iwconfig
lo        no wireless extensions.
$

Offline

#8 2016-11-30 23:13:46

jeremy31
Member
Registered: 2015-11-01
Posts: 149

Re: [SOLVED] rtl8192eu USB Wifi not working

susse
It should be obvious that the kernel doesn't support your USB wireless device or you would not have needed Mange's github source code

This is the commit to Mange's source code that allowed it to support your device, https://github.com/Mange/rtl8192eu-linu … 36eff1416d

Offline

#9 2016-12-02 10:29:36

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,006

Re: [SOLVED] rtl8192eu USB Wifi not working

rtl8xxxu does support 8192eu devices. Try using iw instead of the deprecated iwconfig, also post dmesg output.

https://wireless.wiki.kernel.org/en/users/drivers/rtl819x wrote:

rtl8xxxu is a multi-driver for USB devices(RTL8723AU/RTL8723BU/RTL8191EU/RTL8192EU/RTL8188EU/RTL8188RU) (4.3+), for other chips WIP: git-tree

Edit: also check rfkill status.

Last edited by Mr.Elendig (2016-12-02 10:32:32)


Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2016-12-02 11:13:49

jeremy31
Member
Registered: 2015-11-01
Posts: 149

Re: [SOLVED] rtl8192eu USB Wifi not working

The OP's device was added to linux-next in September http://git.kernel.org/cgit/linux/kernel … 0b99e5568d

You could always check

modinfo rtl8xxxu | grep 0107

To see if that module has support in the currently loaded kernel

Offline

#11 2016-12-02 13:05:17

R00KIE
Forum Moderator
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] rtl8192eu USB Wifi not working

Is it possible to add a new vip:pid combination on the fly? Some drivers allow you to do that.

Edit:
It seems that route is a no go, there is no new_id file for the rtl8xxxu driver. See https://www.kernel.org/doc/Documentatio … fs-bus-usb

Last edited by R00KIE (2016-12-02 13:16:02)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#12 2017-06-09 15:00:48

susse
Member
Registered: 2016-11-23
Posts: 9

Re: [SOLVED] rtl8192eu USB Wifi not working

After using this Wifi dongle for a while i only have one thing to say: don't buy it (if you plan to use it with linux).

1. It works quite well on a freshly booted PC. But if you plan to use standby features on your PC, the dongle will have big issues keeping up a stable connection/data rates above 30kb/s. My workaround is to unbind and then rebind my USB bridges (or what they are called, echo -n "0000:00:xyz..." > /sys/bus/pci/drivers/ohci-pci/unbind + /sys/bus/pci/drivers/ehci-pci/unbind) before reconnection to my wifi router. Reloading the 8192eu kernel module actually make things worse. Same with ohci_pci, ehci_pci ... kernel modules.

2. From some to time the dongle won't authenticate to my wifi router, while other devices can. I don't know why, but rebooting my *router* helps.

3. Furthermore, i have to reboot my router at least every 1-3 days. The dongle is capable to DoS my wifi's router 2.4ghz channel(s) - so no traffic is send/retrieved to *any* device anymore. New devices cannot connect. Authenticated devices won't retrieve any data anymore. That AP is still listed when scanned. (I'm not even mad - that's amazing!)
Rebooting my router preventive at night won't have any positive effect. I might have to reboot my router again the same day.

My workaround so far: use another wifi dongle.
I'll probably gift this dongle to a person - i don't like.

Offline

#13 2018-01-15 15:30:52

bloed
Member
Registered: 2018-01-15
Posts: 1

Re: [SOLVED] rtl8192eu USB Wifi not working

Hello everyone. I just found the solution. (For TP-LINK TL-WN821N v4)
*You need to know the version of your device.
You need to install the RTL8192CU driver (Do not confuse with RTL8192EU)
All instability problems in the connection are solved. WORKS!!!
Info? https://wikidevi.com/wiki/TP-LINK_TL-WN821N_v4
Thank you all. smile

Last edited by bloed (2018-01-15 15:38:26)

Offline

Board footer

Powered by FluxBB