TL-WN822N Ver.3 wifi driver-how to install?

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
mirabela1001

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by mirabela1001 »

I got the following error:

********** ~ $ sudo dkms uninstall 8192cu/1.10
[sudo] password for **********:

-------- Uninstall Beginning --------
Module: 8192cu
Version: 1.10
Kernel: 3.16.0-38-generic (i686)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

8192cu.ko:
- Uninstallation
- Deleting from: /lib/modules/3.16.0-38-generic/kernel/drivers/net/wireless//
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod.......

Backing up initrd.img-3.16.0-38-generic to /boot/initrd.img-3.16.0-38-generic.old-dkms
Making new initrd.img-3.16.0-38-generic
(If next boot fails, revert to initrd.img-3.16.0-38-generic.old-dkms image)
update-initramfs...............

DKMS: uninstall completed.
********** ~ $ sudo dkms remove ./rtl8192cu-fixes
Error! Invalid number of parameters passed.
Usage: remove <module>/<module-version> --all
or: remove <module>/<module-version> -k <kernel-version>
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by JeremyB »

Ok, then use

Code: Select all

sudo dkms remove 8192cu/1.10 --all
Then try the edit to the Makefile
mirabela1001

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by mirabela1001 »

I made the changes and it has worked fine for the last hour or so. I keep checking.
Last edited by mirabela1001 on Wed Nov 18, 2015 12:40 pm, edited 1 time in total.
mirabela1001

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by mirabela1001 »

It looks like working OK. I think it would be interesting to move the wifi adapter to and repeat the experiment on the other (Mint 13) computer. Yet, after all these changes, I am not sure what exactly the set of commands is.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by JeremyB »

With LM13

Code: Select all

sudo apt-get install --reinstall build-essential dkms git
git clone https://github.com/pvaret/rtl8192cu-fixes.git
Make the edit to the Makefile, then

Code: Select all

sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.10
echo "blacklist rtl8192cu" | sudo tee -a /etc/modprobe.d/blacklist.conf
Reboot
mirabela1001

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by mirabela1001 »

This is what I did for LM13:

sudo apt-get install --reinstall build-essential dkms git
git clone https://github.com/pvaret/rtl8192cu-fixes.git

Then open the rtl8192cu-fixes folder in the file manager and
double click on 'Makefile', scroll to line 32 and make it

CONFIG_POWER_SAVING = n

Save and exit the text editor then

sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.10
echo "blacklist rtl8192cu" | sudo tee -a /etc/modprobe.d/blacklist.conf

Then reboot.

I did not notice any problem. After reboot, the connection was active for 30 seconds and stopped. I rebooted, executed the last command once more, and rebooted again. The connection started to work fine, and has done so for about 20 minutes already. I will leave it on overnight to see what happens.
Anyway, supposing that I need to repeat all on a Mint 17 PC, are the commands listed above OK or is there something that is specific to Mint 13?
mirabela1001

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by mirabela1001 »

After enough testing I see that it doesn't work at all on MInt 13, I get disconnected all the time. But this is irrelevant because I can install Mint 17.2 on that PC, which is easier than trying to fix LM13.
The only question is if the set of commands in my previous post can be used for MInt 17 or if some changes are needed.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by JeremyB »

mirabela1001 wrote:After enough testing I see that it doesn't work at all on MInt 13, I get disconnected all the time. But this is irrelevant because I can install Mint 17.2 on that PC, which is easier than trying to fix LM13.
The only question is if the set of commands in my previous post can be used for MInt 17 or if some changes are needed.
Did you attempt

Code: Select all

echo "options 8192cu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/8192cu.conf
with LM13?
mirabela1001

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by mirabela1001 »

It says
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
and I am testing to see the effects.
Anyway, if they are not positive there is no need to continue with Mint 13 as long as for 17 the connection is reasonably stable.
I just want to make sure that the commands listed in my post of Wed, 10:44pm are OK for Mint 17.
mirabela1001

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by mirabela1001 »

It works. There still are some interruptions, but they are similar to those of Mint 17 - that is, reasonably unfrequent. I think that there is no need for further efforts.
It's only that I would like to have the complete recipe in case I need to reinstall Mint 17.2 on these or other PCs. Could you please let me know if these steps are OK:

sudo apt-get install --reinstall build-essential dkms git
git clone https://github.com/pvaret/rtl8192cu-fixes.git

Then open the rtl8192cu-fixes folder in the file manager and double click on 'Makefile', scroll to line 32 and make it

CONFIG_POWER_SAVING = n

Save and exit the text editor then

sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.10
echo "blacklist rtl8192cu" | sudo tee -a /etc/modprobe.d/blacklist.conf

Reboot.

"options 8192cu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/8192cu.conf

Reboot again.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by JeremyB »

The one command is

Code: Select all

echo "options 8192cu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/8192cu.conf
And it can be done before even downloading the module from github
mirabela1001

Re: TL-WN822N Ver.3 wifi driver-how to install?

Post by mirabela1001 »

Thanks a lot, Jeremy. I really appreciate your help.
Locked

Return to “Networking”