Realtek rtl8192cu драйвер linux

Compile and install rtl8192cu driver

Can someone help me with this problem ? I am new to Linux, so I do not know commands and I never did something like installing or compiling with command-line. I bought WiFi adapter from Edimax, model EW-7811UN for my PC (not laptop, so I do not have wifi card, only ethernet). When I go through guide on CD, I came across a version of kernel. It said I need version 2.6, but I have 3.5.0-22-generic. I got errors like I do not have file or folder etc. Can someone tell me where I can download compiled driver and where I need to put it? Or some other advice. I don’t want downgrade kernel when it is not necessary.

It does not seem to work anymore; 13.04, 3.8.0-25-generic; the kernel driver allows connection to open wifis, but the connection is severed after 2 minutes or so; then I tried to build the Realtek driver with all patches I could find; it compiles but the connection is as flaky as before; furthermore when I unplugged the adapter, I got a kernel panic, any helps?

@AnttiHaapala a little late but try one of the git hub versions with the newer kernels and enable the module with 8192cu instead of rtl8192cu or build with the driver from the realtek website using kernel 3.2LTS

NP now for me now, I do not even know where this device is anymore, I just needed it for my laptop after the internal antenna was severed (now fixed)

6 Answers 6

If you run into this problem, what worked for me was installing the following driver: https://github.com/pvaret/rtl8192cu-fixes

Installation

Ensure you have the necessary prerequisites:

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

Set it up as a DKMS module:

sudo dkms add ./rtl8192cu-fixes 

Build and install it (this version number may change, it is .11 as of November 07 2019)

sudo dkms install 8192cu/1.11 

Ensure the native (and broken) kernel driver is blacklisted:

sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/ 

As a note I just did this and after the line: sudo dkms install 8192cu/1.8 I got an error. That error was: Error! Could not find module source directory. Directory: /usr/src/8192cu-1.8 does not exist. Turns out that I needed to change the /usr/src/8192cu-1.8 to /usr/src/8192cu-1.9 Must have been a recent update to the GIT and these instructions are out of date by that one digit.

Take a look in the /usr/src directory. You may have 1.9 instead if you downloaded the latest version. 😉

This works on Ubuntu 16.10. However, a question: lsmod shows me that the new driver is working instead of the old one (and my connection is now stable. ). However, if I click on «connection information» visually on my unity tray, it says that rtl8192cu (instead of just 8192cu ) is still in use. Does someone know why that is the case?

Читайте также:  Линукс сироп от кашля

12.04 & 14.04+: you can view these instructions or just do as I say.

(use these instructions when your wireless USB device [rtl8192cu] is not automatically recognized by Ubuntu)

sudo modprobe rtl8192cu echo "2001 330D" | sudo tee /sys/bus/usb/drivers/rtl8192cu/new_id echo "rtl8192cu" | sudo tee -a /etc/modules 

Then, edit /etc/rc.local by opening the file with your favorite text editor like in this example:

echo "2001 330D" | tee /sys/bus/usb/drivers/rtl8192cu/new_id exit 0 

You can use the wireless now or, alternatively, you can make sure you have all of your work saved before you type:

Your wireless driver should start up automatically.

To compile and install the proprietary Realtek 8192cu driver, run the following commands in an open terminal:

sudo apt-get update && sudo apt-get install git build-essential linux-headers-generic dkms git clone https://github.com/dz0ny/rt8192cu.git --depth 1 cd rt8192cu sudo make dkms 

For hard installation use:

instead of sudo make dkms .

To enable this driver, use the command:

Finally, update /etc/modules with this command before you reboot:

echo '8192cu' | sudo tee -a /etc/modules 

Thank you so much. I fought with my Asus USBN13 for two days before finding your answer. It worked when everything else had failed and I was about to give up.

I can’t build the driver source: $ sudo make install install -p -m 644 8192cu.ko /lib/modules/3.13.0-44-generic/kernel/drivers/net/wireless/ install: cannot stat ‘8192cu.ko’: No such file or directory

@Andy First, run make . Then, run sudo make install . I edited the answer. Thanks for pointing that out.

Generally speaking, any Linux driver on a vendor CD would be outdated, and, in most cases, would not be worth bothering with. The RTL8192cu module has been part of the Linux kernel since version 2.6.38, so that, ideally, you’d only need to plug the device in, and it would work. Unfortunately, that particular module hasn’t ever worked, and, IMHO, a fix has been long overdue (bug report).

So, what should you do? Plug in the device. Verify that the network manager ‘sees’ the wireless networks around (may also verify that the correct module is loaded by running lsmod | grep 8192 ). Try connecting to your network. If that doesn’t work, try connecting to any network. If that doesn’t work, you are affected by the bug, and will have to try the driver from http://www.realtek.com.

  • Download the driver from here, and put the downloaded file into your home folder.
  • Blacklist the existing module. In a terminal window, run gksu gedit /etc/modprobe.d/blacklist.conf , add blacklist rtl8192cu to the bottom, save and exit, then reboot.
  • Extract the downloaded archive: right click, Extract here, or run unzip RTL8192xC_USB_linux_v3.4.4_4749.20121105.zip
  • Install. In a terminal window, run sudo bash ./RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/install.sh

Thanks very much, it’s better, but I got problem. Compilation is ok, but after it I need edit install.sh or something because new folder with compiled driver is «locked» and I have to do chmod 777 on every folder and file for root . by tutorial without editing my PC freezed and I had to reboot (after line compiling driver ok and before line with remove, insert and install driver). Do you have any ideas or can you help me with fast editing rights ? Or some simple tut. how to do it through terminal and not by install.sh 🙂 Thanks

Читайте также:  Ruby installation on linux

You should not chmod anything, and I would not recommend playing with permission. Simply do what’s posted above, nothing else. :~)

Hm.. but my PC freezed . I have to reboot.. I can’t do anything and when I reboot, I see created folder by installer with lock icon :/ PC freeze before step with remove, insert and install .. It show me line that authorization is required, but it freezes and I have to reboot 🙁 I can’t go through that.

maybe I didn’t have rights because of freezing PC. but I don’t know why it freezed :/ Is it possible to do this manually ? without autoinstall . maybe I’ll find some problems during process or something like that..

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Realtek 8192 chipset driver, ported to kernel 3.11.

pvaret/rtl8192cu-fixes

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Signed-off-by: Rudi Heitbaum

Git stats

Files

Failed to load latest commit information.

README.md

This is a repackaging of Realtek’s own 8192CU USB WiFi driver for Ubuntu 13.10 and later.

!! This driver is DEPRECATED !!

This driver is not explicitly maintained.

The new rtl8xxxu driver initially introduced in kernel 4.4 works mostly well these days, and you should give it a try before trying this repository.

If rtl8xxxu gives you problems, try troubleshooting it first. Known things to look for are:

  • Make sure to blacklist the older rtl8192cu driver, which some distros seem to load by default otherwise.
  • Some devices require that power management be disabled in NetworkManager. Follow the instructions further down to disable power management in NetworkManager. Typical symptoms would be that the device works fine for a moment, and then becomes very slow or outright drops the connection.
  • If your device is not detected, make sure that your kernel enables CONFIG_RTL8XXXU_UNTESTED
  • Be sure to set the options for DMA aggregation and dual-band 2.4 GHz:
echo options rtl8xxxu ht40_2g=1 dma_aggregation=1 | sudo tee /etc/modprobe.d/rtl8xxxu.conf 

In some cases, though, this driver has been known to work fine where rtl8xxxu doesn’t. If rtl8xxxu doesn’t work for you even after the troubleshooting steps listed above, follow the instructions below to install this one instead.

These devices are known to work with this driver:

  • ASUSTek USB-N13 rev. B1 (0b05:17ab)
  • Belkin N300 (050d:2103)
  • D-Link DWA-121 802.11n Wireless N 150 Pico Adapter [RTL8188CUS]
  • Edimax EW-7811Un (7392:7811)
  • Kootek KT-RPWF (0bda:8176)
  • OurLink 150M 802.11n (0bda:8176)
  • Plugable USB 2.0 Wireless N 802.11n (0bda:8176)
  • TP-Link TL-WN725N (0bda:8176)
  • TP-Link TL-WN821Nv4 (0bda:8178)
  • TP-Link TL-WN822N (0bda:8178)
  • TP-Link TL-WN823N (only models that use the rtl8192cu chip)
  • TRENDnet TEW-648UBM N150

These devices are known not to be supported:

As a rule of thumb, this driver generally works with devices that use the RTL8192CU chipset, and some devices that use the RTL8188CUS, RTL8188CE-VAU and RTL8188RU chipsets too, though it’s more hit and miss.

Devices that use dual antennas are known not to work well. This appears to be an issue in the upstream Realtek driver.

Ensure you have the necessary prerequisites installed:

sudo apt-get update sudo apt-get install git linux-headers-generic build-essential dkms 
git clone https://github.com/pvaret/rtl8192cu-fixes.git 

Set it up as a DKMS module:

sudo dkms add ./rtl8192cu-fixes 
sudo dkms install 8192cu/1.11 

Ensure the native (and broken) kernel driver is blacklisted:

sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/ 

The instructions above should work in every Debian-based distribution. So long as you can install the prerequisites on your own, everything after the line that contains apt-get should work in other distributions as well.

There is a known issue with power management on some hardware. If your WiFi connection drops after a few minutes, install the following module setting file to disable power management in your WiFi interface:

sudo cp ./rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d/ 

Sometimes Network Manager also sets a device in a power-saving mode where it doesn’t use enough power to connect. You can fix it by editing /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and setting wifi.powersave to 2. And then reboot.

As it currently stands, the driver doesn’t populate /proc with informational data from the driver. The API for /proc has changed in recent kernels, and the driver has not been ported to the new API.

This repository was initially based on Timothy Phillips’s work as published here: https://code.google.com/p/realtek-8188cus-wireless-drivers-3444749-ubuntu-1304/, though no longer.

Thanks go to Saqib Razaq (@s-razaq) for the power management workaround.

Thanks to @CGarces for the Travis configuration.

Thanks to @rburcham for the kernel 4.15 fixes.

About

Realtek 8192 chipset driver, ported to kernel 3.11.

Источник

Оцените статью
Adblock
detector