You are not logged in.

#1 2014-07-28 15:21:05

Crysis85
Member
Registered: 2014-07-27
Posts: 24

[Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

Hello,
First message here, and first installation on ArchLinux (well second, but I scrapped the first one hoping to solve this problem)
Since the first time I thought i messed up something I wiped everything and started with a fresh installation. During the network configuration I tryed to keep it very basic, no netctl-auto for the moment.
The wireless connection works for a random amount of time and then the router/AP (a model rented by the ISP that i cannot change) collapse killing connectivity of all wireless connected devices (they are still connected but can't access the internet). After some time (or if I reboot the router) the connectivity is restored.

Now on my machine i have set up the connection creating a profile in /etc/netctl/

Description='A simple WPA encrypted wireless connection'
Interface=wlp2s0
Connection=wireless
Security=wpa

IP=dhcp

ESSID='Alice'
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '""<key>"'
# See also: the section on special quoting rules in netctl.profile(5)
Key='1*t'
# Uncomment this if your ssid is hidden
#Hidden=yes

then i go

# netctl start my_wireless_network

All works fine so I go

# netctl enable my_wireless_network

to start it at boot,
So I reboot and the connection work right away, i can ping, i can download from pacman, the stuff.
Until out of nowhere my whole network collapse and all the wireless devices connected to the router lose internet connectivity.
If i try to ping i get

$ ping 8.8.8.8
connect: Network is unreachable

Keep in mind that with other machines and this machine's windows i dont have any problem so I think we can exclude problems on the router.
Any help?

Last edited by Crysis85 (2014-08-27 06:44:39)

Offline

#2 2014-07-28 17:34:18

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

Can you then reconnect without a problem?  If the profile is enabled it should automatically try to reconnect, if that's failing you should be getting a netctl error message.  Is this the case?

Last edited by oktorok (2014-07-28 17:36:36)

Offline

#3 2014-07-28 17:37:53

billows
Member
Registered: 2014-07-26
Posts: 8

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

... the router/AP (a model rented by the ISP that i cannot change) collapse killing connectivity of all wireless connected devices (they are still connected but can't access the internet). After some time (or if I reboot the router) the connectivity is restored.
...

...my whole network collapse and all the wireless devices connected to the router lose internet connectivity.

..


Keep in mind that with other machines and this machine's windows i dont have any problem so I think we can exclude problems on the router.

You said several times the problem is with the router dropping connections, causing *all* connected devices to lose connectivity. Your last statement is false, then: the problem *is* your router or your modem, if these are separate devices. I'm not really sure what you mean about the other machines not having this problem, because you said that other machines all have the problem of the router dropping the connection.

I think what you will have to do is restart netctl each time this happens. I've had some success dealing with bad routers by setting up all of my networks with netctl-auto. Maybe you would have more success that way?

Offline

#4 2014-07-28 18:16:00

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

billows wrote:

... the router/AP (a model rented by the ISP that i cannot change) collapse killing connectivity of all wireless connected devices (they are still connected but can't access the internet). After some time (or if I reboot the router) the connectivity is restored.
...

...my whole network collapse and all the wireless devices connected to the router lose internet connectivity.

..


Keep in mind that with other machines and this machine's windows i dont have any problem so I think we can exclude problems on the router.

You said several times the problem is with the router dropping connections, causing *all* connected devices to lose connectivity. Your last statement is false, then: the problem *is* your router or your modem, if these are separate devices. I'm not really sure what you mean about the other machines not having this problem, because you said that other machines all have the problem of the router dropping the connection.

I think what you will have to do is restart netctl each time this happens. I've had some success dealing with bad routers by setting up all of my networks with netctl-auto. Maybe you would have more success that way?

Sorry, I've explained myself poorly.
I meant that this problem doesnt occur when connected with other devices or when I'm using windows on this laptop, it only happens throwing Archlinux in the mix.

As for the reconnection. It doesn't disconnect from the access point, simply all traffic dies I can't even ping the gateway (192.168.1.1) after a while (a long while) it start working again without me doing anything.
As for errors i didn't see any from netctl.

As for enabling netctl-auto
I just have to do

systemctl enable netctl-auto@wlp2s0.service

And disable the current netctl service?

Offline

#5 2014-07-28 18:35:03

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

I think I understand what your saying. After disconnection, if you issue

 iw dev wlp2s0 link 

it verifies your connection to the AP but you are not not able to send or receive data.  If that's the case then my first thought would be that your IP is being dropped.

Offline

#6 2014-07-28 18:47:08

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

Also, it would be nice to see some log file data.  It's difficult to problem solve without knowing what the machine is doing exactly.  A good start might be

 journalctl | grep wlp2s0 

Offline

#7 2014-07-28 19:06:20

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

Yes as soon as it happens again I will post it, in the mean time I'm noticing that it deauthenticates/authenticate often

lug 28 21:01:14 arch-lenovo kernel: wlp2s0: deauthenticated from 00:1d:8b:57:b3:28 (Reason: 1=UNSPECIFIED)
lug 28 21:01:20 arch-lenovo kernel: wlp2s0: authenticate with 00:1d:8b:57:b3:28
lug 28 21:01:22 arch-lenovo kernel: wlp2s0: send auth to 00:1d:8b:57:b3:28 (try 1/3)
lug 28 21:01:22 arch-lenovo kernel: wlp2s0: authenticated
lug 28 21:01:22 arch-lenovo kernel: wlp2s0: associate with 00:1d:8b:57:b3:28 (try 1/3)
lug 28 21:01:22 arch-lenovo kernel: wlp2s0: RX AssocResp from 00:1d:8b:57:b3:28 (capab=0x411 status=0 aid=2)
lug 28 21:01:22 arch-lenovo kernel: wlp2s0: associated
lug 28 21:01:44 arch-lenovo kernel: wlp2s0: deauthenticated from 00:1d:8b:57:b3:28 (Reason: 1=UNSPECIFIED)
lug 28 21:01:50 arch-lenovo kernel: wlp2s0: authenticate with 00:1d:8b:57:b3:28
lug 28 21:01:50 arch-lenovo kernel: wlp2s0: send auth to 00:1d:8b:57:b3:28 (try 1/3)
lug 28 21:01:50 arch-lenovo kernel: wlp2s0: authenticated
lug 28 21:01:50 arch-lenovo kernel: wlp2s0: associate with 00:1d:8b:57:b3:28 (try 1/3)
lug 28 21:01:50 arch-lenovo kernel: wlp2s0: RX AssocResp from 00:1d:8b:57:b3:28 (capab=0x411 status=0 aid=2)
lug 28 21:01:50 arch-lenovo kernel: wlp2s0: associated

Is this normal?

Offline

#8 2014-07-28 20:30:35

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

I believe that once you are authenticated you should stay authenticated. Over thirty-five seconds you are auth'd and deauth'd two times, but in the end you are in an authenticated state, i.e you probably would not notice an interrupt in your connectivity if this was the only thing happening.

Offline

#9 2014-07-28 21:42:55

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

What wireless card/driver are you using? Enter

 lspci -k 

and copy the Network Controller section.

[in addition]
I'm not sure what the root of your problem is, it's curious that you're able to connect and maintain a connection from your other devices, but not from your arch device.  Once you know your card/driver info you can do some specific googling with that as part of your query, but in the meantime you might want to rule out user error.  If you set up your netctl profile manually, maybe try deleting it and recreating it with wifi-menu, or just going through these steps again but very carefully.  Or try one of the auto setup methods.

Last edited by oktorok (2014-07-28 21:57:25)

Offline

#10 2014-07-29 09:14:28

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

I'm pretty sure the netctl profile is created corretly, I tried with another profile with a static IP and that too connects and work "for a while" until the freeze of internet connectivity.
Anyway i noticed this

lug 29 10:42:58 arch-lenovo kernel: cfg80211: Calling CRDA to update world regulatory domain

on the journal when the connection was haywire and i also noticed that i didn't have a CRDA region set.
Could it be the cause of the error? Maybe my NIC was working on values non supported by the AP... (it's just speculation right now I'm no expert)
Now I'm setting the right value for my country and let's see

Anyway my lspci -k

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
	Subsystem: Lenovo Device b736
	Kernel driver in use: rtl8723be
	Kernel modules: rtl8723be

And thanks for the help, I don't wanna give up I'm starting to get addicted to ArchLinux ;-)

Last edited by Crysis85 (2014-07-29 09:15:26)

Offline

#11 2014-07-29 10:38:20

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

Wasn't it.
It happened again. I was browsing the web when suddenty pages stopped loading as I was disconnected
i ran a ping

# ping www.google.it
ping: unknown host www.google.it

Checked if i was still connected to the AP

# iw dev wlp2s0 link
Connected to 00:1d:8b:57:b3:28 (on wlp2s0)
	SSID: Alice
	freq: 2437
	RX: 1129481 bytes (11477 packets)
	TX: 46737 bytes (593 packets)
	signal: -18 dBm
	tx bitrate: 1.0 MBit/s

	bss flags:	short-preamble short-slot-time
	dtim period:	0
	beacon int:	100

and thats the log related to the wireless card since boot

lug 29 12:06:57 arch-lenovo systemd-udevd[162]: renamed network interface wlan0 to wlp2s0
lug 29 12:07:09 arch-lenovo kernel: IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
lug 29 12:07:09 arch-lenovo kernel: wlp2s0: authenticate with 00:1d:8b:57:b3:28
lug 29 12:07:09 arch-lenovo kernel: wlp2s0: send auth to 00:1d:8b:57:b3:28 (try 1/3)
lug 29 12:07:09 arch-lenovo kernel: wlp2s0: authenticated
lug 29 12:07:09 arch-lenovo kernel: wlp2s0: associate with 00:1d:8b:57:b3:28 (try 1/3)
lug 29 12:07:09 arch-lenovo kernel: wlp2s0: RX AssocResp from 00:1d:8b:57:b3:28 (capab=0x411 status=0 aid=3)
lug 29 12:07:09 arch-lenovo kernel: wlp2s0: associated
lug 29 12:07:09 arch-lenovo kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
lug 29 12:07:04 arch-lenovo wpa_actiond[317]: Starting wpa_actiond session for interface 'wlp2s0'
lug 29 12:07:07 arch-lenovo wpa_actiond[317]: Interface 'wlp2s0' connected to network 'Alice'
lug 29 12:07:11 arch-lenovo dhcpcd[345]: wlp2s0: IAID 1e:bf:01:5d
lug 29 12:07:12 arch-lenovo dhcpcd[345]: wlp2s0: rebinding lease of 192.168.1.181
lug 29 12:07:12 arch-lenovo dhcpcd[345]: wlp2s0: reject NAK via 192.168.1.1
lug 29 12:07:16 arch-lenovo dhcpcd[345]: wlp2s0: reject NAK via 192.168.1.1
lug 29 12:07:17 arch-lenovo dhcpcd[345]: wlp2s0: DHCP lease expired
lug 29 12:07:17 arch-lenovo dhcpcd[345]: wlp2s0: soliciting a DHCP lease
lug 29 12:07:20 arch-lenovo dhcpcd[345]: wlp2s0: offered 192.168.1.181 from 192.168.1.1
lug 29 12:07:28 arch-lenovo dhcpcd[345]: wlp2s0: leased 192.168.1.181 for 21600 seconds
lug 29 12:07:28 arch-lenovo dhcpcd[345]: wlp2s0: adding route to 192.168.1.0/24
lug 29 12:07:28 arch-lenovo dhcpcd[345]: wlp2s0: adding default route via 192.168.1.1
lug 29 12:13:27 arch-lenovo kernel: wlp2s0: Connection to AP 00:1d:8b:57:b3:28 lost
lug 29 12:13:41 arch-lenovo wpa_actiond[317]: Interface 'wlp2s0' lost connection to network 'Alice'
lug 29 12:13:41 arch-lenovo kernel: wlp2s0: Connection to AP 00:00:00:00:00:00 lost
lug 29 12:13:49 arch-lenovo kernel: wlp2s0: authenticate with 00:1d:8b:57:b3:28
lug 29 12:13:49 arch-lenovo kernel: wlp2s0: send auth to 00:1d:8b:57:b3:28 (try 1/3)
lug 29 12:13:49 arch-lenovo kernel: wlp2s0: authenticated
lug 29 12:13:49 arch-lenovo kernel: wlp2s0: associate with 00:1d:8b:57:b3:28 (try 1/3)
lug 29 12:13:49 arch-lenovo kernel: wlp2s0: RX AssocResp from 00:1d:8b:57:b3:28 (capab=0x411 status=0 aid=3)
lug 29 12:13:49 arch-lenovo kernel: wlp2s0: associated
lug 29 12:13:49 arch-lenovo wpa_actiond[317]: Interface 'wlp2s0' reestablished connection to network 'Alice'

Differences. Connection didn't "unfroze" on its own, i had to reboot. The other terminals remained uneffected
Another thing I did was to change the security of my AP from WPA-PSK TKIP-AES 256 bit  to WPA-PSK AES 256 bit, no change

Offline

#12 2014-07-29 11:14:51

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,380

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

What brand/model is your router?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#13 2014-07-29 11:31:18

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

My router is this http://wiki.openwrt.org/toh/pirelli/agpf#info
rented by my ISP i cannot change it.

Offline

#14 2014-07-29 17:17:52

surfatwork
Member
Registered: 2012-01-05
Posts: 137

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

I have noticed the same thing 3-4 times in the last 10 days or so. I run linux-ck (3.15.6-1-ck), intel 7260ac, netctl-auto. Router is netgear R7000
didnt have the time then to investigate further - systemctl restart netctl-auto got me reconnected.
will look further and report if I find anything.

Last edited by surfatwork (2014-07-29 17:18:25)

Offline

#15 2014-07-29 22:29:08

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

Read this.  The DHCP lease expiring needs to be resolved.  That is why you are freezing up, (based on my expert newb opinion wink ), but why iwconfig shows you are connected to your AP.

Offline

#16 2014-07-29 22:57:29

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

I don't think the DHCP is involved in this problem (maybe it's acting up on it's own but that is another problem).
I'm saying this because i also tried by a static profile and i got the same problem, worked for a while and BAM dead connection without noticing anything at netctl level.

Anyway i found this on the wiki https://wiki.archlinux.org/index.php/Wireless#rtl8723be (stupid me for not noticing that before) I'm trying that fix right now, I'll let you know if it's the solution

Offline

#17 2014-07-29 23:51:23

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

I was almost ready to call it fixed...but nope, connectivity lost again. Sigh, I'm starting to lose hope to ever fix this.

Offline

#18 2014-07-30 00:07:57

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

Did you try dhclient?

Offline

#19 2014-07-30 00:28:17

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

nope...but what's the point? The problem is present also with a static connection, no DHCP involved, connection still dropping

Offline

#20 2014-07-30 00:35:31

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

updating kernel (among other stuff, i ran "pacman -Syu") from 3.15.5-2 to 3.15.7-1....It won't change anything right? roll

Offline

#21 2014-07-30 01:27:19

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

As you can see every 10 minutes, like clockwork i got a "drop" in connectivity, most of the times it start again on its own, sometimes i have to restart it manually

lug 30 02:47:13 arch-lenovo wpa_actiond[1381]: Interface 'wlp2s0' lost connection to network 'Alice111111'
lug 30 02:47:13 arch-lenovo kernel: wlp2s0: Connection to AP 00:00:00:00:00:00 lost
lug 30 02:47:21 arch-lenovo kernel: wlp2s0: authenticate with 00:1d:8b:57:b3:28
lug 30 02:47:21 arch-lenovo kernel: wlp2s0: send auth to 00:1d:8b:57:b3:28 (try 1/3)
lug 30 02:47:21 arch-lenovo kernel: wlp2s0: authenticated
lug 30 02:47:21 arch-lenovo kernel: wlp2s0: associate with 00:1d:8b:57:b3:28 (try 1/3)
lug 30 02:47:21 arch-lenovo kernel: wlp2s0: RX AssocResp from 00:1d:8b:57:b3:28 (capab=0x411 status=0 aid=3)
lug 30 02:47:21 arch-lenovo kernel: wlp2s0: associated
lug 30 02:47:21 arch-lenovo wpa_actiond[1381]: Interface 'wlp2s0' reestablished connection to network 'Alice'

lug 30 02:58:43 arch-lenovo kernel: wlp2s0: Connection to AP 00:1d:8b:57:b3:28 lost
lug 30 02:58:57 arch-lenovo wpa_actiond[1381]: Interface 'wlp2s0' lost connection to network 'Alice'
lug 30 02:58:57 arch-lenovo kernel: wlp2s0: Connection to AP 00:00:00:00:00:00 lost
lug 30 02:58:58 arch-lenovo kernel: wlp2s0: authenticate with 00:1d:8b:57:b3:28
lug 30 02:58:58 arch-lenovo kernel: wlp2s0: send auth to 00:1d:8b:57:b3:28 (try 1/3)
lug 30 02:58:58 arch-lenovo kernel: wlp2s0: authenticated
lug 30 02:58:58 arch-lenovo kernel: wlp2s0: associate with 00:1d:8b:57:b3:28 (try 1/3)
lug 30 02:58:58 arch-lenovo kernel: wlp2s0: RX AssocResp from 00:1d:8b:57:b3:28 (capab=0x411 status=0 aid=3)
lug 30 02:58:58 arch-lenovo kernel: wlp2s0: associated
lug 30 02:58:59 arch-lenovo wpa_actiond[1381]: Interface 'wlp2s0' reestablished connection to network 'Alice'

lug 30 03:07:27 arch-lenovo kernel: wlp2s0: Connection to AP 00:1d:8b:57:b3:28 lost
lug 30 03:07:41 arch-lenovo wpa_actiond[1381]: Interface 'wlp2s0' lost connection to network 'Alice'
lug 30 03:07:41 arch-lenovo kernel: wlp2s0: Connection to AP 00:00:00:00:00:00 lost
lug 30 03:07:43 arch-lenovo kernel: wlp2s0: authenticate with 00:1d:8b:57:b3:28
lug 30 03:07:43 arch-lenovo kernel: wlp2s0: send auth to 00:1d:8b:57:b3:28 (try 1/3)
lug 30 03:07:43 arch-lenovo kernel: wlp2s0: authenticated
lug 30 03:07:43 arch-lenovo kernel: wlp2s0: associate with 00:1d:8b:57:b3:28 (try 1/3)
lug 30 03:07:43 arch-lenovo kernel: wlp2s0: RX AssocResp from 00:1d:8b:57:b3:28 (capab=0x411 status=0 aid=3)
lug 30 03:07:43 arch-lenovo kernel: wlp2s0: associated
lug 30 03:07:43 arch-lenovo wpa_actiond[1381]: Interface 'wlp2s0' reestablished connection to network 'Alice'

I don't get 2 things: why it says "Connection to AP 00:00:00:00:00:00 lost"?
and then...from that log seems that "wpa_actiond" drops the connection every 10 minutes. Is there a way to tell that bastard to drop it every....never for example, instead?

Offline

#22 2014-07-30 02:01:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 16,702

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

I'll wager you have more than one thing fighting to control your network.  What is the output of systemctl status   ?


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

#23 2014-07-30 07:26:25

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

Here the output of my systemctl

http://pastie.org/private/wogzzi95oalnslidiaxdq

Offline

#24 2014-07-30 07:49:39

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

I also tried to disable WPA at the router to see if it still disconnects.
Well, it disconnects still.
Also yesterday's rule of "every 10 minutes a disconnection" is not valid anymore, now it disconnects random times (as much frequently as every 1 minute too).

Offline

#25 2014-07-30 08:15:44

Crysis85
Member
Registered: 2014-07-27
Posts: 24

Re: [Solved] Wifi problems: Intermittent Wi-fi connection on RTL8723BE

https://bugzilla.kernel.org/show_bug.cgi?id=81181

Seems like the problem is more general than i thought, how does bug fixing works around here anyway?
Also, can I add more information on that bug report?

Offline

Board footer

Powered by FluxBB