Mint 20 cant install nvidia on hybrid laptop.

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
User avatar
kanga007
Level 1
Level 1
Posts: 11
Joined: Thu Aug 13, 2020 10:31 pm

Mint 20 cant install nvidia on hybrid laptop.

Post by kanga007 »

os: Mint 20 Cinnamon
Version: 4.6.7
Kernel: 5.4.0-42-generic
Erazor laptop
Cpu: i5 2.3 GHz
64 bit

I cant install my Nvidia GeForce GTX 950 driver and Nvidia prime. Nvidia says the new driver version is 450.57. I have tried to install 450, 440 and 430 with no result. I am using the method on: https://mintguide.org/video/508-easily- ... intel.html System info says Graphics card is Intel Corporation Skylake GT2 [HD Graphics 520] and the Driver Manager has a check mark next to nvidia-driver-440.
Searching for the state of the install with: dpkg --get-selections | grep nvidia results in:

Code: Select all

chris@chris-Erazer-P7643-MD99619:~$ dpkg --get-selections | grep nvidia
libnvidia-cfg1-440:amd64			install
libnvidia-common-440				install
libnvidia-compute-440:amd64			install
libnvidia-compute-440:i386			install
libnvidia-decode-440:amd64			install
libnvidia-decode-440:i386			install
libnvidia-encode-440:amd64			install
libnvidia-encode-440:i386			install
libnvidia-extra-440:amd64			install
libnvidia-fbc1-440:amd64			install
libnvidia-fbc1-440:i386				install
libnvidia-gl-440:amd64				install
libnvidia-gl-440:i386				install
libnvidia-ifr1-440:amd64			install
libnvidia-ifr1-440:i386				install
nvidia-compute-utils-440			install
nvidia-dkms-440					install
nvidia-driver-440				install
nvidia-kernel-common-440			install
nvidia-kernel-source-440			install
nvidia-prime					install
nvidia-prime-applet				install
nvidia-settings					install
nvidia-utils-440				install
xserver-xorg-video-nvidia-440			install
Searching the web seems alot of folk are having a problem with this. I've tried all the command variations I could find with no luck yet. Any help with this gratefully accepted!
Last edited by kanga007 on Fri Aug 21, 2020 9:05 am, edited 1 time in total.
User avatar
Kadaitcha Man
Level 11
Level 11
Posts: 3591
Joined: Mon Aug 27, 2012 10:17 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by Kadaitcha Man »

kanga007 wrote:
Fri Aug 14, 2020 1:26 am
I am using the method on: https://mintguide.org/video/508-easily- ... intel.html
Yes, well that happens when you don't follow official instructions, and that site looks decidedly Mint-like.

https://www.linuxmint.com/rel_ulyana_cinnamon.php

Solving freezes during the boot sequence

sudo apt remove --purge *nvidia*, then start at "After the installation ..."

If you need further assistance, post the output of inxi -Fxz from a terminal and enclose it in code tags [code]output.here[/code]. You'll see the code tags icon </> when you reply.
Coming to a thread near you: Lots of bragging about my AMD 5950X. Currently delayed due to high demand.
It's pronounced kad-eye-cha, not kada-itcha.
User avatar
kanga007
Level 1
Level 1
Posts: 11
Joined: Thu Aug 13, 2020 10:31 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by kanga007 »

Thanks Kadaitcha Man

Installing through the driver manager worked fine. Further searching by the terminal told me that nvidia prime was missing and the applet was not installed. I managed to get them installed but after logging out and in it isnt visible on the task bar. Since I am on a hybrid setup it seems a handy applet to have. Any way I could get that working?

Thanks in advance.
User avatar
SMG
Level 7
Level 7
Posts: 1833
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by SMG »

kanga007 wrote:
Sat Aug 15, 2020 12:10 pm
Further searching by the terminal told me that nvidia prime was missing and the applet was not installed. I managed to get them installed but after logging out and in it isnt visible on the task bar. Since I am on a hybrid setup it seems a handy applet to have. Any way I could get that working?
The current 1.2.2 version of nvidia-prime-applet has a bug report of not showing, so it's probably not anything you are doing. You could try version 1.2.1 (or wait for 1.2.3 which I presume will work).
LM20.0 Cinnamon
User avatar
kanga007
Level 1
Level 1
Posts: 11
Joined: Thu Aug 13, 2020 10:31 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by kanga007 »

Thanks SMG
Hmmmm searched for prime 1.2.,1 but dont know my way around linux yet, so could only find 1.2.2. I found a post saying:

Code: Select all

sudo prime-select intel
works, but might as well stay with the driver manager for now.

Thanks again for your help.
User avatar
roblm
Level 13
Level 13
Posts: 4539
Joined: Sun Feb 24, 2013 2:41 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by roblm »

On my Optimus laptop, the 1.2.2 version of nvidia-prime-applet works fine. The dependencies for that program are listed here and they should already be installed:

nvidia-prime-applet.png

User bourretbrandon reports the applet is missing here:
https://github.com/linuxmint/nvidia-pri ... t/issues/4

The solution was to install python3-pip, which is the python package installer, but it also installs and upgrades a lot of other packages. Check this in the Synaptic Package Manager.

User Leopard1907 reports using another method to solve the problem.
User avatar
kanga007
Level 1
Level 1
Posts: 11
Joined: Thu Aug 13, 2020 10:31 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by kanga007 »

Hi robin
Thanks for the headsup! Worked myself into a corner and had to reinstall Mint 20. Back to zero so have to establish Nvidia as my card. Great info on the prime applet. Will dive in now.

Cheerio
User avatar
kanga007
Level 1
Level 1
Posts: 11
Joined: Thu Aug 13, 2020 10:31 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by kanga007 »

Ok
Got Nvidia drivers, prime and the applet installed:

Code: Select all

chris@chris-Erazer-P7643-MD99619:~$ sudo apt list --installed
nvidia-compute-utils-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-dkms-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-driver-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed]
nvidia-kernel-common-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-kernel-source-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-prime-applet/ulyana,ulyana,now 1.2.2 all [installed]
nvidia-prime/focal,focal,now 0.8.14 all [installed]
nvidia-settings/focal-updates,now 440.82-0ubuntu0.20.04.1 amd64 [installed]
nvidia-utils-440/focal-updates,focal-security,now 440.100-0ubuntu0.20.04.1 amd64 [installed,automatic]
and python3

Code: Select all

python3-blinker/focal,focal,now 1.4+dfsg1-0.3ubuntu1 all [installed]
python3-brlapi/focal,now 6.0+dfsg-4ubuntu6 amd64 [installed]
python3-bs4/focal,focal,now 4.8.2-1 all [installed]
python3-cairo/focal,now 1.16.2-2ubuntu2 amd64 [installed]
long list of python3.

Synaptic Package Manager installs plus multiple restarts to confirm installations and still no applet visible on taskbar and system stuck with Intel GPU.
Any advice on the applet and switching the GPU to Nvidia gratefully accepted.
User avatar
roblm
Level 13
Level 13
Posts: 4539
Joined: Sun Feb 24, 2013 2:41 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by roblm »

Use this command and post the output: sudo prime-select nvidia. Then reboot and check if the Nvidia driver is loading.
User avatar
kanga007
Level 1
Level 1
Posts: 11
Joined: Thu Aug 13, 2020 10:31 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by kanga007 »

Thanks robin

Code: Select all

Info: the nvidia profile is already set
Now to restart.
Restarted and the System info still indicates Intel Skylake GPU is active.
User avatar
roblm
Level 13
Level 13
Posts: 4539
Joined: Sun Feb 24, 2013 2:41 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by roblm »

Use these commands and post the output:

Code: Select all

lspci -nnk | grep -EA3 "3D|VGA"   			
ls /lib/modprobe.d/		
ls /usr/share/X11/xorg.conf.d/
mokutil --sb-state
Use this command to upload the Xorg.0.log file to terminal.com pastebin:
cat /var/log/Xorg.0.log | nc termbin.com 9999

Post the URL address that displays in the Terminal window.
User avatar
kanga007
Level 1
Level 1
Posts: 11
Joined: Thu Aug 13, 2020 10:31 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by kanga007 »

Hi robin

Thanks for your reply

Code: Select all

$ lspci -nnk | grep -EA3 "3D|VGA"
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07)
	DeviceName:  Onboard IGD
	Subsystem: Pegatron Skylake GT2 [HD Graphics 520] [1b0a:2286]
	Kernel driver in use: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 950M] [10de:139a] (rev a2)
	Subsystem: Pegatron GM107M [GeForce GTX 950M] [1b0a:2286]
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 61)

Code: Select all

$ ls /lib/modprobe.d/
aliases.conf                           fbdev-blacklist.conf
blacklist_linux_5.4.0-26-generic.conf  nvidia-graphics-drivers.conf
blacklist_linux_5.4.0-42-generic.conf  systemd.conf

Code: Select all

$ ls /usr/share/X11/xorg.conf.d/
10-amdgpu.conf  10-quirks.conf  40-libinput.conf
10-nvidia.conf  10-radeon.conf  70-wacom.conf

Code: Select all

$ mokutil --sb-state
SecureBoot enabled
URL
https://termbin.com/m61y

Thanks again robin
User avatar
roblm
Level 13
Level 13
Posts: 4539
Joined: Sun Feb 24, 2013 2:41 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by roblm »

Your system has Secure Boot enabled. This prevents the Nvidia driver from loading. Either disable Secure Boot in the BIOS, or if you want it enabled for an added layer of security, then the Nvidia kernel modules that were built during the Nvidia driver installation will need to be signed. Many distributions require modules to be signed with a trusted key when loaded into kernels running on UEFI systems with Secure Boot enabled.

For the instructions on how to do this, go down to the section:
How to install the Nvidia driver with Secure Boot enabled; for drivers installed using Driver Manager, apt or Synaptic in this post:

viewtopic.php?f=59&t=154932&start=20#p847465

I recommend disabling Secure Boot.
User avatar
kanga007
Level 1
Level 1
Posts: 11
Joined: Thu Aug 13, 2020 10:31 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by kanga007 »

Thanks robert!
User avatar
kanga007
Level 1
Level 1
Posts: 11
Joined: Thu Aug 13, 2020 10:31 pm

Re: Mint 20 cant install nvidia on hybrid laptop.

Post by kanga007 »

@robert

Disabled secure boot and everything jumped into life. The widget is visible and working. It reports Nvidia (performance mode) is active. System info reports the intel card but I dont think that is active, just present.

Thanks :D
Post Reply

Return to “Graphics Cards & Monitors”