Solve Wireless Problems
Solve Wireless Problems
Solve Wireless Problems
com/site/easylinuxtipsproject/internet#TOC-Bad-wireless-
connection
There can be problems with wireless internet (most common) and with wired internet
(rather rarely). First I'll describe how to deal with the wireless category, and
then I'll describe a solution for the wired category.
Wireless internet problems fall into two subcategories: either you have no
connection at all, or you have a flaky weak connection. I've described below how
you might be able to solve both problems.
Contents
--------
1 No wireless connection at all
1.1 Realtek chipset: install a driver
1.2 Broadcom chipset: install the driver
1.3 Switch the wireless card on
1.3.1 Disconnect the ethernet cable (LAN)
1.3.2 Reset the rfkill status in the BIOS / UEFI
1.3.3 (Obsolete)
1.3.4 Wireless internet is being blocked by Bluetooth
1.4 Disable IPv6
1.5 Limit your wireless network to the administrator user account
1.6 Set your router to a fixed wireless channel
1.7 Turn the kernel module acer_wmi off
2 Bad wireless connection
2.1 Disable power management for the wireless card
2.2 Disable IPv6
2.3 Driver ath9k or ath5k: disable hardware encryption/decryption
2.4 Realtek wireless chipset: install another driver
2.5 Set your router to "G-only"
2.6 Set the BSSID field to the MAC address of the router
3 No wired or wireless internet on a dual boot computer
4 For advanced users only: even more wireless drivers
5 Want more tips?
--------------------------------------
1. Below you'll find a roadmap that you can apply item after item, in order to get
your wireless network card working. Which will succeed in most cases.
For the sake of clarity: only apply the roadmap as far as is necessary to get your
wireless card to function properly. Most people don't need to apply all of the
items.
-------------------------------------
1.1. In case you have a Realtek wireless chipset that doesn't work at all, that
chipset probably needs a driver. You can install a driver like this.
--------------------------------------
1.2. When you have a Broadcom wireless card, you have to install a restricted non-
free driver: the bcmwl-kernel-source. In most cases, that's the best driver.
In order to install it, launch Driver Manager from the menu. You need internet
connection for using that, so first establish a temporary internet connection by
ethernet cable or by another wireless dongle.
However, in a few cases this driver isn't adequate. Then try if it helps, when you
disable Bluetooth. If disabling Bluetooth doesn't do the job either, then this is
how you can install another driver:
b. Use copy/paste to transfer the following magical incantation into the terminal
(it's one long line):
Press Enter. When prompted, type your password. Your password will remain entirely
invisible, not even dots will show, this is normal.
Press Enter again.
-------------------------------------
------------------------------------
1.3. Maybe the wireless chipset is being recognized by the system alright, and even
provided with a driver, but.... it's simply not switched on. Proceed like this:
Type:
iwconfig
Press Enter.
You can then not only see the name for your wireless chipset (for example: wlp2s0),
but also whether it's off. If so, do the following:
- Is your computer a laptop? Then check whether you can enable the wireless chipset
by means of a certain Fn key combination.
- If that doesn't help: check on a dual boot machine if it helps when you switch
the card on in Windows and then reboot into Linux Mint.
- No avail? Check whether you can set the card in your BIOS / UEFI to "always on".
Type:
rfkill list all
Press Enter.
Press Enter.
--------------------------------------
1.3.1. On some laptops, the wireless chipset is being disabled automatically when
the laptop is already connected to the internet by means of an ethernet cable
(LAN). That's because weird things can happen when you're connected to the internet
by both means at the same time.
So disconnect the ethernet cable and check whether the wireless chipset is being
activated automatically now.
-------------------------------------------
1.3.2. You can try the following procedure, which can reset the rfkill status on
some laptops, thus removing the wireless "hard block":
(Obsolete)
1.3.3. Obsoleted.
---------------------------------------------
Wireless internet is being blocked by Bluetooth
1.3.4. This applies only to computers which have a combined Bluetooth / wireless
chipset.
---------------------------------------------
Disable IPv6
1.4. Some old modems and routers can't deal with modern IPv6, causing complete
failure to connect. In that case, disable IPv6 like this (item 4, left column).
--------------------------------------------
1.5. In Network Manager there's a setting which, when activated, makes your
wireless network available for all user accounts. Nifty, but it contains a bug:
when that setting is activated, it sometimes disables the entire wireless chipset
for all user accounts! When you deactivate that setting, the problem is over.
As with nearly all hacks, there's a price to pay: after the hack only the
administrator account (the first user account that you created during installation)
will be able to use your wireless network. All other user accounts won't.
a. Log into the administrator account (the first user account that you created
during installation).
b. If you've been able previously to connect to your wireles network, then it's
stored in the known networks of Network Manager. Click on the icon of Network
Manager in the system tray of your panel - Network Connections - section Wi-Fi:
click on the name of your wireless network - click the Edit button
c. Tab General: remove the tick for: All users may connect to this network
-----------------------------------------
-----------------------------------------
1.7. A certain kernel module, called acer_wmi, causes problems on some laptops.
Because it has been loaded when it shouldn't have been.
b. Now check whether the module is loaded; copy/paste the following green command
line into the terminal:
Press Enter.
This command will tell you, how your wireless card is called. In many problem
cases, it's called (among other things) like this:
The clue is then, that it's called acer-wireless (which means that acer_wmi is
loaded) and that it has a soft block.
c. Copy/paste the following blue command line into the terminal (you can copy/paste
with the right mouse button, it's one line):
Press Enter and submit your password. Please note that the password will remain
invisible, not even asterisks will show, which is normal.
----------------------------
Below I'll describe two ways in which you may be able to improve your wireless
connection. In many cases this is effective.
Note: when the first method is already succesful, then of course you don't need to
apply the second as well (duh....).
-------------------------
2.1. For some wireless chipsets a simple tweak is sufficient for increasing the
connection quality a lot. Namely disabling the power management for the wireless
chipset. The speed of your wireless internet may then increase also.
a. First find out if Mint applies power management to your wireless chipset:
Press Enter.
You can then not only see the name for your wireless chipset (for example: wlp2s0),
but also whether Power Management is on for it. When it's off, or when no mention
is made of Power Management at all, you don't need to do anything.
b. When Power Management is on: copy/paste this line into the terminal (it's one
line):
xed admin:///etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Press Enter.
c. Now a text file opens. In that text file, you see the following content:
[connection]
wifi.powersave = 3
Change 3 into 2.
f. Then check in the terminal, by the command iwconfig, whether Power Management
for the wireless chipset is off now.
Note for advanced users: you can turn off wifi powersave with one single command as
well:
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*
--------------------------------
Disable IPv6
2.2. Some old modems and routers can't deal properly with modern IPv6. This might
cause a bad unstable connection or even a complete failure to establish any
connection at all. In that case, disable IPv6 like this:
Click on the name of your current connection - click the button Edit
Tab IPv6 Settings - Method: change it into Ignore
Click the button Save and then click the button Close
---------------------------------
2.3. When you have an Atheros wireless chipset and it's running on the ath9k or
ath5k driver, then you might have a very slow and/or unstable connection with
certain types of those chipsets.
Press Enter.
If you see the module ath9k or ath5k mentioned in the output, you can continue.
Press Enter. When prompted, type your password. Your password will remain entirely
invisible, not even dots will show, this is normal.
Press Enter again.
Press Enter.
Reboot your computer. The connection speed should be all right now.
-------------------------------------------
2.4. In case you have a Realtek wireless chipset that often loses connection and
runs below its ordinary speed, that chipset probably needs a better driver. You can
install an improved driver like this.
------------------------------------------
2.5. With a few wireless chipsets the connection speed increases enormously, when
you set the "Wireless Network Mode" in the configuration of the router with which
they connect, to G only.
The price that you pay is that you disable the faster N-mode, but when your
internet service doesn't even reach the maximum of the G-mode (as is the case for
90 % of all households), then you lose nothing.
The configuration window of your router can usually be reached as a "web page" in
Firefox. Linksys routers have their configuration normally at 192.168.1.1 (type it
in the URL bar of Firefox and press Enter).
---------------------------------------------
2.6. Network Manager scans the wireless network periodically every two minutes.
This can cause problems for the functioning of the driver.
This is how to do it: click on the icon of Network Manager in the system tray -
click on Edit Connections... - click on the name of your current wireless network -
click Edit - tab Wi-Fi - BSSID: click on the little arrow to the right and select
the MAC address of the access point. Click Save.
---------------------------------------------
If you have a dual bootable PC with Windows, and you've just used Windows, you may
not get an IP address after a reboot in Linux. And so no internet connection.
This has the following reason: every network card has a unique MAC address. This
address is ingrained in your NIC. The DHCP server in your router remembers this MAC
address.
When you access the internet in Windows and then reboot in Linux, in many cases
you'll get no IP address from the DHCP server in your router. Because this server
will recall that it previously issued an IP address for that very same MAC address,
and won't issue a new one.
You can solve this by forcing Windows to release the IP address, before you reboot
the PC. By the way: Linux by default does release the IP address on shutdown. So a
reboot from Linux into Windows causes no problems.
Tip: Did you forget to force Windows to release the IP address, and you don't want
to boot Windows to do it as yet? Then simply boot Ubuntu or Linux Mint twice in a
row. After the second boot of Ubuntu or Mint you can probably connect.
A. Manual method
1. Open a DOS window in Windows
Windows 7:
Start - All Programs - Accessories - Command Prompt
2. Type:
ipconfig /release
B. Semi-automatic method
By means of a shortcut on your desktop, you can apply a semi-automatic solution for
this.
1. Launch Notepad
3. Save this text file as release.bat and place it on your desktop. Now you can
always simply double click this file, before you exit Windows.
--------------------------------------------
4. If you're an experienced and advanced Linux user: the Github account of lwfinger
contains even more drivers for wireless chipsets from Realtek.