You are not logged in.

#1 2015-11-05 10:21:36

davy_crockett
Member
Registered: 2015-10-21
Posts: 75

[SOLVED] Wireless connects and runs unbelievably slow and unreliable

Hi there,

Post-installation, I was able to install the drivers for my wireless card and connect to the internet, using the commands

ip link set wlan0 up
wpa_supplicant -B -D nl80211,wext -i wlan0 -c <(wpa_passphrase "SSID" "password")
dhcpcd wlan0

I also installed KDE and have it working. Since then, I went to use NetworkManager with KDE. I ran the commands

systemctl enable NetworkManager.service
systemctl start NetworkManager.service

Although this worked for my connection from KDE, it ran extremely slow (<30k/s) sometimes down to nothing and dropped connections. Since then I tried disabling the NetworkManager service, and it has stopped in KDE and I connect using the wpa_supplicant method. The commands I used to disable the service were:

systemctl disable NetworkManager.service
systemctl stop NetworkManager.service

My computer has been through several reboots, and whenever I connect using the wpa supplicant method I get an extremely slow connection. I get approximately 90% packet loss when pinging google on a successful connection, and it fails when I try to ping my home internet router/gateway. (It succeeds on a wired ethernet connection). Any advice on what I need to do to get my wireless internet working properly again?

Last edited by davy_crockett (2016-01-23 07:31:02)

Offline

#2 2015-11-05 10:46:48

stri
Member
Registered: 2014-06-09
Posts: 75

Re: [SOLVED] Wireless connects and runs unbelievably slow and unreliable

Here is a shot in the dark. I also have dropping connections on my laptop if I don't modify the bitrate of my wifi card:

ifname=$(ip link|grep ': wl'|awk '{print $2}')
ifname=${ifname%%:}
sudo iw dev $ifname set bitrates ht-mcs-2.4 1

Don't ask me why the problem occurs or why the above solves it, I don't know:) Good luck.

Offline

#3 2015-11-05 11:16:24

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Wireless connects and runs unbelievably slow and unreliable

Please post the output of:

iwconfig # you may need to install wireless_tools for this command
lspci -k|grep -iA2 net

Jin, Jîyan, Azadî

Offline

#4 2015-11-06 07:39:03

davy_crockett
Member
Registered: 2015-10-21
Posts: 75

Re: [SOLVED] Wireless connects and runs unbelievably slow and unreliable

The output of iwconfig is:

wlan0     IEEE 802.11abg  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          
eno1      no wireless extensions.

lo        no wireless extensions.

The output of lspci -k|grep -iA2 net is

00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
        DeviceName:  Onboard LAN
        Subsystem: Dell Device 053f
--
03:00.0 Network controller: Broadcom Corporation BCM43228 802.11a/b/g/n
        Subsystem: Dell Device 0014
        Kernel driver in use: bcma-pci-bridge

When I run sudo iw dev $ifname set bitrates ht-mcs-2.4 1 I receive the message "command failed: Invalid argument (-22)". I have also tried replacing $ifname directly with wlan0.

Offline

#5 2015-11-06 09:05:29

itman
Member
From: Switzerland
Registered: 2010-05-21
Posts: 124

Re: [SOLVED] Wireless connects and runs unbelievably slow and unreliable

davy_crockett wrote:

---snip alot---

ip link set wlan0 up

---snip some more---

That look like a good copy pasta straight from the wiki-page.

Why not replace wlan0 with the correct interface ID?

Offline

#6 2015-11-06 10:06:19

davy_crockett
Member
Registered: 2015-10-21
Posts: 75

Re: [SOLVED] Wireless connects and runs unbelievably slow and unreliable

My interface is called wlan0 because I set a rule in /etc/udev/rules.d/10-network.rules setting it to wlan0 so it was easier to remember.

In the meantime I have a spare USB wireless dongle, a TP-Link TL-WN722N and I've used it to connect to my access point using the wpa_supplicant method and it's worked fine and the bandwith has been almost as good as on physical ethernet and I can ping google and watch youtube no problems.

I would like to get my internal wireless resolved though. In Windows it is called "Dell Wireless 1540 802.11 a/g/n" and works fine in Windows. I had to install a broadcom driver for it in Arch Linux, there were two broadcom drivers to choose from for my card according to the links from the wiki page. It was working fine up until I tried using NetworkManager.

Last edited by davy_crockett (2015-11-06 10:07:28)

Offline

#7 2015-11-07 17:46:16

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Wireless connects and runs unbelievably slow and unreliable

davy_crockett wrote:
          Power Management:on

Try this:

# iwconfig wlan0 power off

Or:

# iw dev wlan0 set power_save off

To make this persistent, use a udev rule:

# /etc/udev/rules.d/70-wifi-powersave.rules
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*", RUN+="/usr/bin/iw dev %k set power_save off"

Jin, Jîyan, Azadî

Offline

#8 2015-11-13 07:07:30

davy_crockett
Member
Registered: 2015-10-21
Posts: 75

Re: [SOLVED] Wireless connects and runs unbelievably slow and unreliable

I tried running iw dev wlan0 set power_save off and when I ran the wpa supplicant it only said "successfully initialized WPA supplicant" and made no effort to actually connect.

When I ran dhcpcd wlan0 it gave the following (presumably because the wpa supplicant didn't connect properly)

all: IPv6 kernel autoconf disabled
wlan0: adding address fe80::90e1:9725:456f:f61d
if_addaddress6: Operation not supported
wlan0: starting wpa_supplicant
wlan0: failed to start wpa_supplicant
wlan0: Successfully initialized wpa_supplicant
Line 1182: unknown EAP method 'SIM'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1182: failed to parse eap 'SIM'.
Line 1185: failed to parse network block.
Line 1192: unknown EAP method 'PSK'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1192: failed to parse eap 'PSK'.
Line 1196: failed to parse network block.
Line 1228: unknown EAP method 'IKEV2'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 1228: failed to parse eap 'IKEV2'.
Line 1231: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
wlan0: waiting for carrier

I presume I should try uninstalling and reinstalling my internal wireless lan driver and firmware?

Offline

#9 2015-11-13 07:50:35

davy_crockett
Member
Registered: 2015-10-21
Posts: 75

Re: [SOLVED] Wireless connects and runs unbelievably slow and unreliable

I have it working now, I found out what it was.

I had installed the b43-firmware 6.30.163.46-1 for my wireless card, which registers as a Dell Wireless 1540 802.11 a/g/n in Windows, and either the b43 firmware or the broadcom-wl firmware should work for it. However, kernel upgrades screw up the driver/firmware for broadcom wireless devices, and I ran pacman -Syu which included a kernel upgrade about the same time as I enabled NetworkManager.

I uninstalled the b43 firmware and installed the broadcom-wl firmware via yaourt and now it works fine, at least until there's another kernel upgrade. I chose not to use the dkms firmware as I heard this breaks pacman or yaourt after kernel upgrades. This is resolved now but what's the best way forward - to manually reinstall the driver/firmware each time after a kernel upgrade or is there a better way? I'd also like to still be able to manage and uninstall the driver with pacman/yaourt if necessary.

Offline

#10 2015-11-13 14:05:09

archnonymous
Member
Registered: 2015-11-11
Posts: 8

Re: [SOLVED] Wireless connects and runs unbelievably slow and unreliable

I'm using the broadcom-wl-dkms firmware and yes mine tends to break during most kernel upgrades. While I am sure there is a better way to handle it, I manually downloaded and unpacked the tar file into a /builds directory (which I just leave there) so whenever it breaks you just have to run makepkg -sri and then modprobe wl. You can then upgrade the package and whatever with yaourt, but at least it prevents having to get another interface up and running to fix it.

I know this is far from a solution, but it may be a step or two easier.

Offline

Board footer

Powered by FluxBB