You are not logged in.

#1 2022-11-19 03:09:21

stygian1337
Member
Registered: 2022-11-19
Posts: 11

[BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Hello, Friends.
I have both windows 10(UEFI) and ArchLinux in dual boot. Wifi works fine on windows, but when I use ArchLinux, it works for some time after booting and then goes down.
Some information for geeks:

# lshw -c network
  *-network DISABLED        
       description: Wireless interface
       product: QCA9377 802.11ac Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlan0
       version: 31
       serial: d4:6a:6a:a2:3d:1f
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=6.0.8-arch1-1 firmware=WLAN.TF.2.1-00021-QCARMSWP-1 latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:129 memory:df000000-df1fffff
  *-network
       description: Ethernet interface
       product: RTL810xE PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 07
       serial: 50:9a:4c:d2:2b:b1
       size: 100Mbit/s
       capacity: 100Mbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.0.8-arch1-1 duplex=full firmware=rtl8106e-1_0.0.1 06/29/12 ip=192.168.0.100 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:17 ioport:e000(size=256) memory:df200000-df200fff memory:d0000000-d0003fff
# inxi -n
Network:
  Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
    driver: ath10k_pci
  IF: wlan0 state: down mac: d4:6a:6a:a2:3d:1f
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet driver: r8169
  IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: 50:9a:4c:d2:2b:b1
# rfkill list
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
sudo ifconfig wlan0 up
SIOCSIFFLAGS: Input/output error
# iwconfig
lo        no wireless extensions.

enp2s0    no wireless extensions.

wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
# lsmod | grep ath10k
ath10k_pci             57344  0
ath10k_core           667648  1 ath10k_pci
ath                    40960  1 ath10k_core
mac80211             1298432  1 ath10k_core
cfg80211             1118208  4 wl,ath,mac80211,ath10k_core

kernel information

# pacman -Q linux linux-firmware
linux 6.0.8.arch1-1
linux-firmware 20221109.60310c2-1

And I am using NetworkManager in kDE

Last edited by stygian1337 (2022-11-19 13:52:13)

Offline

#2 2022-11-19 05:19:11

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Welcome to the forums.

Is fast start enabled in Windows? It apparently has a habit of re-enabling itself on update, so even if you think it is disabled, boot into Windows and check it still is.

If that's not it, post a complete journal which includes the issue. and

find /etc/systemd/system/ -name '*.service'

You cannot expect

sudo ifconfig wlan0 up

to work while you have NetworkManager managing wlan0.

Note that I think ifconfig is deprecated. (See https://wiki.archlinux.org/title/Networ … et-tools.)

Last edited by cfr (2022-11-19 05:23:28)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2022-11-19 07:14:27

stygian1337
Member
Registered: 2022-11-19
Posts: 11

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Hello, Mate. I have fast boot/setup disabled in Windows. And yes, ifconfig is deprecated.

# netctl start wlan0-yggdrasil
Job for netctl@wlan0\x2dyggdrasil.service failed because the control process exited with error code.
See "systemctl status "netctl@wlan0\\x2dyggdrasil.service"" and "journalctl -xeu "netctl@wlan0\\x2dyggdrasil.service"" for details.
# systemctl status netctl@my_profile.service wpa_supplicant.service 
× netctl@my_profile.service - Networking for netctl profile my_profile
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
     Active: failed (Result: exit-code) since Sat 2022-11-19 12:31:27 UTC; 1min 19s ago
       Docs: man:netctl.profile(5)
    Process: 6316 ExecStart=/usr/lib/netctl/network start my_profile (code=exited, status=1/FAILURE)
   Main PID: 6316 (code=exited, status=1/FAILURE)
        CPU: 6.908s

Nov 19 12:31:22 AION network[6327]: nl80211: Could not set interface 'wlan0' UP
Nov 19 12:31:26 AION network[6327]: Could not set interface wlan0 flags (UP): Input/output error
Nov 19 12:31:26 AION network[6327]: WEXT: Could not set interface 'wlan0' UP
Nov 19 12:31:26 AION network[6327]: wlan0: Failed to initialize driver interface
Nov 19 12:31:27 AION network[6316]: The WPA supplicant did not start for interface 'wlan0'
Nov 19 12:31:27 AION network[6316]: Failed to bring the network up for profile 'my_profile'
Nov 19 12:31:27 AION systemd[1]: netctl@my_profile.service: Main process exited, code=exited, status=1/FAILURE
Nov 19 12:31:27 AION systemd[1]: netctl@my_profile.service: Failed with result 'exit-code'.
Nov 19 12:31:27 AION systemd[1]: Failed to start Networking for netctl profile my_profile.
Nov 19 12:31:27 AION systemd[1]: netctl@my_profile.service: Consumed 6.908s CPU time.

○ wpa_supplicant.service - WPA supplicant
     Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; disabled; preset: disabled)
     Active: inactive (dead)

Nov 19 12:11:05 AION wpa_supplicant[3966]: nl80211: Could not set interface 'wlan0' UP
Nov 19 12:11:05 AION wpa_supplicant[3966]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Nov 19 12:11:08 AION wpa_supplicant[3966]: Could not set interface wlan0 flags (UP): Input/output error
Nov 19 12:11:08 AION wpa_supplicant[3966]: WEXT: Could not set interface 'wlan0' UP
Nov 19 12:11:08 AION wpa_supplicant[3966]: wlan0: Failed to initialize driver interface
Nov 19 12:11:08 AION wpa_supplicant[3966]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Nov 19 12:14:10 AION systemd[1]: Stopping WPA supplicant...
Nov 19 12:14:10 AION systemd[1]: wpa_supplicant.service: Deactivated successfully.
Nov 19 12:14:10 AION systemd[1]: Stopped WPA supplicant.
Nov 19 12:14:10 AION systemd[1]: wpa_supplicant.service: Consumed 41.106s CPU time.

dmesg output: https://paste.centos.org/view/c74ec69c
wlan0 is down, for time being am using ethernet.

Last edited by stygian1337 (2022-11-19 07:15:58)

Offline

#4 2022-11-19 07:57:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,325

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

And I am using NetworkManager in kDE
systemctl status netctl@my_profile.service wpa_supplicant.service

cfr wrote:

find /etc/systemd/system/ -name '*.service'

----------------

I have fast boot/setup disabled in Windows.

Nevertheless, better re-check that. Windows re-enables it w/ updates.
See the 3rd link below.

Last edited by seth (2022-11-19 07:59:06)

Offline

#5 2022-11-19 10:46:23

stygian1337
Member
Registered: 2022-11-19
Posts: 11

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Mate, I have separate ESP partitions for both Windows and Arch bootloaders, and I have fast boot disabled(double-checked).

Offline

#6 2022-11-19 10:51:59

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,325

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

The partitioning doesn't matter and nb. that it's "fast-start" (need to fix my signature) - if you looked at your UEFI/BIOS - that's the wrong setting.

Either way and more crucially, we're still missing you enabled services, cause it sure sounds like you've at least NM and netctl going - what will not work and cause the described symptoms. Mate.

Offline

#7 2022-11-19 11:19:10

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

stygian1337 wrote:

Mate, I have separate ESP partitions for both Windows and Arch bootloaders,

Probably not relevant to this issue but that is the wrong approach.
On UEFI systems you should have one ESP that's shared between all OS's.


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

#8 2022-11-19 11:25:29

d.ALT
Member
Registered: 2019-05-10
Posts: 958

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Slithery wrote:
stygian1337 wrote:

Mate, I have separate ESP partitions for both Windows and Arch bootloaders,

Probably not relevant to this issue but that is the wrong approach.
On UEFI systems you should have one ESP that's shared between all OS's.

Hey Slithery, can confirm about my setup here: three ESP(s), one on each separate drive (Arch: nVME - Debian: SSD - Windows: mecha)... Never had any problems at all.


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#9 2022-11-19 11:34:58

stygian1337
Member
Registered: 2022-11-19
Posts: 11

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

seth wrote:

we're still missing you enabled services, cause it sure sounds like you've at least NM and netctl going - what will not work and cause the described symptoms. Mate.

# find /etc/systemd/system/ -name '*.service'
/etc/systemd/system/torctl-autowipe.service
/etc/systemd/system/bactl.service
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/display-manager.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/multi-user.target.wants/apparmor.service
/etc/systemd/system/multi-user.target.wants/snapd.service
/etc/systemd/system/multi-user.target.wants/bactl.service
/etc/systemd/system/multi-user.target.wants/pacman-init.service
/etc/systemd/system/multi-user.target.wants/snapd.apparmor.service
/etc/systemd/system/multi-user.target.wants/dhcpcd.service
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/choose-mirror.service
/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service
/etc/systemd/system/torctl-autostart.service
# systemctl --type=service --no-pager
  UNIT                                LOAD   ACTIVE SUB     DESCRIPTION                         
  alsa-restore.service                loaded active exited  Save/Restore Sound Card State
  bactl.service                       loaded active exited  BlackArch Linux Controller Script
  dbus.service                        loaded active running D-Bus System Message Bus
  dhcpcd.service                      loaded active running dhcpcd on all interfaces
  kmod-static-nodes.service           loaded active exited  Create List of Static Device Nodes
  ldconfig.service                    loaded active exited  Rebuild Dynamic Linker Cache
  lvm2-monitor.service                loaded active exited  Monitoring of LVM2 mirrors, snapsho…
  lxdm.service                        loaded active running LXDE Display Manager
● netctl@my_profile.service           loaded failed failed  Networking for netctl profile my_pr…
● netctl@wlan0\x2dyggdrasil.service   loaded failed failed  Networking for netctl profile wlan0…
  NetworkManager.service              loaded active running Network Manager
  polkit.service                      loaded active running Authorization Manager
  rtkit-daemon.service                loaded active running RealtimeKit Scheduling Policy Servi…
  systemd-backlight@backlight:intel_… loaded active exited  Load/Save Screen Backlight Brightne…
  systemd-backlight@leds:dell::kbd_b… loaded active exited  Load/Save Screen Backlight Brightne…
  systemd-binfmt.service              loaded active exited  Set Up Additional Binary Formats
  systemd-journal-catalog-update.ser… loaded active exited  Rebuild Journal Catalog
  systemd-journal-flush.service       loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service            loaded active running Journal Service
  systemd-logind.service              loaded active running User Login Management
  systemd-modules-load.service        loaded active exited  Load Kernel Modules
  systemd-random-seed.service         loaded active exited  Load/Save Random Seed
  systemd-remount-fs.service          loaded active exited  Remount Root and Kernel File Systems
  systemd-sysctl.service              loaded active exited  Apply Kernel Variables
  systemd-sysusers.service            loaded active exited  Create System Users
  systemd-tmpfiles-setup-dev.service  loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service      loaded active exited  Create Volatile Files and Directori…
  systemd-udev-trigger.service        loaded active exited  Coldplug All udev Devices
  systemd-udevd.service               loaded active running Rule-based Manager for Device Event…
  systemd-update-done.service         loaded active exited  Update is Completed
  systemd-update-utmp.service         loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service       loaded active exited  Permit User Sessions
  udisks2.service                     loaded active running Disk Manager
  upower.service                      loaded active running Daemon for power management
  user-runtime-dir@1001.service       loaded active exited  User Runtime Directory /run/user/10…
  user@1001.service                   loaded active running User Manager for UID 1001
# nmcli device wifi rescan
Error: No Wi-Fi device found.
# nmcli general
STATE         CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN    
disconnected  none          enabled  enabled  missing  enabled 

so, now, it's just not showing my wifi interface.
I have tried removing my wifi driver and re-loading; following this: https://askubuntu.com/questions/770488/ … ror-rt3290
But, am still in vain.

Last edited by stygian1337 (2022-11-19 11:49:34)

Offline

#10 2022-11-19 11:41:11

stygian1337
Member
Registered: 2022-11-19
Posts: 11

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Slithery wrote:
stygian1337 wrote:

Mate, I have separate ESP partitions for both Windows and Arch bootloaders,

Probably not relevant to this issue but that is the wrong approach.
On UEFI systems you should have one ESP that's shared between all OS's.

Mate, am using grub(installed in arch /boot)  and os-prober to manage operating systems and I have configured it in my bios settings.

Offline

#11 2022-11-19 12:36:54

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

You have both the dhcpcd and NetworkManager services enabled. They will be fighting each other for control of your network which is causing your issue. Pick the one that you want to use and disable the other one.


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

#12 2022-11-19 12:39:22

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

d.ALT wrote:
Slithery wrote:
stygian1337 wrote:

Mate, I have separate ESP partitions for both Windows and Arch bootloaders,

Probably not relevant to this issue but that is the wrong approach.
On UEFI systems you should have one ESP that's shared between all OS's.

Hey Slithery, can confirm about my setup here: three ESP(s), one on each separate drive (Arch: nVME - Debian: SSD - Windows: mecha)... Never had any problems at all.

I never said that it would definately cause issues, just that multiple ESP's aren't recognised by the EFI formal specifications.
It might work OK on your current motherboard but on other systems it will fail to boot with that setup.


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 2022-11-19 13:26:51

stygian1337
Member
Registered: 2022-11-19
Posts: 11

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Everyone, I appreciate your genuine effort. Actually, for some reason, wpa_supplicant wasn't working fine with my system I don't know why. So, Now, I am using iwd in the backend of NetworkManager. And now, everything is solid.

Offline

#14 2022-11-19 13:43:57

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,325

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Slithery wrote:

You have both the dhcpcd and NetworkManager services enabled. They will be fighting each other for control of your network which is causing your issue. Pick the one that you want to use and disable the other one.

Does still apply.

Offline

#15 2022-11-19 13:56:01

stygian1337
Member
Registered: 2022-11-19
Posts: 11

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Mate, actually, it was a bug.

 3316.333006] ath10k_pci 0000:01:00.0: failed to wake target for write32 of 0xfffffffe at 0x00080008: -110
[ 3316.389634] ath10k_pci 0000:01:00.0: failed to wake target for read32 at 0x0003a028: -110
[ 3316.422278] ath10k_pci 0000:01:00.0: failed to wake target for read32 at 0x0003a028: -110
[ 3316.454930] ath10k_pci 0000:01:00.0: failed to wake target for read32 at 0x0003a028: -110
[ 3316.487581] ath10k_pci 0000:01:00.0: failed to wake target for read32 at 0x0003a028: -110
[ 3316.520373] ath10k_pci 0000:01:00.0: failed to wake target for read32 at 0x0003a028: -110
[ 3316.553144] ath10k_pci 0000:01:00.0: failed to wake target for read32 at 0x0003a028: -110
[ 3316.585851] ath10k_pci 0000:01:00.0: failed to wake target for read32 at 0x0003a028: -110
[ 3316.847277] pcieport 0000:00:1c.5: AER: Multiple Corrected error received: 0000:02:00.0
[ 3316.847303] r8169 0000:02:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Transmitter ID)
[ 3316.847306] r8169 0000:02:00.0:   device [10ec:8136] error status/mask=00001001/00000000
[ 3316.847309] r8169 0000:02:00.0:    [ 0] RxErr                  (First)
[ 3316.847312] r8169 0000:02:00.0:    [12] Timeout               
[ 3319.525371] ath10k_pci 0000:01:00.0: failed to read device register, device is gone
[ 3319.623535] ath10k_pci 0000:01:00.0: failed to reset chip: -5
[ 3319.623541] ath10k_pci 0000:01:00.0: Could not init hif: -5
[ 3319.623550] ath10k_pci 0000:01:00.0: firmware crashed! (guid 7d7a1de5-89e9-4eba-a4cc-8121dce7a761)
[ 3319.623557] ath10k_pci 0000:01:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 1028:1810

As you can see the firmware linked to that driver has been crashed!
I found it here
https://bbs.archlinux.org/viewtopic.php?id=250878
https://bugs.launchpad.net/ubuntu/+sour … ug/1882968

Last edited by stygian1337 (2022-11-19 14:01:19)

Offline

#16 2022-11-19 14:08:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,325

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

That doesn't matter - running multiple network managing services will result in connection instability.
You had NM and dhcpcd running (and tried netctl on top of that) - that it's not the immediate problem doesn't meant that it's not a problem.

Offline

#17 2022-11-19 14:11:24

stygian1337
Member
Registered: 2022-11-19
Posts: 11

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Yes, Mate, You are right. But, the core problem is with the firmware.
https://www.dell.com/community/XPS/XPS- … 897/page/6
bug info: https://bugzilla.kernel.org/show_bug.cgi?id=202601

Last edited by stygian1337 (2022-11-19 14:20:23)

Offline

#18 2022-11-19 17:24:43

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Could you please stop using the word 'Mate' when it isn't relevant as it's easily confused with the DE of the same name.

General Guidelines - How to post wrote:

A sincere effort to use modest and proper language and grammar is a sign of respect toward the community that will certainly be appreciated and is quite likely to elicit positive responses.


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

#19 2022-11-20 02:12:16

stygian1337
Member
Registered: 2022-11-19
Posts: 11

Re: [BUG]]wlan0 mysteriously goes down after sometime of doing a restart

Okay, I am new so I didn't know that.
https://bbs.archlinux.org/viewtopic.php?id=249664

Last edited by stygian1337 (2022-11-20 10:38:43)

Offline

Board footer

Powered by FluxBB