You are not logged in.
In like, once in an hour, or just random idk not too often, my wifi disconnects for like 5 seconds and re-connects again. This only happens on my arch linux laptop, this happens in 2 different houses (different modems) i've stayed at. How do I fix this ? I'll just give some outputs just in case.
Here's the relevant journalctl output when this happens:
May 07 16:05:29 archlinux systemd-networkd[608]: wlan0: Lost carrier
May 07 16:05:29 archlinux systemd-networkd[608]: wlan0: DHCP lease lost
May 07 16:05:29 archlinux iwd[612]: Received Deauthentication event, reason: 4, from_ap: false
May 07 16:05:29 archlinux systemd-networkd[608]: wlan0: DHCPv6 lease lost
May 07 16:05:29 archlinux systemd-timesyncd[500]: No network connectivity, watching for changes.
May 07 16:05:32 archlinux rtkit-daemon[1300]: Supervising 7 threads of 5 processes of 1 users.
May 07 16:05:32 archlinux rtkit-daemon[1300]: Supervising 7 threads of 5 processes of 1 users.
May 07 16:05:32 archlinux kernel: wlan0: authenticate with 28:de:a8:e2:37:5c
May 07 16:05:32 archlinux kernel: wlan0: send auth to 28:de:a8:e2:37:5c (try 1/3)
May 07 16:05:32 archlinux kernel: wlan0: authenticated
May 07 16:05:32 archlinux kernel: wlan0: associate with 28:de:a8:e2:37:5c (try 1/3)
May 07 16:05:32 archlinux kernel: wlan0: RX AssocResp from 28:de:a8:e2:37:5c (capab=0x1831 status=0 aid=3)
May 07 16:05:32 archlinux systemd-networkd[608]: wlan0: Connected WiFi access point: TurkTelekom_ZTU3F9 (28:de:a8:e2:37:5c)
May 07 16:05:32 archlinux kernel: wlan0: associated
May 07 16:05:32 archlinux kernel: wlan0: Limiting TX power to 27 (27 - 0) dBm as advertised by 28:de:a8:e2:37:5c
May 07 16:05:33 archlinux kernel: iwlwifi 0000:00:14.3: Unhandled alg: 0xc0400707
May 07 16:05:33 archlinux kernel: iwlwifi 0000:00:14.3: Unhandled alg: 0xc0400707
May 07 16:05:33 archlinux kernel: iwlwifi 0000:00:14.3: Unhandled alg: 0xc0400707
May 07 16:05:33 archlinux systemd-networkd[608]: wlan0: Gained carrier
May 07 16:05:33 archlinux systemd-timesyncd[500]: Network configuration changed, trying to establish connection.
May 07 16:05:33 archlinux systemd-networkd[608]: wlan0: DHCPv4 address 192.168.1.36/24, gateway 192.168.1.1 acquired from 192.168.1.1
May 07 16:05:33 archlinux systemd-timesyncd[500]: Network configuration changed, trying to establish connection.
May 07 16:05:33 archlinux systemd-timesyncd[500]: Contacted time server 45.136.155.37:123 (0.arch.pool.ntp.org).
May 07 16:05:33 archlinux systemd-resolved[499]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
May 07 16:05:34 archlinux systemd-resolved[499]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
journalctl output when I type
$ systemctl restart iwd
...skipping...
May 07 16:24:36 archlinux iwd[1266767]: Bitrates (non-HT):
May 07 16:24:36 archlinux iwd[1266767]: 6.0 Mbps
May 07 16:24:36 archlinux iwd[1266767]: 9.0 Mbps
May 07 16:24:36 archlinux iwd[1266767]: 12.0 Mbps
May 07 16:24:36 archlinux iwd[1266767]: 18.0 Mbps
May 07 16:24:36 archlinux iwd[1266767]: 24.0 Mbps
May 07 16:24:36 archlinux iwd[1266767]: 36.0 Mbps
May 07 16:24:36 archlinux iwd[1266767]: 48.0 Mbps
May 07 16:24:36 archlinux iwd[1266767]: 54.0 Mbps
May 07 16:24:36 archlinux iwd[1266767]: HT Capabilities:
May 07 16:24:36 archlinux iwd[1266767]: HT40
May 07 16:24:36 archlinux iwd[1266767]: Short GI for 20Mhz
May 07 16:24:36 archlinux iwd[1266767]: Short GI for 40Mhz
May 07 16:24:36 archlinux iwd[1266767]: HT RX MCS indexes:
May 07 16:24:36 archlinux iwd[1266767]: 0-15
May 07 16:24:36 archlinux iwd[1266767]: VHT Capabilities:
May 07 16:24:36 archlinux iwd[1266767]: 160 Mhz operation
May 07 16:24:36 archlinux iwd[1266767]: Short GI for 80Mhz
May 07 16:24:36 archlinux iwd[1266767]: Short GI for 160 and 80 + 80 Mhz
May 07 16:24:36 archlinux iwd[1266767]: Max RX MCS: 0-9 for NSS: 2
May 07 16:24:36 archlinux iwd[1266767]: Max TX MCS: 0-9 for NSS: 2
May 07 16:24:36 archlinux iwd[1266767]: Ciphers: BIP-GMAC-256 BIP-GMAC-128 GCMP-256 GCMP-128
May 07 16:24:36 archlinux iwd[1266767]: BIP-CMAC-128 CCMP-128 TKIP
May 07 16:24:36 archlinux iwd[1266767]: Supported iftypes: ad-hoc station ap p2p-client p2p-go p2p-device
May 07 16:24:36 archlinux systemd-networkd[1244743]: wlan0: Link UP
May 07 16:24:36 archlinux systemd-networkd[1244743]: wlan0: Configuring with /etc/systemd/network/20-wlan.network.
May 07 16:24:37 archlinux kernel: wlan0: authenticate with 28:de:a8:e2:37:5c
May 07 16:24:37 archlinux kernel: wlan0: send auth to 28:de:a8:e2:37:5c (try 1/3)
May 07 16:24:37 archlinux rtkit-daemon[1300]: Supervising 7 threads of 5 processes of 1 users.
May 07 16:24:37 archlinux rtkit-daemon[1300]: Supervising 7 threads of 5 processes of 1 users.
May 07 16:24:37 archlinux kernel: wlan0: authenticated
May 07 16:24:37 archlinux kernel: wlan0: associate with 28:de:a8:e2:37:5c (try 1/3)
May 07 16:24:37 archlinux kernel: wlan0: RX AssocResp from 28:de:a8:e2:37:5c (capab=0x1831 status=0 aid=1)
May 07 16:24:37 archlinux systemd-networkd[1244743]: wlan0: Connected WiFi access point: TurkTelekom_ZTU3F9 (28:de:a8:e2:37:5c)
May 07 16:24:37 archlinux kernel: wlan0: associated
May 07 16:24:37 archlinux kernel: wlan0: Limiting TX power to 27 (27 - 0) dBm as advertised by 28:de:a8:e2:37:5c
May 07 16:24:38 archlinux kernel: iwlwifi 0000:00:14.3: Unhandled alg: 0xc0400707
May 07 16:24:38 archlinux kernel: iwlwifi 0000:00:14.3: Unhandled alg: 0xc0400707
May 07 16:24:38 archlinux kernel: iwlwifi 0000:00:14.3: Unhandled alg: 0xc0400707
May 07 16:24:38 archlinux systemd-networkd[1244743]: wlan0: Gained carrier
May 07 16:24:38 archlinux kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
May 07 16:24:39 archlinux systemd-networkd[1244743]: wlan0: Gained IPv6LL
May 07 16:24:39 archlinux systemd-timesyncd[500]: Network configuration changed, trying to establish connection.
May 07 16:24:40 archlinux systemd-networkd[1244743]: wlan0: DHCPv4 address 192.168.1.36/24, gateway 192.168.1.1 acquired from 192.168.1.1
May 07 16:24:40 archlinux systemd-timesyncd[500]: Network configuration changed, trying to establish connection.
May 07 16:24:40 archlinux systemd-timesyncd[500]: Contacted time server 85.199.214.98:123 (0.arch.pool.ntp.org).
May 07 16:24:40 archlinux systemd-resolved[1244883]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
May 07 16:24:41 archlinux systemd-resolved[1244883]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
Journalctl when I type
$ systemctl restard systemd-resolved
May 07 16:25:58 archlinux dbus-daemon[610]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.247659' (uid=0 pid=1269310 comm=">
May 07 16:25:58 archlinux dbus-daemon[610]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
May 07 16:25:58 archlinux sudo[1269310]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 07 16:25:58 archlinux sudo[1269310]: koray : TTY=pts/4 ; PWD=/home/koray ; USER=root ; COMMAND=/usr/bin/systemctl restart systemd-resolved
May 07 16:25:58 archlinux sudo[1269310]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
May 07 16:25:58 archlinux systemd[1]: Stopping Network Name Resolution...
May 07 16:25:58 archlinux systemd[1]: systemd-resolved.service: Deactivated successfully.
May 07 16:25:58 archlinux systemd[1]: Stopped Network Name Resolution.
May 07 16:25:58 archlinux systemd[1]: run-credentials-systemd\x2dresolved.service.mount: Deactivated successfully.
May 07 16:25:58 archlinux systemd[1]: Starting Network Name Resolution...
May 07 16:25:58 archlinux systemd-resolved[1269320]: Positive Trust Anchors:
May 07 16:25:58 archlinux systemd-resolved[1269320]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
May 07 16:25:58 archlinux systemd-resolved[1269320]: Negative trust anchors: home.arpa 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.>
May 07 16:25:58 archlinux systemd-resolved[1269320]: Using system hostname 'archlinux'.
May 07 16:25:58 archlinux systemd-resolved[1269320]: mDNS-IPv4: There appears to be another mDNS responder running, or previously systemd-resolved crashed with some outstanding transfers.
May 07 16:25:58 archlinux systemd-resolved[1269320]: mDNS-IPv6: There appears to be another mDNS responder running, or previously systemd-resolved crashed with some outstanding transfers.
May 07 16:25:58 archlinux systemd[1]: Started Network Name Resolution.
May 07 16:25:58 archlinux sudo[1269310]: pam_unix(sudo:session): session closed for user root
May 07 16:26:02 archlinux systemd-resolved[1269320]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
May 07 16:26:02 archlinux systemd-resolved[1269320]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
~
And this is the journalctl when i type
$ systemctl restard systemd-networkd
May 07 16:27:09 archlinux dbus-daemon[610]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
May 07 16:27:09 archlinux sudo[1271500]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 07 16:27:09 archlinux sudo[1271500]: koray : TTY=pts/4 ; PWD=/home/koray ; USER=root ; COMMAND=/usr/bin/systemctl restart systemd-networkd
May 07 16:27:09 archlinux sudo[1271500]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
May 07 16:27:09 archlinux systemd[1]: Stopping Network Configuration...
May 07 16:27:09 archlinux systemd-networkd[1244743]: wlan0: DHCPv6 lease lost
May 07 16:27:09 archlinux systemd[1]: systemd-networkd.service: Deactivated successfully.
May 07 16:27:09 archlinux systemd[1]: Stopped Network Configuration.
May 07 16:27:09 archlinux systemd[1]: Starting Network Configuration...
May 07 16:27:09 archlinux systemd-networkd[1271503]: lo: Link UP
May 07 16:27:09 archlinux systemd-networkd[1271503]: lo: Gained carrier
May 07 16:27:09 archlinux systemd-networkd[1271503]: enp3s0: Link UP
May 07 16:27:09 archlinux systemd-networkd[1271503]: wlan0: Link UP
May 07 16:27:09 archlinux systemd-networkd[1271503]: wlan0: Gained carrier
May 07 16:27:09 archlinux systemd-networkd[1271503]: wlan0: Gained IPv6LL
May 07 16:27:09 archlinux systemd-networkd[1271503]: wlan0: Connected WiFi access point: TurkTelekom_ZTU3F9 (28:de:a8:e2:37:5c)
May 07 16:27:09 archlinux systemd-networkd[1271503]: Enumeration completed
May 07 16:27:09 archlinux systemd[1]: Started Network Configuration.
May 07 16:27:09 archlinux systemd-networkd[1271503]: enp3s0: Configuring with /etc/systemd/network/20-ethernet.network.
May 07 16:27:09 archlinux systemd-timesyncd[500]: No network connectivity, watching for changes.
May 07 16:27:09 archlinux systemd-networkd[1271503]: wlan0: Configuring with /etc/systemd/network/20-wlan.network.
May 07 16:27:09 archlinux sudo[1271500]: pam_unix(sudo:session): session closed for user root
May 07 16:27:09 archlinux systemd-timesyncd[500]: Network configuration changed, trying to establish connection.
May 07 16:27:11 archlinux rtkit-daemon[1300]: Supervising 7 threads of 5 processes of 1 users.
May 07 16:27:11 archlinux rtkit-daemon[1300]: Supervising 7 threads of 5 processes of 1 users.
May 07 16:27:12 archlinux systemd-networkd[1271503]: wlan0: DHCPv4 address 192.168.1.36/24, gateway 192.168.1.1 acquired from 192.168.1.1
May 07 16:27:12 archlinux systemd-timesyncd[500]: Network configuration changed, trying to establish connection.
May 07 16:27:12 archlinux systemd-resolved[1269320]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
May 07 16:27:12 archlinux systemd-resolved[1269320]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.1.1.
May 07 16:27:12 archlinux systemd-timesyncd[500]: Contacted time server 62.12.173.12:123 (0.arch.pool.ntp.org).
output of
$ iwconfig
:
lo no wireless extensions.
enp3s0 no wireless extensions.
wlan0 IEEE 802.11 ESSID:"TurkTelekom_ZTU3F9"
Mode:Managed Frequency:5.2 GHz Access Point: 28:DE:A8:E2:37:5C
Bit Rate=650 Mb/s Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=46/70 Signal level=-64 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:51 Missed beacon:0
output of
$ ip addr show
:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 00:d8:61:83:8b:52 brd ff:ff:ff:ff:ff:ff
7: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 58:a0:23:b9:4a:1f brd ff:ff:ff:ff:ff:ff
inet 192.168.1.36/24 metric 600 brd 192.168.1.255 scope global dynamic wlan0
valid_lft 3534sec preferred_lft 3534sec
inet6 fe80::5aa0:23ff:feb9:4a1f/64 scope link
valid_lft forever preferred_lft forever
output of
$ ip route show
:
default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.36 metric 600
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.36 metric 600
192.168.1.1 dev wlan0 proto dhcp scope link src 192.168.1.36 metric 600
Offline
systemctl restard systemd-networkd
and that's also not what you actually typed.
Please post the output of
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
Online
$ find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
dbus-org.freedesktop.network1.service | system
dbus-org.freedesktop.resolve1.service | system
dbus-org.freedesktop.timesync1.service | system
fstrim.timer | timers.target.wants
getty@tty1.service | getty.target.wants
isw@SILENT.service | multi-user.target.wants
isw@SILENT.service | sleep.target.wants
iwd.service | multi-user.target.wants
lm_sensors.service | multi-user.target.wants
p11-kit-server.socket | sockets.target.wants
pipewire.socket | sockets.target.wants
postgresql.service | multi-user.target.wants
pulseaudio.socket | sockets.target.wants
remote-fs.target | multi-user.target.wants
systemd-networkd.service | multi-user.target.wants
systemd-networkd.socket | sockets.target.wants
systemd-networkd-wait-online.service | network-online.target.wants
systemd-network-generator.service | sysinit.target.wants
systemd-resolved.service | sysinit.target.wants
systemd-timesyncd.service | sysinit.target.wants
tlp.service | multi-user.target.wants
Offline
There're no conflicting serviced, tlp is a candidate (powersaving for the wifi NIC kicks it out of gear)
Otherwise please post your complete system journal for an affected boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.st
Online
My tlp is always in AC mode but I'll keep using the system with tlp disabled for a while just in case and see what happens.
Offline
May 06 00:05:30 archlinux iwd[612]: Received Deauthentication event, reason: 4, from_ap: false
May 06 10:55:34 archlinux iwd[612]: Received Deauthentication event, reason: 3, from_ap: false
May 06 17:29:43 archlinux iwd[612]: Received Deauthentication event, reason: 3, from_ap: false
May 06 20:05:30 archlinux iwd[612]: Received Deauthentication event, reason: 4, from_ap: false
May 07 13:24:53 archlinux iwd[612]: Received Deauthentication event, reason: 3, from_ap: false
May 07 16:05:29 archlinux iwd[612]: Received Deauthentication event, reason: 4, from_ap: false
May 07 20:08:00 archlinux iwd[1281648]: Received Deauthentication event, reason: 3, from_ap: false
May 08 00:05:30 archlinux iwd[1281648]: Received Deauthentication event, reason: 4, from_ap: false
May 08 10:24:07 archlinux iwd[1281648]: Received Deauthentication event, reason: 3, from_ap: false
May 08 12:05:29 archlinux iwd[1281648]: Received Deauthentication event, reason: 4, from_ap: false
May 08 16:05:29 archlinux iwd[1281648]: Received Deauthentication event, reason: 4, from_ap: false
Same problem w/ wpa_supplicant?
What if your keep "ping google.com" running in some terminal?
Online