You are not logged in.

#1 2016-06-07 01:04:48

nightwishhh
Member
Registered: 2016-05-25
Posts: 8

wifi keeps disconnecting

hi all , first of all im kinda new to arch linux , and this is my first post on forum

so , my wifi keeps disconnecting randomly, it seems that the problem is with WEP , couse if i connect to wpa/wpa2 protected network it will not dc, but after some time its just gonna freez , idk why , i need to plug out my usb wifi and plug it in again to get connecton, another wierd thing is that the wifi icon sometimes is showing that thers no wifi , but if i look in "wavemon" im connected and its working.. but somethins i cant get the menu of available networks when i click on icon, and it will say im not connected , but i am xd

i didnt try more then one WEP networks, but in kali linux on live usb that same network is working without disconnecting . i cant get full 5 mins of working wifi ...

ill try to post as much info i can, if u need something , just tell me

its arch linux with XFCE4 DE

Kernel: x86_64 Linux 4.4.11-1-lts

wifi : TP LINK TL-WN722N

i guess this is something about drivers( like i said , im new xd) :
PHY      Interface        Driver        Chipset


phy3      wlp0s2f1u2    ath9k_htc    Atheros Communications, Inc. AR9271 802.11n

and im using network manager

thanks , and sorry for bad eng smile

Last edited by nightwishhh (2016-06-07 01:07:14)

Offline

#2 2016-06-07 03:20:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: wifi keeps disconnecting

I suspect you have more than one thing trying to control the network.  What is the output of systemctl list-units --type service --no-pager


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 2016-06-07 13:15:22

nightwishhh
Member
Registered: 2016-05-25
Posts: 8

Re: wifi keeps disconnecting

thanks for reply big_smile
this is the output :
nightwish@arch ~]$ systemctl list-units --type service --no-pager
  UNIT                        LOAD   ACTIVE SUB     DESCRIPTION
  alsa-restore.service        loaded active exited  Save/Restore Sound Card Stat
  dbus.service                loaded active running D-Bus System Message Bus
  kmod-static-nodes.service   loaded active exited  Create list of required stat
  lightdm.service             loaded active running Light Display Manager
  NetworkManager-dispatcher.service loaded active running Network Manager Script Dispa
  NetworkManager.service      loaded active running Network Manager
  pamac.service               loaded active running Pamac
  polkit.service              loaded active running Authorization Manager
  rtkit-daemon.service        loaded active running RealtimeKit Scheduling Polic
  systemd-binfmt.service      loaded active exited  Set Up Additional Binary For
  systemd-journal-flush.service loaded active exited  Flush Journal to Persistent
  systemd-journald.service    loaded active running Journal Service
  systemd-logind.service      loaded active running Login Service
  systemd-random-seed.service loaded active exited  Load/Save Random Seed
● systemd-remount-fs.service  loaded failed failed  Remount Root and Kernel File
  systemd-sysctl.service      loaded active exited  Apply Kernel Variables
  systemd-tmpfiles-setup-dev.service loaded active exited  Create Static Device Nodes i
  systemd-tmpfiles-setup.service loaded active exited  Create Volatile Files and Di
  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 Boo
  systemd-user-sessions.service loaded active exited  Permit User Sessions
  systemd-vconsole-setup.service loaded active exited  Setup Virtual Console
  udisks2.service             loaded active running Disk Manager
  upower.service              loaded active running Daemon for power management
  user@1000.service           loaded active running User Manager for UID 1000
  wpa_supplicant.service      loaded active running WPA supplicant

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

27 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Offline

#4 2016-06-07 14:12:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: wifi keeps disconnecting

I think the problem is the wpa_supplicant.service.  But, I always screw this up -- I don't remember if NetworkManager starts wpa_supplicant.service, or not.   Regardless, wpa_supplicnat.service should not be enabled (so it does not start by itself).

Check that find /etc/systemd | grep wpa returns nothing.  If it does return wpa_supplicant.service, then disable that service.


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 2016-06-07 17:19:11

nightwishhh
Member
Registered: 2016-05-25
Posts: 8

Re: wifi keeps disconnecting

maybie i got this command wrong , but this is what i did :

[nightwish@arch systemd]$ find /etc/systemd | grep wpa
[nightwish@arch systemd]$

thers no output for that command

when i do systemctl list-units --type service --no-pager

wpa_supplicant.service is still there
wpa_supplicant.service       loaded active running WPA supplicant

i did systemctl disable [tab] [tab]

and thers no wpa_supplicant.service , this is what i got there :
autovt@.service
dbus-org.freedesktop.NetworkManager.service
dbus-org.freedesktop.nm-dispatcher.service
display-manager.service
getty@.service
lightdm.service
NetworkManager-dispatcher.service
NetworkManager.service
org.cups.cupsd.path
org.cups.cupsd.service
org.cups.cupsd.socket
remote-fs.target

and systemctl disable wpa_supplicant.service does nothing i think

[root@arch systemd]# systemctl  disable wpa_supplicant.service
[root@arch systemd]#


i tried systemctl list-units --type service --no-pager again
and wpa_supplicant.service is still active

maybie i used wrong command for disableing it , i dont rly know much about terminal big_smile

Offline

#6 2016-06-07 17:38:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: wifi keeps disconnecting

No, you are good.  That tells me NetworkManager is stating wpa_supplicant. 
Your configuration looks sane.


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

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

nightwishhh
Member
Registered: 2016-05-25
Posts: 8

Re: wifi keeps disconnecting

so thers nothing i can do to fix it ? big_smile

Offline

#8 2016-06-07 20:31:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: wifi keeps disconnecting

I did not say that.  The most common culprit is multiple things trying to control the network hardware at the same time. We have eliminated that.
Atheros is one of the problematic brands when it comes to Linux.  There may be an alternate driver, or some parameter tweak; I don't really know, I don't have Atheros hardware.

You might try this: https://wiki.archlinux.org/index.php/Wi … onnections
ot this: https://wiki.archlinux.org/index.php/Wi … tion#ath9k

Or, someone with your hardware may happen along with some helpful advice.


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

#9 2016-06-08 01:43:39

nightwishhh
Member
Registered: 2016-05-25
Posts: 8

Re: wifi keeps disconnecting

oh ok , thanks for the links it looks like i found the problem, in case one :
Cause #1
If dmesg says wlan0: deauthenticating from MAC by local choice (reason=3) and you lose your Wi-Fi connection, it is likely that you have a bit too aggressive power-saving on your Wi-Fi card[1]. Try disabling the wireless card's power saving features (specify off instead of on).
If your card does not support enabling/disabling power save mode, check the BIOS for power management options. Disabling PCI-Express power management in the BIOS of a Lenovo W520 resolved this issue.

i did the dmseg in terminal and thers to much info, but i got a look at it, its look like is all the same, except  in few lines , but i think i dissconneted my wifi in those cases , so the output looks like this :
1624.385550] ath9k_htc 1-2:1.0 wlp0s2f1u2: disabling VHT as WMM/QoS is not supported by the AP
[ 1624.393034] wlp0s2f1u2: associate with e8:39:df:82:cc:b2 (try 1/3)
[ 1624.400135] wlp0s2f1u2: RX AssocResp from e8:39:df:82:cc:b2 (capab=0x411 status=0 aid=1)
[ 1624.406202] wlp0s2f1u2: associated
[ 1670.052649] wlp0s2f1u2: deauthenticating from e8:39:df:82:cc:b2 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1671.110604] wlp0s2f1u2: authenticate with e8:39:df:82:cc:b2
[ 1671.314832] wlp0s2f1u2: send auth to e8:39:df:82:cc:b2 (try 1/3)
[ 1671.323856] wlp0s2f1u2: authenticated

there it is : [ 1670.052649] wlp0s2f1u2: deauthenticating from e8:39:df:82:cc:b2 by local choice (Reason: 3=DEAUTH_LEAVING) it looks like i have aggressive power-saving mod, so i would appreciate if u can tell me how to turn it off .
i checked this link : https://wiki.archlinux.org/index.php/Po … interfaces but i dont rly get it , and i dont want to screw it up even more big_smile

thank you for your help, i rly appreciate it smile

Last edited by nightwishhh (2016-06-08 01:48:33)

Offline

#10 2016-06-08 01:48:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: wifi keeps disconnecting

Try this.  It won't hurt anything or do anything permanent.

sudo iw dev wlp0s2f1u2 set power_save off

If that works, then let us write a udev rule as suggested by your link


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

#11 2016-06-08 01:54:52

nightwishhh
Member
Registered: 2016-05-25
Posts: 8

Re: wifi keeps disconnecting

ok i did it.
i will edit my post in few minutes, for now its working fine

Edit : so right after the command, maybie 10 sec later it did dc but it reconnected after 2 sec even less, till now just one more , but its a lot better then before for sure

Edit 2 : one more , it looks like one per 5 minuts xd i can live with that xd

Last edited by nightwishhh (2016-06-08 02:10:21)

Offline

Board footer

Powered by FluxBB