Need a few reboots to connect to wireless
Overview
The problem seems to be with the buggy driver r8187se
. The resolution is outlined below, with detailed steps and explanations to follow. Note that this problem could arise out of other buggy drivers as well, and may work. I am describing my situation with RTL8187SE on msi wind U100 netbook running ubuntu 12.10.
- Download the WinXP driver for the realtek wireless lan.
- Install
ndiswrapper-1.58rc1
(not the default versionndiswrapper-1.57
from the repository. See more details below.- Install the downloaded driver using
ndiswrapper
.- Blacklist
r8187se
.- Configure to load
ndiswrapper
.
STEP 1. Download the Windows driver for Realtek RTL8187SE wireless LAN
Download the suitable driver from Realtek. Unpack the zip file, navigate to the appropriate WinXP folder and locate the driver as *.inf
file.
STEP 2. Install ndiswrapper-1.58rc1
The version found in the ubuntu repository of this driver is 1.57. There has been many problems reported using this version or compiling from ndiswrapper-dkms
. That is why I am not suggesting the straight foward use of apt-get to install ndisgtk
. It gives the error "driver not found." For the work around I followed and suggest the following method:
Download
ndiswrapper-1.58rc1
from this site.Extract
$ tar -zxvf ndiswrapper-1.58rc1.tar.gz
cd
to the extracted directory. And type in the command line:$ make$ sudo make install
Now ndiswrapper
is installed.
STEP 3. Install the Windows dirver in ndiswrapper
.
Follow these steps:
$ ndiswrapper -i /full/path/to/WinXP/Driver/driver.inf
$ ndiswrapper -m
$ modprobe ndiswrapper
Now the Windows driver is ready to be used.
Now we need to disable r8187se
from loading, and make ndiswrapper
load automatically at startup and wake up from suspend.
STEP 4. Disable r8187se
.
Edit the file /etc/modprobe.d/blacklist.conf
(or, an appropriate file to this effect, if you are running an older version of ubuntu) as root and add the line:
blacklist r8187se
STEP 5. Enable ndiswrapper
automatically.
Edit the file /etc/rc.local
and add the following line before the last line:
modprobe ndiswrapper
Make sure this file ends with the line:
exit 0
Now there should be no problem. At least I didn't!
Related videos on Youtube
deehzee
Updated on September 18, 2022Comments
-
deehzee over 1 year
I am running xubuntu 12.10 on my msi wind U100 netbook. I have a problem with the wireless connection. Whether the wireless connects automatically to a known wifi hotspot (both at home and starbucks) is temperamental. Sometimes I need to reboot one or more times to get it connected. Otherwise, it tries and keep asking me to enter the password (which is saved and when it works it does, so the problem is not with the password).
Every time my computer awakes up from sleep the same problem. I have to do a reboot to connect to wireless.
I searched everywhere but found no solution. I would greatly appreciate if someone has any solution. I will gladly share the hardware/software or config info, if asked, but I don't know exactly what to share and where to find them.
Thanks you for any help.
-
deehzee over 11 yearsI figured out upon further reading that the problem lies with my wireless adapter (realtek rtl8187se). As it happens r8187se (the default driver) is buggy. It keeps dropping the connection whenever it wants. Connecting to the network also takes random tries with disabling/enabling the wireless card (using the physical button), disabling/enabling wireless (from the network manager), and if nothing works, a reboot.
-
deehzee over 11 yearsI have ordered a Intel 4965AGN PCIe mini card adapter to replace my realtek one from my msi wind u100 netbook. It costs only $10 on amazon. I will post if that solves the issue.
-
-
deehzee over 11 yearsThe driver ubuntu uses for the card by default is r8187se not rtl8187se. The problem is not just after sleep, it happens whenever I disconnect the wifi, and then try to reconnect. After I changed the driver using ndiswrapper (version 1.58rc1, version 1.57 from repo will not install), it's now easier to connect right after a reboot. But the problem regarding reconnecting remains.
-
deehzee over 11 yearsI tried what you suggested (with rtl8187se replaced by ndiswrapper). After that my computer won't suspend. Clicking on suspend button only disconnect (and reconnect after a while) the wifi.
-
Hckr over 11 yearsSorry, i didn't try this command.But some ubuntu users said that this operation is useful for the problem which occurs after sleep. You can take back this operation by delete the line you added from /etc/pm/config.d/config file.
-
deehzee over 11 yearsAny suggestion to improve this solution (in efficiency or execution) will be welcome, especially in Step #4 and #5.
-
Harry Moreno over 9 yearscurrent version of
ndiswrapper
is 1.59 en.wikipedia.org/wiki/NDISwrapper should I use that?