Welcome!

Please read this important information about Spectre and Meltdown vulnerabilities.
Please read this important information about MX sources lists.
News
  • MX Linux on social media: here
  • Mepis support still here
Current releases
  • MX-17 Final release info here
  • MX-16.1 release info here
  • antiX-17 release info here
    New users
    • Please read this first, and don't forget to add system and hardware information to posts!
    • Read Forum Rules

TP-Link TL-WN822N wifi dongle on MX-17

Message
Author
User avatar
tascoast
Forum Guide
Forum Guide
Posts: 1011
Joined: Sat Aug 06, 2011 4:58 am

TP-Link TL-WN822N wifi dongle on MX-17

#1 Postby tascoast » Sat Dec 09, 2017 3:50 am

I have a new wifi dongle TP-Link TL-WN822N and find MX-14-16 does not recognise any hardware.
MX-17b3 does and does everything but connect. As soon as configures a selected wifi connection is immediately disconnects again.
I tried the NDISwrapper approach but the *.inf drivers on the accompanying CD were not recognised.
http://www.tp-link.com/us/download/TL-W ... tml#Driver offers TL-WN822N(US)_V4_160315_Linux.zip but this has no obvious way to proceed after extracting, nor a readme. (see attached image of files/folders)
I wonder if, given how it almost connects, there might be an easier way to proceed? I've tried all the combinations of drivers in Network Assistant, loading and unloading.
The drivers MX-17 load by default are:
tg3
libphy
rtl8xxxu.
Cheers
Mick

http://www.tp-link.com/us/download/TL-W ... tml#Driver details from page

Code: Select all

Published Date
   
2016-03-15
   
Language
   
English
   
File Size
   
2.76 MB
Operating System
   
Linux (kernel 2.6.18 ~ 3.10.10)
Modifications and Bug Fixes
   
Support linux(kernel 2.6.18 ~ 3.10.10)
Notes
   
For TL-WN822N(US) 4.0
You do not have the required permissions to view the files attached to this post.
Lenovo ThinkCentre A58 4GBRAM, MX-16 RC1/MX14.04/MX-15.01/antiX16(64-bit)-Aspire One D255E 1.66GHz, 512KB cache, 1GB RAM-MX-15.01/W10

User avatar
LnoyBoy
Forum Novice
Forum  Novice
Posts: 87
Age: 2017
Joined: Fri Jul 14, 2006 2:39 am

Re: TP-Link TL-WN822N wifi dongle on MX-17

#2 Postby LnoyBoy » Sat Dec 09, 2017 1:25 pm

Just curious, since I had a 'disconnected' issue recently.

What happens when you unplug, and replug the dongle while the system is up and running?

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 14102
Age: 59
Joined: Fri Dec 15, 2006 8:07 pm

Re: TP-Link TL-WN822N wifi dongle on MX-17

#3 Postby Stevo » Sat Dec 09, 2017 5:32 pm

That uses a Realtek 8192eu chipset. Possibly the updated driver for the DLink device that uses the same chipset will work: https://github.com/Mange/rtl8192eu-linux-driver

Though as usual, giving the inxi output can't hurt at all

Code: Select all

inxi -N


so we can see what the actual USB ID of the device says.

User avatar
tascoast
Forum Guide
Forum Guide
Posts: 1011
Joined: Sat Aug 06, 2011 4:58 am

Re: TP-Link TL-WN822N wifi dongle on MX-17

#4 Postby tascoast » Sat Dec 09, 2017 10:33 pm

I have to get my head around the github instructions. DKMS is present at least.

Add the driver to DKMS. This will copy the source to a system directory so that it can used to rebuild the module on kernel upgrades.

$ sudo dkms add .

Build and install the driver.

$ sudo dkms install rtl8192eu/1.0


This part leaves me feeling clueless.

wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz
and
20140812_rtl8192EU_linux_v4.3.1.1_11320.tar.gz

are the two files seen when I extract DWA-131_Linux_driver_v4.3.1.1.zip (apart from readme (which refers to Fedora 4.0) etc).

As for inxi -N I can only see
Network: Card-1: Marvell 88E8057 PCI-E Gigabit Ethernet Controller driver: sky2

I assume the system can't recognise the dongle chipset at this stage. I assume this is because it's a fairly new chipset from a Linux perspective.
I do have the original dongle, although the range is a bit limited for my situation.
Network: Card-1: Marvell 88E8057 PCI-E Gigabit Ethernet Controller driver: sky2
Card-2: Realtek RTL8191SU 802.11n WLAN Adapter driver: r8712u
Lenovo ThinkCentre A58 4GBRAM, MX-16 RC1/MX14.04/MX-15.01/antiX16(64-bit)-Aspire One D255E 1.66GHz, 512KB cache, 1GB RAM-MX-15.01/W10

sunrat
Forum Novice
Forum  Novice
Posts: 36
Joined: Mon Mar 28, 2016 9:54 pm

Re: TP-Link TL-WN822N wifi dongle on MX-17

#5 Postby sunrat » Sun Dec 10, 2017 4:33 am

tascoast wrote:This part leaves me feeling clueless.

wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz
and
20140812_rtl8192EU_linux_v4.3.1.1_11320.tar.gz

are the two files seen when I extract DWA-131_Linux_driver_v4.3.1.1.zip (apart from readme (which refers to Fedora 4.0) etc).

These are the wrong files, looks like the ones from TP-Link website which won't work.
The correct file from the Github page is called rtl8192eu-linux-driver-realtek-4.4.x.zip . Click the Clone or Download button near the top. Extract it, open a terminal in the extracted folder and follow the instructions:
Make sure to have kernel headers and build tools installed. The instructions on Github are wrong as they are for Ubuntu.

Code: Select all

$ sudo dkms add .
$ sudo dkms install rtl8192eu/1.0

Reboot, configure your connection and go. You can check if the module is loaded with lsmod or $ lshw -c network. Look for rtl8192eu
It's a temperamental interface, doesn't show in inxi and lsusb only shows Bus 001 Device 002: ID 2357:0108 but it works. I have installed it in a few distros and have the V4 version of the dongle. In another distro it doesn't initialize at boot but does after unplugging it and replugging! Seems OK in MX. Early versions have Atheros chip and are much easier and more reliable.

User avatar
tascoast
Forum Guide
Forum Guide
Posts: 1011
Joined: Sat Aug 06, 2011 4:58 am

Re: TP-Link TL-WN822N wifi dongle on MX-17

#6 Postby tascoast » Sun Dec 10, 2017 5:18 am

sunrat wrote:
tascoast wrote:This part leaves me feeling clueless.

wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz
and
20140812_rtl8192EU_linux_v4.3.1.1_11320.tar.gz

are the two files seen when I extract DWA-131_Linux_driver_v4.3.1.1.zip (apart from readme (which refers to Fedora 4.0) etc).

These are the wrong files, looks like the ones from TP-Link website which won't work.
The correct file from the Github page is called rtl8192eu-linux-driver-realtek-4.4.x.zip . Click the Clone or Download button near the top. Extract it, open a terminal in the extracted folder and follow the instructions:
Make sure to have kernel headers and build tools installed. The instructions on Github are wrong as they are for Ubuntu.

Code: Select all

$ sudo dkms add .
$ sudo dkms install rtl8192eu/1.0

Reboot, configure your connection and go. You can check if the module is loaded with lsmod or $ lshw -c network. Look for rtl8192eu
It's a temperamental interface, doesn't show in inxi and lsusb only shows Bus 001 Device 002: ID 2357:0108 but it works. I have installed it in a few distros and have the V4 version of the dongle. In another distro it doesn't initialize at boot but does after unplugging it and replugging! Seems OK in MX. Early versions have Atheros chip and are much easier and more reliable.


Fantastic, thanks all very much. MX-16 is quite happy with this process, although MX-17b still wants to disconnect as soon as it would normally be ready to use and showing the wifi connection icon/strength.

**Ill be patient with MX-17 for now as I know things will be revised along the way before release, so I'll keep tinkering as we go along.

I had the same output in MX-17 as for MX-16 shown below.


$ sudo dkms install rtl8192eu/1.0 (for reference)

Code: Select all

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
'make' all KVER=4.7.0-0.bpo.1-amd64...............................
cleaning build area....

DKMS: build completed.

8192eu.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.7.0-0.bpo.1-amd64/kernel/drivers/net/wireless//

depmod.....

Backing up initrd.img-4.7.0-0.bpo.1-amd64 to /boot/initrd.img-4.7.0-0.bpo.1-amd64.old-dkms
Making new initrd.img-4.7.0-0.bpo.1-amd64
(If next boot fails, revert to initrd.img-4.7.0-0.bpo.1-amd64.old-dkms image)
update-initramfs.......

DKMS: install completed.

Lastly, for reference

Code: Select all

$ sudo lshw -c network
[sudo] password for mick:
  *-network               
       description: Ethernet interface
       product: 88E8057 PCI-E Gigabit Ethernet Controller
       vendor: Marvell Technology Group Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eth0
       version: 10
       serial: 00:01:6c:48:1a:77
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.30 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:26 memory:febfc000-febfffff ioport:e800(size=256) memory:febc0000-febdffff
  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@2:5
       logical name: wlan2
       serial: d4:6e:0e:03:aa:55
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192eu ip=192.168.20.2 multicast=yes wireless=IEEE 802.11bgn
Lenovo ThinkCentre A58 4GBRAM, MX-16 RC1/MX14.04/MX-15.01/antiX16(64-bit)-Aspire One D255E 1.66GHz, 512KB cache, 1GB RAM-MX-15.01/W10

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 20382
Joined: Wed Jul 19, 2006 6:13 am

Re: TP-Link TL-WN822N wifi dongle on MX-17

#7 Postby Jerry3904 » Sun Dec 10, 2017 6:50 am

I see "wlan2" in there. Do you actually have two other wireless devices for interfaces wlan0 and wlan1?
Production: 4.13.0-1-amd64, MX-17, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.13.0-1-386. MX-17, AMD C-60 APU, 4 GB

User avatar
tascoast
Forum Guide
Forum Guide
Posts: 1011
Joined: Sat Aug 06, 2011 4:58 am

Re: TP-Link TL-WN822N wifi dongle on MX-17

#8 Postby tascoast » Sun Dec 10, 2017 7:02 am

Jerry3904 wrote:I see "wlan2" in there. Do you actually have two other wireless devices for interfaces wlan0 and wlan1?

I only have one other dongle, usually plugged into a different USB port, although I'd removed it by this stage ( sudo lshw -c network).
My android phone is also tethered sometimes for internet access. Network Manager shows a wired connection icon in this situation.

I have also used a mobile internet dongle (ie with a SIM card), although not for several months.

It is true that this new dongle does not register in inxi -N.
Cheers
Lenovo ThinkCentre A58 4GBRAM, MX-16 RC1/MX14.04/MX-15.01/antiX16(64-bit)-Aspire One D255E 1.66GHz, 512KB cache, 1GB RAM-MX-15.01/W10

sunrat
Forum Novice
Forum  Novice
Posts: 36
Joined: Mon Mar 28, 2016 9:54 pm

Re: TP-Link TL-WN822N wifi dongle on MX-17

#9 Postby sunrat » Sun Dec 10, 2017 9:38 am

I just installed MX17b3 and got this working, sort of. It didn't work initially with NetworkManager so I put config in /etc/network/interfaces. It still didn't initialise on booting but came up after doing ifup wlan0.
lshw initially showed it using the wrong driver (rtl8xxxu) but it was working. I blacklisted that and it then showed rtl8192eu, didn't seem to make much difference, still working.
A bit of an ordeal. Give me a nice Atheros chip dongle any day. :wink:

Code: Select all

*-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:1
       logical name: wlan0
       serial: 18:a6:f7:12:ff:8f
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192eu ip=192.168.0.2 multicast=yes wireless=IEEE 802.11bgn

sunrat
Forum Novice
Forum  Novice
Posts: 36
Joined: Mon Mar 28, 2016 9:54 pm

Re: TP-Link TL-WN822N wifi dongle on MX-17

#10 Postby sunrat » Tue Dec 12, 2017 12:49 am

Update - I just installed MX17RC1 and got this working and it initialised at boot (once at least) and works with NetworkManager this time.
Basically the same steps:
- build and install the driver with dkms
- blacklist rtl8xxxu by creating a blacklist file in /etc/modprobe.d/
- reboot
- configure with password in NM
- profit!

I'm posting from it now.
@tascoast I don't know why yours wouldn't work the same. It shows the rtl8192eu being used already. Maybe try blacklisting the other driver anyway. Or maybe it's because of the wlan2 issue mentioned above and NM is attempting to configure a different interface. Lotsa luck! Works ok once you get it working. What version of the dongle do you have, by the way? This one is V4.0 and my old reliable Atheros one is V2.


Return to “Hardware /Configuration”

Who is online

Users browsing this forum: No registered users and 2 guests