[SOLVED] Re: WiFi Adapter RTL8192CU Issue

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] Re: WiFi Adapter RTL8192CU Issue

Postby pnbalaji » Jun 29th, '15, 09:48

Hi,

I had Manjaro installed on my desktop and I replaced it with Mageia 5 XFCE. I have a TP-LINK TL-WN823N wifi adapter on my desktop to connect to my Wireless network. I was able to install the updated driver for this Wifi adapter in Salix using the link https://sites.google.com/site/easylinux ... /reserve-7. The adapter is based on the realtek chipset RTL8192CU, which is a problematic chipset for many linux distros.

However, the instructions in the above site is not working under Mageia. When I run the command dkms add ./rtl8129cu-fixes, I get the message saying "dkms: Invalid number of arguments passed". I tried it as "dkms add -m rtl8192cu -v 1.10", but I still get an error message saying "does not exist /usr/src/linux/rtl8192cu-1.10".

I really wanted to Keep Mageia 5. It is fast and stable so far.

The full instructions to install the patched driver for my WiFi adapter is below.

Code: Select all
git clone https://github.com/pvaret/rtl8192cu-fixes.git
sudo dkms add ./rtl8192cu-fixes            ==> This is where I am getting error message.
sudo dkms install 8192cu/1.10
sudo depmod -a
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/


Can some one help?

Thanks,
Balaji.
Last edited by pnbalaji on Jul 1st, '15, 07:52, edited 1 time in total.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: WiFi Adapter Issue

Postby doktor5000 » Jun 29th, '15, 20:59

What media did you use to install Mageia?
Did you try the rtl8192cu driver that Mageia brings by default before putting some external driver in place?

For your dkms issue, our dkms version requires the source to be below /usr/src and it also expects a module name and module version

dkms add

Error! Invalid number of arguments passed.
Usage: add -m <module> -v <module-version>


You would need to copy the downloaded directory before adding it:

Code: Select all
git clone https://github.com/pvaret/rtl8192cu-fixes.git
sudo cp -r rtl8192cu-fixes /usr/src/rtl8192cu-fixes-1.10
sudo dkms add -m rtl8192cu-fixes -v 1.10

Creating symlink /var/lib/dkms/rtl8192cu-fixes/1.10/source ->
                 /usr/src/rtl8192cu-fixes-1.10

DKMS: add Completed.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18224
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: WiFi Adapter Issue

Postby MauRice » Jun 29th, '15, 21:39

First of all, I don't have a Wifi with rtl8192cu chipset.
And I don't know if Mageia has patched the rtl8192cu kernel-module.
I only that the rtl8192cu is tricky.

To execute the commamd "(sudo) dkms add ./rtl8192cu-fixes" you need a higher version of dkms, than is shipped with Magiea 5.
If you execute the command from Dokter5000. you also need to modify the folder structure or the dkms.conf file.
The dkms.conf file expect to find the source code in /usr/src/8192cu-1.10 and not in /usr/src/rtl8192cu-fixes-1.10
MauRice
MauRice
 
Posts: 22
Joined: Mar 25th, '11, 20:52

Re: WiFi Adapter Issue

Postby jiml8 » Jun 29th, '15, 22:45

/usr/src/linux is a symlink. It will be linked to /usr/src/kernel-blahblah. Look at the directory of /usr/src and you should be able to identify what that link should point to. Typically you'll have one kernel directory with "desktop" in the name, and one that looks identical but does not have "desktop". The driver you want will be found in the directory that does not have "desktop" in it.

Also, that link is not found in recent versions of (at least) Mageia. So if you want it, you'll have to define it yourself.

Beyond that, the rtl8192cu driver will not be found in /usr/src/linux. It will be found in /usr/src/linux/drivers/net/wireless/rtlwifi/rtl8192cu.

You should make the appropriate adjustments to your patch script.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

[SOLVED] Re: WiFi Adapter RTL8192CU Issue

Postby pnbalaji » Jul 1st, '15, 07:51

Hi Doktor5000,

Thanks for your reply. I was able to resolve the issue by myself after doing some googling and reading the man pages of dkms. Below is what I tried.

1. Switch to root using "su" command.
2. Ran the command "git clone https://github.com/pvaret/rtl8192cu-fixes.git".
3. Opened pcmanfm as root and created the directory "8192cu-1.10" under /usr/src.
4. Opened the directory ~/Downloads/rtl8192cu-fixes as root and copied the entire contents from there and pasted them under /usr/src/8192cu-1.10.
5. Ran the command "dkms add -m 8192cu -v 1.10"
6. Ran the command "dkms build -m 8192cu -v 1.10".
7. Ran the command "dkms install -m 8192cu -v 1.10".
8. Ran the command "depmod -a"
9. Ran the command "cp blacklist-native-rtl8192.conf /etc/modprobe.d"
10. sudo cp ./rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d/
11. Rebooted the machine and the wifi adapter started working.


Editing this thread to add one more command which is causing the issue of weak WiFi signal when the machine wakes up from hibernate. A new command is added after step 9.

Thanks,
Balaji.
Last edited by pnbalaji on Jun 25th, '16, 05:44, edited 1 time in total.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: [SOLVED] Re: WiFi Adapter RTL8192CU Issue

Postby doktor5000 » Jul 1st, '15, 21:43

Now you should open a bugreport, describe that for your chipset this patched version is necessary, add the output of lspcidrake -v in there and ask if this patched driver can be packaged or integrated with the kernel.
... after searching if it hasn't been reported yet already: https://wiki.mageia.org/en/How_to_report_a_bug_properly
For completeness's sake and also to allow others to follow up on that bug report, please also post the link to it here in the thread, thanks.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18224
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Re: WiFi Adapter RTL8192CU Issue

Postby pnbalaji » Jul 2nd, '15, 02:27

Thanks. Will do.

Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: [SOLVED] Re: WiFi Adapter RTL8192CU Issue

Postby pnbalaji » Mar 8th, '16, 08:48

Hi,

Just wanted to say "Thank you" on this topic. I have been using Mageia for couple of months and it is rock stable and completely fits for my home usage. All problems that I had with Linux/Mageia (Wifi Issue, Pulseaudio Issue) were resolved with the help of forums.

I used Ubuntu, Slackware and some other distros, but they all have one thing in common. Every time, when there is a kernel update, I had to rebuild and re-deploy the DKMS module of my wifi adapter's rtl8192cu chipset. However, with Mageia, it was not the case. Though the system received couple of kernel updates, I never had to run the DKMS process again. Somehow, Mageia was able to handle it with out any issues.

Hats off to Mageia and thanks for providing such an awesome distro!!!

Thanks,
Balaji.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: [SOLVED] Re: WiFi Adapter RTL8192CU Issue

Postby hansmicheelsen » Aug 15th, '17, 23:36

I found that in order to compile with kernels equal to or newer than 4.11.0 you'll have to add the following in top of
/usr/src/8192cu-1.10/include/osdep_service.h

Code: Select all
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
#include <linux/sched/signal.h>
#endif


Just put it after the
Code: Select all
#ifndef __OSDEP_SERVICE_H_
#define __OSDEP_SERVICE_H_


I found this in https://forum.manjaro.org/t/error-with-rtl8812au/24066/5. Thank you very much Manjaro forum
hansmicheelsen
 
Posts: 55
Joined: Apr 12th, '13, 18:19


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest