Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For the past week I have been scouring Google search and specifically "AskUbuntu" for the fix for my intermittent disconnects on Wifi signal. I've posted this question a few days ago, and was lead down a path to which there was no fix. Perhaps my question wasn't clear enough. Almost all threads I've found are from people who can not connect. I can connect, it just drops periodically.I doubt this is a duplicate post, because I've tried everything on similar posts and still have this issue. Maybe I'm not using the right keywords though.

Here are the facts: Despite that my computer is literally 5 feet away from my router, I get periodic disconnects. Also, most of the time my wifi icon reads 3 out of 4 bars. I run a 3rd party VPN, and although the disconnect is for only a second, I lose my vpn connection. This causes me to have to monitor my icon to make sure there was no drop. Before I go any further I'll mention that I am on a Toshiba Satellite L755. I am running dual boot Operating systems, Windows 7 and Ubuntu 12.04 LTS. I have already sent a log to my VPN server who shows that there are no errors on their end. Plus, I'm not always connected through vpn, yet I still get a popup saying "disconnected". Also, of course, I have no issue while running Windows7 on this machine. So for the past week, I have been trying everything and anything that comes up in my search. It's worth saying that I am doing these things blindly, and have no idea if they actually pertain to my issue, but since it was suggested to other users with similar problems, I tried it. Here's what I've tried so far that has not worked: When I command sudo lspci it shows that my network controller is

Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)

It was suggested somewhere that I try sudo iwconfig wlan0 power off To which I get this:

"Error for wireless request "Set Power Management" (8B2C) : SET failed on device wlan0 ; Operation not supported". Whether this has anything to do with my problem, I have no idea.

It was suggested I go into "System Settings>Additional Drivers and I found :

"No proprietary drivers are in use on this system"

I found alot of common answers were based on the fact that my driver , Realtek , does not play well or work with Ubuntu. It was suggested on similar threads to download a new driver. Here are the steps I followed.
sudo apt-get install gcc build-essential linux-headers-generic linux-headers-$(uname -r) for necessary dependencies

1) Download driver from :realtek website
http://152.104.125.41/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#2722 and copy it to your desktop (it's about 12 MB download).

2) Right-click the downloaded file (linux_mac80211_0012.0207.2013.tar.bz2) > "Extract here". This will extract a folder named "rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_001 2.0207.2013" on your desktop.

3) Open a terminal (Ctrl+Alt+T) and run following commands : Code:

cd ~/Desktop/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013
make
sudo make install

4) Reboot or manually load the driver with - Code:

sudo modprobe -v rtl8188ee

After doing this, nothing changed. I restarted the computer, and still had the same issues. I mention that after doing step 3 above, I get a long scroll of activity, but there a number of error messages: error after install

It is at this point that I get help to my question, and was told to try this:

""""First, let's clean up the file from your first attempt:

cd Desktop/rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013
make clean

Now, let's modify one file:

gedit pci.h

At the top of the file,after the comment section all out lined in **, add this sequence:

#ifndef __devinit
#define __devinit
#define __devinitdata
#endif

Proofread carefully, save and close gedit. Now do:

make
sudo make install

Finally, I believe the driver you need is rtl8192ce and not rtl8188ee:

sudo modprobe rtl8192ce

Your wireless should now be working"""".

Here is how I entered the lines in pci.h

Pci.h gedit

AT first, I noticed that I had 4 bars in wifi(instead of 3) Apparently there is no other way to see if what I did actually worked though. It wasn't until yesterday that I noticed that the disconnection problem still persisted. So far while typing this question, my signal has dropped twice. At this point, I've tried everything in all the threads that I could find. I don't know where to go next. ANY HELP?

EDIT/FOLLOW UP: Below in comments @Chili555 asks for me to confirm driver by running

lsmod | grep rtl

My Results:

rtl8192ce             141806  0 
rtlwifi               123323  1 rtl8192ce
mac80211              630977  2 rtl8192ce,rtlwifi
cfg80211              525326  2 rtlwifi,mac80211

ALSO, Whether or not my Power Management is ON or OFF by running:

iwconfig | grep Power

My Results:

tun0      no wireless extensions.

eth0      no wireless extensions.

lo        no wireless extensions.

          Bit Rate=72.2 Mb/s   Tx-Power=20 dBm   
          Power Management:off

ALSO I took the liberty of running:

lspci -nn | grep 0280

My Results:

02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8176] (rev 01)

FURTHER EDITS: Within 5 minutes after disconnect I run this:

~$ cat /var/log/syslog | grep -e etwork -e wlan | tail -n20

MY RESULTS:

Oct  9 18:49:57 Mike-Ubuntu12 kernel: [ 6452.055962] wlan0: RX AssocResp from 58:6d:8f:89:14:46 (capab=0x11 status=0 aid=3)
Oct  9 18:49:57 Mike-Ubuntu12 kernel: [ 6452.056232] wlan0: associated
Oct  9 18:49:57 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): supplicant interface state: authenticating -> associated
Oct  9 18:49:57 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): supplicant interface state: associated -> 4-way handshake
Oct  9 18:49:57 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): supplicant interface state: 4-way handshake -> completed
Oct  9 18:51:42 Mike-Ubuntu12 kernel: [ 6557.222852] wlan0: Connection to AP 58:6d:8f:89:14:46 lost
Oct  9 18:51:42 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): supplicant interface state: completed -> disconnected
Oct  9 18:51:42 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): roamed from BSSID 58:6D:8F:89:14:46 (HighMoon) to (none) ((none))
Oct  9 18:51:42 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): supplicant interface state: disconnected -> scanning
Oct  9 18:51:43 Mike-Ubuntu12 kernel: [ 6558.171237] wlan0: authenticate with 58:6d:8f:89:14:46
Oct  9 18:51:43 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Oct  9 18:51:43 Mike-Ubuntu12 kernel: [ 6558.190989] wlan0: send auth to 58:6d:8f:89:14:46 (try 1/3)
Oct  9 18:51:43 Mike-Ubuntu12 kernel: [ 6558.192747] wlan0: authenticated
Oct  9 18:51:43 Mike-Ubuntu12 kernel: [ 6558.194187] wlan0: associate with 58:6d:8f:89:14:46 (try 1/3)
Oct  9 18:51:43 Mike-Ubuntu12 kernel: [ 6558.197471] wlan0: RX AssocResp from 58:6d:8f:89:14:46 (capab=0x11 status=0 aid=3)
Oct  9 18:51:43 Mike-Ubuntu12 kernel: [ 6558.197782] wlan0: associated
Oct  9 18:51:43 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): supplicant interface state: authenticating -> associated
Oct  9 18:51:43 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): supplicant interface state: associated -> 4-way handshake
Oct  9 18:51:43 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): supplicant interface state: 4-way handshake -> completed
Oct  9 18:51:48 Mike-Ubuntu12 NetworkManager[975]: <info> (wlan0): roamed from BSSID (none) ((none)) to 58:6D:8F:89:14:46 (HighMoon)

Further edits VIA @COTEYR:

I tried $ iwconfig wlan0 WHILE I WAS ON NORMAL /NON VPN CONNECTION. My Results:

wlan0     IEEE 802.11bgn  ESSID:"HighMoon"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 58:6D:8F:89:14:46   
          Bit Rate=7.2 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Power Management:off
          Link Quality=70/70  Signal level=-22 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:11   Missed beacon:0

Also for COTEYR: My router is Linksys Cisco E4200

EDITS 2 DAYS LATER: WHILE RUNNING CLEAN/NO VPN , MY COMPUTER DISCONNECTED.

I Run: ~$ cat /var/log/syslog | grep -e etwork -e wlan | tail -n20

interface wlan0.IPv4 with address 192.168.1.116.
Oct 10 18:19:08 Mike-Ubuntu12 avahi-daemon[959]: New relevant interface wlan0.IPv4 for mDNS.
Oct 10 18:19:08 Mike-Ubuntu12 avahi-daemon[959]: Registering new address record for 192.168.1.116 on wlan0.IPv4.
Oct 10 18:19:08 Mike-Ubuntu12 dhclient: XMT: Info-Request on wlan0, interval 930ms.
Oct 10 18:19:09 Mike-Ubuntu12 NetworkManager[970]: <info> (wlan0): writing resolv.conf to /sbin/resolvconf
Oct 10 18:19:09 Mike-Ubuntu12 NetworkManager[970]: <info> (wlan0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Oct 10 18:19:09 Mike-Ubuntu12 NetworkManager[970]: <info> Policy set 'HighMoon' (wlan0) as default for IPv4 routing and DNS.
Oct 10 18:19:09 Mike-Ubuntu12 NetworkManager[970]: <info> Activation (wlan0) successful, device activated.
Oct 10 18:19:09 Mike-Ubuntu12 NetworkManager[970]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Commit) complete.
Oct 10 18:19:09 Mike-Ubuntu12 dhclient: XMT: Info-Request on wlan0, interval 1800ms.
Oct 10 18:19:11 Mike-Ubuntu12 dhclient: XMT: Info-Request on wlan0, interval 3510ms.
Oct 10 18:19:15 Mike-Ubuntu12 dhclient: XMT: Info-Request on wlan0, interval 7250ms.
mike@
share|improve this question
1  
Can you confirm the exact driver in use? lsmod | grep rtl. Is power management on or off? iwconfig | grep Power –  chili555 Oct 9 '13 at 1:22
    
Ok Thanks. Here's something that might be of interest. Above in my OP, you'll see that after running lscpi, it says that my network controller is RTL8188CE( I just did it now, and it still shows as RTL8188ce), and the link I posted above (realtek website) takes me directly to download RTL8188CE(linux). However, upon running lsmod like you suggested, it seems to say my driver is RTL8192ce. So I wonder which is it? And should I be downloading RTL8192CE-VA4 from Realtek instead? Edits are posted. –  Mike Oct 9 '13 at 2:32
1  
I believe you have the correct driver that simply needs a little tweaking.How about power management? –  chili555 Oct 9 '13 at 4:12
    
I posted it lastnight in the edits at the bottom of my question. Power management off. Check out the edits I posted. I also did lspci -nn. –  Mike Oct 9 '13 at 10:39
1  
The next step is to check the logs to see what is happening as the disconnect occurs. Right after a disconnect, please run: cat /var/log/syslog | grep -e etwork -e wlan | tail -n20 –  chili555 Oct 9 '13 at 12:55
show 12 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.