You are not logged in.

#1 2021-07-11 14:01:17

peanutstick
Member
Registered: 2021-07-04
Posts: 39

Nvidia driver installed but not used

I have a problem with nvidia drivers, I installed the packages but my GPU is not used.
This is what I installed:

sudo pacman -S nvidia-dkms nvidia-utils lib32-nvidia-utils nvidia-settings vulkan-icd-loader lib32-vulkan-icd-loader
sudo pacman -S lib32-mesa vulkan-intel lib32-vulkan-intel vulkan-icd-loader lib32-vulkan-icd-loader

With nvidia-smi I have this, look like it's off.

[peanutstick@peanutstick x264]$ nvidia-smi
Sun Jul 11 15:51:21 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.31       Driver Version: 465.31       CUDA Version: 11.3     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   41C    P3    N/A /  N/A |      0MiB /  2000MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
[peanutstick@peanutstick x264]$ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
	Subsystem: Lenovo Device 39fe
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
	Subsystem: Lenovo Device 39fe
	Kernel driver in use: nvidia

As you can see I have GP107M [GeForce GTX 1050 Mobile].
But when I do this I have an error.

[peanutstick@peanutstick x264]$ nvidia-settings 

ERROR: Unable to load info from any available system

I've tried to set up an automatic config but my system don't restart and I have to use a bacckup.
I tried to follow the instructions in the wiki.

Last edited by peanutstick (2021-07-11 14:57:08)

Offline

#2 2021-07-11 14:20:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Nvidia driver installed but not used

"Tried with the wiki" - what?
Read https://wiki.archlinux.org/title/NVIDIA_Optimus and make up your mind how you intend to use the GPU.
Do *NOT* use nvidia-settings or nvidia-xconfig to generate an Xorg configuration.

Offline

#3 2021-07-11 14:59:43

peanutstick
Member
Registered: 2021-07-04
Posts: 39

Re: Nvidia driver installed but not used

Sorry for my english.
Ok thank, yes I saw that, after an auto config I was stuck with a black screen when I reboot.

Offline

#4 2021-07-11 15:54:04

peanutstick
Member
Registered: 2021-07-04
Posts: 39

Re: Nvidia driver installed but not used

I would like to use NVIDIA GPU when needed and keep it powered off to save power.
So I will use Prime render offload.
There is what I done:

/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

I use lighDM

/etc/lightdm/display_setup.sh

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

I done a chmod +x on the file.
In the file /etc/lightdm/lightdm.conf:

display-setup-script=/etc/lightdm/display_setup.sh

Them I reboot and check with mesa-demos:

glxinfo | grep NVIDIA

But nothing appear.
Wine don't work anymore so I will use a backup and retry.

Offline

#5 2021-07-11 16:17:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Offline

#6 2021-07-11 17:14:39

peanutstick
Member
Registered: 2021-07-04
Posts: 39

Re: Nvidia driver installed but not used

[peanutstick@peanutstick x264]$ prime-run glxinfo
name of display: :0.0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51

Offline

Board footer

Powered by FluxBB