You are not logged in.

#1 2014-01-23 22:19:50

beetlejuice7
Member
Registered: 2012-02-28
Posts: 49

Wireless slowly stops working after successful connection

Hi, thanks for reading.

I just installed Arch on a desktop machine I picked up a few days ago.  I have a USB wireless adapter (rtl8188cus) which I am using for networking.  The problem I have noticed is that shortly after successfully connecting, my wireless connectivity drops out.  I was installing some packages and the transfer rate was +400K/s for the first 30 seconds or so, then it trickled down to a stop.  It's worth noting that I do not "disconnect" at any point - things just stall out (transfer rates go to zero, ssh sessions become unresponsive).  Nothing cropped up when I ran `journalctl -r`.  After a few minutes the network was working again, only to die later.

So far the only things I have done are to:

* disable ipv6
* use google for dns
* disable dynamic interface names (it is always wlan0)

I know its not the router because my laptop, which is also on the lan, works fine the whole time. Any ideas are greatly appreciated.

Last edited by beetlejuice7 (2014-01-23 22:25:24)

Offline

#2 2014-01-23 22:48:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: Wireless slowly stops working after successful connection

I have the impression you have more than one thing trying to control your wireless NIC.  Ensure you are not trying to run netctl service at the same time your are running the wicd or NetworkManager services.  Also, ensure you dot have the wpa_supplicant or dhcpcd services enabled  if you are using one of the higher level packages (netctl, wicd, NetworkManager).

Verify this by looking at the output of systemctl


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2014-01-23 23:02:54

beetlejuice7
Member
Registered: 2012-02-28
Posts: 49

Re: Wireless slowly stops working after successful connection

That sounds plausible, because now that I think back I had no problems when I was installing arch and downloading the packages.  I'm not sure what I might be looking for, so please if anything jumps out at you let me know:

Here is the output of `systemctl --all`:

proc-sys-fs-binfmt_misc.automount                                                                     loaded active   waiting   Arbitrary Executable File Formats File System Automount Point
dev-cdrom.device                                                                                      loaded active   plugged   ATAPI_DVD_A_DH16AASH
dev-disk-by\x2did-ata\x2dATAPI_DVD_A_DH16AASH.device                                                  loaded active   plugged   ATAPI_DVD_A_DH16AASH
dev-disk-by\x2did-ata\x2dST3750528AS_6VP2HNGY.device                                                  loaded active   plugged   ST3750528AS
dev-disk-by\x2did-ata\x2dST3750528AS_6VP2HNGY\x2dpart1.device                                         loaded active   plugged   ST3750528AS
dev-disk-by\x2did-usb\x2dGeneric\x2d_Compact_Flash_20060413092100000\x2d0:0.device                    loaded active   plugged   Compact_Flash
dev-disk-by\x2did-usb\x2dGeneric\x2d_SM_xD_SD_MMC_MS_20060413092100000\x2d0:1.device                  loaded active   plugged   SM_xD_SD_MMC_MS
dev-disk-by\x2did-wwn\x2d0x5000c5001ee24a16.device                                                    loaded active   plugged   ST3750528AS
dev-disk-by\x2did-wwn\x2d0x5000c5001ee24a16\x2dpart1.device                                           loaded active   plugged   ST3750528AS
dev-disk-by\x2dpath-pci\x2d0000:00:02.1\x2dusb\x2d0:3:1.0\x2dscsi\x2d0:0:0:0.device                   loaded active   plugged   Compact_Flash
dev-disk-by\x2dpath-pci\x2d0000:00:02.1\x2dusb\x2d0:3:1.0\x2dscsi\x2d0:0:0:1.device                   loaded active   plugged   SM_xD_SD_MMC_MS
dev-disk-by\x2duuid-c6112460\x2d8046\x2d417c\x2d99f7\x2dcac834347cfd.device                           loaded active   plugged   ST3750528AS
dev-sda.device                                                                                        loaded active   plugged   ST3750528AS
dev-sda1.device                                                                                       loaded active   plugged   ST3750528AS
dev-sdb.device                                                                                        loaded active   plugged   Compact_Flash
dev-sdc.device                                                                                        loaded active   plugged   SM_xD_SD_MMC_MS
dev-sr0.device                                                                                        loaded active   plugged   ATAPI_DVD_A_DH16AASH
dev-ttyS0.device                                                                                      loaded active   plugged   /dev/ttyS0
dev-ttyS1.device                                                                                      loaded active   plugged   /dev/ttyS1
dev-ttyS2.device                                                                                      loaded active   plugged   /dev/ttyS2
dev-ttyS3.device                                                                                      loaded active   plugged   /dev/ttyS3
sys-devices-pci0000:00-0000:00:02.1-usb3-3\x2d3-3\x2d3:1.0-host8-target8:0:0-8:0:0:0-block-sdb.device loaded active   plugged   Compact_Flash
sys-devices-pci0000:00-0000:00:02.1-usb3-3\x2d3-3\x2d3:1.0-host8-target8:0:0-8:0:0:1-block-sdc.device loaded active   plugged   SM_xD_SD_MMC_MS
sys-devices-pci0000:00-0000:00:04.1-usb4-4\x2d2-4\x2d2:1.0-net-wlan0.device                           loaded active   plugged   RTL8188CUS 802.11n WLAN Adapter
sys-devices-pci0000:00-0000:00:07.0-sound-card0.device                                                loaded active   plugged   MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio
sys-devices-pci0000:00-0000:00:09.0-ata4-host3-target3:0:0-3:0:0:0-block-sda-sda1.device              loaded active   plugged   ST3750528AS
sys-devices-pci0000:00-0000:00:09.0-ata4-host3-target3:0:0-3:0:0:0-block-sda.device                   loaded active   plugged   ST3750528AS
sys-devices-pci0000:00-0000:00:09.0-ata5-host4-target4:0:0-4:0:0:0-block-sr0.device                   loaded active   plugged   ATAPI_DVD_A_DH16AASH
sys-devices-pci0000:00-0000:00:0a.0-net-eth0.device                                                   loaded active   plugged   MCP77 Ethernet
sys-devices-platform-serial8250-tty-ttyS0.device                                                      loaded active   plugged   /sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device                                                      loaded active   plugged   /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device                                                      loaded active   plugged   /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device                                                      loaded active   plugged   /sys/devices/platform/serial8250/tty/ttyS3
sys-module-configfs.device                                                                            loaded active   plugged   /sys/module/configfs
sys-subsystem-net-devices-eth0.device                                                                 loaded active   plugged   MCP77 Ethernet
sys-subsystem-net-devices-wlan0.device                                                                loaded active   plugged   RTL8188CUS 802.11n WLAN Adapter
-.mount                                                                                               loaded active   mounted   /
dev-hugepages.mount                                                                                   loaded active   mounted   Huge Pages File System
dev-mqueue.mount                                                                                      loaded active   mounted   POSIX Message Queue File System
proc-sys-fs-binfmt_misc.mount                                                                         loaded inactive dead      Arbitrary Executable File Formats File System
sys-fs-fuse-connections.mount                                                                         loaded inactive dead      FUSE Control File System
sys-kernel-config.mount                                                                               loaded active   mounted   Configuration File System
sys-kernel-debug.mount                                                                                loaded active   mounted   Debug File System
tmp.mount                                                                                             loaded active   mounted   Temporary Directory
systemd-ask-password-console.path                                                                     loaded active   waiting   Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path                                                                        loaded active   waiting   Forward Password Requests to Wall Directory Watch
session-1.scope                                                                                       loaded active   running   Session 1 of user xxx
session-5.scope                                                                                       loaded active   running   Session 5 of user xxx
alsa-restore.service                                                                                  loaded inactive dead      Restore Sound Card State
alsa-state.service                                                                                    loaded inactive dead      Manage Sound Card State (restore and store)
alsa-store.service                                                                                    loaded inactive dead      Store Sound Card State
auditd.service                                                                                        not-found inactive dead      auditd.service
dbus.service                                                                                          loaded active   running   D-Bus System Message Bus
display-manager.service                                                                               not-found inactive dead      display-manager.service
dmeventd.service                                                                                      loaded inactive dead      Device-mapper event daemon
emergency.service                                                                                     loaded inactive dead      Emergency Shell
getty@tty1.service                                                                                    loaded active   running   Getty on tty1
kmod-static-nodes.service                                                                             loaded active   exited    Create list of required static device nodes for the current kernel
lvmetad.service                                                                                       loaded inactive dead      LVM2 metadata daemon
mkinitcpio-generate-shutdown-ramfs.service                                                            loaded inactive dead      Generate shutdown-ramfs
netctl.service                                                                                        loaded inactive dead      (Re)store the netctl profile state
netctl@ddwrt.service                                                                                  loaded active   exited    Networking for netctl profile ddwrt
plymouth-quit-wait.service                                                                            not-found inactive dead      plymouth-quit-wait.service
plymouth-start.service                                                                                not-found inactive dead      plymouth-start.service
rescue.service                                                                                        loaded inactive dead      Rescue Shell
sshd.service                                                                                          loaded active   running   OpenSSH Daemon
sshdgenkeys.service                                                                                   loaded inactive dead      SSH Key Generation
syslog.service                                                                                        not-found inactive dead      syslog.service
systemd-ask-password-console.service                                                                  loaded inactive dead      Dispatch Password Requests to Console
systemd-ask-password-wall.service                                                                     loaded inactive dead      Forward Password Requests to Wall
systemd-binfmt.service                                                                                loaded inactive dead      Set Up Additional Binary Formats
systemd-fsck-root.service                                                                             loaded inactive dead      File System Check on Root Device
systemd-initctl.service                                                                               loaded inactive dead      /dev/initctl Compatibility Daemon
systemd-journal-flush.service                                                                         loaded inactive dead      Trigger Flushing of Journal to Persistent Storage
systemd-journald.service                                                                              loaded active   running   Journal Service
systemd-logind.service                                                                                loaded active   running   Login Service
systemd-modules-load.service                                                                          loaded inactive dead      Load Kernel Modules
systemd-random-seed.service                                                                           loaded active   exited    Load/Save Random Seed
systemd-readahead-collect.service                                                                     loaded inactive dead      Collect Read-Ahead Data
systemd-readahead-done.service                                                                        loaded inactive dead      Stop Read-Ahead Data Collection
systemd-readahead-replay.service                                                                      loaded inactive dead      Replay Read-Ahead Data
systemd-remount-fs.service                                                                            loaded active   exited    Remount Root and Kernel File Systems
systemd-shutdownd.service                                                                             loaded inactive dead      Delayed Shutdown Service
systemd-sysctl.service                                                                                loaded active   exited    Apply Kernel Variables
systemd-tmpfiles-clean.service                                                                        loaded inactive dead      Cleanup of Temporary Directories
systemd-tmpfiles-setup-dev.service                                                                    loaded active   exited    Create static device nodes in /dev
systemd-tmpfiles-setup.service                                                                        loaded active   exited    Recreate Volatile Files and Directories
systemd-udev-trigger.service                                                                          loaded active   exited    udev Coldplug all Devices
systemd-udevd.service                                                                                 loaded active   running   udev Kernel Device Manager
systemd-update-utmp.service                                                                           loaded active   exited    Update UTMP about System Reboot/Shutdown
systemd-user-sessions.service                                                                         loaded active   exited    Permit User Sessions
systemd-vconsole-setup.service                                                                        loaded active   exited    Setup Virtual Console
user@1000.service                                                                                     loaded active   running   User Manager for 1000
-.slice                                                                                               loaded active   active    Root Slice
system-getty.slice                                                                                    loaded active   active    system-getty.slice
system-netctl.slice                                                                                   loaded active   active    system-netctl.slice
system.slice                                                                                          loaded active   active    System Slice
user-1000.slice                                                                                       loaded active   active    user-1000.slice
user.slice                                                                                            loaded active   active    User and Session Slice
dbus.socket                                                                                           loaded active   running   D-Bus System Message Bus Socket
dmeventd.socket                                                                                       loaded active   listening Device-mapper event daemon FIFOs
lvmetad.socket                                                                                        loaded active   listening LVM2 metadata daemon socket
syslog.socket                                                                                         loaded inactive dead      Syslog Socket
systemd-initctl.socket                                                                                loaded active   listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket                                                                               loaded active   running   Journal Socket
systemd-shutdownd.socket                                                                              loaded active   listening Delayed Shutdown Socket
systemd-udevd-control.socket                                                                          loaded active   running   udev Control Socket
systemd-udevd-kernel.socket                                                                           loaded active   running   udev Kernel Socket
basic.target                                                                                          loaded active   active    Basic System
cryptsetup.target                                                                                     loaded active   active    Encrypted Volumes
emergency.target                                                                                      loaded inactive dead      Emergency Mode
getty.target                                                                                          loaded active   active    Login Prompts
graphical.target                                                                                      loaded active   active    Graphical Interface
local-fs-pre.target                                                                                   loaded active   active    Local File Systems (Pre)
local-fs.target                                                                                       loaded active   active    Local File Systems
multi-user.target                                                                                     loaded active   active    Multi-User System
network.target                                                                                        loaded active   active    Network
nss-user-lookup.target                                                                                loaded inactive dead      User and Group Name Lookups
paths.target                                                                                          loaded active   active    Paths
remote-fs-pre.target                                                                                  loaded inactive dead      Remote File Systems (Pre)
remote-fs.target                                                                                      loaded active   active    Remote File Systems
rescue.target                                                                                         loaded inactive dead      Rescue Mode
shutdown.target                                                                                       loaded inactive dead      Shutdown
slices.target                                                                                         loaded active   active    Slices
sockets.target                                                                                        loaded active   active    Sockets
sound.target                                                                                          loaded active   active    Sound Card
swap.target                                                                                           loaded active   active    Swap
sysinit.target                                                                                        loaded active   active    System Initialization
syslog.target                                                                                         not-found inactive dead      syslog.target
timers.target                                                                                         loaded active   active    Timers
umount.target                                                                                         loaded inactive dead      Unmount All Filesystems
systemd-readahead-done.timer                                                                          loaded inactive dead      Stop Read-Ahead Data Collection 10s After Completed Startup
systemd-tmpfiles-clean.timer                                                                          loaded active   waiting   Daily Cleanup of Temporary Directories

As far as services I have enabled, the only ones in `/etc/systemd/system/` are:

[@sigma ~]$ cd /etc/systemd/system/
[@sigma system]$ find .
.
./getty.target.wants
./getty.target.wants/getty@tty1.service
./multi-user.target.wants
./multi-user.target.wants/sshd.service
./multi-user.target.wants/remote-fs.target

Last edited by beetlejuice7 (2014-01-23 23:05:30)

Offline

#4 2014-01-23 23:21:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: Wireless slowly stops working after successful connection

I don't think there is anything wrong there.  All I saw was the netctl service.  What is the netctl@ddwrt service?  I assume that is your router, but it is an odd name for the service.  Usually it would be names after the interface.

What is the output of ip link and of iw dev


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2014-01-24 00:53:21

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Wireless slowly stops working after successful connection

@ewaller, the netctl.service stores and restores the network state, while the netctl@.service is used to start a specific profile.  So ddwrt is not necessarily the name of the OP's network, but rather it is the name of the actual netctl profile.  Thus, he/she has a config at /etc/netctl/ddwrt.

@OP, I think you should stop and disable all netctl stuffs for now (and any other potential netowrk management tool), and then try to use the networking tools directly.  So use wpa_supplicant to associate with the AP (use wpa_passphrase to make a wpa_supplicant.conf if necessary).  Then use either dhcpcd or dhclient directly on the interface in question.  Take not of any output, particularly if it is throwing any errors, and then  post them here.

Offline

#6 2014-01-24 02:02:31

beetlejuice7
Member
Registered: 2012-02-28
Posts: 49

Re: Wireless slowly stops working after successful connection

Well, I am baffled... I think it might be a kernel issue or software version problem.  The arch install disk wireless works flawlessly (using wifi-menu).  As soon as I install arch (I reinstalled) the wifi goes back to being flaky.

Offline

#7 2014-01-24 03:32:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: Wireless slowly stops working after successful connection

WonderWoofy wrote:

@ewaller, the netctl.service stores and restores the network state, while the netctl@.service is used to start a specific profile.  So ddwrt is not necessarily the name of the OP's network, but rather it is the name of the actual netctl profile.  Thus, he/she has a config at /etc/netctl/ddwrt..

Makes sense.  I am not using netctl right now (I like wicd).  When I was using it, my profiles were named after my interface names -- I guess I forgot that was a conscience decision on my part.

Maybe if the OP were to say his Arch member name three times ....  smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2014-01-24 03:33:43

beetlejuice7
Member
Registered: 2012-02-28
Posts: 49

Re: Wireless slowly stops working after successful connection

> Maybe if the OP were to say his Arch member name three times

Ha!  Well thanks for the suggestions, I'll update if I find anything new.

Offline

#9 2014-02-03 17:04:02

amckee
Member
From: Cruise Ship Earth
Registered: 2012-02-13
Posts: 25
Website

Re: Wireless slowly stops working after successful connection

I've been experiencing this myself with a similar chipset to yours. I have the rtl8192ce card, and can watch downloads drop to 30k, even over LAN. What I've found so far is that your chipset probably suffers from the same bug mine does, which I haven't been able to find a fix for. One popular thing that seemed to at least help a lucky few was to disable a few driver features. Mine is here in full, adjust yours accordingly:

$> cat /etc/modprobe.d/rtl8192ce.conf 
# Disable Powersaving
options rtl8192ce ips=0

# i hear this one causes bugs
options rtl8192ce fwlps=0

# hoping this will log better details
options rtl8192ce debug=2

# Use software control
options rtl8192ce swenc=1

Others resolved this by getting a new wifi card.

One thing I found in my particular setup was a service running every few minutes that seemed to be running a network service restart, causing it act dropped out as it reconnected. I found this through journalctl, so check there for clues as well. I just disabled the problematic service and it got much better immediately.

Offline

#10 2014-02-03 17:10:35

beetlejuice7
Member
Registered: 2012-02-28
Posts: 49

Re: Wireless slowly stops working after successful connection

Wow thank you for posting here! I will give your changes a try.

Offline

#11 2014-02-03 17:34:34

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Wireless slowly stops working after successful connection

I also had this rtl8192ce card like amckee.  It was the biggest steaming pile of crap I have ever experienced.  My machine is a Thinkpad, so the cards are whitelisted by a Field Replaceable Unit number.  I had two other options of cards that I could get for my particular machine.  So after much searching on ebay, I was able to find one, and then I found the other.  The one I use is a Broadcom, and I never thought that I would be so happy to have a Broadcom card...

From watching realtek's contributions to the kernel, it seems as though they write up a driver, then never revisit it for improvement later.  If it is crappy to start, that is how it seems to stay.

Offline

#12 2014-02-04 00:24:11

beetlejuice7
Member
Registered: 2012-02-28
Posts: 49

Re: Wireless slowly stops working after successful connection

amckee -- can you link to any other posts you've found on the topic?

Offline

#13 2014-02-04 00:28:54

beetlejuice7
Member
Registered: 2012-02-28
Posts: 49

Re: Wireless slowly stops working after successful connection

For what it's worth, I tried the changes you suggested and had no luck sad ... Thanks for the help, though.

Offline

#14 2014-02-04 23:54:36

amckee
Member
From: Cruise Ship Earth
Registered: 2012-02-13
Posts: 25
Website

Re: Wireless slowly stops working after successful connection

A neat discussion on the drivers:
https://bbs.archlinux.org/viewtopic.php?id=134548

Bug report with Red Hat from a few years ago. It's been closed, but still seems relevant:
https://bugzilla.redhat.com/show_bug.cgi?id=770207

This time around I actually read through the bug report, and found a new trick:
"both pc's worked fine with the router turned from ng mode to n mode only, connecting at 177mb/s +, and its been running for a few hours now with no issues"

I may try that soon.

Other posts on this subject:
http://ubuntuforums.org/showthread.php?t=1886838
http://ubuntuforums.org/showthread.php?t=1981968
https://bbs.archlinux.org/viewtopic.php?id=176589
https://bbs.archlinux.org/viewtopic.php?id=176057
https://bbs.archlinux.org/viewtopic.php?id=174727

There are more, but a search for 'realtek wifi' on the Arch forums brings up a nice sized list.

edit: typo/grammar/clarity

Last edited by amckee (2014-02-04 23:55:58)

Offline

#15 2014-02-21 18:08:03

amckee
Member
From: Cruise Ship Earth
Registered: 2012-02-13
Posts: 25
Website

Re: Wireless slowly stops working after successful connection

I may have found my solution, hopefully it works for y'all as well. From Nomadic's comment at:
http://askubuntu.com/questions/95360/ho … novo-x121e

I disabled 802.11n completely on my router and my wifi issues are really, really better. Quite possibly resolved as my throughput has doubled, and I've only seen the connection drop to 1.5MB/s (as opposed to the 30KB/s from before) before bouncing back to about 5.5MB/s

It's worth a try  smile

Offline

#16 2014-02-22 19:40:28

gsgleason
Member
Registered: 2012-10-08
Posts: 71

Re: Wireless slowly stops working after successful connection

The native  rtl8192 module is broken and stops working after short amount of inactivity. 

A continuous ping somewhere keeps it working.  I have an 8192cu usb card and installed the dkms-8192cu package from aur which uses the latest realtek driver and now it works a lot better.

https://aur.archlinux.org/packages/dkms-8192cu/

Offline

#17 2014-02-22 19:42:47

beetlejuice7
Member
Registered: 2012-02-28
Posts: 49

Re: Wireless slowly stops working after successful connection

Good to know. I've got the 8188 on my desktop, but I also have a thinkpad with the 8191SEvB (rtl8192 module). After the drama with the 8188 I've been avoiding upgrading the packages on my thinkpad until things get sorted out.

Offline

#18 2014-02-23 16:52:03

gsgleason
Member
Registered: 2012-10-08
Posts: 71

Re: Wireless slowly stops working after successful connection

I mean you can use it for your 8188cus

The AUR package says:

Description:     Driver for Realtek RTL8188CUS (8188C, 8192C) chipset wireless cards

Offline

Board footer

Powered by FluxBB