How to find if second video card is powered?

I have two video cards:

lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA 
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1) (prog-if 00 [VGA controller])
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c5) (prog-if 00 [VGA controller])

I have installed latest Nvidia drivers and the kernel I’m with is 6.0.8-1-MANJARO.

I want to find out at any moment which video card is powered. I have powertop but I don’t know how to find out which VGA device is powered. For example, I switched to nvidia with “optimus-manager --switch nvidia”
and I see in powertop:

100,0%        PCI Device: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q]
100,0%        PCI Device: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series]

So is the AMD gpu powered? Is there a better way to find out than powertop? And if it’s powered how to turn it off?

Background:
The problem I have is that my wifi adapter switches off randomly. I traced this problem to not having set up "/etc/optimus-manager/optimus-manager.conf " and after setting it up, for a while, my wifi adapter worked fantastic. This was with my xanmod and nvidia-dkms installation. Afterwards, I switched to standard kernel and reinstalled nvidia drivers, and now after few days of work, my wifi adapter again disappeared and I had to restart to recover it. This is why I want to see if both of my video cards are powered or no and if possible to solve the problem.

both cards are powered nonstop… optimus doesnt unpower them, unless you use it with acpi call, which will very likely make your system unstable, so dont mess with it…
and what does your wifi have to do with your gpus/optimus?

I had a huge problems with my wifi adapter - it kept on disappearing, which required a restart to fix. Which does not work for me. When I set up the conf file for optmus, as described in this wiki, my wifi adapter stopped disappearing. So I think the problem was the power management of the gpus that at some point would leave my wifi unpowered.

The question now is how I can find out if the power management for my video adapters is correct now with the new kernel. For sure there should be some difference between switching entirely to nvidia or to amd or staying at hybrid mode power-wise? Otherwise why would you need to set up the conf file. Also - different options in the conf file produce different results - I tested it last time I did it.

that sound strange to me, that enable power save on your nvidia makes your wifi working…
both gpus are powered nonstop… what you did enable via optimus was power save…
post output from:
inxi -N

I discovered the issue because my wifi worked nonstop when I didn’t have any nvidia drivers, then when I installed them and nvidia worked normally, it started disappearing, then when I added the config file for optimus it was fixed and now with the new kernel I had 1 problem in 3 days. I reinstalled optimus-manager and now I’m waiting to see if it’s gonna disappear again. Here’s the output you requested:

$inxi -N
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi

and this is my config file:

 cat /etc/optimus-manager/optimus-manager.conf
[amd]
dynamic_power_management=fine
DRI=3
driver=modesetting
tearfree=

[intel]
dynamic_power_management=fine
DRI=3
accel=
driver=modesetting
modeset=yes
tearfree=

[nvidia]
dynamic_power_management=fine
DPI=96
PAT=yes
allow_external_gpus=no
ignore_abi=no
modeset=yes
options=overclocking

[optimus]
dynamic_power_management=fine
auto_logout=yes
pci_power_control=no
pci_remove=no
pci_reset=no
startup_auto_battery_mode=integrated
startup_auto_extpower_mode=hybrid #nvidia
startup_mode=hybrid #nvidia
switching=none

so so far the issue with the wifi is solved after you reinstaled optimus?

you can also disable power save on your wifi card, if the issue returns:
sudo nano /etc/modprobe.d/wifi.conf
add there this line:

options iwlwifi power_save=0

save it with ctrl+x
reboot


also if you are dual booting with windows, fast startup needs to be disabled in windows;
and fastboot disabled in bios/uefi - you may not have this option

Hi, thank you for the reply. Here is my wifi.conf

options iwlmvm power_scheme=1
options iwlwifi swcrypto=0 bt_coex_active=0 power_save=0 11n_disable=1

I can confirm the problem with the wifi persists, I just lost the adapter and had to reboot to restart it.
This was with optimus set to nvidia. Now I set it to “integrated” to see if there’s gonna be a difference. But this is very problematic as I run long jobs on my computer and restarting is not an option.
Also, I don’t have a double boot, it’s only Linux.

Edit: I can confirm that with optimus-manager set to integrated, my wifi survived about half an hour before disappearing. When it disappeared it I got the following:

$inxi -N
 Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  Device-2: Intel Wi-Fi 6 AX200 driver: N/A

I tried to reload the driver, but nothing changed.

this Intel Wi-Fi 6 AX200 is problematic, even windows users have problem with it…
when it crashes again, and you have to reboot, provide logs from the crashed wifi:
journalctl -b-1 -p4 --no-pager

also would look into if there is a bios update available for your machine…

Hi, it just happened. I have the log but it’s rather strange. I’m pasting a part of it below. There are a lot of repeated entries about AgentDVR which I might have tried to install at some point but totally don’t need it now. I’m not sure why it appears so many time and I don’t know if it’s safe to delete it but I’ll remove it now.

дек 13 02:05:41 dj kernel: Malformed early option 'idle'
дек 13 02:05:41 dj kernel:   #2  #3  #4  #5  #6  #7  #8  #9 #10 #11 #12 #13 #14 #15
дек 13 02:05:41 dj kernel: Expanded resource Reserved due to conflict with PCI Bus 0000:00
дек 13 02:05:41 dj kernel: pci 0000:00:00.2: can't derive routing for PCI INT A
дек 13 02:05:41 dj kernel: pci 0000:00:00.2: PCI INT A: not connected
дек 13 02:05:41 dj kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_TZ.THRM._SCP.CTYP], AE_NOT_FOUND (20220331/psargs-330)
дек 13 02:05:41 dj kernel: ACPI Error: Aborting method \_TZ.THRM._SCP due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
дек 13 02:05:41 dj kernel: ATPX version 1, functions 0x00000001
дек 13 02:05:41 dj kernel: ATPX Hybrid Graphics
дек 13 02:05:41 dj kernel: amdgpu 0000:05:00.0: amdgpu: PSP runtime database doesn't exist
дек 13 02:05:41 dj kernel: amdgpu 0000:05:00.0: amdgpu: PSP runtime database doesn't exist
дек 13 02:05:41 dj kernel: clocksource: timekeeping watchdog on CPU3: Marking clocksource 'tsc' as unstable because the skew is too large:
дек 13 02:05:41 dj kernel: clocksource:                       'hpet' wd_nsec: 507503397 wd_now: 1ba95a3 wd_last: 14bb4c6 mask: ffffffff
дек 13 02:05:41 dj kernel: clocksource:                       'tsc' cs_nsec: 506661823 cs_now: 8e1da8600 cs_last: 8813c8a60 mask: ffffffffffffffff
дек 13 02:05:41 dj kernel: clocksource:                       'tsc' is current clocksource.
дек 13 02:05:41 dj kernel: TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
дек 13 02:05:41 dj kernel: clocksource: Checking clocksource tsc synchronization from CPU 13 to CPUs 0,5-6,9-10.
дек 13 02:05:41 dj kernel: amdgpu: SRAT table not found
дек 13 02:05:41 dj kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
дек 13 02:05:41 dj systemd-modules-load[365]: Failed to find module 'acpi_call'
дек 13 02:05:41 dj kernel: acpi PNP0C14:01: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
дек 13 02:05:42 dj kernel: iwlwifi: unknown parameter '#enabling' ignored
дек 13 02:05:42 dj kernel: iwlwifi: unknown parameter 'antenna' ignored
дек 13 02:05:42 dj kernel: iwlwifi: unknown parameter 'aggregation' ignored
дек 13 02:05:42 dj kernel: iwlwifi: unknown parameter 'iwlmvm' ignored
дек 13 02:05:42 dj kernel: iwlwifi: unknown parameter 'power_scheme' ignored
дек 13 02:05:42 dj kernel: iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-cc-a0-72.ucode failed with error -2
дек 13 02:05:42 dj kernel: iwlwifi 0000:03:00.0: api flags index 2 larger than supported by driver
дек 13 02:05:42 dj kernel: thermal thermal_zone1: failed to read out thermal zone (-61)
дек 13 02:05:42 dj kernel: asus_wmi: fan_curve_get_factory_default (0x00110024) failed: -61
дек 13 02:05:42 dj kernel: asus_wmi: fan_curve_get_factory_default (0x00110025) failed: -61
дек 13 02:05:42 dj kernel: ------------[ cut here ]------------
дек 13 02:05:42 dj kernel: WARNING: CPU: 12 PID: 630 at drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:711 iwl_init_he_hw_capab+0x375/0x390 [iwlwifi]
дек 13 02:05:42 dj kernel: Modules linked in: snd_sof_amd_renoir asus_nb_wmi hid_multitouch snd_sof_amd_acp asus_wmi snd_sof_pci sparse_keymap snd_hda_codec_realtek wmi_bmof platform_profile edac_mce_amd snd_sof snd_hda_codec_generic snd_sof_utils kvm_amd iwlmvm(+) snd_soc_core ledtrig_audio snd_hda_codec_hdmi snd_compress snd_hda_intel kvm mac80211 ac97_bus snd_intel_dspcfg snd_pcm_dmaengine irqbypass snd_intel_sdw_acpi crct10dif_pclmul snd_rpl_pci_acp6x crc32_pclmul snd_hda_codec libarc4 snd_acp_pci polyval_clmulni snd_pci_acp6x polyval_generic snd_hda_core snd_pci_acp5x gf128mul r8169 snd_rn_pci_acp3x snd_hwdep ghash_clmulni_intel iwlwifi snd_acp_config snd_pcm realtek aesni_intel snd_soc_acpi mdio_devres crypto_simd snd_timer cryptd tpm_crb rapl pcspkr ccp ucsi_acpi snd snd_pci_acp3x mac_hid cfg80211 soundcore video i2c_hid_acpi typec_ucsi i2c_hid acpi_cpufreq libphy rfkill typec tpm_tis roles tpm_tis_core sp5100_tco tpm asus_wireless i2c_piix4 k10temp rng_core amd_pmc wmi squashfs loop uinput sg
дек 13 02:05:42 dj kernel:  crypto_user fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 vivaldi_fmap nvme nvme_core xhci_pci crc32c_intel nvme_common xhci_pci_renesas i8042 serio amdgpu drm_ttm_helper ttm gpu_sched drm_buddy drm_display_helper cec
дек 13 02:05:42 dj kernel: CPU: 12 PID: 630 Comm: modprobe Not tainted 6.0.8-1-MANJARO #1 c0cf5b11328ccb59c51ce115ec3497ae7001538a
дек 13 02:05:42 dj kernel: Hardware name: ASUSTeK COMPUTER INC. ASUS TUF Gaming A15 FA506QM_FA506QM/FA506QM, BIOS FA506QM.313 10/27/2022
дек 13 02:05:42 dj kernel: RIP: 0010:iwl_init_he_hw_capab+0x375/0x390 [iwlwifi]
дек 13 02:05:42 dj kernel: Code: 44 89 20 0f b7 4b 5c 83 c2 01 48 83 e8 80 39 ca 7c ed e9 f4 fc ff ff 48 8d 86 a0 02 00 00 e9 16 fd ff ff 0f 0b e9 e1 fc ff ff <0f> 0b e9 2c ff ff ff 0f 0b e9 46 ff ff ff e8 78 dd 23 e2 0f 1f 84
дек 13 02:05:42 dj kernel: RSP: 0018:ffffa88b03def928 EFLAGS: 00010246
дек 13 02:05:42 dj kernel: RAX: 0000000000000002 RBX: ffff8bf381df8168 RCX: 0000000000000001
дек 13 02:05:42 dj kernel: RDX: ffffa88b03def942 RSI: ffff8bf381df8000 RDI: 0000000000000003
дек 13 02:05:42 dj kernel: RBP: ffff8bf381df0028 R08: 0000000000000002 R09: 0000000000000003
дек 13 02:05:42 dj kernel: R10: ffff8bf381df0028 R11: 0000000000000001 R12: ffff8bf381df8000
дек 13 02:05:42 dj kernel: R13: 0000000000000003 R14: 0000000000000003 R15: 0000000000000008
дек 13 02:05:42 dj kernel: FS:  00007f9b0943b740(0000) GS:ffff8bfa4e900000(0000) knlGS:0000000000000000
дек 13 02:05:42 dj kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
дек 13 02:05:42 dj kernel: CR2: 000055f5d8fe3000 CR3: 0000000119696000 CR4: 0000000000750ee0
дек 13 02:05:42 dj kernel: PKRU: 55555554
дек 13 02:05:42 dj kernel: Call Trace:
дек 13 02:05:42 dj kernel:  <TASK>
дек 13 02:05:42 dj kernel:  iwl_init_sbands+0x677/0x6e0 [iwlwifi b5cb18d745f6e49d9920a271712290613bd31e2e]
дек 13 02:05:42 dj kernel:  iwl_get_nvm+0x239/0x2c0 [iwlwifi b5cb18d745f6e49d9920a271712290613bd31e2e]
дек 13 02:05:42 dj kernel:  ? iwl_run_unified_mvm_ucode+0x20e/0x250 [iwlmvm f134498497d0b5f67ccb550c6b1a2bb20c3300a5]
дек 13 02:05:42 dj kernel:  iwl_run_unified_mvm_ucode+0x20e/0x250 [iwlmvm f134498497d0b5f67ccb550c6b1a2bb20c3300a5]
дек 13 02:05:42 dj kernel:  ? asm_sysvec_call_function+0x1a/0x20
дек 13 02:05:42 dj kernel:  ? 0xffffffffc316d000
дек 13 02:05:42 dj kernel:  iwl_run_init_mvm_ucode+0x1f8/0x3a0 [iwlmvm f134498497d0b5f67ccb550c6b1a2bb20c3300a5]
дек 13 02:05:42 dj kernel:  ? iwl_pcie_check_hw_rf_kill+0x21/0x90 [iwlwifi b5cb18d745f6e49d9920a271712290613bd31e2e]
дек 13 02:05:42 dj kernel:  iwl_mvm_start_get_nvm+0x88/0x200 [iwlmvm f134498497d0b5f67ccb550c6b1a2bb20c3300a5]
дек 13 02:05:42 dj kernel:  iwl_op_mode_mvm_start+0x7d8/0x9a0 [iwlmvm f134498497d0b5f67ccb550c6b1a2bb20c3300a5]
дек 13 02:05:42 dj kernel:  _iwl_op_mode_start+0x9b/0xc0 [iwlwifi b5cb18d745f6e49d9920a271712290613bd31e2e]
дек 13 02:05:42 dj kernel:  iwl_opmode_register+0x6c/0xe0 [iwlwifi b5cb18d745f6e49d9920a271712290613bd31e2e]
дек 13 02:05:42 dj kernel:  ? 0xffffffffc1838000
дек 13 02:05:42 dj kernel:  iwl_mvm_init+0x38/0x1000 [iwlmvm f134498497d0b5f67ccb550c6b1a2bb20c3300a5]
дек 13 02:05:42 dj kernel:  ? 0xffffffffc1838000
дек 13 02:05:42 dj kernel:  do_one_initcall+0x5d/0x220
дек 13 02:05:42 dj kernel:  do_init_module+0x4a/0x1e0
дек 13 02:05:42 dj kernel:  __do_sys_init_module+0x17f/0x1b0
дек 13 02:05:42 dj kernel:  do_syscall_64+0x5f/0x90
дек 13 02:05:42 dj kernel:  ? syscall_exit_to_user_mode+0x1b/0x40
дек 13 02:05:42 dj kernel:  ? do_syscall_64+0x6b/0x90
дек 13 02:05:42 dj kernel:  entry_SYSCALL_64_after_hwframe+0x63/0xcd
дек 13 02:05:42 dj kernel: RIP: 0033:0x7f9b08f21ace
дек 13 02:05:42 dj kernel: Code: 48 8b 0d d5 f2 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a2 f2 0c 00 f7 d8 64 89 01 48
дек 13 02:05:42 dj kernel: RSP: 002b:00007fff7c1c2b28 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
дек 13 02:05:42 dj kernel: RAX: ffffffffffffffda RBX: 00005567dbc76eb0 RCX: 00007f9b08f21ace
дек 13 02:05:42 dj kernel: RDX: 00005567dbc77a40 RSI: 000000000014cb17 RDI: 00005567dbe33ad0
дек 13 02:05:42 dj kernel: RBP: 00005567dbc77a40 R08: 27d4eb2f165667c5 R09: 85ebca77c2b2ae63
дек 13 02:05:42 dj kernel: R10: 00000000001b5471 R11: 0000000000000246 R12: 0000000000040000
дек 13 02:05:42 dj kernel: R13: 00005567dbc76e00 R14: 000000000000000f R15: 00005567dbc7ab50
дек 13 02:05:42 dj kernel:  </TASK>
дек 13 02:05:42 dj kernel: ---[ end trace 0000000000000000 ]---
дек 13 02:05:42 dj kernel: iwlwifi 0000:03:00.0: iwlmvm doesn't allow to disable BT Coex, check bt_coex_active module parameter
дек 13 02:05:42 dj kernel: msr: Write to unrecognized MSR 0xc0010292 by zenstates.py (pid: 744).
дек 13 02:05:42 dj kernel: msr: See https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/about for details.
дек 13 02:05:42 dj kernel: ucsi_acpi USBC000:00: PPM init failed (-110)
дек 13 02:05:43 dj systemd-coredump[880]: Process 762 (dotnet) of user 1000 dumped core.
                                                   
                                                   Module /home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/dotnet with build-id 823045dc11e34b9c2de4a8e312c2f606358c08ed
                                                   Module /home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/System.Globalization.Native.so with build-id 3b5950193759986fff69f8b7eb6ee1f5dac50040
                                                   Module /home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/System.Native.so with build-id 5a2014d68c3216bd8ee5ee48866d79c39d7326b8
                                                   Module /home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libclrjit.so with build-id e824dd830da9748fee258be84dcbb1feeeb9c1cb
                                                   Module /home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so with build-id 6e1422825ffb9c115ae5a7c40dfdf8d5fd5d9264
                                                   Module /home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libhostpolicy.so with build-id 696c7b72a84c02a68db8a9af2f47595c0ffcb28e
                                                   Module /home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/host/fxr/3.1.4/libhostfxr.so with build-id cd2d5d3004fca4b3092eb78c600ee43e4a5dbece
                                                   Module linux-vdso.so.1 with build-id 4c401cb13195aeea26415c88e112cbc06f615d11
                                                   Module librt.so.1 with build-id 837ea1d121976e9fa94acdf79939b387a32531db
                                                   Module ld-linux-x86-64.so.2 with build-id 5492655bffbf172ed8a07f285f760ead38f09404
                                                   Module libc.so.6 with build-id 7d4293a9bbe1f068ab7ae807c2d9377395eb5b41
                                                   Module libgcc_s.so.1 with build-id 308aed8b7d7e38f5efa23f75c25601668c1fc009
                                                   Module libm.so.6 with build-id efeea58692a42176201df89f034aa4295a77ce74
                                                   Module libstdc++.so.6 with build-id e0dd3ec5b0a62b122b4141c956c0b33a4d719144
                                                   Module libdl.so.2 with build-id 2b416df8fd62af5dc5e987b11d99a5d0f772b440
                                                   Module libpthread.so.0 with build-id b966d4b239433c89ca36c0938381e2d92cd47639
                                                   Stack trace of thread 762:
                                                   #0  0x00007f1f7eca14dc n/a (libc.so.6 + 0x884dc)
                                                   #1  0x00007f1f7ec51998 raise (libc.so.6 + 0x38998)
                                                   #2  0x00007f1f7ec3b53d abort (libc.so.6 + 0x2253d)
                                                   #3  0x00007f1f7e07f7f3 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x47f7f3)
                                                   #4  0x00007f1f7e07f744 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x47f744)
                                                   #5  0x00007f1f7dd994e2 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x1994e2)
                                                   #6  0x00007f1f7dd9a63a n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x19a63a)
                                                   #7  0x00007f1f7e00df29 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x40df29)
                                                   #8  0x00007f1f7e00e0e5 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x40e0e5)
                                                   #9  0x00007f1f046655d8 n/a (n/a + 0x0)
                                                   #10 0x00007f1f04665604 n/a (n/a + 0x0)
                                                   #11 0x00007f1f7dd7e455 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e455)
                                                   #12 0x00007f1f7dd7e547 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e547)
                                                   #13 0x00007f1f7dd7e6c7 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e6c7)
                                                   #14 0x00007f1f7dd16072 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x116072)
                                                   #15 0x00007f1f7dd165f9 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x1165f9)
                                                   #16 0x00007f1f7dd2cd42 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x12cd42)
                                                   #17 0x00007f1f7dd2e000 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x12e000)
                                                   #18 0x00007f1f7de4e873 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x24e873)
                                                   #19 0x00007f1f0466c988 n/a (n/a + 0x0)
                                                   #20 0x00007f1f0466ca01 n/a (n/a + 0x0)
                                                   #21 0x00007f1f7de4e5ef n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x24e5ef)
                                                   #22 0x00007f1f7dd7e455 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e455)
                                                   #23 0x00007f1f7dd7e547 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e547)
                                                   #24 0x00007f1f7dd7e6c7 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e6c7)
                                                   #25 0x00007f1f7dd16072 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x116072)
                                                   #26 0x00007f1f7dd165f9 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x1165f9)
                                                   #27 0x00007f1f7dd2cd42 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x12cd42)
                                                   #28 0x00007f1f7dd2e000 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x12e000)
                                                   #29 0x00007f1f7de4e873 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x24e873)
                                                   #30 0x00007f1f044cce01 n/a (n/a + 0x0)
                                                   #31 0x00007f1f04f73fcd n/a (n/a + 0x0)
                                                   #32 0x00007f1f04f7435a n/a (n/a + 0x0)
                                                   #33 0x00007f1f7de4e5ef n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x24e5ef)
                                                   #34 0x00007f1f7dd7e455 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e455)
                                                   #35 0x00007f1f7dd7e547 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e547)
                                                   #36 0x00007f1f7dd7e6c7 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e6c7)
                                                   #37 0x00007f1f7dd16072 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x116072)
                                                   #38 0x00007f1f7dd165f9 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x1165f9)
                                                   #39 0x00007f1f7dd2cd42 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x12cd42)
                                                   #40 0x00007f1f7dd2e000 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x12e000)
                                                   #41 0x00007f1f7de4e873 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x24e873)
                                                   #42 0x00007f1f04f73ff2 n/a (n/a + 0x0)
                                                   #43 0x00007f1f04c01eea n/a (n/a + 0x0)
                                                   #44 0x00007f1f04c01dc5 n/a (n/a + 0x0)
                                                   #45 0x00007f1f04c01d73 n/a (n/a + 0x0)
                                                   #46 0x00007f1f04c03111 n/a (n/a + 0x0)
                                                   #47 0x00007f1f7de4e5ef n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x24e5ef)
                                                   #48 0x00007f1f7dd7e455 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17e455)
                                                   #49 0x00007f1f7dd7ef30 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x17ef30)
                                                   #50 0x00007f1f7de62f83 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x262f83)
                                                   #51 0x00007f1f7de63260 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0x263260)
                                                   #52 0x00007f1f7dccb011 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0xcb011)
                                                   #53 0x00007f1f7dca3db4 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libcoreclr.so + 0xa3db4)
                                                   #54 0x00007f1f7e416413 n/a (/home/dj/Свалени/CosmoMC/AgentDVR/.dotnet/shared/Microsoft.NETCore.App/3.1.4/libhostpolicy.so + 0x16413)
                                                   ELF object binary architecture: AMD x86-64
дек 13 02:05:43 dj kernel: kauditd_printk_skb: 224 callbacks suppressed
дек 13 02:05:43 dj systemd[1]: AgentDVR.service: Failed with result 'exit-code'.
дек 13 02:05:43 dj systemd[921]: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
дек 13 02:05:44 dj kernel: Bluetooth: hci0: Malformed MSFT vendor event: 0x02
дек 13 02:05:44 dj kernel: nvidia: loading out-of-tree module taints kernel.
дек 13 02:05:44 dj kernel: nvidia: module license 'NVIDIA' taints kernel.
дек 13 02:05:44 dj kernel: Disabling lock debugging due to kernel taint
дек 13 02:05:45 dj kernel: 
дек 13 02:05:45 dj kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  520.56.06  Thu Oct  6 21:38:55 UTC 2022
дек 13 02:05:46 dj kernel: ACPI Warning: \_SB.NPCF._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20220331/nsarguments-61)
дек 13 02:05:46 dj kernel: ACPI Warning: \_SB.PCI0.GPP0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20220331/nsarguments-61)
дек 13 02:05:47 dj systemd-xdg-autostart-generator[1031]: /etc/xdg/autostart/nvidia-session.desktop: stat() failed, ignoring: No such file or directory
дек 13 02:05:48 dj sddm-greeter[1034]: QFont::fromString: Invalid description '(empty)'
дек 13 02:05:48 dj kernel: kauditd_printk_skb: 11 callbacks suppressed
дек 13 02:05:48 dj sddm-greeter[1034]: QObject: Cannot create children for a parent that is in a different thread.
                                                (Parent is QGuiApplication(0x7ffd44fd5a40), parent's thread is QThread(0x55c5595d4cd0), current thread is QThread(0x55c55972b0a0)
дек 13 02:05:48 dj sddm-greeter[1034]: QObject: Cannot create children for a parent that is in a different thread.
                                                (Parent is QGuiApplication(0x7ffd44fd5a40), parent's thread is QThread(0x55c5595d4cd0), current thread is QThread(0x55c55972b0a0)
дек 13 02:05:48 dj sddm-greeter[1034]: QObject: Cannot create children for a parent that is in a different thread.
                                                (Parent is QGuiApplication(0x7ffd44fd5a40), parent's thread is QThread(0x55c5595d4cd0), current thread is QThread(0x55c55972b0a0)
дек 13 02:05:48 dj sddm-greeter[1034]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
дек 13 02:05:48 dj systemd-coredump[1068]: Process 1060 (dotnet) of user 1000 dumped core.

if i had know that that your wifi is this Intel Wi-Fi 6 AX200, i wouldnt even responded haha… this wifi card is cursed…


you have this in the logs, but i dont know how what to do with it…
you can search for:

Direct firmware load for iwlwifi ucode failed with error -2

and maybe you find something usefull…

Well, cursed or not, it worked well while I was with xanmod so there is a way, I just don’t get it what changed when I returned to normal kernel. I just installed normal nvidia and that’s it.

I got the dmesg logs from today’s wifi disappearance, it’s full of messages related to wifi, last one is:

[123539.536733] WARNING: CPU: 0 PID: 115088 at net/mac80211/driver-ops.c:37 drv_stop+0xf5/0x100 [mac80211]
[123539.536761] Modules linked in: tls snd_usb_audio snd_usbmidi_lib snd_rawmidi usbhid snd_seq_device nvidia_uvm(POE) nvidia_drm(POE) nvidia_modeset(POE) ccm rfcomm nvidia(POE) cmac algif_hash algif_skcipher af_alg intel_rapl_msr intel_rapl_common bnep uvcvideo btusb videobuf2_vmalloc videobuf2_memops btrtl videobuf2_v4l2 btbcm btintel videobuf2_common btmtk videodev qrtr bluetooth mc ecdh_generic joydev vfat snd_sof_amd_renoir iwlmvm mousedev fat snd_sof_amd_acp edac_mce_amd snd_sof_pci asus_nb_wmi asus_wmi snd_sof kvm_amd mac80211 snd_sof_utils snd_hda_codec_realtek sparse_keymap hid_multitouch wmi_bmof platform_profile libarc4 snd_soc_core kvm snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_compress iwlwifi ac97_bus irqbypass snd_pcm_dmaengine snd_hda_intel crct10dif_pclmul snd_rpl_pci_acp6x crc32_pclmul snd_acp_pci polyval_clmulni snd_intel_dspcfg snd_intel_sdw_acpi polyval_generic snd_pci_acp6x snd_hda_codec gf128mul cfg80211 snd_pci_acp5x r8169 ghash_clmulni_intel
[123539.536796]  snd_hda_core snd_rn_pci_acp3x aesni_intel snd_hwdep realtek snd_acp_config crypto_simd snd_pcm snd_soc_acpi ucsi_acpi mdio_devres cryptd snd_timer tpm_crb rapl pcspkr typec_ucsi rfkill ccp snd snd_pci_acp3x mac_hid video soundcore tpm_tis typec tpm_tis_core i2c_hid_acpi libphy roles sp5100_tco i2c_hid tpm wmi k10temp asus_wireless rng_core i2c_piix4 amd_pmc squashfs loop uinput sg crypto_user fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 vivaldi_fmap nvme nvme_core xhci_pci crc32c_intel xhci_pci_renesas i8042 nvme_common serio amdgpu drm_ttm_helper ttm gpu_sched drm_buddy drm_display_helper cec
[123539.536827] CPU: 0 PID: 115088 Comm: kworker/0:2 Tainted: P S      W  OE      6.0.11-1-MANJARO #1 8e15ceada3efdbc5315e82c99bdae698b808ac92
[123539.536829] Hardware name: ASUSTeK COMPUTER INC. ASUS TUF Gaming A15 FA506QM_FA506QM/FA506QM, BIOS FA506QM.313 10/27/2022
[123539.536830] Workqueue: events_freezable ieee80211_restart_work [mac80211]
[123539.536852] RIP: 0010:drv_stop+0xf5/0x100 [mac80211]
[123539.536872] Code: 0f 00 48 85 c0 74 0c 48 8b 78 08 48 89 de e8 f2 9f 04 00 65 ff 0d db c4 0d 3d 0f 85 39 ff ff ff e8 98 ff 2b e9 e9 2f ff ff ff <0f> 0b 5b c3 cc cc cc cc 0f 1f 00 66 0f 1f 00 0f 1f 44 00 00 41 54
[123539.536873] RSP: 0018:ffffb85b909ffcd0 EFLAGS: 00010246
[123539.536875] RAX: 0000000000000000 RBX: ffff94f48f7c08e0 RCX: ffff94f481e76c68
[123539.536876] RDX: 0000000000000000 RSI: 0000000000000282 RDI: ffff94f48f7c08e0
[123539.536876] RBP: ffff94f48f7c1b10 R08: ffff94f4804035a0 R09: ffffffffae052210
[123539.536877] R10: 0000000000000000 R11: 0000000000000000 R12: ffff94f48f7c08e0
[123539.536878] R13: ffff94f48edb5b80 R14: ffff94f48f7c11e0 R15: 0000000000000000
[123539.536879] FS:  0000000000000000(0000) GS:ffff94fb4e600000(0000) knlGS:0000000000000000
[123539.536880] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[123539.536881] CR2: 00000a9c00339000 CR3: 0000000781e10000 CR4: 0000000000750ef0
[123539.536882] PKRU: 55555554
[123539.536882] Call Trace:
[123539.536884]  <TASK>
[123539.536885]  ieee80211_do_stop+0x6a5/0x8b0 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.536910]  ieee80211_stop+0x41/0x170 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.536931]  __dev_close_many+0x9e/0x110
[123539.536935]  dev_close_many+0x8f/0x140
[123539.536938]  dev_close+0x83/0xb0
[123539.536940]  cfg80211_shutdown_all_interfaces+0x4d/0xf0 [cfg80211 df0047146265b4813aed4c94f96ed4ef40ef4fc0]
[123539.536965]  ieee80211_restart_work+0x120/0x150 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.536985]  process_one_work+0x1c7/0x380
[123539.536990]  worker_thread+0x51/0x390
[123539.536992]  ? rescuer_thread+0x3b0/0x3b0
[123539.536993]  kthread+0xde/0x110
[123539.536995]  ? kthread_complete_and_exit+0x20/0x20
[123539.536997]  ret_from_fork+0x22/0x30
[123539.537000]  </TASK>

the previous one is"

[123539.462107] WARNING: CPU: 0 PID: 115088 at drivers/net/wireless/intel/iwlwifi/mvm/../iwl-trans.h:1354 iwl_mvm_wait_sta_queues_empty+0x92/0xc0 [iwlmvm]
<TASK>
[123539.462178]  iwl_mvm_mac_flush+0x2a0/0x2e0 [iwlmvm 431457b5e44286a8e23ef012519a14fecff8cd45]
[123539.462183]  ? ieee80211_stop_queues_by_reason+0x99/0xb0 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462201]  __ieee80211_flush_queues+0xb2/0x250 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462217]  __ieee80211_recalc_idle+0xd0/0x120 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462233]  ieee80211_recalc_idle+0x14/0x30 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462249]  ieee80211_free_chanctx+0x91/0xc0 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462265]  __ieee80211_link_release_channel+0xe6/0x120 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462281]  ieee80211_link_release_channel+0x3f/0x60 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462296]  ieee80211_set_disassoc+0x388/0x5f0 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462313]  ieee80211_mgd_deauth.cold+0x4c/0x1f5 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462332]  cfg80211_mlme_deauth+0xbd/0x1e0 [cfg80211 df0047146265b4813aed4c94f96ed4ef40ef4fc0]
[123539.462348]  cfg80211_mlme_down+0x65/0x90 [cfg80211 df0047146265b4813aed4c94f96ed4ef40ef4fc0]
[123539.462362]  cfg80211_disconnect+0x180/0x1f0 [cfg80211 df0047146265b4813aed4c94f96ed4ef40ef4fc0]
[123539.462377]  cfg80211_netdev_notifier_call+0x132/0x4d0 [cfg80211 df0047146265b4813aed4c94f96ed4ef40ef4fc0]
[123539.462391]  ? dev_printk_emit+0x65/0x80
[123539.462392]  ? __dev_printk+0x2d/0x67
[123539.462393]  ? _dev_err+0x7d/0x98
[123539.462394]  ? drv_remove_interface+0x114/0x120 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462409]  ? __iwl_err.cold+0x4f/0x54 [iwlwifi 1a095a22138751837e76de1d9cb2d07512be246e]
[123539.462418]  ? rtnl_is_locked+0x15/0x20
[123539.462419]  ? inetdev_event+0x3e/0x630
[123539.462421]  raw_notifier_call_chain+0x48/0x60
[123539.462422]  __dev_close_many+0x5f/0x110
[123539.462424]  dev_close_many+0x8f/0x140
[123539.462425]  dev_close+0x83/0xb0
[123539.462426]  cfg80211_shutdown_all_interfaces+0x4d/0xf0 [cfg80211 df0047146265b4813aed4c94f96ed4ef40ef4fc0]
[123539.462440]  ieee80211_restart_work+0x120/0x150 [mac80211 d20faded1312a17cbe5ce9cebe339d78f6604c1d]
[123539.462455]  process_one_work+0x1c7/0x380
[123539.462457]  worker_thread+0x51/0x390
[123539.462458]  ? rescuer_thread+0x3b0/0x3b0
[123539.462459]  kthread+0xde/0x110
[123539.462460]  ? kthread_complete_and_exit+0x20/0x20
[123539.462461]  ret_from_fork+0x22/0x30
[123539.462463]  </TASK>

I reinstalled the firmware for the driver as suggested in here, let’s see how long it’s gonna hold. Because today the adapter disappeared like 10 times, with 2 different kernels, sometimes within minutes after reboot. For now, I’ve had internet for 4 hours.