Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rtl8192cu disconnects after about 5min of inactivity[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ewpt3ch
n00b
n00b


Joined: 01 Apr 2013
Posts: 4

PostPosted: Mon Nov 18, 2013 8:09 am    Post subject: rtl8192cu disconnects after about 5min of inactivity[solved] Reply with quote

It is a power management issue with the chip/driver and Larry is working on it. Looks like not fixed for 3.12 kernel.

http://comments.gmane.org/gmane.linux.kernel.wireless.general/112805

I have an: Edimax EW-7811Un USB 802.11n Adapter that use the rtl8192cu driver. There have been alot of problems with this driver being unable to connect and basically not working, until the 3.12 kernel. With the 3.12 kernel(gentoo-sources) the adapter connects to my AP and gives me great throughput. The problem now: I lose network connectivity after about 5min of no traffic. The logs show nothing, wpa_supplicant with -d option shows nothing (that I can tell), and ifconfig, conky, iw, wpa_gui all show that I am still connected, however if I try to load a webpage or even ping my router, nothing. I am fairly confident that my router is not the problem since all of the other devices(handsets, chromecast, and even this wifi adapter in my wifes windows laptop) do not have this problem. I believe that the adapter is going to sleep, or some low power state, however /sys/bus/usb/devices/2-1:1.0/power is empty and /sys/bus/usb/devices/usb2/power/control is set to on. So I believe it should not be going to sleep, except when the whole computer goes to sleep(when the lid is closed). The bandaid fix is to open wpa_gui and click connect button, forces a disconnect and reconnect. Then it works for a little while before I am again unable to get any network traffic through.

systemd-204-r1 for init
kernel 3.12
wpa_supplicant-2.0-r2
iw-3.10
wpa_supplicant.conf
Code:
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel                                                 
update_config=1                                                                                   

network={                                                                                         
        ssid="myth"                                                                               
        psk="****"                                                         
        proto=RSN                                                                                 
        key_mgmt=WPA-PSK                                                                           
        pairwise=CCMP                                                                             
        auth_alg=OPEN
}


wpa_supplicant@.service used to start this adapter
Code:
[Unit]                                                                                             
Description=WPA supplicant daemon (interface-specific version)                                     
                                                                                                   
# NetworkManager users will probably want the dbus version instead.                               
                                                                                                   
[Service]                                                                                         
Type=simple                                                                                       
ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -i%I -Dnl80211 -d -f/tmp/wifilog                                                                                         
                                                                                                   
[Install]                                                                                         
Alias=multi-user.target.wants/wpa_supplicant@wlan0.service


I have been unable to find anything online about this particular problem, only pre 3.12 issues. Should I submit a kernel bug, or am I missing something (the correct place to look perhaps) with systemd and power management. Incidently the internal 3945abg does not have this problem, just too slow.


Last edited by ewpt3ch on Thu Nov 21, 2013 4:29 am; edited 1 time in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7188
Location: Austria

PostPosted: Mon Nov 18, 2013 10:00 pm    Post subject: Reply with quote

Anything in dmesg?

That's the same behaviour I've seen since 3.11. Before, it was practically impossible to get any kind of connection, now, with an endless ping, it mostly stays up - packet loss and the occasional huge latency still happening.

ZyXEL Communications Corp. NWD2205 802.11n (RTL8192CU)
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
ewpt3ch
n00b
n00b


Joined: 01 Apr 2013
Posts: 4

PostPosted: Mon Nov 18, 2013 10:49 pm    Post subject: Reply with quote

Nothing in dmesg about the "timeout" or "disconnect", not sure what to call this. The last dmesg before the symptom presents itself is wlp****: associated. I still haven't gotten any good messages or any sign from dmesg, journalctl, or the wifilog created by wpa_supplicant -d that indicates a connection issue. The only sign is all network traffic times out. Maybe relevant: the edimax was completely unusable until gentoo-sources-3.12, it would connect, get ip address with absolutely no throughput at all.

I am at a complete loss as to how to proceed since there are no log/messages anywhere in my system. If anyone knows how to turn on more verbose debugging/messages that would be helpful? The version of wpa_supplicant I am on does not have a debug USE flag. I enabled RTLWIFI_DEBUG in the kernel.
Back to top
View user's profile Send private message
ewpt3ch
n00b
n00b


Joined: 01 Apr 2013
Posts: 4

PostPosted: Thu Nov 21, 2013 4:25 am    Post subject: Reply with quote

I just found this on gmane, apparently there are power management issues with these chips and Larry is working on it.

http://comments.gmane.org/gmane.linux.kernel.wireless.general/112805[/quote]
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1693

PostPosted: Thu Nov 06, 2014 1:41 am    Post subject: Reply with quote

I can confirm this same problem with an Asus N13 (Also Realtek RTL8192CU) on a 3.16.5 kernel...
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1693

PostPosted: Sat Nov 08, 2014 12:41 pm    Post subject: Reply with quote

You changed the title to [solved], but is this problem actually resolved or solved in that people know about it and are working on it? The non-kernel driver cuts out for me after about 30 seconds of inactivity and the other versions of the driver either don't compile or don't seem to recognize my device.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum