I have an integrated graphics card (Intel) and a discrete card (Nvidia). When booting, the nvidia card is automatically selected by X. I want X to use the intel card and want to reserve the nvidia card for computational tasks.
I have tried to change the 90-nvidia.conf in /etc/X11/xorg.conf.d to use the intel card instead. However, the directory seems to be recreated on boot on automatically falls back to the previous setting.
@sboehringer Hi, get rid of any xorg.conf file it’s not needed, make sure suse-prime (this is the likely culprit of the re-creating) and bbswitch stuff is removed and locked. Make sure nvidia_drm.modeset=1 or maybe nosimplefb=0 is in your grub options (test at boot by adding to grub options first).
Install switcheroo-control package and run systemctl enable --now switcheroo-control.service then (you don’t say which DE in use) you can use switcherooctl <some app>to use the Nvidia gpu. The likes of Libreoffice will use automatically as compute, which can be visible via the likes of nvidia-smi or nvtop.
Thank you, this solved my problem. I now actually use suse-prime to switch the graphics cards. At the moment, I do not get desktop effects on the intel card, but that is forgivable. I have already issued prime-select intel2 as an alternative to prime-select intel and will wait for the next logout/login cycle to see whether desktop effects return.
BTW the naming is really bad and should better indicate what the tool is doing. I did search for packages around x11/graphics/intel/nvidia with zypper but suse-prime did not turn up.