Upgrading kernel causes wifi to not work  [Solved]

Message
Author
User avatar
linexer2016
Posts: 733
Joined: Thu Dec 15, 2016 8:15 pm

Upgrading kernel causes wifi to not work

#1 Post by linexer2016 »

On this machine, whenever I try to run a later kernel than what you can see in the QSI, upon reboot, I am left with no networking (wifi) connection. Any ideas why this would be the case?

Code: Select all

System:    Kernel: 5.10.0-15-amd64 [5.10.120-1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-15-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.2.1_x64 Wildflower October 20  2021 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop System: Dell product: Vostro 410 v: N/A serial: <filter> Chassis: type: 3 
           serial: <filter> 
           Mobo: Dell model: 0J584C v: A00 serial: <filter> BIOS: Dell v: 1.0.3 date: 06/20/2008 
CPU:       Info: Quad Core model: Intel Core2 Quad Q9300 bits: 64 type: MCP arch: Penryn family: 6 
           model-id: 17 (23) stepping: 7 microcode: 70A cache: L2: 3 MiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 19949 
           Speed: 1995 MHz min/max: 1998/2498 MHz Core speeds (MHz): 1: 1995 2: 1995 3: 1995 
           4: 1995 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: EPT disabled 
           Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass status: Vulnerable 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] vendor: ASUSTeK 
           driver: radeon v: kernel bus-ID: 01:00.0 chip-ID: 1002:6779 class-ID: 0300 
           Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.16.1 driver: 
           loaded: ati,radeon unloaded: fbdev,modesetting,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.0x12.5") 
           s-diag: 599mm (23.6") 
           Monitor-1: DVI-0 res: 1920x1200 hz: 60 dpi: 94 size: 519x324mm (20.4x12.8") 
           diag: 612mm (24.1") 
           OpenGL: renderer: AMD CAICOS (DRM 2.50.0 / 5.10.0-15-amd64 LLVM 11.0.1) 
           v: 3.3 Mesa 20.3.5 compat-v: 3.1 direct render: Yes 
Audio:     Device-1: Intel 82801I HD Audio vendor: Dell driver: snd_hda_intel v: kernel 
           bus-ID: 00:1b.0 chip-ID: 8086:293e class-ID: 0403 
           Device-2: Logitech Logitech Z305 type: USB driver: hid-generic,snd-usb-audio,usbhid 
           bus-ID: 3-2:2 chip-ID: 046d:0a23 class-ID: 0300 
           Sound Server-1: ALSA v: k5.10.0-15-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Dell 
           driver: r8169 v: kernel port: ce00 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
           Device-2: Realtek RTL88x2bu [AC1200 Techkey] type: USB driver: rtl88x2bu bus-ID: 8-1:2 
           chip-ID: 0bda:b812 class-ID: 0000 serial: <filter> 
           IF: wlan0 state: down mac: <filter> 
Drives:    Local Storage: total: 111.8 GiB used: 10.63 GiB (9.5%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WDS120G2G0A-00JH30 
           size: 111.8 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: SSD 
           serial: <filter> rev: 0000 scheme: MBR 
Partition: ID-1: / raw-size: 29.86 GiB size: 29.22 GiB (97.87%) used: 10.63 GiB (36.4%) fs: ext4 
           dev: /dev/sda3 maj-min: 8:3 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 2 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda2 
           maj-min: 8:2 
Sensors:   System Temperatures: cpu: 40.0 C mobo: N/A gpu: radeon temp: 28.0 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: note: see --pkg apt: 2259 lib: 1152 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           No active apt repos in: /etc/apt/sources.list.d/cloudflare-client.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirror.datamossa.io/mxlinux/mx/repo/ bullseye main non-free
           2: deb http://mirror.datamossa.io/mxlinux/mx/testrepo/ bullseye test
           No active apt repos in: /etc/apt/sources.list.d/plex-mx.list 
           No active apt repos in: /etc/apt/sources.list.d/plexmediaserver.list 
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 227 Uptime: 0m wakeups: 1 Memory: 2.92 GiB used: 763 MiB (25.6%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)

User avatar
Stevo
Developer
Posts: 14805
Joined: Fri Dec 15, 2006 7:07 pm

Re: Upgrading kernel causes wifi to not work

#2 Post by Stevo »

You probably need an updated driver for the newer kernel. This is common.

https://github.com/morrownr/88x2bu-20210702

User avatar
razor2021
Posts: 499
Joined: Mon Feb 08, 2021 4:49 pm

Re: Upgrading kernel causes wifi to not work

#3 Post by razor2021 »

I had that happen once. It was due to me using a wifi driver for Realtek chipset from morrownr's github. I had to update it and then I did the kernel upgrade again, and it all worked fine. There was some mention on morrownr's website about some doing it if higher than a certain kernel. Not sure if it is the same as yours. But that's what happened on an older laptop with a USB-Wifi stick that I was using. -- This was the message from the morrownr github site --> "Warning: If you decide to upgrade to a new version of kernel such as 5.18 to 5.19, you need to remove the driver you have installed and install the newest available before installing the new kernel." That was a while back.
Mixed of desktops and laptops, I have a Gravis Ultrasound Classic card (unfortunately its ISA-slot based) ... - I must be a dino. :popcorn:
Running on my DesktopPC - MX-23.4 AHS with latest Kernel: 6.12.17-1-liquorix-amd64

User avatar
timkb4cq
Developer
Posts: 3620
Joined: Wed Jul 12, 2006 4:05 pm

Re: Upgrading kernel causes wifi to not work  [Solved]

#4 Post by timkb4cq »

Code: Select all

Device-2: Realtek RTL88x2bu [AC1200 Techkey] type: USB driver: rtl88x2bu
The rtl88x2bu driver is not built into the kernel, nor is it in the Debian or MX repositories. You would have had to download & build it yourself at some point.
Changes in the Linux kernel often prevent third-party drivers like Realtek's from building on new kernels. Drivers incorporated into the kernel are updated automatically, and we try to keep up with updates on the ones we have packaged but we haven't yet packaged the rtl88x2bu driver.
There is work being done to integrate a driver for some of these cards in the kernel, and if you have installed a 5.19 or 6.0 kernel you might try booting into it, opening a terminal and typing

Code: Select all

sudo modprobe rtw88
then pressing the Tab key several times to get the list of matching drivers. If you see one with a bu at the end give it a try.
Otherwise go to the site you originally got the 88x2bu driver (probably here: https://github.com/morrownr/88x2bu-20210702 or here: https://github.com/RinCat/RTL88x2BU-Linux-Driver ) and follow the installation instructions.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
linexer2016
Posts: 733
Joined: Thu Dec 15, 2016 8:15 pm

Re: Upgrading kernel causes wifi to not work

#5 Post by linexer2016 »

Stevo, Razor and Tim,
Thank you all for your constructive comments. I will try Tim's suggestion first and see how that goes. I do suspect however, that I will indeed need to get and make the driver again once the new kernel is installed. I will update this thread appropriately.

User avatar
linexer2016
Posts: 733
Joined: Thu Dec 15, 2016 8:15 pm

Re: Upgrading kernel causes wifi to not work

#6 Post by linexer2016 »

UPDATE
Well Tim, I downloaded the relevant driver and sudo make installed it and rebooted and am now running the Liquorix Kernel (see QSI). One final question arises (and I think I've seen this mentioned somewhere, sometime - I now see at boot "disabling IRQ19". I don't think that's anything to be unduly concerned with, although I don't see that message with other kernels.

Code: Select all

System:    Kernel: 5.16.0-18.1-liquorix-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: audit=0 intel_pstate=disable hpet=disable 
           BOOT_IMAGE=/boot/vmlinuz-5.16.0-18.1-liquorix-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.2.1_x64 Wildflower October 20  2021 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop System: Dell product: Vostro 410 v: N/A serial: <filter> Chassis: type: 3 
           serial: <filter> 
           Mobo: Dell model: 0J584C v: A00 serial: <filter> BIOS: Dell v: 1.0.3 date: 06/20/2008 
CPU:       Info: Quad Core model: Intel Core2 Quad Q9300 bits: 64 type: MCP arch: Penryn family: 6 
           model-id: 17 (23) stepping: 7 microcode: 70A cache: L2: 3 MiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 19951 
           Speed: 1997 MHz min/max: 1998/2498 MHz Core speeds (MHz): 1: 1997 2: 1995 3: 1995 
           4: 2000 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: EPT disabled 
           Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass status: Vulnerable 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] vendor: ASUSTeK 
           driver: radeon v: kernel alternate: amdgpu bus-ID: 01:00.0 chip-ID: 1002:6779 
           class-ID: 0300 
           Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.16.1 driver: 
           loaded: ati,radeon unloaded: fbdev,modesetting,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.0x12.5") 
           s-diag: 599mm (23.6") 
           Monitor-1: DVI-0 res: 1920x1200 hz: 60 dpi: 94 size: 519x324mm (20.4x12.8") 
           diag: 612mm (24.1") 
           OpenGL: renderer: AMD CAICOS (DRM 2.50.0 / 5.16.0-18.1-liquorix-amd64 LLVM 11.0.1) 
           v: 3.3 Mesa 20.3.5 compat-v: 3.1 direct render: Yes 
Audio:     Device-1: Intel 82801I HD Audio vendor: Dell driver: snd_hda_intel v: kernel 
           bus-ID: 00:1b.0 chip-ID: 8086:293e class-ID: 0403 
           Device-2: Logitech Logitech Z305 type: USB driver: hid-generic,snd-usb-audio,usbhid 
           bus-ID: 5-2:2 chip-ID: 046d:0a23 class-ID: 0300 
           Sound Server-1: ALSA v: k5.16.0-18.1-liquorix-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Dell 
           driver: r8169 v: kernel port: ce00 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
           Device-2: Realtek RTL88x2bu [AC1200 Techkey] type: USB driver: rtl88x2bu bus-ID: 2-1:2 
           chip-ID: 0bda:b812 class-ID: 0000 serial: <filter> 
           IF: wlan0 state: up mac: <filter> 
Drives:    Local Storage: total: 111.8 GiB used: 10.95 GiB (9.8%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WDS120G2G0A-00JH30 
           size: 111.8 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: SSD 
           serial: <filter> rev: 0000 scheme: MBR 
Partition: ID-1: / raw-size: 29.86 GiB size: 29.22 GiB (97.87%) used: 10.95 GiB (37.5%) fs: ext4 
           dev: /dev/sda3 maj-min: 8:3 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 2 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda2 
           maj-min: 8:2 
Sensors:   System Temperatures: cpu: 40.0 C mobo: N/A gpu: radeon temp: 50.5 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: note: see --pkg apt: 2259 lib: 1152 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           No active apt repos in: /etc/apt/sources.list.d/cloudflare-client.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirror.datamossa.io/mxlinux/mx/repo/ bullseye main non-free
           2: deb http://mirror.datamossa.io/mxlinux/mx/testrepo/ bullseye test
           No active apt repos in: /etc/apt/sources.list.d/plex-mx.list 
           No active apt repos in: /etc/apt/sources.list.d/plexmediaserver.list 
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 209 Uptime: 1m wakeups: 1 Memory: 2.92 GiB used: 761.4 MiB (25.5%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)

User avatar
linexer2016
Posts: 733
Joined: Thu Dec 15, 2016 8:15 pm

Re: Upgrading kernel causes wifi to not work

#7 Post by linexer2016 »

Just a PS ... re the IRQ 19 message, just did a web search and found this link https://forums.centos.org/viewtopic.php?t=5649
I applied the suggested kernel parameter "noirqdebug" and rebooted and voila, the message no longer appears. I think it is indeed linked somehow to the kernel's non-native build of the network driver. Nevertheless, all seems satisfactory now.




[

Huckleberry Finn

Re: Upgrading kernel causes wifi to not work

#8 Post by Huckleberry Finn »

linexer2016 wrote: Mon Nov 07, 2022 3:35 pm... I do suspect however, that I will indeed need to get and make the driver again once the new kernel is installed...
Yes, but for you chose the make install way.

According to the maintainer (also when I look into the .sh) : install-driver.sh uses dkms:

Code: Select all

sudo ./install-driver.sh
https://github.com/morrownr/88x2bu-20210702 wrote:
DKMS is used for the installation. DKMS is a system utility which will automatically recompile and reinstall this driver when a new kernel is installed.

User avatar
Stevo
Developer
Posts: 14805
Joined: Fri Dec 15, 2006 7:07 pm

Re: Upgrading kernel causes wifi to not work

#9 Post by Stevo »

You could try following its DKMS instructions, then try installing the 6.0 Debian kernel we have in AHS or the 6.0 Liquorix kernel in ahs-staging to see if it automatically rebuilds successfully:

http://mxrepo.com/mx/repo/pool/ahs-stag ... -liquorix/

User avatar
linexer2016
Posts: 733
Joined: Thu Dec 15, 2016 8:15 pm

Re: Upgrading kernel causes wifi to not work

#10 Post by linexer2016 »

And thankyou too Huck and Stevo, something I will keep in mind going forward. For now, the driver as I installed (make install) is fine and again that irq19 message didn't really bother me but I've blanked it out in the manner I described. I might give the 6.0 liquorix kernel in ahs-staging ago in the near future just to see what/if any effects result.

Post Reply

Return to “Software / Configuration”