damentz / liquorix-package

Liquorix Debian Package
https://liquorix.net
GNU General Public License v2.0
289 stars 23 forks source link

Wireless Card Intel AX210 #184

Closed machaddr closed 1 month ago

machaddr commented 1 month ago

After upgrading from kernel 6.10.12 to kernel 6.11+ Intel Wireless Card isn't detected via firmware.

inxi -bNx
System:
  Host: X230 Kernel: 6.11.4-2-liquorix-amd64 arch: x86_64 bits: 64
    compiler: gcc v: 12.2.0 Desktop: sway v: 1.7 Distro: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: LENOVO product: 23253Z5 v: ThinkPad X230
    serial: <superuser required>
  Mobo: LENOVO model: 23253Z5 serial: <superuser required> UEFI: LENOVO
    v: G2ETB7WW (2.77 ) date: 09/24/2019
Battery:
  ID-1: BAT0 charge: 57.0 Wh (99.3%) condition: 57.4/73.3 Wh (78.4%)
    volts: 12.3 min: 11.1 model: SANYO 45N1023 status: not charging
CPU:
  Info: dual core Intel Core i5-3320M [MT MCP] arch: Ivy Bridge speed (MHz):
    avg: 2594
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915
    v: kernel arch: Gen-7 bus-ID: 00:02.0
  Device-2: Chicony Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-1.6:5
  Display: wayland server: Xwayland v: 22.1.9 compositor: sway v: 1.7
    driver: gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.2 Mesa 22.3.6 renderer: Mesa Intel HD Graphics 4000 (IVB
    GT2) direct-render: Yes
Network:
  Device-1: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: N/A bus-ID: 03:00.0
Drives:
  Local Storage: total: 1.15 TiB used: 45.91 GiB (3.9%)
Info:
  Processes: 292 Uptime: 1m Memory: 15.39 GiB used: 4.89 GiB (31.8%)
  Init: systemd target: graphical (5) Compilers: gcc: 12.2.0 Packages: 3088
  Shell: Bash v: 5.2.15 inxi: 3.3.26
sudo dmesg | grep -P 'iwlwifi|bluetooth|firmware' 
[    0.077211] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    1.820754] psmouse serio1: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3
[    2.990460] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[    3.113071] iwlwifi 0000:03:00.0: Detected crf-id 0x400410, cnv-id 0x400410 wfpm id 0x80000000
[    3.113094] iwlwifi 0000:03:00.0: PCI dev 2725/0024, rev=0x420, rfid=0x10d000
[    3.113100] iwlwifi 0000:03:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz
[    3.113200] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-89.ucode failed with error -2
[    3.113245] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-88.ucode failed with error -2
[    3.113293] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-87.ucode failed with error -2
[    3.113334] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-86.ucode failed with error -2
[    3.113377] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-85.ucode failed with error -2
[    3.113418] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-84.ucode failed with error -2
[    3.113460] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-83.ucode failed with error -2
[    3.113507] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-82.ucode failed with error -2
[    3.113553] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-81.ucode failed with error -2
[    3.113593] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-80.ucode failed with error -2
[    3.113633] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-79.ucode failed with error -2
[    3.113672] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-78.ucode failed with error -2
[    3.113710] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-77.ucode failed with error -2
[    3.113713] iwlwifi 0000:03:00.0: no suitable firmware found!
[    3.113714] iwlwifi 0000:03:00.0: minimum version required: iwlwifi-ty-a0-gf-a0-77
[    3.113716] iwlwifi 0000:03:00.0: maximum version supported: iwlwifi-ty-a0-gf-a0-89
[    3.113718] iwlwifi 0000:03:00.0: check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
[    3.890871] Bluetooth: hci0: BCM: firmware Patch file not found, tried:
damentz commented 1 month ago

Hi @machaddr, it looks like the firmware package for Debian 12 is too old to support your hardware on Linux v6.11 or higher.

You can download the firmware manually and place it in /lib/firmware: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/iwlwifi-ty-a0-gf-a0-89.ucode

If that's not enough, visit https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ and search for iwlwifi-ty-a0-gf-a0 and try pulling all files missing from your filesystem. That also includes the firmware ending in .pnvm.

machaddr commented 1 month ago

Thank you very much, now it works perfectly. I don't know if it is a good practice but I git cloned to /lib/firmware with this command: "sudo git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git /lib/firmware"

Best Regards, André Machado

damentz commented 1 month ago

@machaddr glad you got it working! As for whether cloning to /lib/firmware makes sense, yes if you uninstall the firmware package of your distribution. Now it's up to you to run the occasional git pull every 2-3 months to stay up to date.

Rongronggg9 commented 1 month ago

I don't know if it is a good practice

linux-firmware 20240709 has been packaged in bookworm-backports and contains the required firmware.

sudo apt install -t bookworm-backports firmware-linux firmware-iwlwifi

(Make sure you have bookworm-backports enabled)