You are not logged in.
Pages: 1
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-loaderWith 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: nvidiaAs 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 systemI'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
"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
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
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"
EndSectionI use lighDM
/etc/lightdm/display_setup.sh
#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --autoI done a chmod +x on the file.
In the file /etc/lightdm/lightdm.conf:
display-setup-script=/etc/lightdm/display_setup.shThem I reboot and check with mesa-demos:
glxinfo | grep NVIDIABut nothing appear.
Wine don't work anymore so I will use a backup and retry.
Offline
https://archlinux.org/packages/extra/any/nvidia-prime/
prime-run glxinfoOffline
[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: 51Offline
Pages: 1