You are not logged in.

#1 2023-12-03 05:43:31

linuxsimpleton43
Member
Registered: 2022-03-24
Posts: 33

X Server config for prime

So I saw a reddit post recently and decided to try out the setup with my RTX 2070 Super and a AMD RX580. I removed my xorg.conf file and installed the required packages for prime and switched my display port cables to my amd gpu. From the start everything worked perfectly and I even got better performance from my nvidia gpu as it wasn't doing any of the hardware acceleration for my desktop environment. The only issue is that when I try to define a per-device config file in /etc/X11/xorg.conf.d/ for overclocking the nvidia card I can no longer use it for anything. What kind of options do I need to include to make the overclock work (I used coolbits 28) while also making the card available to be used with prime.

Offline

#2 2023-12-03 07:48:51

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: X Server config for prime

What kind of config did you attempt and what was the resulting xorg lgo?
A pitfall might be that the server will use the first configured device, so you might have to reference the AMD GPU *also* (and address it eg. by its bus ID) or even set the nvidia device inactive, see https://wiki.archlinux.org/title/PRIME# … rimary_GPU as off-topic but generic pattern.

Online

#3 2023-12-03 23:10:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: X Server config for prime

Don't use device sections, use an OutputClass containing everything you'd put into your Device section and add MatchDriver "nvidia-drm" and/or MatchDriver "amdgpu" for respective configurations.

A Device section disables auto-detection of devices in favor of your configuration, OutputClass amends a detected device with specific config options.

Offline

Board footer

Powered by FluxBB