I updated kernel and lost wifi

Hi! It's my first time posting for a problem, until now I always found solutions somewhere on the internet.

I just installed Zorin 16.3 on my new lenovo IdeaPad slim 3i (Intel 15")
When I first did the wifi didn't work but I got it working using these steps New Install Not Detecting WiFi (Lenovo IdeaPad 3) - Linux Mint Forums

Then I tried to fix another problem, my computer didn't suspend when I close the lid, and neither can I ajust the brightness of the screen. Following this post ( [RESPONDED] Issues Running Zorin OS 16.2 on 13th Gen Intel - Linux - Framework Community ) I updated my kernel from 5.15 to 6.2 and it fixed the suspension problem, but not the brightness, and doing that I loss once again my internet connection.

I tried to bring back internet without success. I don't know much about all of this so having these back to back problem I'm getting confused about what I really did.
I know that if I go back to the old kernel internet still works, but not the suspension.

Maybe there's a better kernel to use that will be more stable?

Hopefully, things might improve when Zorin 17 gets released. In the meantime I would revert back to the kernel that included drivers for your wifi, unless the screen is to painful to look at. Boot into Advanced recovery mode, choose an earlier kernel listed that you know works, then remove the newer ones, the easiest method being to install Synaptic Package Manager, search for 'kernel' in the search box and remove the newer kernels that are causing the issue.

1 Like

Thanks!
I did some more research but I didn't found any other thing to do about my brightness and sleep mode problem. I'd like to stay on the 5.15 kernel but is there a way to correct these problems without using another kernel?

I have the brightness bar but when I move it, or use the fn option, it does nothing. I've installed brightness controller and same thing even if I change the settings in the program, it doesn't affect the brightness of the screen.
Any ideas what I could do?

You may need to try the backlight=vendor grub parameter. Rather than making a long post, I opted to look for a reliable online guide and found this link which offers multiple tips to try:

Thanks Aravisian!
I've found that guide, already tried the to first options and it didn't work.

I'm trying the 3rd option, and I'm not sure the way to go. Here is the results of the 3 first steps:

yves@yves-IdeaPad-Slim-3-15IRU8:~$ cd /etc/X11/xorg.conf.d
bash: cd: /etc/X11/xorg.conf.d: Aucun fichier ou dossier de ce type
yves@yves-IdeaPad-Slim-3-15IRU8:~$ cd  /usr/share/X11/xorg.conf.d
yves@yves-IdeaPad-Slim-3-15IRU8:/usr/share/X11/xorg.conf.d$ ls
10-amdgpu.conf  10-quirks.conf  20-intel.conf     70-wacom.conf
10-nvidia.conf  10-radeon.conf  40-libinput.conf

I don't know which file to use here since I presume these are all different files.

I believe above you said you are using AMD, not Nvidia or Intel graphics.

Yes, step three is a bit more confusing. Part of the trouble in writing a coherent guide is working around the variations that are present on other peoples systems.

You might skip to method 4 as an easy test just to see if using xrandr does the job better.

Method 4 doesn't work

yves@yves-IdeaPad-Slim-3-15IRU8:~$ xrandr | grep " connected" | cut -f1 -d " "
xrandr: Failed to get size of gamma for output default
default

I think my graphic card is Intel, so then the file should be 20-intel.conf?

1 Like

And should I copy paste what they say in the 3rd method even if it's not nvidia?

This implies a driver issue is the cause; which suggests that the above methods of adjust configuration files may not be helpful. Instead, let's focus on the drivers.

Can you detail the exact Graphics cars you are using?

Hopefuly this command will give you some info?

In the about section on zorin it says: llvmpipe (LLVM 12.0.0, 256 bits)

yves@yves-IdeaPad-Slim-3-15IRU8:~$ lspci
00:00.0 Host bridge: Intel Corporation Device a71b (rev 01)
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-P [UHD Graphics] (rev 04)
00:04.0 Signal processing controller: Intel Corporation Raptor Lake Dynamic Platform and Thermal Framework Processor Participant (rev 01)
00:06.0 PCI bridge: Intel Corporation Raptor Lake PCIe 4.0 Graphics Port (rev 01)
00:08.0 System peripheral: Intel Corporation GNA Scoring Accelerator module (rev 01)
00:0a.0 Signal processing controller: Intel Corporation Raptor Lake Crashlog and Telemetry (rev 01)
00:0d.0 USB controller: Intel Corporation Raptor Lake-P Thunderbolt 4 USB Controller (rev 01)
00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01)
00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
00:15.1 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #1 (rev 01)
00:16.0 Communication controller: Intel Corporation Alder Lake PCH HECI Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation Device 51be (rev 01)
00:1c.7 PCI bridge: Intel Corporation Alder Lake PCH-P PCI Express Root Port #9 (rev 01)
00:1e.0 Communication controller: Intel Corporation Alder Lake PCH UART #0 (rev 01)
00:1e.3 Serial bus controller: Intel Corporation Alder Lake SPI Controller (rev 01)
00:1f.0 ISA bridge: Intel Corporation Raptor Lake LPC/eSPI Controller (rev 01)
00:1f.3 Multimedia audio controller: Intel Corporation Raptor Lake-P/U/H cAVS (rev 01)
00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
01:00.0 Non-Volatile memory controller: Micron Technology Inc 2400 NVMe SSD (DRAM-less) (rev 03)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax Wireless Network Controller
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)

Yes, that is the Fallback graphics.
What about

lshw -C video

This is the results. Thank you so much for your time helping me with this!

yves@yves-IdeaPad-Slim-3-15IRU8:~$ sudo lshw -C video
[sudo] Mot de passe de yves :  
  *-display NON-RÉCLAMÉ     
       description: VGA compatible controller
       produit: Raptor Lake-P [UHD Graphics]
       fabricant: Intel Corporation
       identifiant matériel: 2
       information bus: pci@0000:00:02.0
       version: 04
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: pciexpress msi pm vga_controller bus_master cap_list
       configuration : latency=0
       ressources : mémoireE/S:600-5ff mémoireE/S:400-3ff mémoire:6000000000-6000ffffff mémoire:4000000000-400fffffff portE/S:4000(taille=64) mémoire:c0000-dffff mémoire:4010000000-4016ffffff mémoire:4020000000-40ffffffff

1 Like

You need a minimum kernel of 5.19:

1 Like

Yes upgrading my kernel works, I tried 5.19, but then I'm loosing my internet connection...

Is there anyway around it?
Or If I change of distribution, waiting for Zorin 17 to release a stable version, Should I found a distribution that works with a Kernel of minimum 5.19? I could try Mint, but it's also based on 5.15.

If you can post

sudo lshw -C network

It may be that changing the kernel detaches the wifi module from the kernel. So, using DKMS may solve that issue so that you can dynamically upgrade the kernel without losing the wifi.

Here it is

And when I say it works, it's not perfect, I can have the night mode, the program Brightness Controler works, but I can't control the brightness directly with the keyboard or with the controler in the setting, so if I use Brightness Controler programm, I loose the night mode. I can work with that though

yves@yves-IdeaPad-Slim-3-15IRU8:~$ sudo lshw -C network
[sudo] Mot de passe de yves :  
  *-network NON-RÉCLAMÉ     
       description: Network controller
       produit: RTL8852BE PCIe 802.11ax Wireless Network Controller
       fabricant: Realtek Semiconductor Co., Ltd.
       identifiant matériel: 0
       information bus: pci@0000:02:00.0
       version: 00
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: pm msi pciexpress cap_list
       configuration : latency=0
       ressources : portE/S:3000(taille=256) mémoire:50500000-505fffff
  *-network
       description: Ethernet interface
       identifiant matériel: 3
       information bus: usb@2:1
       nom logique: enx96dbdc7b4c69
       numéro de série: 96:db:dc:7b:4c:69
       fonctionnalités: ethernet physical
       configuration : autonegotiation=off broadcast=yes driver=rndis_host driverversion=6.2.0-060200-generic duplex=half firmware=RNDIS device ip=192.168.59.125 link=yes multicast=yes port=twisted pair

Ok let's try installing the Wifi Driver with DKMS.
Ensure you are connected using Ethernet or using your mobile phone hotspot connected via USB cord.

sudo apt install dkms

wget https://github.com/jeremyb31/rtl8852be/blob/main/rtw8852be-dkms_1.0.0_all.deb

sudo dpkg -i rtw8852be-dkms_1.0.0_all.deb

That last command did this error:

yves@yves-IdeaPad-Slim-3-15IRU8:~$ sudo dpkg -i rtw8852be-dkms_1.0.0_all.deb
dpkg-deb: erreur: 'rtw8852be-dkms_1.0.0_all.deb' is not a Debian format archive
dpkg: erreur de traitement de l'archive rtw8852be-dkms_1.0.0_all.deb (--install) :
 dpkg-deb --control subprocess returned error exit status 2
Des erreurs ont été rencontrées pendant l'exécution :
 rtw8852be-dkms_1.0.0_all.deb

That error can happen if you ran the install command before the .deb package had finished downloading.
Please be sure that the .deb package has completely downloaded before installing it.

You can also use the wget command to download the .deb, then open your file manager and locate it in your home folder and double click it to run the GUI installer.

It seems to me that it has finished being downloaded, I just tried again:

yves@yves-IdeaPad-Slim-3-15IRU8:~$ wget https://github.com/jeremyb31/rtl8852be/blob/main/rtw8852be-dkms_1.0.0_all.deb
--2023-12-05 19:38:50--  https://github.com/jeremyb31/rtl8852be/blob/main/rtw8852be-dkms_1.0.0_all.deb
Résolution de github.com (github.com)… 140.82.114.3
Connexion à github.com (github.com)|140.82.114.3|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 4192 (4,1K) [text/plain]
Enregistre : «rtw8852be-dkms_1.0.0_all.deb.1»

rtw8852be-dkms_1.0. 100%[===================>]   4,09K  --.-KB/s    ds 0s      

2023-12-05 19:38:51 (22,4 MB/s) - «rtw8852be-dkms_1.0.0_all.deb.1» enregistré [4192/4192]

yves@yves-IdeaPad-Slim-3-15IRU8:~$ sudo dpkg -i rtw8852be-dkms_1.0.0_all.deb
[sudo] Mot de passe de yves :  
dpkg-deb: erreur: 'rtw8852be-dkms_1.0.0_all.deb' is not a Debian format archive
dpkg: erreur de traitement de l'archive rtw8852be-dkms_1.0.0_all.deb (--install) :
 dpkg-deb --control subprocess returned error exit status 2
Des erreurs ont été rencontrées pendant l'exécution :
 rtw8852be-dkms_1.0.0_all.deb

When I try to open the file in the home folder, it says it's not possible, its not supported