Another noob with NVIDIA problems on LM 20.

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
lighans
Level 1
Level 1
Posts: 12
Joined: Mon Oct 26, 2015 7:39 am

Another noob with NVIDIA problems on LM 20.

Post by lighans »

With LM19 I had to do some tricks I forgot after I got a similar issue. But then never looked back.

When trying to install the NVIDIA drivers in lm20 I can do that in mintdriver manager, but after reboot the NVIDIA X server settings keeps blank. (And now it wont even start, though their is an icon in start menu. I cant install the nouveau drivers either.

I have a 64 bit HP pavilion (i5 8th gen) laptop and cinnamon mint. below you can see the different video cards

I did inxi -Gx as mentioned in some other post:
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ inxi -Gx
Graphics:
Device-1: Intel UHD Graphics 620 vendor: Hewlett-Packard driver: i915
v: kernel bus ID: 00:02.0
Device-2: NVIDIA GP108M [GeForce MX150] vendor: Hewlett-Packard
driver: N/A bus ID: 01:00.0
Display: x11 server: X.Org 1.20.8 driver: modesetting
unloaded: fbdev,nvidia,vesa resolution: 1920x1080~60Hz, 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.0.8
direct render: Yes

driver N/A should be NVIDIA-driver-440 I guess....

I did sudo driver-manager (to start mintdriver manager from terminal). The app starts and shows the activated nvidia driver, but also their are a lot of errors:

Checking connectivity or live media...
Internet connection detected
/usr/lib/linuxmint/mintdrivers/mintdrivers.py:522: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/Initia ... precations
widget = Gtk.Label(device_name)
/usr/lib/linuxmint/mintdrivers/mintdrivers.py:525: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/Initia ... precations
widget = Gtk.Label("<small>{}</small>".format(overall_status))
Traceback (most recent call last):
File "/usr/lib/linuxmint/mintdrivers/mintdrivers.py", line 112, in _on_cache_update_finished
self.show_drivers()
File "/usr/lib/linuxmint/mintdrivers/mintdrivers.py", line 574, in show_drivers
self.set_driver_action_status()
File "/usr/lib/linuxmint/mintdrivers/mintdrivers.py", line 610, in set_driver_action_status
self.label_driver_action.set_label(ngettext(
NameError: name 'ngettext' is not defined
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] Bestand of map bestaat niet: '/var/crash/_usr_lib_linuxmint_mintdrivers_mintdrivers.py.0.crash'

Original exception was:
Traceback (most recent call last):
File "/usr/lib/linuxmint/mintdrivers/mintdrivers.py", line 112, in _on_cache_update_finished
self.show_drivers()
File "/usr/lib/linuxmint/mintdrivers/mintdrivers.py", line 574, in show_drivers
self.set_driver_action_status()
File "/usr/lib/linuxmint/mintdrivers/mintdrivers.py", line 610, in set_driver_action_status
self.label_driver_action.set_label(ngettext(
NameError: name 'ngettext' is not defined


Hopefully somebody on this nice forum can help me out.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Another noob with NVIDIA problems on LM 20.

Post by roblm »

Use this command to check if nvidia-prime is installed: apt policy nvidia-prime
If not, install it: apt install nvidia-prime
Then switch to the Nvidia GPU and reboot: sudo prime-select nvidia

If that doesn’t help, then use these commands and post the output:

Code: Select all

lspci -nnk | grep -EA3 "3D|VGA"   			
ls /lib/modprobe.d/						
dpkg -l | grep -i nvidia
mokutil --sb-state
Use this command to upload the Xorg.0.log file to terminal.com pastebin:

Code: Select all

cat /var/log/Xorg.0.log | nc termbin.com 9999
Post the URL address that displays in the Terminal window.

For an output with many lines, copy the output, open the Mint Forum reply window and select </> at the top. Press Ctrl+V to paste the copied lines into a code display window.
lighans
Level 1
Level 1
Posts: 12
Joined: Mon Oct 26, 2015 7:39 am

Re: Another noob with NVIDIA problems on LM 20.

Post by lighans »

Thanks for the answer.

Code: Select all

hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ sudo prime-select nvidia
[sudo] wachtwoord voor hans:      
Info: the nvidia profile is already set
And here the pastebin: https://termbin.com/86rm
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Another noob with NVIDIA problems on LM 20.

Post by roblm »

You didn’t post the output of these commands:

Code: Select all

lspci -nnk | grep -EA3 "3D|VGA"   			
ls /lib/modprobe.d/						
dpkg -l | grep -i nvidia
mokutil --sb-state
Also, the log shows there is an xorg.conf file. Use this command to open it and post the contents:
xed /etc/X11/xorg.conf
lighans
Level 1
Level 1
Posts: 12
Joined: Mon Oct 26, 2015 7:39 am

Re: Another noob with NVIDIA problems on LM 20.

Post by lighans »

I have no idea how to get more in that pastebin. I will look into that later.

Code: Select all

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 450.57


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
lighans
Level 1
Level 1
Posts: 12
Joined: Mon Oct 26, 2015 7:39 am

Re: Another noob with NVIDIA problems on LM 20.

Post by lighans »

Sorry
, my bad. I read your post wrong: code will follow below:

Code: Select all

hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ lspci -nnk | grep -EA3 "3D|VGA" 
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 [8086:5917] (rev 07)
	DeviceName: Intel Kabylake UHD Graphics ULT GT2
	Subsystem: Hewlett-Packard Company UHD Graphics 620 [103c:841c]
	Kernel driver in use: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GP108M [GeForce MX150] [10de:1d10] (rev a1)
	DeviceName: NVIDIA GeForce GTX MX150
	Subsystem: Hewlett-Packard Company GP108M [GeForce MX150] [103c:841c]
	Kernel modules: nvidiafb, nouveau
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ ls /lib/modprobe.d/
aliases.conf  blacklist_linux_5.4.0-26-generic.conf  blacklist_linux_5.4.0-42-generic.conf  fbdev-blacklist.conf  nvidia-graphics-drivers.conf  systemd.conf
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ dpkg -l | grep -i nvidia
ii  bbswitch-dkms                              0.8-8ubuntu0.20.04.1                  amd64        Interface for toggling the power on NVIDIA Optimus video cards
rc  bumblebee                                  3.2.1-22                              amd64        NVIDIA Optimus support for Linux
rc  bumblebee-nvidia                           3.2.1-22                              amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  libnvidia-cfg1-440:amd64                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-390                       390.138-0ubuntu0.20.04.1              all          Shared files used by the NVIDIA libraries
ii  libnvidia-common-440                       440.100-0ubuntu0.20.04.1              all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-440:amd64                440.100-0ubuntu0.20.04.1              amd64        NVIDIA libcompute package
ii  libnvidia-compute-440:i386                 440.100-0ubuntu0.20.04.1              i386         NVIDIA libcompute package
ii  libnvidia-decode-440:amd64                 440.100-0ubuntu0.20.04.1              amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-440:i386                  440.100-0ubuntu0.20.04.1              i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-440:amd64                 440.100-0ubuntu0.20.04.1              amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-440:i386                  440.100-0ubuntu0.20.04.1              i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-440:amd64                  440.100-0ubuntu0.20.04.1              amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-440:amd64                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-440:i386                    440.100-0ubuntu0.20.04.1              i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-440:amd64                     440.100-0ubuntu0.20.04.1              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-440:i386                      440.100-0ubuntu0.20.04.1              i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-440:amd64                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-440:i386                    440.100-0ubuntu0.20.04.1              i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-440                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA compute utilities
ii  nvidia-dkms-440                            440.100-0ubuntu0.20.04.1              amd64        NVIDIA DKMS package
ii  nvidia-driver-440                          440.100-0ubuntu0.20.04.1              amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-440                   440.100-0ubuntu0.20.04.1              amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-440                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.14                                all          Tools to enable NVIDIA's Prime
ii  nvidia-prime-applet                        1.2.1                                 all          An applet for NVIDIA Prime
ii  nvidia-settings                            440.82-0ubuntu0.20.04.1               amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-440                           440.100-0ubuntu0.20.04.1              amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                    0.18build1                            all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-440              440.100-0ubuntu0.20.04.1              amd64        NVIDIA binary Xorg driver
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ mokutil --sb-state
SecureBoot enabled
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ 
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Another noob with NVIDIA problems on LM 20.

Post by roblm »

You would post the output of those commands the same way you posted the xorg.conf file.

The xorg.conf file is not configured correctly for your system with hybrid (Intel+Nvidia) graphics. Use this command to remove it: sudo rm /etc/X11/xorg.conf

Log out and back in. Check if the Nvidia driver is loading.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Another noob with NVIDIA problems on LM 20.

Post by roblm »

I didn’t see your last post when I added my previous post.

You installed Bumblebee. Use this command to remove it: sudo apt-get purge bumblebee* primus*

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 this 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.
lighans
Level 1
Level 1
Posts: 12
Joined: Mon Oct 26, 2015 7:39 am

Re: Another noob with NVIDIA problems on LM 20.

Post by lighans »

I disabled secure boot. That was the trick to get it working in LM19. After updating to lm20, I couldnt boot anymore and had to reinstall. And somehow that only worked with restoring factorysettings in boot.

Now disabled secure boot again. But unfortunately it is still not working. I reinstalled NVIDIA settings, which start with an empty window.

I did: sudo rm /etc/X11/xorg.conf, and restarted but still nothing.

Code: Select all

hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$  inxi -Gx
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Hewlett-Packard driver: i915 
  v: kernel bus ID: 00:02.0 
  Device-2: NVIDIA GP108M [GeForce MX150] vendor: Hewlett-Packard 
  driver: N/A bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz, 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.0.8 
  direct render: Yes 
Thanks for your effort so far. I appreciate that.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Another noob with NVIDIA problems on LM 20.

Post by roblm »

Use these commands again and post the output:

Code: Select all

lspci -nnk | grep -EA3 "3D|VGA"   			
ls /lib/modprobe.d/						
dpkg -l | grep -i nvidia
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.
lighans
Level 1
Level 1
Posts: 12
Joined: Mon Oct 26, 2015 7:39 am

Re: Another noob with NVIDIA problems on LM 20.

Post by lighans »

Code: Select all

hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ lspci -nnk | grep -EA3 "3D|VGA" 
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 [8086:5917] (rev 07)
	DeviceName: Intel Kabylake UHD Graphics ULT GT2
	Subsystem: Hewlett-Packard Company UHD Graphics 620 [103c:841c]
	Kernel driver in use: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GP108M [GeForce MX150] [10de:1d10] (rev a1)
	DeviceName: NVIDIA GeForce GTX MX150
	Subsystem: Hewlett-Packard Company GP108M [GeForce MX150] [103c:841c]
	Kernel modules: nvidiafb, nouveau
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ 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
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ 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
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ dpkg -l | grep -i nvidia
ii  bbswitch-dkms                              0.8-8ubuntu0.20.04.1                  amd64        Interface for toggling the power on NVIDIA Optimus video cards
ii  libnvidia-cfg1-440:amd64                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-390                       390.138-0ubuntu0.20.04.1              all          Shared files used by the NVIDIA libraries
ii  libnvidia-common-440                       440.100-0ubuntu0.20.04.1              all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-440:amd64                440.100-0ubuntu0.20.04.1              amd64        NVIDIA libcompute package
ii  libnvidia-compute-440:i386                 440.100-0ubuntu0.20.04.1              i386         NVIDIA libcompute package
ii  libnvidia-decode-440:amd64                 440.100-0ubuntu0.20.04.1              amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-440:i386                  440.100-0ubuntu0.20.04.1              i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-440:amd64                 440.100-0ubuntu0.20.04.1              amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-440:i386                  440.100-0ubuntu0.20.04.1              i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-440:amd64                  440.100-0ubuntu0.20.04.1              amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-440:amd64                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-440:i386                    440.100-0ubuntu0.20.04.1              i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-440:amd64                     440.100-0ubuntu0.20.04.1              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-440:i386                      440.100-0ubuntu0.20.04.1              i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-440:amd64                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-440:i386                    440.100-0ubuntu0.20.04.1              i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-440                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA compute utilities
ii  nvidia-dkms-440                            440.100-0ubuntu0.20.04.1              amd64        NVIDIA DKMS package
ii  nvidia-driver-440                          440.100-0ubuntu0.20.04.1              amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-440                   440.100-0ubuntu0.20.04.1              amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-440                   440.100-0ubuntu0.20.04.1              amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.14                                all          Tools to enable NVIDIA's Prime
ii  nvidia-prime-applet                        1.2.1                                 all          An applet for NVIDIA Prime
ii  nvidia-settings                            440.82-0ubuntu0.20.04.1               amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-440                           440.100-0ubuntu0.20.04.1              amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                    0.18build1                            all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-440              440.100-0ubuntu0.20.04.1              amd64        NVIDIA binary Xorg driver
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ mokutil --sb-state
SecureBoot disabled
Platform is in Setup Mode
hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ 
lighans
Level 1
Level 1
Posts: 12
Joined: Mon Oct 26, 2015 7:39 am

Re: Another noob with NVIDIA problems on LM 20.

Post by lighans »

User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Another noob with NVIDIA problems on LM 20.

Post by roblm »

It appears that the Nvidia kernel modules were not built during the driver installation. Use this command:
ls /lib/modules/`uname -r`/kernel/drivers/char/drm/

This should be the output:
nvidia-drm.ko nvidia.ko nvidia-modeset.ko nvidia-uvm.ko

If you don’t see those 4 modules, then remove the Nvidia driver: apt autoremove nvidia-driver-440

After rebooting, re-install the Nvidia driver: apt install nvidia-driver-440

After rebooting, post the output of: lspci -nnk | grep -EA3 "3D|VGA" and inxi -Gx
lighans
Level 1
Level 1
Posts: 12
Joined: Mon Oct 26, 2015 7:39 am

Re: Another noob with NVIDIA problems on LM 20.

Post by lighans »

Well, you found the error:

Code: Select all

hans@hans-HP-Pavilion-Laptop-15-ck0xx:~$ ls /lib/modules/`uname -r`/kernel/drivers/char/drm/
nvidia-drm.ko  nvidia.ko  nvidia-modeset.ko  nvidia-uvm.ko
Thank you very much.
Locked

Return to “Graphics Cards & Monitors”