Witko / nvidia-xrun

Utility to run separate X with discrete nvidia graphics with full performance
GNU General Public License v2.0
488 stars 69 forks source link

Debian, I can't make nvidia-xrun work #103

Open pimassart opened 5 years ago

pimassart commented 5 years ago

Hello (First i wanted to apologise if I make error, english is not my first language and I'm not super comfortable with linux)

I run a Debian 9 distribution on a laptop with intel and nvidia GPU. I wanted to run game via Steam Vulkan. I've got bumblebee installed and it seem to only run intel GPU via Vulkan. My research on internet seem to say that nvidia-xrun is the best way to make it work properly.

I've installed "nvidia-xrun" from github by following a tutorial, especially theses part :

apt install git git clone https://github.com/Witko/nvidia-xrun.git cd nvidia-xrun cp nvidia-xorg.conf /etc/X11/ cp nvidia-xinitrc /etc/X11/xinit/ cp nvidia-xrun /usr/bin/ chmod +x /usr/bin/nvidia-xrun

When running command like "nvidia-xrun openbox-session" on a tty I never had anything but errors. I've put the Xorg.2.log attach as you can see Xorg.2.log

One of the error is about nvidia-xorg.conf.d , I've got that file in /etc/X11 but it's a empty file Others are about a Device and Screen not found, that i couldn't figure out.

I've also try to run "openbox-session" on a tty but it don't work either.

Openbox-Message: Échec de l'ouverture de l'affichage depuis la variable d'environnement DISPLAY.

Witch can be translate in : "Failed to open the view from the DISPLAY environment variable."

Sorry for the long post, and thank you for taking the time to read me.

frexes commented 5 years ago

check issue https://github.com/Witko/nvidia-xrun/issues/44

transplier commented 3 years ago

Just got it working (ok, I'm on Ubuntu 21.04, not Debian, but maybe this helps as I ran into the same issues and solutions above). The last step for me was making /etc/X11/xinit/nvidia-xinitrc executable. sudo chmod +x /etc/X11/xinit/nvidia-xinitrc Half Life 2 is now happily rendering on the nvidia gpu.