LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-28-2012, 04:36 AM   #1
sonoob
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Wifi Adapter Causing Freeze ups?


I have a usb wifi adapter. Its a random chinese make but it has a realtek rtl8192CU chip or whatever is in there or at least thats what the driver is called. After installing latest 64 bit ubuntu, the card was recognized and was working but it often randomly loses connection and won't connect unless I take it out and plug it back in. When im in firefox and wifi disconnects, I become unable to minimize the window, make it smaller or even see the browser tabs when I bring the cursor to the top left, I also can't bring out the thing on the left which holds different software. I can't alb-tab either. I am unable to access the mail, connection, sound, or turn off menu from top right when this happens as well I dont know how my wifi adapter and all this is related but it is somehow. I am able to bring up the menu option with alt+f command but unable to use any of them. Cant minimize with shortcut either. Are there any logs that would provide why thisi s happenning?

Last edited by sonoob; 02-28-2012 at 05:28 AM.
 
Old 02-28-2012, 05:21 AM   #2
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Rep: Reputation: 21
Maybe, you can use modprobe to insert the kernel module (driver) by hand to make sure it works. You can get a list of the loaded modules by running:
Code:
lsmod
I think, you can insert the module (driver) by running as root:
Code:
modprobe driver-name
To uninsert a module:
Code:
modprobe -r module-to-be-uninserted
However, it is advised that you uninsert the other driver to prevent both drivers trying to control the same hardware. As root:
Code:
modprobe driver-name
To permanently prevent the previous driver from being loaded automatically at boot you can blacklist it. Search about blacklisting (google keywords blacklist linux ubuntu).
 
Old 02-28-2012, 06:09 AM   #3
sonoob
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
lsmod gives me the following that includes the name on my adapter

Code:
rtl8192cu             103210  0 
rtl8192c_common        75767  1 rtl8192cu
rtlwifi               110972  1 rtl8192cu
mac80211              462046  3 rtl8192cu,rtl8192c_common,rtlwifi
cfg80211              199630  2 rtlwifi,mac80211
which one to uninsert? all of them?

and im not sure if my driver on cd is even insertable.. Ive read that drivers have to be compiled and all I have here after extracting the driver is a bunch of files with extensions "c" and "h" Is there a specific file which will launch all of these small files? What does a compiled linux driver even look like?

Also the more I noticed that when the problem I wrote in 1st post happens and everything gets stuck, if I close all but the last tabs in firefox, I am able to minimize it and restore the work of the language,mail,connection,time,account, and power buttons in top right... At this point, I have no idea what this could be, Im just thinking if I throw out as many signs as possible someone will be able to identify the potential problem.

Last edited by sonoob; 02-28-2012 at 06:20 AM.
 
Old 02-28-2012, 06:29 AM   #4
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Rep: Reputation: 21
The .c and .h files are source files meaning that it has to be compiled by a compiler. You can install the basic compiler support files by installing build-essential package. To install it run this command:
Code:
sudo apt-get install build-essential
To help you with the installation procedure you can use module assistant which does everything for you but you need build-essential.

Code:
sudo apt-get install module-assistant
Then run module-assistant to do the installation of the driver.
Code:
sudo m-a -k source_headers_directory --install
For instace, if you expand the files to a directory named wifi-drv in your home directory, the command would be:
Code:
sudo m-a -k ~/wifi-drv --install
Hopefully, this helps.

Note:
Although, I am not an Ubuntu user, I tried to help you. As far as I know, there is a graphical tool that you can use to install drivers but I have no idea as to what capabilities it possesses. So, I gave you the solution which I think should always work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WAN connection disconnects randomly on Slackware router mahovlich Linux - Networking 6 02-22-2011 12:54 PM
wireless network disconnects randomly. nir_hp Linux - Wireless Networking 1 08-04-2008 01:20 PM
wireless network disconnects randomly. nir_hp Slackware 14 08-04-2008 01:18 PM
modem randomly disconnects samweis2111 Linux - Networking 3 02-07-2006 01:39 AM
dialup disconnects randomly, suse9.1 trave113rman SUSE / openSUSE 0 12-18-2004 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration