Screen Brightness Upon Logging In not Changing After Kernel Update from 7.0.0-38-generic to 7.0.0-42-generic on Lenovo Legion 5 15AHP11

It is a default behavior in Zorin to keep two kernels and remove others automatically.

1 Like

Ah ok thanks for clearing that up! :+1:

1 Like

Maybe You oversaw it. I can say that it doesn't get removed without showing. When You use the Software Updater, You see there the Kernel Packages that goes remove. I don't have a Picture to show it but at the Top, You have the Info that it will be removed and on the Packages, You can see that the Size is 0b because they don't get downloaded.

Well ... one or the other or both. Sometimes it is not so easy to tell.

You might laugh, but could be. Doesn't have to be of Course. But sometimes a fresh Install can have an Effect.

2 Likes

Sorry for the wrong information. I thought old kernels could be removed automatically if unattended upgrades are enabled. But I'm not sure if the line at /etc/apt/apt.conf.d/50unattended-upgrades

Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";

needs to be activated first.
When you run in terminal sudo apt autoremove, there are often listed old kernels and when you confirm with yes, they are deleted. Or as Ponce-De-Leon wrote, in the Software Updater they are shown to be removed.

If you like to keep more kernels, you can use way 2 shown here by @SAPien:

2 Likes

Oh don't worry abt it! It's all fine.

I did a fresh reinstall of Zorin OS 18.1 to see if it was a faulty install, but it's simply Wayland + 7.0.0-42-generic kernel + 595-open nvidia drivers + my laptop's recent-ish hardware maybe being a little non cooperative with each other.

Will be sharing details about this behaviour on this thread soon.

Thanks for the help though! :+1::sparkles:

2 Likes

Here is the reason why you have lost kernel 7.0.0-38:

2 Likes

I just read it again and realised that I made a mistake while typing that out! My bad :sweat_smile:

I'll go fix that to 6.17.0-20-generic kernel instead of 7.0.0-38-generic when the 7.0.0-42-generic kernel got added in that day.

UPDATE: Nevermind, it's been 7 days and I can't edit that line for that post so yeah, but the correction still stands.

About that, I initially ran the sudo apt update && sudo apt upgrade command and got a message that these are no longer needed so use sudo apt autoremove, but I chose to abort that operation so I can do it a little later only for it do it's own thing. I always use the terminal and Software store to look for updates and stuff, just want to mention that :slight_smile:

Oh, tell me about it. I just want to test it for awhile and start moving in my personal files and get on with my work worry-free :crossed_fingers:

Ok I did giggle after reinstalling Zorin OS 18.1 CORE again on my Legion 5, all good with the ethernet cable this time (I used WiFi the previous time, but no issue), only to find that the screen brightness issue persisted when I got the usual stuff and a random number of reboots that results in change of wording for WM options in log in screen.

The setup:

  • Wayland windowing manager
  • 7.0.0-42-generic kernel
  • 595-open nvidia graphics driver

But before I changed the windowing manager and nvidia driver version when the installer finished and started the Tour, it was on X11 with 580-proprietary drivers running, and the screen brightness was adjustable like normal.

Even if I change just the WM to X11 and keep the other two listed above the same, the screen brightness can be adjusted with Fn keys and UI slider like nothing happened.

So, in conclusion, I'm thinking that the new 595-open driver, the only one that works well with my RTX 5060 in gaming, must be causing this minor inconvenience along with Wayland :thinking:

I might as well wait till they come up with a decent update that will remove this issue, until then I'll manage :crossed_fingers:

Can you perhaps mention that GNOME extension that might help with this screen brightness so I don't have to keep doing endless restarts till I get that weird change in WM options? I'll try and give it a shot and update this thread :+1:

Many thanks for the help! :raising_hands: :sparkles:

Then, maybe let it on X11. Or try a higher Driver Version. I think Version 615 is already available.

If one of the Gnome Extensions will help, I don't know. But worth a Try it is. Here are some that run on Zorin:

To install them, I would recommend the Extension Manager. You can find it in Gnome Software:

It is available as Flatpak and APT Package. What You choose is up to You.

1 Like

I've already given 615-open nvidia drivers a shot and it was not making the RTX 5060 get detected by nvidia-smi command.

And, X11 makes gaming rather laggy, uses 100% of my dGPU and makes the fans run like crazy (done this last week) when I don't play Warframe at High graphics settings, only at Custom settings where some stuff is at Medium, Low, High, and turned off. Therefore, I shall give these 4 GNOME extensions a try and let you know how it goes :+1:

Extension Manager is my go-to lately so that step is done :raising_hands:

Thank you for the suggestions!

1 Like

Hey there!

I've tried each of these extensions and none of them helped. Well, at least we tried :sweat_smile:

Also my kernel upgraded from 7.0.0-42-generic to 7.0.0-43-generic, but that didn't help either.

I even tried the 615-open Nvidia drivers (3rd time, I think) and it strangely flopped, like, when I selected it from Additional Drivers in Software and Updates package, the progress bar appears in the lower right as usual but an empty dialogue box appears with just an exclamation mark in a red circle. This isn't the first time seeing it. Anyway, I did that but it simply forced itself to use the Xorg Nouveau drivers and the brightness was stuck at max on Wayland lol.

Now I'm running 595-open which is now normal, and the weird change in WM options in the login screen has come back for now so I can change the brightness like normal as if nothing happened.

Ugh, this is just a minor inconvenience but an annoying one that I can tolerate. At least this laptop is able to do stuff normally, but I'll import my important stuff in here within a week or so after some observation so I can feel comfortable while I do my work and not get an update that can mess it (didn't happen ever on my ThinkPad, but I'd rather play safe).

Guess I'll have to wait for the 7.1 or 7.2 Linux kernel to arrive on Zorin OS then it might improve, hopefully :crossed_fingers:

On the other hand, I have good news: I ran a lot of Windows 11 updates excluding the firmware update (Secure Boot and Fast Startup disabled from the beginning) just to see if anything would go wrong, such as, not being able to access the Linux partition and getting the bootloader messed up, but none of that happened. Luckily, Microslop (not an error) fixed it without a lack of urgency (Source). So that's relief for me because that got me worried. Funny thing was that I had Secure Boot 'OFF' on ThinkPad E14 so I kinda dodged a bullet last year while doing some Windows updates :laughing:

Thank you for all the help so far! :raising_hands::sparkles:

2 Likes

Alright, I did some Nvidia driver version testing on my Legion 5 using the 7.0.0-43-generic kernel on Wayland, so here are the results in short:

  1. 580 proprietary:
    No detection + 0% utilisation from Vitals GNOME extension

  2. 580-open:
    Same result in [1]

  3. 595 proprietary:
    Same result in [1]

  4. 615-open:
    An odd behaviour was seen; Nvidia X Server App detected it perfectly, but tested Warframe and it was only using my Radeon 780M iGPU and the RTX 5060 was fully ignored

  5. 595-open (proprietary, tested option for both my laptops):
    The only working suitable driver for this kernel right now

Also, my old ThinkPad E14 (specs in post no.1 of this thread) is now using the same kernel and 595-open driver like my Legion 5 but has no issues so far, like, I can open Lunacy with Discrete graphics and the MX450 dGPU starts working, Wifi is fine, screen brightness is normal, etc. This is maybe because the ThinkPad's intel drivers in the kernel doesn't fight with the Nvidia drivers (615-open misbehaved on the ThinkPad as well).

To reiterate, the kernel 7.0.0-38-generic + Wayland + 595-open drivers worked well with my Legion 5 when Dynamic graphics was active from UEFI (as always) and with On-Demand from the Nvidia X Server Settings app. The Kernel update to 7.0.0-42-generic most likely started the conflict between AMD's iGPU 780M and Nvidia, and I don't think the Nvidia 595-open drivers are at fault here.

At the moment, I'm gonna try a fix from this GitHub page just to see how it'll work. The screenshot of their /etc/default/grub file shows non-comment lines that are completely identical to mine so I'm feeling rather compelled to try.

I shall post an update if it works or not so wish me luck :saluting_face:

UPDATE:
I have failed because I've landed up with a VERY bright OLED screen whose brightness couldn't be reduced or adjusted in any way. Now it's all back to normal.

It appears that a kernel update can stop this conflict between the amdgpu and nvidia drivers on Wayland (doesn't happen in X11) to adjust screen brightness while on Dynamic Graphics + On-Demand setting. This is an ideal setup where many users who game and do light work don't have to keep switching their GPUs from their UEFI menus and reboot every time.

2 Likes

If I have read this right, You are all OK when using kernel 7.0.0-38-generic.
Maybe consider setting a hold for that kernel and stick with what works.

2 Likes

Hey!

I did try to go back to 7.0.0-38-generic, but for some weird reason my Legion 5 was acting up a bit. That was my first step when the update to 7.0.0-42-generic didn't play well with the 595-open nvidia driver.

Although, I'll give it another shot so let me find a way to safely install 7.0.0-38-generic kernel back on my Legion 5, and then follow the tutorial you suggested to make it as a default kernel :crossed_fingers:

Thank you for the suggestion :raising_hands::sparkles:

1 Like

Hi all!

I've been wracking my head over this minor nuisance for a while now and was even considering jumping to Fedora 45 Workstation edition, but I wouldn't do that yet until I figured some stuff out which I've been doing for the past 1 week (stuff is backed up so nothing to worry).

Lately, I've been meddling with brightnessctl (suggested by a Linux community member on tumblr the-linux-nerd) to see what's up after checking with ls /sys/class/backlight giving me amdgpu_bl2 and nvidia_0 as the outputs on Wayland on kernel 7.0.0-43-generic as of writing this, and it always was the same output on Dynamic Graphics mode in the past.

Here's what I tried with brightnessctl plainly:


sudo brightnessctl set 0%
Updated device 'nvidia_0':
Device 'nvidia_0' of class 'backlight':
	Current brightness: 0 (0%)
	Max brightness: 100

Now being specific by mentioning nvidia_0:

sudo brightnessctl -d nvidia_0 set 50%
Updated device 'nvidia_0':
Device 'nvidia_0' of class 'backlight':
	Current brightness: 50 (50%)
	Max brightness: 100

As you can see the values change without any issues, but the effect of increased brightness doesn't occur since nvidia_0 doesn't control my OLED display's brightness on dynamic graphics (UEFI setting) mode.

Now with amdgpu_bl2:

sudo brightnessctl -d amdgpu_bl2 set 50%
Updated device 'amdgpu_bl2':
Device 'amdgpu_bl2' of class 'backlight':
	Current brightness: 252000 (50%)
	Max brightness: 504000
sudo brightnessctl -d amdgpu_bl2 set 15%
Updated device 'amdgpu_bl2':
Device 'amdgpu_bl2' of class 'backlight':
	Current brightness: 75600 (15%)
	Max brightness: 504000

Directly asking amdgpu_bl2 to increase and decrease brightness with brightnessctl worked right away and the display brightened and dimmed accordingly. This could only mean that amdgpu_bl2 is responsible for the display's brightness on Dynamic Graphics mode.

As I'm typing this, I've re-downloaded kernel 7.0.0-38-generic so I can give it a shot again because when I rolled back to that old kernel, it behaved weirdly when it wasn't supposed to. Of course, I'm still using the same working 595-open nvidia drivers so lets see how it goes.

UPDATE

Reinstalling the kernel 7.0.0-38-generic with commands

sudo apt install linux-image-7.0.0-38-generic linux-headers-7.0.0-38-generic
sudo update-grub
reboot

Installed it successfully, but it didn't work.

So I removed it with these commands

sudo apt remove linux-image-7.0.0-38-generic linux-headers-7.0.0-38-generic
reboot
sudo apt autoremove
reboot

All's "normal" on 7.0.0-43-generic.

After all this meddling with the terminal, files, and kernels, I've come to the conclusion that the kernel and nvidia drivers are most likely fine, even on X11, hence zero issues with adjusting the screen brightness with the keyboard and UI slider. It appears that Wayland couldn't pick the amdgpu_bl2 to adjust the display's brightness. And maybe Zorin OS 18.1's GNOME version being 46 could be affecting it as well.

Now I'm gonna try out X11 on Zorin OS 18.1 and see how it works when I'm playing Warframe, and maybe try Fedora 45 Workstation to check if it's a general Linux thing or a specific distro issue where Zorin OS and its current stack isn't meshing with the Legion 5 2026 model.

Will post when I've done some testing!

2 Likes