how to fix the brightness issue on my legion 5:
Linux Mint Forums
Welcome to the Linux Mint forums!
Skip to content
Quick links
FAQ
Login
Register
Board index Main Edition Support Hardware Support Graphics Cards & Monitors
[SOLVED] Nvidia - RTX 3060 on Lenovo Legion 5pro install ?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
23 posts
1
kris777
Level 1
Level 1
Posts: 18
Joined: Sat Feb 10, 2018 7:16 am
Post by kris777 » Thu Sep 28, 2023 4:32 pm
My laptop is Lenovo Legion 5 pro and I have a problem with installing Nvidia closed-source drivers for the RTX 3060 graphics card... the system works OK with nouveau open-source drivers and it's great! because almost everything works, i.e. suspension and resuming / adjusting the monitor brightness also OK.
However, I wanted to use a more efficient graphics card and this is the problem. By installing the latest drivers from the driver management menu: 535.113..01, everything is OK until the system is restarted. After reboot, the system no longer starts and you need to remove the drivers from the recovery options menu using the purge option. I can't diagnose what could be the cause of this error - drivers or something else? Maybe someone knows a solution how to install Nvidia drivers correctly?
Here's my laptop configuration:
my system
Linux Mint 21.2 Cinnamon
Last edited by LockBot on Thu Mar 28, 2024 10:00 pm, edited 6 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Top
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: Nvidia RTX 3060 install ?
Post by SMG » Thu Sep 28, 2023 8:57 pm
kris777 wrote: ⤴Thu Sep 28, 2023 4:32 pm
My laptop is Lenovo Legion 5 pro
Please open the System Reports app and click the System Information tab on the left. Your computer's information should come up in the right pane. Then click the Copy button in the lower right and paste the results into a reply window here so we can see how Linux Mint views your hardware. We need to see the missing sections and see more detail on the sections you did provide.
Is secure boot enabled? You can check by running the following in a terminal
Code: Select all
mokutil --sb-state
kris777 wrote: ⤴Thu Sep 28, 2023 4:32 pm
However, I wanted to use a more efficient graphics card and this is the problem.
You have a dual-GPU laptop (Intel and Nvidia) so you have to manage that as well as what drivers are used.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
kris777
Level 1
Level 1
Posts: 18
Joined: Sat Feb 10, 2018 7:16 am
Re: Nvidia RTX 3060 install ?
Post by kris777 » Fri Sep 29, 2023 12:23 pm
I don't know if I did it right, but I installed Nvidia drivers
nvidia-driver-535-open and the system has slight difficulties at startup, sometimes it starts correctly and sometimes not?
Now I have the following data from the system:
dkms status nvidia
nvidia/535.113.01, 5.15.0-84-generic, x86_64: installed
important errors from the log:
Code: Select all
17∶36∶26 pulseaudio: Error opening PCM device front:0: Nie ma takiego pliku ani katalogu
17∶36∶25 lightdm: gkr-pam: unable to locate daemon control file
17∶36∶05 kernel: ACPI Error: Aborting method _SB.IETM._OSC due to previous error (AE_NOT_FOUND) (20210730/psparse-529)
17∶36∶02 bluetoothd: Failed to set mode: Blocked through rfkill (0x12)
17∶35∶59 kernel: [drm:nv_drm_probe_devices [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to register device
17∶35∶59 kernel: [drm:nv_drm_load [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice
17∶35∶59 kernel:
17∶35∶59 kernel: integrity: Problem loading X.509 certificate -65
17∶35∶59 kernel: pci 0000:00:07.2: DPC: RP PIO log size 0 is invalid
17∶35∶59 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20210730/psobject-220)
Since after installing the nvidia-driver-535-open drivers, the system started working unstable, I decided to try installing the oldest available version of the driver from the driver manager menu, i.e.: 470 .... (525 and 535 did not work and the system did not start). ...after restart the system, everything seems to work OK??? so maybe it's the fault of the Nvidia driver and not e.g. laptop components / BIOS, etc.?
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1096 G /usr/lib/xorg/Xorg 185MiB |
| 0 N/A N/A 1708 G cinnamon 51MiB |
| 0 N/A N/A 6687 G ...453371011663525351,262144 189MiB |
+-----------------------------------------------------------------------------+
Image
Has anyone managed to install the latest drivers for the nvidia rtx3060 card?
I don't know if it's the fault of the nvidia drivers or my Lenovo legion 5pro laptop?
regards
Top
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: Nvidia RTX 3060 install ?
Post by SMG » Fri Sep 29, 2023 7:37 pm
kris777 wrote: ⤴Fri Sep 29, 2023 12:23 pm
I don't know if I did it right, but I installed Nvidia drivers
nvidia-driver-535-open and the system has slight difficulties at startup, sometimes it starts correctly and sometimes not?
You installed the wrong driver. That is the issue. As per the top of the Tips for Troubleshooting Graphics Issues (including external monitors not working) which is a sticky at the top of the Graphics Cards & Monitors forum, "Do not use the drivers with "open" in the name. Use the same version without "open"."
Please provide the output of
Code: Select all
dpkg -l | grep -i nvidia
and wait for a response before you decide to make further changes to your system. In the past there have been problems removing the open driver.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
kris777
Level 1
Level 1
Posts: 18
Joined: Sat Feb 10, 2018 7:16 am
Re: Nvidia RTX 3060 install ?
Post by kris777 » Sat Sep 30, 2023 1:41 am
Code: Select all
dpkg -l | grep -i nvidia
ii libnvidia-cfg1-470:amd64 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-470 470.199.02-0ubuntu0.22.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-470:amd64 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
ii libnvidia-compute-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA libcompute package
rc libnvidia-compute-525:amd64 525.125.06-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
rc libnvidia-compute-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
ii libnvidia-decode-470:amd64 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-egl-wayland1:amd64 1:1.1.9-1.1 amd64 Wayland EGL External Platform library -- shared library
ii libnvidia-encode-470:amd64 470.199.02-0ubuntu0.22.04.1 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVENC Video Encoding runtime library
ii libnvidia-extra-470:amd64 470.199.02-0ubuntu0.22.04.1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-470:amd64 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-470:amd64 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-470:amd64 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii libnvidia-ifr1-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii nvidia-compute-utils-470 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-535 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA compute utilities
ii nvidia-dkms-470 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA DKMS package
rc nvidia-dkms-535-open 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA DKMS package (open kernel module)
ii nvidia-driver-470 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA driver metapackage
ii nvidia-kernel-common-470 470.199.02-0ubuntu0.22.04.1 amd64 Shared files used with the kernel module
rc nvidia-kernel-common-535 535.113.01-0ubuntu0.22.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-470 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.17.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 510.47.03-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-470 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-470 470.199.02-0ubuntu0.22.04.1 amd64 NVIDIA binary Xorg driver
thanks for the help and the link to the topic, I'll have to read it
From what I've read, I don't know if my 5.15.0-84-generic kernel is too old for my processor and, in turn, for installing the latest nvidia drivers?
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: Nvidia RTX 3060 install ?
Post by SMG » Sat Sep 30, 2023 10:24 am
kris777 wrote: ⤴Sat Sep 30, 2023 1:41 am
From what I've read, I don't know if my 5.15.0-84-generic kernel is too old for my processor and, in turn, for installing the latest nvidia drivers?
I don't know where you read that, but it is not true.
Whether your system would benefit from a newer kernel is a different issue (and it is likely it will), but that does not relate to whether or not the latest Nvidia driver will install.
kris777 wrote: ⤴Thu Sep 28, 2023 4:32 pm
By installing the latest drivers from the driver management menu: 535.113..01, everything is OK until the system is restarted. After reboot, the system no longer starts and you need to remove the drivers from the recovery options menu using the purge option.
One important point of which you may not be aware is your computer is a dual-GPU computer. It has both Intel and Nvidia and drivers for both must be taken into account when making changes. Linux Mint provides the nvidia-prime-applet to help you see the mode you are using and to switch modes, but you deleted it when you decided to "purge" Nvidia modules.
Please also be clear about what you are doing. It is not possible to use recovery options if the computer does not boot. I make that distinction because your computer did in fact boot, but likely had either both the Intel and Nvidia drivers blocked or something else happened.
You did not use the nomodeset kernel parameter did you? You should not be using that. You can check by running
Code: Select all
cat /proc/cmdline
Please also run
Code: Select all
cat /etc/X11/xorg.conf
and make sure it says no file or directory found.
The data you posted indicates one of the 535-open packages is still on your system. That will cause problems if you try to use the non-open Nvidia-535 driver (which is what you want to be using).
We are likely going to need to run some additional commands to clear out what packages do not remove. Sometimes that is an easy situation while other times we might have to go at the problem from several directions.
Once we get that cleared, then we can re-install the driver, re-install the nvidia-prime-applet, make sure your system is in On-demand mode and then all should work. You have secure boot disabled so enrolling keys should not be an issue.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
kris777
Level 1
Level 1
Posts: 18
Joined: Sat Feb 10, 2018 7:16 am
cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: There is no such file or directory
sudo apt-get purge nvidia ...... :)
Code: Select all
dpkg -l | grep -i nvidia
ii libnvidia-compute-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA libcompute package
ii libnvidia-decode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVENC Video Encoding runtime library
ii libnvidia-fbc1-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
I don't know if it will help because I installed the recommended nvidia 535 driver on a clean system with nouveau drivers installed... and the system hung up after restarting, then I removed it and tried to install the same one with the -open ending... but with a similar result with the system started up but the driver probably didn't work properly.
I also tried installing a newer kernel from the Linux Mint update manager menu
6.2.0-33 and then installing the 535 driver but with the same result. For the test, I did the same by installing the latest Liquorix kernel from the ppa repository... the same effect. Yes, it's probably not the kernel's fault... probably faulty drivers or something with the configuration of the Lenovo laptop.
Last edited by kris777 on Sat Sep 30, 2023 2:44 pm, edited 1 time in total.
Top
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: Nvidia RTX 3060 install ?
Post by SMG » Sat Sep 30, 2023 2:41 pm
kris777 wrote: ⤴Sat Sep 30, 2023 2:25 pm
sudo apt-get purge *nvidia* ...... :)
Code: Select all
dpkg -l | grep -i nvidia
ii libnvidia-compute-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA libcompute package
ii libnvidia-decode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVENC Video Encoding runtime library
ii libnvidia-fbc1-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
That looks like the 535-open package removed this time. I don't think the remaining packages will cause issues, but we'll keep an eye on them as we do the installations.
Install the nvidia-prime-applet by running
Code: Select all
sudo apt-get install nvidia-prime-applet
Then install the Nvidia-535 driver with
Code: Select all
apt install nvidia-driver-535
If you see any error messages, please post the entire output. If there are no error messages then please run
Code: Select all
prime-select query
The output of that needs to say intel or on-demand for the Intel graphics driver to load when you reboot the computer.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
kris777
Level 1
Level 1
Posts: 18
Joined: Sat Feb 10, 2018 7:16 am
Re: Nvidia RTX 3060 install ?
Post by kris777 » Sat Sep 30, 2023 2:56 pm
Unfortunately, an attempt to install the 535 drivers ended with a black screen and the system hung up with only the cursor blinking. After restarting and booting normally, the system froze and there was no reaction. I did the reanimation by removing the drivers using the already described grub / recowery / remove nvidia drivers.
Now I'm probably on nouveau :-)
Code: Select all
dpkg -l | grep -i nvidia
ii libnvidia-cfg1-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-535 535.113.01-0ubuntu0.22.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
ii libnvidia-compute-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVIDIA libcompute package
ii libnvidia-decode-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVENC Video Encoding runtime library
ii libnvidia-extra-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-535 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA binary Xorg driver
I think there is something wrong with the compatibility of newer Nvidia drivers with Lenovo Legio 5 pro components... maybe BIOS?
Maybe something more is installed along with the installation of the graphics driver, e.g. audio drivers, and maybe these additional updates spoil something in this particular case?
I will try to clean the system of these drivers 535 that are faulty for my laptop and then reinstall the working version 470. :P
I installed 470 from the manager menu and after a double system restart everything went back to normal. I had to switch in the settings: Prime profiles / Nvidia = on-demand to: Nvidia = performance mode
Code: Select all
prime-select query
nvidia
Attachments
log-hardware.txt
(6.11 KiB) Downloaded 24 times
Last edited by kris777 on Sat Sep 30, 2023 3:36 pm, edited 1 time in total.
Top
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: Nvidia RTX 3060 install ?
Post by SMG » Sat Sep 30, 2023 3:34 pm
kris777 wrote: ⤴Sat Sep 30, 2023 2:56 pm
Unfortunately, an attempt to install the 535 drivers ended with a black screen and the system hung up with only the cursor blinking.
How many minutes did you wait at the black screen? At least 3-5 minutes? If not, you probably interrupted the installation and instead of removing the drivers you should have run dpkg to fix the install.
kris777 wrote: ⤴Sat Sep 30, 2023 2:56 pm
After restarting and booting normally, the system froze and there was no reaction. I did the reanimation by removing the drivers using the already described grub / recowery / remove nvidia drivers.
No, the output you posted indicates you did not remove the drivers so I'm not sure what you did, but we will try again doing something a little different.
kris777 wrote: ⤴Sat Sep 30, 2023 2:56 pm
I think there is something wrong with the compatibility of newer Nvidia drivers with Lenovo Legio 5 pro components... maybe BIOS?
I think you are not understanding me because others are using the newer drivers and they are not having compatibility problems.
EVERYONE is getting the black screen when installing the Nvidia-535 drivers. EVERYONE. You have to wait and let the drivers install and possible fix packages after that. This is not something special for your laptop.
We will try this again especially because I do not understand what you are doing when you go to recovery mode.
Remove the nvidia packages
Code: Select all
sudo apt-get purge nvidia
Then re-install the nvidia-prime-applet with
Code: Select all
sudo apt-get install nvidia-prime-applet
Then I want you to upgrade to the 6.5-oem kernel. You can install the latest 6.5-oem kernel with
Code: Select all
sudo apt-get install linux-oem-22.04d
and reboot.
After you reboot, post the output of
Code: Select all
dpkg -l | grep -i nvidia
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: Nvidia RTX 3060 install ?
Post by SMG » Sat Sep 30, 2023 3:38 pm
kris777 wrote: ⤴Sat Sep 30, 2023 2:56 pm
I installed 470 from the manager menu and after a double system restart everything went back to normal. I had to switch in the settings: Prime profiles / Nvidia = on-demand to: Nvidia = performance mode
Code: Select all
prime-select query
nvidia
No you did not have to switch the settings.
It seems you prefer to ignore what I am saying so I will stop spending time on this.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
kris777
Level 1
Level 1
Posts: 18
Joined: Sat Feb 10, 2018 7:16 am
Re: Nvidia RTX 3060 install ?
Post by kris777 » Sat Sep 30, 2023 3:44 pm
Code: Select all
dpkg -l | grep -i nvidia
ii libnvidia-compute-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA libcompute package
ii libnvidia-decode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVENC Video Encoding runtime library
ii libnvidia-fbc1-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii nvidia-prime-applet 1.3.7 all An applet for NVIDIA Prime
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
Code: Select all
uname -a
Linux kris-Legion 6.5.0-1003-oem #3-Ubuntu SMP PREEMPT_DYNAMIC Mon Aug 28 15:04:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
inxi -SGx
System:
Host: kris-Legion Kernel: 6.5.0-1003-oem x86_64 bits: 64 compiler: N/A
Desktop: Cinnamon 5.8.4 Distro: Linux Mint 21.2 Victoria
base: Ubuntu 22.04 jammy
No you did not have to switch the settings.
It seems you prefer to ignore what I am saying so I will stop spending time on this.
when installing 535 and the black screen, I thought the system had crashed... I never had a black screen effect when installing nvidi drivers! .... then I had to log in to the system somehow, so I had to remove the 353 drivers! ???
powm I restored 470.
I can repeat the procedure and wait with a black screen for at least 10 minutes :-)
I'm in a similar situation, I'm reinstalling 535, but now there's a newer kernel
Now there was no black screen after installing prime-select query
..info says:
Code: Select all
prime-select query
on-demand
Last edited by kris777 on Sat Sep 30, 2023 4:03 pm, edited 1 time in total.
Top
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: Nvidia RTX 3060 install ?
Post by SMG » Sat Sep 30, 2023 4:02 pm
kris777 wrote: ⤴Sat Sep 30, 2023 3:44 pm
Code: Select all
dpkg -l | grep -i nvidia
ii libnvidia-compute-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA libcompute package
ii libnvidia-decode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVENC Video Encoding runtime library
ii libnvidia-fbc1-470:i386 470.199.02-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii nvidia-prime-applet 1.3.7 all An applet for NVIDIA Prime
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
See if running
Code: Select all
sudo apt-get purge libnvidia*
removes those remaining Nvidia-470 driver files. If not, we will continue leaving them there.
I don't know if leaving the system in nvidia mode will cause a problem, but that mode can be switched when in recovery mode.
There is more than one type of recovery mode. There is what I call the blue-screen recovery mode (because the background is blue) and there is recovery mode that you can select from the grub menu>Advanced Options. They are two different modes and I don't know which one you are using.
Install the Nvidia-535 driver from Driver Manager. If you get the black screen, wait at least 5 minutes before powering off the computer to shut it down
If you end up in the blue screen recovery mode when you restart, you will want to use the dpkg (repair broken packages) option. Then shutdown the computer and then restart the computer. (Do not reboot; do a shutdown then a restart.)
If you need to use the grub menu>Advanced Options recovery mode, then go to Synaptic Package Manager and check for broken packages.
If you have questions about anything I have posted, please let me know.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
kris777
Level 1
Level 1
Posts: 18
Joined: Sat Feb 10, 2018 7:16 am
Re: Nvidia RTX 3060 install ?
Post by kris777 » Sat Sep 30, 2023 4:28 pm
I wrote earlier in the post that I was installing the 535 driver again because I had similar settings
but this time there was no black screen, maybe the new kernel helped? ...I did everything as in the post earlier
after reboot, the system started correctly, except in the settings: nvidia setting
I have 535 drivers on: on-demand, I don't know if I should change it?
on nvidia performance-mode? Is that necessary ?
Image Image
Top
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: Nvidia RTX 3060 install ?
Post by SMG » Sat Sep 30, 2023 4:33 pm
kris777 wrote: ⤴Sat Sep 30, 2023 4:28 pm
I wrote earlier in the post that I was installing the 535 driver again because I had similar settings
but this time there was no black screen, maybe the new kernel helped? ...I did everything as in the post earlier
Some people if they removed the Nvidia packages and then used Driver Manager to install were not having a black screen. I have not been able to determine why it sometimes happens and sometimes not.
kris777 wrote: ⤴Sat Sep 30, 2023 4:28 pm
after reboot, the system started correctly, except in the settings: nvidia setting
I have 535 drivers on: on-demand, I don't know if I should change it?
on nvidia performance-mode? Is that necessary ?
I'm not understanding your question. Please post the output of inxi -Gx because on-demand mode can mean different things on different computers with regards to which GPU is primary. It really depends on how the laptop was physically wired/designed. They are not all made the same.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
kris777
Level 1
Level 1
Posts: 18
Joined: Sat Feb 10, 2018 7:16 am
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1038 G /usr/lib/xorg/Xorg 4MiB |
+---------------------------------------------------------------------------------------+
Well, I think everything is OK... thank you very much for your help.
I'm 80% sure that the new kernel was helpful, but I won't check it... at least for now.
Regards
On-demand mode means the drivers and renderers for both GPUs are loaded and available. Intel is the primary one used unless you tell the program to use Nvidia (there are several ways to do that). Intel runs cooler and needs less power (so your battery life will last longer).
If you switch to nvidia performance mode, only Nvidia will be used. The battery life will be shorter and the laptop will run hotter. If you need the performance of Nvidia, it is okay to switch modes.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: Nvidia RTX 3060 install ?
Post by SMG » Sat Sep 30, 2023 4:52 pm
kris777 wrote: ⤴Sat Sep 30, 2023 4:37 pm
Well, I think everything is OK... thank you very much for your help.
I'm 80% sure that the new kernel was helpful, but I won't check it... at least for now.
Regards
You're welcome. A lot of the newer Lenovos have been running better with the 6.5-oem kernel. Yours is a few generations older so I would not expect that to have been the issue, but that is a supported kernel so it is okay to run it.
If your issue is resolved, please go to your first post in this topic, click the pencil icon, and add [SOLVED] to the beginning of the title so others know you are no longer seeking help on this issue.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
kris777
Level 1
Level 1
Posts: 18
Joined: Sat Feb 10, 2018 7:16 am
RTX 3060 install ?
Post by kris777 » Wed Oct 04, 2023 11:39 am
Unfortunately, after updating to the new kernel, the situation repeated itself: oem kernel: v6.5.0.1004
What's more, it seems to be the fault of the Lenovo laptop. Why do I think so... these are just guesses, but I was forced to reinstall the system from a previously made backup with CloneZilla and a partition image file with a properly working Mint system and 535 drivers + OEM kernel, and the restored system also had a similar problem with freezing and freezing at startup (black screen) and I made a backup to see how well it worked :-)
But I diagnosed that after a long wait, sometimes 5 minutes, the system finally loaded and worked correctly... but it is quite troublesome because it takes a long time, especially on different kernels, but the linux-oem-22.04d kernel version works the best, i.e. it has the fewest stops during booting with the 535 nvidia driver ... (there are no problems with the 470 driver at all).
But I found something, i.e. ... if in the Lenovo BIOS I change the graphics card startup option from:
Dynamic graphics on Discrete graphics ... the Linux Mint system starts correctly every time (regardless of the kernel version and nvidia driver version) , but with Nvidia drivers ... so then I probably turn off the Intel graphics card in Bios. I don't know where to look for the problem? Lenovo BIOS / Intel graphics card settings in the system / Nvidia drivers / kernel? :D :D :D
It turns out that there are problems with the proper functioning of Nvidia drivers together with integrated Intel drivers in Linux Mint / Ubuntu or the Lenovo laptop itself.
Top
User avatar
SMG
Level 25
Level 25
Posts: 36476
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA
Re: RTX 3060 install ?
Post by SMG » Wed Oct 04, 2023 8:06 pm
kris777 wrote: ⤴Wed Oct 04, 2023 11:39 am
Unfortunately, after updating to the new kernel, the situation repeated itself: oem kernel: v6.5.0.1004
Did you go back and boot with the prior version to make sure it was a kernel issue? That is usually how one would check to see if it was a kernel-related issue.
kris777 wrote: ⤴Wed Oct 04, 2023 11:39 am
But I found something, i.e. ... if in the Lenovo BIOS I change the graphics card startup option from:
Dynamic graphics on Discrete graphics ... the Linux Mint system starts correctly every time (regardless of the kernel version and nvidia driver version) , but with Nvidia drivers ... so then I probably turn off the Intel graphics card in Bios. I don't know where to look for the problem? Lenovo BIOS / Intel graphics card settings in the system / Nvidia drivers / kernel? :D :D :D
It turns out that there are problems with the proper functioning of Nvidia drivers together with integrated Intel drivers in Linux Mint / Ubuntu or the Lenovo laptop itself.
It seems to be happening with a lot of people with Lenovos. I don't recall such issues in the past so I don't have any guesses of what might have changed. :?
What is the output of inxi -Gxxx when you are running using the Discrete setting in BIOS/UEFI?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Top
23 posts
1
Return to “Graphics Cards & Monitors”
Board index
All times are UTC-04:00
Delete cookies
Contact us
I'm sorry to hear you're continuing to experience brightness control issues on your Lenovo Legion 5 Pro after installing the Nvidia drivers. Managing dual GPUs (Intel integrated and Nvidia discrete) can sometimes lead to conflicts, especially concerning brightness control. Here's a comprehensive approach to troubleshoot and resolve the brightness issue:
1. Ensure Correct PRIME Configuration
Since your laptop uses both Intel and Nvidia GPUs, it's crucial to ensure that PRIME is correctly configured. PRIME manages the switching between GPUs and can influence brightness controls.
Check Current PRIME Mode:
Open a terminal and run:
prime-select query
Ensure it returns either intel, nvidia, or on-demand.
Switch to Intel Mode:
Sometimes, setting the GPU to Intel-only can restore brightness controls:
sudo prime-select intel
sudo reboot
After rebooting, test if the brightness controls work. If they do, it indicates that the issue arises when the system is using the Nvidia GPU.
Switch Back to On-Demand Mode:
To utilize both GPUs without compromising brightness controls:
sudo prime-select on-demand
sudo reboot
In On-Demand mode, the Intel GPU handles most tasks (including display outputs), while the Nvidia GPU kicks in for intensive applications.
2. Modify GRUB Boot Parameters
Adjusting kernel parameters can help manage backlight controls more effectively.
Diagnosing log files can provide insights into what's causing the brightness control issues.
View ACPI Related Logs:
dmesg | grep -i acpi
Check Backlight Interface:
List backlight interfaces:
ls /sys/class/backlight/
You should see directories like intel_backlight or acpi_video0. Ensure that the correct interface is being used.
8. Consider Using a Different Kernel Version
While you've tried the OEM kernel, sometimes other kernel versions offer better hardware support.
Install a Mainline Kernel (If Comfortable):
Note: This is advanced and can lead to system instability if not done correctly.
sudo apt install mainline
Open the Mainline tool and install a newer stable kernel (e.g., 6.5.x). After installation, reboot and test brightness controls.
9. Community and Support Forums
If the issue persists, leveraging community expertise can be invaluable.
Linux Mint Forums:
Revisit the thread where you were initially seeking help. Sometimes, additional solutions emerge as others troubleshoot similar issues.
Ask Ubuntu or Stack Overflow:
Platforms like Ask Ubuntu have numerous threads related to Nvidia driver issues and brightness control.
Lenovo Linux Communities:
Specific communities or forums dedicated to Lenovo laptops on Linux can offer targeted assistance.
10. Fallback to Stable Drivers
If the latest Nvidia drivers (like 535) are causing instability, sticking with the more stable 470 drivers might be the best course of action until compatibility improves.
Test if brightness controls work correctly in this configuration.
11. Use Software-Based Brightness Control as a Temporary Fix
While not ideal, software-based brightness adjustments can serve as a temporary workaround.
Install redshift:
sudo apt install redshift
Use it to adjust screen brightness:
redshift -O 3000
To reset brightness:
redshift -x
Create Keyboard Shortcuts:
Map brightness control commands to keyboard shortcuts using your desktop environment's settings.
Summary
Managing brightness controls in a dual-GPU setup on Linux can be challenging due to the interplay between integrated and discrete graphics drivers. Here's a recap of steps to try:
Ensure correct PRIME configuration to allow Intel to manage backlight.
Modify GRUB boot parameters to improve ACPI backlight handling.
Configure Xorg to use the Intel backlight interface.
Use brightness control tools like brightnessctl or xbacklight.
Update BIOS/UEFI firmware to the latest version from Lenovo.
Review and adjust Xorg settings for better GPU management.
Check ACPI-related logs for underlying errors.
Consider using a different kernel version for improved hardware support.
Leverage community forums for model-specific advice and solutions.
Fallback to more stable Nvidia drivers if newer versions cause issues.
Use software-based brightness controls as a temporary measure.
By systematically applying these solutions, you can identify and resolve the brightness control issues on your Lenovo Legion 5 Pro running Linux Mint. If the problem persists, detailed logs and hardware information shared on community forums can facilitate more targeted assistance.
I hope this helps! Let me know if you need further assistance.