Nvidia gpu not being used even though it has been selected in nvidia settings
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Nvidia gpu not being used even though it has been selected in nvidia settings
Hello,
I bought a new laptop with a 4k monitor. The problem is that it is using the integrated Intel UHD Graphics even though i changed it in the nvidia settings ("nvidia-settings" command).
However, when I type this command lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA, it says that the Intel UHD Graphics is being used.
When I use the command sudo prime-select query, it says nvidia.
When I type the command "nvidia-settings", i get the following message: "Prime: Requires offloading.
Also, it freezes and lags when playing 4k videos.
I should add that I installed bumblebee and the nvidia 390 driver (open source).
Thanks a lot
Thanks for the links but they don't quite address my problem.
Yes, I run Xubuntu 18.04
I just don't understand why my nvidia graphics card does not
work even though the driver is installed and it is recognized
by my computer.
Thank you for the outputs. There are plenty of folks here who can help with that. Moving forward please use code tags.
Code:
[ code ]
remove the spaces around code. to close just [/ code ] will close the flag. Much easier to read that way.
What of the steps for installing the Nvidia drivers was unclear? It is a step by step process. It starts off with displaying how to update your system, moves to downloading the drivers, than finishes with installing drives and setting GDM or other display manager to function.
Hi,
I'm not sure that my info would some help for your trouble.
Please try to refer NVIDIA's Linux forum thread below. NVIDIA Linux forum's thread
In my case, my note PC is "msi GL-62". This PC has also nvidia GPU on intel board.
I installed NVIDIA driver version 430.14 and made my xorg.conf (/etc/X11/xorg.conf) by using the script which you can find the last post in above thead.
For example, my lspci info and xorg.conf is below.
Code:
#lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1)
00:1c.3 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #4 (rev f1)
00:1f.0 ISA bridge: Intel Corporation HM170 Chipset LPC/eSPI Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81)
03:00.0 Ethernet controller: Qualcomm Atheros QCA8171 Gigabit Ethernet (rev 10)
#cat /etc/X11/xorg.conf
--->8----->8------>8-----
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 940MX"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
--->8----->8------>8-----
And I added following line in ~/.xinitc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96
===============
In my case above. I'm using NVIDIA's optimus function, not bumblemee. So, it has no-switchable function to intel VGA.
Please refer also Arch wiki "nvidia optimus"
Please see also
Step-3) Add <USER> to group bumblebee
# adduser $USER bumblebee
$USER is your user name.
Step-4) Edit /etc/bumblebee/xorg.conf.nvidia
This was need for me. Without this step, $ optirun <application> failed to start for me.
$ cat /etc/bumblebee/xorg.conf.nvidia
Code:
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
BusID "PCI:01:00:0"
# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "DiscreteNvidia"
EndSection
Thanks for the suggestion but I am getting too many error messages (stretch-backports InRelease' is not signed; gpg: keyserver receive failed: No data
etc. etc.)
I downloaded the bumblebee-nvidia primus file with Synaptic but it didn't say libgl1-nvidia-glx.
I searched the exact file name on Debian's website but couldn't find it and apt says:
---"Package libgl1-nvidia-glx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libgl1-nvidia-glx' has no installation candidate---
Not sure if this is your issue but on Gentoo you have to remove some stuff in kernel. Nvidia uses binary driver and some kernel figurations needs to be fixed. Below is what should be enabled/disabled. Using built in Agp kernel caused me some issues so I don't use it. I use built in AGP from Nvidia works better for me anyway. ALso Direct Rendering I disable as well use built in Nvidia as well for that. Also I am sure in your bios you can disable built in graphics. In mine I had to disable IGPU Multi Monitor because it would recognize both GPU's and I only wanted Nvidia. One of the reasons I went with Gentoo. Most distros have issues running new versions of Nvidia because of kernel configurations issue with distro. Most likely that is issue and fix is to compile your own kernel.
Code:
Kernel Configuration:[*] Enable loadable module support --->
Processor type and features --->[*] MTRR (Memory Type Range Register) support
Bus options (PCI etc.) --->[*] Mark VGA/VBE/EFI FB as generic system framebuffer
Device Drivers --->
Character devices --->[*] IPMI top-level message handler
Device Drivers ---> (ONLY THINGS THAT SHOULD BE ENABLED UNLESS YOUR CARD IS AGP)
Graphics support --->
< > /dev/agpgart (AGP Support) ----
-*- VGA Arbitration
(16) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
< > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ----
[ ] Enable DisplayPort CEC-Tunneling-over-AUX HDMI support
Frame buffer Devices --->
[*] Bootup logo
Frame buffer Devices ---> (ONLY THINGS THAT SHOULD BE ENABLED)
<*> Support for frame buffer devices --->
<*> Enable Video Mode Handling Helpers
<*> Enable Tile blitting support
<*> Simple frame buffer support
Make sure all Nvidia is not a module or built in kernel
< > nVidia Framebuffer Support
< > nVidia Riva support
Step-3) Add <USER> to group bumblebee
# adduser $USER bumblebee
$USER is your user name.
Step-4) Edit /etc/bumblebee/xorg.conf.nvidia
This was need for me. Without this step, $ optirun <application> failed to start for me.
$ cat /etc/bumblebee/xorg.conf.nvidia
Code:
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
BusID "PCI:01:00:0"
# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "DiscreteNvidia"
EndSection
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.