1

Ubuntu does not recognize my Wi-Fi adapter on a newly purchased notebook. I am trying to fix this issue for hours now and came along dozens of similar issues, but non seems to solve my problem. Wi-Fi adapter is allright, as it worked on natively installed Windows 11, which I replaced with Ubuntu afterwards.

My initial thoughts were that drivers are the cause, as both this laptop and Ubuntu 23.04 are new at the time. But it seems to me, that iwlwifi module is loaded correctly, in which is my problem a bit specific from majority I could find.

Wifi adapter is AX210 or AX201 (I think).

Installed linux-firmware 20230323.

I tried upgrading kernel from 6.2.0 to 6.3.0.

Secure boot is off.

EDIT: Added some logs:

USER_123@USER_123:~$ sudo lsmod | grep iwl
iwlwifi_compat         16384  0
USER_123@USER_123:~$ sudo dmesg | grep -B4 -A4 2.506773 && sudo dmesg | grep -B4 -A4 2.781213
[    2.506664] proc_thermal_pci 0000:00:04.0: enabling device (0000 -> 0002)
[    2.506762] ------------[ cut here ]------------
[    2.506769] intel_rapl_msr: PL4 support detected.
[    2.506765] WARNING: CPU: 9 PID: 408 at net/netlink/genetlink.c:570 genl_validate_ops+0x1cc/0x270
[    2.506773] Modules linked in: rc_core mei_hdcp(+) mei_pxp(+) pmt_class intel_rapl_msr(+) intel_cstate(+) wmi_bmof(+) mtd processor_thermal_device_pci(+) cfg80211(OE+) snd mei_me drm_kms_helper processor_thermal_device processor_thermal_rfim soundcore i2c_algo_bit ucsi_acpi mei processor_thermal_mbox typec_ucsi syscopyarea processor_thermal_rapl iwlwifi_compat(OE) sysfillrect intel_vsec typec sysimgblt intel_rapl_common hi556 v4l2_fwnode intel_skl_int3472_tps68470 tps68470_regulator v4l2_async clk_tps68470 int3403_thermal int340x_thermal_zone acer_wireless videodev intel_hid(+) intel_skl_int3472_discrete int3400_thermal dptf_power sparse_keymap mc acpi_tad acpi_thermal_rel acpi_pad input_leds hid_multitouch(+) serio_raw mac_hid msr parport_pc ppdev lp parport drm efi_pstore dmi_sysfs ip_tables x_tables autofs4 nvme nvme_core nvme_common hid_generic video crc32_pclmul intel_lpss_pci i2c_hid_acpi spi_intel_pci intel_lpss thunderbolt i2c_i801 vmd spi_intel i2c_hid xhci_pci idma64 i2c_smbus xhci_pci_renesas hid
[    2.506825]  pinctrl_tigerlake wmi
[    2.506828] CPU: 9 PID: 408 Comm: systemd-udevd Tainted: G           OE      6.3.0-060300-generic #202304232030
[    2.506831] Hardware name: Acer Swift SF14-71T/Seahorse_RTH, BIOS V1.01 12/08/2022
[    2.506833] RIP: 0010:genl_validate_ops+0x1cc/0x270
[    2.780816] i915 0000:00:02.0: [drm] Using Transparent Hugepages
[    2.781075] ------------[ cut here ]------------
[    2.781076] i915 0000:00:02.0: Port A asks to use VBT vswing/preemph tables
[    2.781087] WARNING: CPU: 4 PID: 435 at drivers/gpu/drm/i915/display/intel_bios.c:2709 print_ddi_port+0x280/0x2b0 [i915]
[    2.781213] Modules linked in: i915(+) snd_pcm kvm drm_buddy irqbypass snd_seq_midi crct10dif_pclmul snd_seq_midi_event polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 ttm aesni_intel snd_rawmidi crypto_simd drm_display_helper cryptd snd_seq cmdlinepart cec rapl spi_nor snd_seq_device pmt_telemetry snd_timer rc_core mei_hdcp mei_pxp pmt_class intel_rapl_msr intel_cstate wmi_bmof mtd processor_thermal_device_pci cfg80211(OE+) snd mei_me drm_kms_helper processor_thermal_device processor_thermal_rfim soundcore i2c_algo_bit ucsi_acpi mei processor_thermal_mbox typec_ucsi syscopyarea processor_thermal_rapl iwlwifi_compat(OE) sysfillrect intel_vsec typec sysimgblt intel_rapl_common hi556 v4l2_fwnode intel_skl_int3472_tps68470 tps68470_regulator v4l2_async clk_tps68470 int3403_thermal int340x_thermal_zone acer_wireless videodev intel_hid intel_skl_int3472_discrete int3400_thermal dptf_power sparse_keymap mc acpi_tad acpi_thermal_rel acpi_pad input_leds hid_multitouch(+) serio_raw mac_hid msr parport_pc ppdev
[    2.781240]  lp parport drm efi_pstore dmi_sysfs ip_tables x_tables autofs4 nvme nvme_core nvme_common hid_generic video crc32_pclmul intel_lpss_pci i2c_hid_acpi spi_intel_pci intel_lpss thunderbolt i2c_i801 vmd spi_intel i2c_hid xhci_pci idma64 i2c_smbus xhci_pci_renesas hid pinctrl_tigerlake wmi
[    2.781251] CPU: 4 PID: 435 Comm: systemd-udevd Tainted: G        W  OE      6.3.0-060300-generic #202304232030
[    2.781253] Hardware name: Acer Swift SF14-71T/Seahorse_RTH, BIOS V1.01 12/08/2022
[    2.781254] RIP: 0010:print_ddi_port+0x280/0x2b0 [i915]

I tried dozens of fixes, for example this answer (tried multiple times, made research on the correctly adjusting solution to my case, but it might be that I made a mistake anyways). EDIT: Here is exact step by step process of patching with lines provided by @Jeremy31 in this patch as @chili555 requested (no success) (btw I deleted sudo modinfo iwlwifi output to match maximum length of answer body):

USER_123@USER_123:~$ sudo apt remove -y --purge backport-iwlwifi-dkms 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  dkms
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  backport-iwlwifi-dkms*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 10.3 MB disk space will be freed.
(Reading database ... 231840 files and directories currently installed.)
Removing backport-iwlwifi-dkms (9904-0ubuntu5) ...
Module backport-iwlwifi-9904 for kernel 6.3.0-060300-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

iwlwifi-compat.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

iwlwifi.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

iwlxvt.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

iwlmvm.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

mac80211.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

cfg80211.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
Deleting module backport-iwlwifi-9904 completely from the DKMS tree.
USER_123@USER_123:~$ sudo dkms status
USER_123@USER_123:~$ sudo apt update
...
All packages are up to date.
...
USER_123@USER_123:~$ sudo apt install -y backport-iwlwifi-dkms 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  backport-iwlwifi-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,698 kB of archives.
After this operation, 10.3 MB of additional disk space will be used.
Get:1 http://cz.archive.ubuntu.com/ubuntu lunar/universe amd64 backport-iwlwifi-dkms all 9904-0ubuntu5 [1,698 kB]
Fetched 1,698 kB in 0s (10.3 MB/s)              
Selecting previously unselected package backport-iwlwifi-dkms.
(Reading database ... 231181 files and directories currently installed.)
Preparing to unpack .../backport-iwlwifi-dkms_9904-0ubuntu5_all.deb ...
Unpacking backport-iwlwifi-dkms (9904-0ubuntu5) ...
Setting up backport-iwlwifi-dkms (9904-0ubuntu5) ...
Loading new backport-iwlwifi-9904 DKMS files...
Building for 6.3.0-060300-generic
Building initial module for 6.3.0-060300-generic
Done.

iwlwifi-compat.ko:
Running module version sanity check.

Module has been obsoleted due to being included
in kernel 6.1.0.  We will avoid installing
for future kernels above 6.1.0.
You may override by specifying --force.

iwlwifi.ko:
Running module version sanity check.

Module has been obsoleted due to being included
in kernel 6.1.0.  We will avoid installing
for future kernels above 6.1.0.
You may override by specifying --force.

iwlxvt.ko:
Running module version sanity check.

Module has been obsoleted due to being included
in kernel 6.1.0.  We will avoid installing
for future kernels above 6.1.0.
You may override by specifying --force.

iwlmvm.ko:
Running module version sanity check.

Module has been obsoleted due to being included
in kernel 6.1.0.  We will avoid installing
for future kernels above 6.1.0.
You may override by specifying --force.

mac80211.ko:
Running module version sanity check.

Module has been obsoleted due to being included
in kernel 6.1.0.  We will avoid installing
for future kernels above 6.1.0.
You may override by specifying --force.

cfg80211.ko:
Running module version sanity check.

Module has been obsoleted due to being included
in kernel 6.1.0.  We will avoid installing
for future kernels above 6.1.0.
You may override by specifying --force.
depmod...
USER_123@USER_123:~$ sudo dkms status
backport-iwlwifi/9904, 6.3.0-060300-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
USER_123@USER_123:~$ sudo sed -i '9d' /usr/src/backport-iwlwifi-9904/dkms.conf
USER_123@USER_123:~$ sudo sed -i '498 i IWL_DEV_INFO(0x51F1, 0x1672, iwlax211_2ax_cfg_so_gf_a0, iwl_ax211_killer_1675i_name),' /usr/src/backport-iwlwifi-9904/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
USER_123@USER_123:~$ sudo sed -i '498 i IWL_DEV_INFO(0x51F1, 0x1671, iwlax211_2ax_cfg_so_gf_a0, iwl_ax211_killer_1675s_name),' /usr/src/backport-iwlwifi-9904/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
USER_123@USER_123:~$ sudo dkms remove backport-iwlwifi/9904
Module backport-iwlwifi-9904 for kernel 6.3.0-060300-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

iwlwifi-compat.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

iwlwifi.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

iwlxvt.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

iwlmvm.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

mac80211.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

cfg80211.ko:
 - Uninstallation
   - Module was not found within /lib/modules/6.3.0-060300-generic/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
Deleting module backport-iwlwifi-9904 completely from the DKMS tree.
USER_123@USER_123:~$ sudo dkms add backport-iwlwifi/9904
Creating symlink /var/lib/dkms/backport-iwlwifi/9904/source -> /usr/src/backport-iwlwifi-9904
USER_123@USER_123:~$ sudo dkms build backport-iwlwifi/9904
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
'make' -j16 KLIB=/lib/modules/6.3.0-060300-generic KLIB_BUILD=/lib/modules/6.3.0-060300-generic/build..........
Signing module /var/lib/dkms/backport-iwlwifi/9904/build/compat/iwlwifi-compat.ko
Signing module /var/lib/dkms/backport-iwlwifi/9904/build/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
Signing module /var/lib/dkms/backport-iwlwifi/9904/build/drivers/net/wireless/intel/iwlwifi/xvt/iwlxvt.ko
Signing module /var/lib/dkms/backport-iwlwifi/9904/build/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko
Signing module /var/lib/dkms/backport-iwlwifi/9904/build/net/mac80211/mac80211.ko
Signing module /var/lib/dkms/backport-iwlwifi/9904/build/net/wireless/cfg80211.ko
Cleaning build area...
USER_123@USER_123:~$ sudo dkms install backport-iwlwifi/9904

iwlwifi-compat.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.3.0-060300-generic/updates/dkms/

iwlwifi.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/6.3.0-060300-generic/updates/dkms/

iwlxvt.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/6.3.0-060300-generic/updates/dkms/

iwlmvm.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/6.3.0-060300-generic/updates/dkms/

mac80211.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/6.3.0-060300-generic/updates/dkms/

cfg80211.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/6.3.0-060300-generic/updates/dkms/
depmod...
USER_123@USER_123:~$ sudo dkms status
backport-iwlwifi/9904, 6.3.0-060300-generic, x86_64: installed
USER_123@USER_123:~$ reboot
USER_123@USER_123:~$ sudo dmesg | grep iwl
[    2.449457] iwlwifi_compat: loading out-of-tree module taints kernel.
[    2.449491] iwlwifi_compat: module verification failed: signature and/or required key missing - tainting kernel
[    2.450945] Loading modules backported from iwlwifi
[    2.450947] iwlwifi-stack-public:master:9904:0e80336f
[    2.481443] Modules linked in: intel_cstate(+) mtd(+) wmi_bmof(+) snd(+) processor_thermal_rfim drm_kms_helper(+) cfg80211(OE+) mei i2c_algo_bit processor_thermal_mbox soundcore processor_thermal_rapl syscopyarea sysfillrect intel_vsec sysimgblt iwlwifi_compat(OE) intel_rapl_common ucsi_acpi typec_ucsi typec hi556 v4l2_fwnode intel_skl_int3472_tps68470 v4l2_async tps68470_regulator int3403_thermal acer_wireless int340x_thermal_zone clk_tps68470 videodev dptf_power int3400_thermal intel_hid acpi_thermal_rel acpi_pad mc acpi_tad intel_skl_int3472_discrete sparse_keymap hid_multitouch(+) input_leds serio_raw mac_hid msr parport_pc ppdev lp parport drm efi_pstore dmi_sysfs ip_tables x_tables autofs4 nvme nvme_core nvme_common hid_generic video crc32_pclmul i2c_i801 intel_lpss_pci spi_intel_pci intel_lpss spi_intel i2c_smbus i2c_hid_acpi thunderbolt xhci_pci idma64 vmd xhci_pci_renesas i2c_hid hid wmi pinctrl_tigerlake
[    2.836617] Modules linked in: snd_hda_core(+) kvm_intel(+) snd_hwdep usb_storage i915(+) snd_pcm kvm snd_seq_midi snd_seq_midi_event irqbypass drm_buddy snd_rawmidi crct10dif_pclmul ttm polyval_clmulni polyval_generic ghash_clmulni_intel mei_hdcp sha512_ssse3 mei_pxp drm_display_helper aesni_intel snd_seq crypto_simd cec cryptd snd_seq_device processor_thermal_device_pci pmt_telemetry cmdlinepart snd_timer spi_nor rc_core rapl pmt_class intel_rapl_msr mei_me processor_thermal_device intel_cstate mtd wmi_bmof snd processor_thermal_rfim drm_kms_helper cfg80211(OE-) mei i2c_algo_bit processor_thermal_mbox soundcore processor_thermal_rapl syscopyarea sysfillrect intel_vsec sysimgblt iwlwifi_compat(OE) intel_rapl_common ucsi_acpi typec_ucsi typec hi556 v4l2_fwnode intel_skl_int3472_tps68470 v4l2_async tps68470_regulator int3403_thermal acer_wireless int340x_thermal_zone clk_tps68470 videodev dptf_power int3400_thermal intel_hid acpi_thermal_rel acpi_pad mc acpi_tad intel_skl_int3472_discrete sparse_keymap

Originally, dmesg showed some errors, which disappeared after I installed backport-iwlwifi-dkms. Right now my dmesg looks like:

 $ sudo dmesg | grep iwl
[    2.439554] iwlwifi_compat: loading out-of-tree module taints kernel.
[    2.480348] iwlwifi_compat: module verification failed: signature and/or required key missing - tainting kernel
[    2.480805] Loading modules backported from iwlwifi
[    2.480807] iwlwifi-stack-public:master:9904:0e80336f
[    2.506709] Modules linked in: snd_timer cmdlinepart drm_kms_helper(+) cfg80211(OE+) mei_me processor_thermal_rfim pmt_telemetry spi_nor(+) rapl snd ucsi_acpi pmt_class processor_thermal_mbox i2c_algo_bit processor_thermal_rapl syscopyarea intel_rapl_msr intel_cstate mtd soundcore wmi_bmof iwlwifi_compat(OE) mei typec_ucsi sysfillrect sysimgblt intel_rapl_common typec intel_vsec hi556 v4l2_fwnode v4l2_async acer_wireless videodev intel_skl_int3472_tps68470 int3403_thermal mc tps68470_regulator int340x_thermal_zone clk_tps68470 hid_multitouch(+) int3400_thermal intel_hid(+) intel_skl_int3472_discrete dptf_power acpi_tad sparse_keymap acpi_thermal_rel acpi_pad input_leds serio_raw mac_hid msr parport_pc ppdev lp drm parport efi_pstore dmi_sysfs ip_tables x_tables autofs4 nvme nvme_core hid_generic nvme_common crc32_pclmul intel_lpss_pci i2c_i801 spi_intel_pci video intel_lpss spi_intel i2c_smbus thunderbolt idma64 xhci_pci vmd xhci_pci_renesas i2c_hid_acpi i2c_hid hid wmi pinctrl_tigerlake
[    2.799562] Modules linked in: usb_storage snd_pcm kvm_intel(+) snd_seq_midi i915(+) snd_seq_midi_event kvm snd_rawmidi drm_buddy irqbypass crct10dif_pclmul ttm polyval_clmulni polyval_generic snd_seq ghash_clmulni_intel sha512_ssse3 drm_display_helper mei_pxp aesni_intel mei_hdcp cec rc_core snd_seq_device crypto_simd processor_thermal_device_pci cryptd processor_thermal_device snd_timer cmdlinepart drm_kms_helper cfg80211(OE+) mei_me processor_thermal_rfim pmt_telemetry spi_nor rapl snd ucsi_acpi pmt_class processor_thermal_mbox i2c_algo_bit processor_thermal_rapl syscopyarea intel_rapl_msr intel_cstate mtd soundcore wmi_bmof iwlwifi_compat(OE) mei typec_ucsi sysfillrect sysimgblt intel_rapl_common typec intel_vsec hi556 v4l2_fwnode v4l2_async acer_wireless videodev intel_skl_int3472_tps68470 int3403_thermal mc tps68470_regulator int340x_thermal_zone clk_tps68470 hid_multitouch(+) int3400_thermal intel_hid intel_skl_int3472_discrete dptf_power acpi_tad sparse_keymap acpi_thermal_rel acpi_pad input_leds serio_raw

Before installing backport:

 $ sudo dmesg | grep iwl
[    2.548733] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[    2.562962] iwlwifi: No config found for PCI dev 51f1/1672, rev=0x370, rfid=0x2010d000
[    2.563058] iwlwifi: probe of 0000:00:14.3 failed with error -22
[    2.825037] Modules linked in: snd_hwdep kvm_intel(+) i915(+) snd_pcm kvm snd_seq_midi snd_seq_midi_event drm_buddy snd_rawmidi irqbypass crct10dif_pclmul polyval_clmulni ttm polyval_generic ghash_clmulni_intel sha512_ssse3 snd_seq aesni_intel drm_display_helper snd_seq_device mei_hdcp mei_pxp crypto_simd iwlwifi cmdlinepart snd_timer cryptd cec pmt_telemetry spi_nor rc_core rapl pmt_class intel_rapl_msr intel_cstate drm_kms_helper cfg80211 mtd snd wmi_bmof processor_thermal_device_pci mei_me processor_thermal_device i2c_algo_bit soundcore ucsi_acpi mei processor_thermal_rfim syscopyarea hi556 processor_thermal_mbox sysfillrect typec_ucsi v4l2_fwnode processor_thermal_rapl sysimgblt intel_vsec typec intel_rapl_common v4l2_async videodev intel_skl_int3472_tps68470 tps68470_regulator int3403_thermal clk_tps68470 mc int340x_thermal_zone acer_wireless intel_hid int3400_thermal intel_skl_int3472_discrete acpi_thermal_rel acpi_pad acpi_tad dptf_power sparse_keymap input_leds hid_multitouch(+) mac_hid serio_raw msr
 $ sudo lspci -nnkv | sed -n '/Network/,/^$/p'
0000:00:14.3 Network controller [0280]: Intel Corporation Device [8086:51f1] (rev 01)
    Subsystem: Rivet Networks Device [1a56:1672]
    Flags: fast devsel, IRQ 255, IOMMU group 12
    Memory at 603c2c4000 (64-bit, non-prefetchable) [disabled] [size=16K]
    Capabilities: [c8] Power Management version 3
    Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [80] MSI-X: Enable- Count=16 Masked-
    Capabilities: [100] Latency Tolerance Reporting
    Capabilities: [164] Vendor Specific Information: ID=0010 Rev=0 Len=014 <?>
    Kernel modules: iwlwifi

 $ sudo lshw -C network
  *-network UNCLAIMED       
       description: Network controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix cap_list
       configuration: latency=0
       resources: iomemory:600-5ff memory:603c2c4000-603c2c7fff
  *-network
       description: Ethernet interface
       physical id: 10
       bus info: usb@2:1.1.3
       logical name: enx4865ee15158a
       serial: 48:65:ee:15:15:8a
       size: 1Gbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.12.13 duplex=full firmware=rtl8153a-4 v2 02/07/20 ip=147.229.192.92 link=yes multicast=yes port=MII speed=1Gbit/s
 $ uname -r
6.3.0-060300-generic
 $ sudo dkms status
backport-iwlwifi/9904, 6.2.0-20-generic, x86_64: installed
backport-iwlwifi/9904, 6.3.0-060300-generic, x86_64: installed
 $ ls /usr/src
backport-iwlwifi-9904   linux-headers-6.2.0-20-generic  linux-headers-6.3.0-060300-generic
linux-headers-6.2.0-20  linux-headers-6.3.0-060300

Every help appreciated!

19
  • It seems you need a patch that hasn't been accepted upstream patchwork.kernel.org/project/linux-wireless/patch/…
    – Jeremy31
    Apr 30, 2023 at 17:40
  • Please edit your question to show: ls /usr/src and aslo: sudo dkms status Possibly useful: askubuntu.com/questions/1456628/… although the exact details will differ.
    – chili555
    Apr 30, 2023 at 19:32
  • @Jeremy31 I followed patch you provided with steps in answer which I linked in my question and it didn't solve the problem. Seems to my like A) exact details such as ID in this or another patches found online are incorrect, or B) patch is not the problem, because as what I saw online, everyone who resolved issue with the driver patch, appeared to have some errors in dmesg | grep iwl, which I don't, actually, I did not see single question with this log saying Modules linked in: ... May 1, 2023 at 11:40
  • @chili555 I updated my question with requested outputs. You can read my last comment for Jeremy31. I already saw and tried the answer that you provided and it didn't help to solve my issue. It didn't change outputs of my commands in any way. May 1, 2023 at 11:51
  • Please show us the relevant lines from the drv.c file that you amended. Also: history | grep dkms
    – chili555
    May 1, 2023 at 13:21

2 Answers 2

1

I just removed the following and it worked :

sudo apt remove backport-iwlwifi-dkms linux-modules-iwlwifi-5.19.0-40-generic linux-modules-iwlwifi-6.2.0-20-generic linux-modules-iwlwifi-generic linux-modules-iwlwifi-generic-hwe-22.04
1
  • I have installed only backport-iwlwifi-dkms and as I wrote in question, before I installed it I got another kind of error. Removing the package will cause the same. May 9, 2023 at 12:36
1

Finally, I fixed my Wi-Fi!

I uninstalled backport-iwlwifi-dkms/9904 package and installed newer version backport-iwlwifi-dkms/11120 which was released 5 days ago for Ubuntu 23.10. Download here (if you go with _all.deb you should be fine). I also had to manually patch it, as I tried with 9904 which didn't work (you can see the details in my initial question). When installing with dkms I also used --force option (which might or might not has any importance).

Process:

sudo apt remove -y --purge backport-iwlwifi-dkms/9904
wget https://launchpad.net/ubuntu/+archive/primary/+files/backport-iwlwifi-dkms_11120-0ubuntu1_all.deb
sudo dpkg -i *_all.deb
sudo sed -i '9d' /usr/src/backport-iwlwifi-11120/dkms.conf
sudo sed -i '498 i IWL_DEV_INFO(0x51F1, 0x1671, iwlax211_2ax_cfg_so_gf_a0, iwl_ax211_killer_1675s_name),' /usr/src/backport-iwlwifi-11120/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
sudo sed -i '498 i IWL_DEV_INFO(0x51F1, 0x1672, iwlax211_2ax_cfg_so_gf_a0, iwl_ax211_killer_1675i_name),' /usr/src/backport-iwlwifi-11120/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
sudo dkms remove backport-iwlwifi/11120
sudo dkms add backport-iwlwifi/11120
sudo dkms build backport-iwlwifi/11120
sudo dkms install --force backport-iwlwifi/11120
reboot

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .