Wireless keeps cutting out every several minutes on a Realtek RTL8187SE
Dropped WiFi connections can either be environmental or software related.
I'll try to keep this as generic as possible, so that the answer could apply to any WiFi cards.
Three environmental areas that you should consider before delving into the software suggestions below:
WIFI Encryption - Try changing the encryption method on your WIFI router, see if that results in a more stable connection.
WIFI Router itself - Try moving to a new access point, do you still have connectivity issues?
WIFI Channel - Try changing the channel your router is communicating on. In your area, there may be too much traffic on the channel you selected.
Once you've ruled these areas out, five software possible avenues you could consider:
- Looking to see if any WiFi Backport exist and if so, installing the appropriate package
- See if this is a 64bit vs 32bit issue
- Trying a newer Kernel, either the next available stable kernel OR testing the very latest alpha/beta Ubuntu version which contains the latest release candidate kernel
- Disabling the power management of your wireless card
- (the choice of very last resort) using NDISWrapper
Backports
The kernel developers often release a software package containing updates for WiFi devices derived from the latest or most recent kernel.
For Natty, this package is called linux-backports-modules-cw-2.6.39-generic
(thanks Jorge). This package can be found either in the proposed repository or in the backport repository. Tick the appropriate checkbox in Software Sources and Reload the latest updates.
Open either Software Center or Synaptic Manager and search for the package named (or similarly named) as above. If the package is available, install the package, reboot and see if the WiFi connection is more stable.
64bit vs 32bit
As linux matures, 64bit vs 32bits issues should reduce. However it is not unknown that a 64bit installation can be more unstable compared to a 32bit installation - and visa-versa.
For your card, I found a bug report for your Wireless card here that describes your symptoms - 64bit kernel, wifi drops connection randomly.
Take a backup of your system first using, for example, Clonezilla, so that you have something you can easily restore from.
Try installing the 32bit version of Natty. See if your connection is more stable. You could also test the other suggestions in this answer in this 32bit configuration.
Newer Kernel
Testing a newer Kernel can sometimes cause instability issues - for example boot and black-screen issues. I would recommend you remove any Additional Hardware graphic drivers (e.g. ATI or Nvidia) first. I also recommend that you have a good backup for example, using CloneZilla which you can restore from.
Look for the next stable mainline kernel from here on LaunchPad.
Looking at the change lists on kernel 2.6.39, it does mention some updates for your card.
You can install the 2.6.39 kernel as described in my answer here.
Disabling Power Management
Sometimes wireless cards can have Power Management modes. Its not unknown for these modes to be buggy in linux. Switching off power-management can sometimes help.
You may have to do some Google research to see if there is a specific method to disable Power Managment. Below is a method I've used in the past for some cards.
From a terminal type:
gksu gedit /etc/pm/power.d/wireless
If the file opened contains any statements then add the following line (if it doesnt already exist)
/sbin/iwconfig wlan0 power off
If the file opened is empty then add the following
#!/bin/sh
/sbin/iwconfig wlan0 power off
Now copy and paste the following:
sudo chmod +x /etc/pm/power.d/wireless
Then reboot.
NDISWrapper
Note - NDISWrapper can cause black-screen issues on boot - so have a good backup for example, using CloneZilla which you can restore from.
NDISWrapper was at one time a few years ago, one frequently used method for wireless cards because the kernel had so few wireless driver support.
Its fallen out of favour in recent times for many reasons that I wont go into...
To be honest, RTL8187se has been in the kernel for some time so the following suggestion should be considered as a last resort.
Search for ndisgtk
in the software center and install
Now download the windows xp drivers, in your case from Realtek
Extract from the zip file.
Using ndisgtk - navigate to the folder - RTL8187SE - WinXP and point ndisgtk to the .inf
file. Hopefully now (maybe after a reboot) network manager should use this driver in preference to the RTL8187SE kernel driver - n.b. hopefully you dont have to blacklist the kernel.
Related videos on Youtube
Jorge Castro
Updated on September 18, 2022Comments
-
Jorge Castro almost 2 years
The internet keeps cutting out every several minutes, sometimes it lasts longer but it happens eventually. I can still use the internet if I disconnect from the menu and click connect again. Any help would be appreciated :)
Details of my Wireless Card:
Wireless card: 04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8187SE Wireless LAN Controller (rev 22)
I'm just running a plain old fully up to date 64-bit Ubuntu (Kernel 2.6.38-10-generic)
How the kernel recognises my wireless card:
*-network description: Wireless interface product: RTL8187SE Wireless LAN Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:04:00.0 logical name: wlan0 version: 22 serial: 00:24:21:cf:89:f6 width: 32 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=r8180 latency=0 multicast=yes wireless=802.11b/g resources: irq:17 ioport:3000(size=256) memory:fa000000-fa003fff *-network description: Ethernet interface product: RTL8111/8168B PCI Express Gigabit Ethernet controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:05:00.0 logical name: eth0 version: 03 serial: 00:03:0d:de:97:eb size: 100Mbit/s capacity: 1Gbit/s width: 64 bits clock: 33MHz capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.1.67 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s resources: irq:43 ioport:4000(size=256) memory:f6000000-f6000fff memory:f4000000-f4003fff memory:f4020000-f403ffff
I'm just using standard network manager, not customised anything really..
-
Jorge Castro almost 13 yearsCan you try to install
linux-backports-modules-cw-2.6.39-generic
, then reboot and see if you have the problem still? -
Admin almost 13 yearsI have installed what you suggested Jorge but the internet is still dropping out here, will try fossfreedom's suggestion now
-
-
Admin almost 13 yearsI've tried what you and Jorge suggested but the connection still keeps dropping :(
-
nilsonneto almost 13 yearscan I suggest you change eth1 to wlan0 since this is a wireless issue - you are suggesting bouncing the fixed ethernet port (also worth putting code tags as well)
-
andybleaden almost 13 yearsagreed. I will adapt
-
Admin almost 13 yearsI tried everything suggested but it still drops, I guess it's time to give up hope?
-
Admin almost 13 yearsI tried your new NDISWrapper suggestion but after doing that and rebooting, I was greeted with a black screen and I couldn't actually do anything.. I've played with NDISWrapper before for my old laptop and didn't have problems then. Anyway, I ended up having to do a fresh install. Next? ;)
-
nilsonneto almost 13 yearshmmm - I've dug around (and around...) - but all I can find is that this wireless card doesnt work very well under 64bit but does work for 32bit. Similar observations for 64bit vs 32bit Windows 7 (see the linked debian bug report). I've run out of ideas other than either using 32bit Natty or buying another manufacturers wireless card. 3 days to go. Hopefully someone else can chip in and get your card working under 64bit Natty.
-
Admin almost 13 yearsI'm currently testing out a fully up to date 64-bit Oneiric install since the issue with Natty the other day.. The wireless has dropped 2 or 3 times since then, which is a lot better than with under Natty!
-
nilsonneto almost 13 yearsThat's interesting to know - obviously oneiric is using the very latest kernel v3.0 release candidate. That strengthens my suspicions. Definitely kernel related - and possibly some-more 64bit fixes have gone into the latest kernel. When the change-log is released in the next two weeks, I suspect you would find "rtl8187se" in there somewhere.
-
Admin almost 13 yearsSo what should I do, mark this as solved? Give you the 500 rep bounty? Since you've spent time trying to get this working for me? :)
-
nilsonneto almost 13 yearsthat would be lovely... but that is really up-to you. Since I think you are in the testing mood :) - could you try the 32bit Natty version to see if the wireless card is more stable? (if it doesnt work with the stock 32bit - maybe one of the other solutions in the answer will) It would be great if we can give a definitive "yes this is the solution" to everybody else out there that is using your card.
-
Admin over 12 yearsI am still having this issue after trying every option in your post :-( 32-bit version of Ubuntu has the same issue on my machine as well. It's so frustrating having to click 'disconnect' when it cuts out, and then clicking on my wireless network SSID again to reconnect. I wonder if there is a script I could create that would detect this and automatically reconnect?
-
nilsonneto over 12 yearsare you still using Natty - or have you upgraded to oneiric?
-
Admin over 12 yearsThe issue is persistent on Natty, Oneiric and an up to date Precise
-
nilsonneto over 12 yearsok -looking this through - realtek dont support this driver itself - and it looks like the source hasnt changed from kernel to kernel hence why the issue you have persists through to precise. If you can I would suggest purchasing a cheap wireless adapter. From a software solution you could write a script when the network drops (askubuntu.com/questions/62366/…) - the script would run
/etc/init.d/network-manager restart
to kick network manager into life. However writing such a script is beyond my knowledge - perhaps another question? -
Admin over 12 yearsOkay, I'll have to get myself one then. Any recommendation? Anyway, what I've noticed is that when it does cut out, when I open the network indicator, all SSIDs disappear apart from the SSID I connected to. I don't know if this information would help, but I took a screenshot and can be seen here: i.imgur.com/Eklb0.png
-
nilsonneto over 12 years... I've seen that before (I think 10.04/9.10?)- possibly a bug in network-manager (not sure). Basically network-manager has lost its cache of SSIDs and for some reason it doesnt automatically refresh as it should. At that time i flipped between wicd and network manager to get SSIDs to refresh correctly. However I'm doubtful this is your exact issue since you've tested both oneiric and precise.
-
Admin over 12 yearsOh man, I feel incredibly stupid. I've changed from WPA to WEP encryption and the laptop has been in use for hours with not one single cut out in the connection! I tried this before but quickly switched back to WPA thinking it wouldn't actually be the cause of the problem. Many thanks for your help! Do you think I should report a bug in wpa-supplicant or network-manager and link it to my wireless driver to see if someone can fix the bug?
-
nilsonneto over 12 yearsThat's a very very interesting observation - yes bug-report it. If your router is capable of WPA2 its worth testing that as well - WEP is a relatively weak encryption. I would run a firewall as well if you are depending on WEP. WPA2 is the best encryption and your card should be capable of running both WPA and WPA2.
-
Admin over 12 yearsI have been using WPA2 on my current router for around 7 months, I noticed that there was more chance of my internet cutting out if another machine connected to the same router would be downloading.The connection would become very unstable when I am on the laptop whilst the PS33 is streaming Netflix content. I had noticed cut-outs on a previous router when I lived somewhere else too and that was using WPA2 also.Since changing encryption method yesterday and also streaming Netflix, I have not suffered from any cut-out so I think it's the way my wireless card is dealing with WPA encryption.
-
Admin over 12 yearsHere's the bug report: bugs.launchpad.net/ubuntu/+source/wpasupplicant/+bug/938602