You are not logged in.

#1 2024-01-04 19:27:19

TheCheddarCheese
Member
From: Denmark
Registered: 2023-12-13
Posts: 6

Can't switch to dedicated Nvidia GPU, black screen on Xorg

I tried to force my system to use the dedicated graphics card following https://wiki.archlinux.org/title/NVIDIA … phics_only , but when I rebooted the system all I got was a black screen. Removing the changes from both configs fixed the issue, but I'm still on integrated graphics.

Xorg log: (not exactly sure how much of it is relevant so i pasted the entire thing)
https://pastebin.com/GQGFCNWU

lsmod | grep nvidia output:

nvidia_drm            118784  3
nvidia_modeset       1585152  3 nvidia_drm
nvidia_uvm           3506176  0
nvidia              62390272  31 nvidia_uvm,nvidia_modeset
video                  77824  2 i915,nvidia_modeset

lspci -k | grep -A 2 -E "(VGA|3D)":

00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
        DeviceName: Intel(R) UHD Graphics 630
        Subsystem: Hewlett-Packard Company CoffeeLake-H GT2 [UHD Graphics 630]
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
        DeviceName: NVIDIA GeForce GTX 1050
        Subsystem: Hewlett-Packard Company GP107M [GeForce GTX 1050 Ti Mobile]

.xinitrc after modification:

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec startkde

i pretend to know what i'm doing

Offline

#2 2024-01-04 21:49:20

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

Re: Can't switch to dedicated Nvidia GPU, black screen on Xorg

Unrelated, but your xinitrc is broken, last link below - pay attention to what include at least.

You don't need to --setprovideroutputsource or --auto, there's only one output (the internal display) it's wired to the intel chip and you're running on that in regular prime fashion.
(Though I suspect the xorg log is actually from a run where you reverted your attempts and does not reflect the problem at all)

I tried to force my system to use the dedicated graphics card

1. Why? You cannot run the system on the nvidia chip (only) as the output is on the intel chip, unless
2. ideally, just disable the IGP in the BIOS
3. If that's not an option and you can reason "1", please post the relevant xorg log (before starting an x11 server w/ reverted settings) as well as the actual config files you added

nb. that if you (can) disable the IGP in the BIOS, the i915 module will no longer protect you from the simplydumb device, so enable https://wiki.archlinux.org/title/NVIDIA … de_setting
Do NOT add fbdev=1 for the moment, but he nvidia_drm.modeset=1 /has/ to be in the kernel command line (modprobe.conf won't cut it here)

Offline

Board footer

Powered by FluxBB