Manjaro Linux как запускать игры с дискретной видеокарты Nvidia
Драйвера все установил, появила софтина что-то типа Nvidia setting. При запуске появляется на панели задач на пару секунд и пропадает
prime-run <приложение>
sudo rm /etc/X11/xorg.conf.d/90-mhwd.conf
sudo nano /etc/X11/xorg.conf.d/nvidia.conf
Section "ServerLayout"
Identifier "Layout0"
Option "AllowNVIDIAGPUScreens"
Screen 0 "iGPU" 0 0
EndSection
Section "Device"
Identifier "iGPU"
Driver "modesetting"
BusID "PCI:0:2:0" #Проверьте BusID
EndSection
Section "Device"
Identifier "dGPU"
Driver "nvidia"
BusID "PCI:1:0:0" #Проверьте BusID
EndSection
Section "Screen"
Identifier "iGPU"
Device "iGPU"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
EndSubSection
EndSection
Section "OutputClass"
Identifier "iGPU"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "dGPU"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection
Section "ServerFlags"
Option "IgnoreABI" "1"
EndSection
ls /etc/modprobe.d/mhwd*
xrandr --listproviders
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME="nvidia" __VK_LAYER_NV_optimus="NVIDIA_only" firefox
prime firefox
sudo rm /etc/X11/xorg.conf.d/90-mhwd.conf
sudo nano /etc/X11/xorg.conf.d/optimus.conf
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
ls /etc/modprobe.d/mhwd*
sudo nano /etc/modprobe.d/nvidia.conf
sudo nano /etc/modprobe.d/nvidia-drm.conf
sudo nano /usr/local/bin/optimus.sh
sudo chmod a+rx /usr/local/bin/optimus.sh
sudo nano /etc/lightdm/lightdm.conf
sudo nano /usr/local/share/optimus.desktop
sudo ln -s /usr/local/share/optimus.desktop /usr/share/gdm/greeter/autostart/optimus.desktop
sudo ln -s /usr/local/share/optimus.desktop /etc/xdg/autostart/optimus.desktop
sudo nano /usr/share/sddm/scripts/Xsetup
sudo chmod a+rx /usr/share/sddm/scripts/Xsetup
glxinfo | grep -i vendor
nvidia-uninstall