Package Details: nvidia-xrun 0.3-0

Git Clone URL: (read-only, click to copy)
Package Base: nvidia-xrun
Description: Script to run dedicated X server with discrete nvidia graphics
Upstream URL:
Licenses: GPL
Submitter: Witko
Maintainer: acxz
Last Packager: acxz
Votes: 42
Popularity: 0.182419
First Submitted: 2015-06-10 20:36 (UTC)
Last Updated: 2022-02-23 01:45 (UTC)

Latest Comments

ualkyire commented on 2022-02-09 22:31 (UTC)

nvidia-xrun is no longer working for nvidia-470xx-dkms, I'm getting a glitchy screen when I attempt to start Xorg using nvidia-xrun openbox in a new tty.

jptiz commented on 2021-12-13 10:39 (UTC)

Ok, running nvidia-xrun i3 manually works! I don't think that's intended, tho.

jptiz commented on 2021-12-13 02:35 (UTC)

@X_m7 I did what you suggested (created a .conf with the contents stated on the Optimus wiki - even if I don't use Optimus -, and other directories were already empty) and that led to some progress, now instead of crashing, nvidia-xrun startx, shows a half-second black-screen (like it was switching to X session), but then gets back to tty like it had nothing to do or where to show anything.

X_m7 commented on 2021-11-15 12:10 (UTC) (edited on 2021-11-15 12:11 (UTC) by X_m7)

In case anyone ran into trouble with the latest Xorg update (which caused it to crash when nvidia-xrun is used) replacing the contents of the /etc/X11/nvidia-xorg.conf with the stuff suggested in for the /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf file might help. Deleting the contents of the /etc/X11/nvidia-xorg.conf.d folder might help too, although I didn't need to do that last bit.

Thanks to the folks over at the nvidia-xrun-git AUR package comments for that tip.

NickGeek commented on 2021-01-30 11:01 (UTC)

Agreed on replacing nvidia with NVIDIA-MODULE. You don't need to change anything with the kernel because that comes from bbswitch and you can just use bbswitch-dkms to get around that.

MartinX3 commented on 2020-09-27 21:15 (UTC)

If you run the LTS kernel, it wants to force you to install the packages "nvidia", instead "nvidia-lts" and "kernel" instead "kernel-lts". Please fix it.

nariox commented on 2020-08-03 14:45 (UTC)

Could you replace 'nvidia' with 'NVIDIA-MODULE'? This way, it will work with 'nvidia-dkms' and other nvidia driver variants (lts, etc)

as3ii commented on 2020-04-06 12:54 (UTC) (edited on 2020-04-06 12:55 (UTC) by as3ii)

Problem while updating nvidia-dkms

error: failed to prepare transaction (could not satisfy dependencies)

:: installing nvidia-dkms (440.64-10) breaks dependency 'nvidia' required by nvidia-xrun

friday13 commented on 2020-03-12 20:08 (UTC)

390xx support ?

riazufila commented on 2020-02-16 04:03 (UTC) (edited on 2020-02-16 04:05 (UTC) by riazufila)

@Witko Sorry to bother you. But does nvidia-xrun not support nvidia-390xx-dkms? It seems like the same goes to nvidia-xrun-git as well.

protolomeo commented on 2020-02-05 15:25 (UTC)

It works for me, I've just tried.

flowingisart commented on 2020-02-04 10:28 (UTC)

As of the latest nvidia updates it would seem that this no longer works :(

jshap commented on 2019-11-04 17:43 (UTC)

this package is not out of date afaict

protolomeo commented on 2019-07-22 23:18 (UTC)

Hi Witko, take all the time you need, no need to hurry. Just wanted to know if a release is coming, so, thank you very much for your work and for your answer!

Witko commented on 2019-07-22 10:47 (UTC)

Hi protolomeo, i'll try to do it today/tomorrow.

Best Regards

protolomeo commented on 2019-07-21 21:26 (UTC)

Hi @Witko, sorry to bother, but are you planning on releasing 0.4 ? Would love to use the -pm systemd service but don't want to install the related AUR package as it is already merged upstream. Thanks in advance!

jshap commented on 2019-07-12 22:08 (UTC)

this should not have been flagged as out of date afaict

Witko commented on 2019-05-03 13:52 (UTC)

@FFY00 - Sure, is there any cooperation required from my side? @patryk - Not sure, it would require a bit of investigation. @Hivemind - as far as i know it would have to provide nvidia and then in deps would be only nvidia

doctorzeus commented on 2019-04-16 11:04 (UTC)

Huge thanks for this, thought I was screwed with Nvidia Optimus until I saw this on the arch wiki!

patryk commented on 2019-03-08 11:41 (UTC) (edited on 2019-03-08 11:42 (UTC) by patryk)

Could you add support for nvhda module?


sowieso commented on 2019-03-02 04:01 (UTC)

Doesn't work without sudo installed, so you should add it as a dependency.

FFY00 commented on 2019-02-22 21:21 (UTC)

I want to move this to the official repos, are you ok with this?

PedroHLC commented on 2018-10-20 14:39 (UTC)

why does it depends on mesa-libgl instead of just libgl, or opengl-driver, or just mesa?

Obscurator commented on 2018-05-25 21:10 (UTC)

Thank you very much! It realy work flawless and more effective than optirun!

hivemind commented on 2018-05-23 15:33 (UTC)

This won't install if you're getting your Nvidia driver from the nvidia-390xx package, but I changed the dependency in the PKBUILD from 'nvidia' to 'nvidia-390xx' and it installed OK and seems to be working.

Is there a way you can make this package recognise it as an alternative dependency or something?

Tommy commented on 2017-11-29 23:40 (UTC)

Great piece of software, and thanks to the guy who PKGBUILD'd it. Very userful. If i may add a suggestion, it would be nice if one can launch it at boot, to be able to directly boot with the NVIDIA GPU on.

Witko commented on 2017-04-29 12:04 (UTC)

To be honest with you guys im not entirely familiar with the policies regarding dependencies. But from a functionality point of view bbswitch is not optional. The script would crash on missing bbswitch executable. Also without nvidia it does not make too much sense to have this package. I definetely agree though, to have the base dependency instead of specific provider(e.g. jdk8 vs java-runtime) but I'm not sure which one that would be. So if you give me the correct dependency i will happily update it.

IncredibleLaser commented on 2017-04-29 08:47 (UTC)

fludardes, no, that'd be wrong and also wouldn't help in this case. I don't know why this is the Arch policy, but official dkms-packages don't provide their base. However, no other package has a hard dependency on kernel modules so this doesn't matter, e.g.: official bumblebee does not depend on nvidia and bbswitch, they're only optional. In the same spirit, this package should only optionally depend on nvidia and bbswitch. I don't really agree with this policy and think that dkms packages should provide their base so that packages like this one could properly depend. However it's also true that packages don't depend on the kernel and kernel modules are part of it.

fludardes commented on 2017-01-18 13:28 (UTC)

Sorry, I'm not very familiar with packaging and PKGBUILD's, but maybe simple `nvidia-dkms` and `bbswitch-dkms` should be added as possible alternative dependencies? I have recently manually edited PKGBUILD, and it seems that everything worked as it should with them. It is actual for those who use kernels such as `linux-zen` and '-dkms' versions of that packages. Please, forgive me if I'm wrong.

vosester commented on 2016-09-08 23:01 (UTC)

Witko could we get a pkgver bump to 0.3.0, please?

Aditya1212 commented on 2016-07-16 02:49 (UTC)

Hey you need to fix some a few things in the script, change execute "sudo modprobe nvidia" to execute "sudo modprobe nvidia-drm" And change execute "sudo rmmod nvidia" to execute "sudo modprobe -r nvidia_drm" Else this script is good. Have been looking for somthing like this for a while now

Witko commented on 2016-01-23 08:07 (UTC)

Hi All, i would like to ask you to post here only comments that are related to the package itself. Issues related to the actual functionality, with running specific stuff etc. should go to the github page - create an issue for it. Thanks!

tedbell commented on 2016-01-23 01:58 (UTC)

Witko: Are you asking me? If so it doesn't go blank when I run the game, it goes blank when I run the scripte and stays blank. I have an optimus device. The game I am running is TS2016 (train simulator)

aradan_d commented on 2016-01-08 19:15 (UTC) (edited on 2016-01-08 19:16 (UTC) by aradan_d)

Sorry, I just ran again yaourt -S nvidia-xrun and now it installs ok. Must have changed an environment variable or something. I deleted my post. I will delete this one in the future too.

Witko commented on 2016-01-08 08:24 (UTC) (edited on 2016-01-08 08:35 (UTC) by Witko)

In which phase do you get this? I just installed it fine right now. Isnt this happening while running? What do you run?

tedbell commented on 2015-12-30 01:18 (UTC)

When I try to run a game with wine (nvidia-xrun wine <game>) I get a blank screen. I know this works because I tried it with glxspheres and got ten times the frame rate.

Witko commented on 2015-12-21 08:49 (UTC) (edited on 2015-12-21 08:51 (UTC) by Witko)

Hi Salsadoom, the fix for you would be to uncomment the AllowEmptyInitialConfiguration in /etc/X11/nvidia-xorg.conf For me it works as it is. Also i'd like to ask you to try it this way: 1) create dir /etc/X11/nvidia-xorg.conf.d 2) create there a file 10-nvidia-empty-conf.conf (name it your way :) ) 3) put this into the file: Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "Yes" # Option "UseDisplayDevice" "none" EndSection 4) check whether it works Im curious whether this will override the settings in nvidia-xorg.conf. This would be then the most desired way how to do config adjustments. I wanted to add such dir into the package itself but didnt want to spend too much time on it. So if it will work i will do so. Thank you!

salsadoom commented on 2015-12-20 20:30 (UTC)

Hey! Not yet :) But a lot closer, the xorg log shows a lot of different output, but doesn't quite start. I've pasted it here maybe this makes a bit more sense to you. Cheers! Merry xmas to you to!

Witko commented on 2015-12-20 19:35 (UTC)

Hi, i believe i fixed the issue with no screens found. Please try it out. Sorry for delay. Merry Christmas!

Witko commented on 2015-12-09 09:13 (UTC)

Hi, this was definetely working. Now it seems that after a change in X it does not. I will fix this(i hope) once i have some time. If you have any problem create an issue for it and i will try to take care of it. Thanks!

salsadoom commented on 2015-12-09 01:56 (UTC) (edited on 2015-12-09 02:19 (UTC) by salsadoom)

Does this work for anyone? I get no screens found on my system. It flips on the nvidia card, but just shoots out that error. Tried running it with X running (but from a proper console tty), and without, same error. EDIT: driver loads ok too. Made sure the BusID was fine, it was.

Witko commented on 2015-11-26 22:18 (UTC)

Hi, im sorry but nvidia-dkms conflicts with nvidia but does not provide it. So it means the dependency would have to be replaced. Try to ask the maintainer of nvidia-dkms to add provides field. If not possible I might create nvidia-xrun-dkms package. But I would strongly prefer the first solution(if applicable).

tsirif commented on 2015-11-26 21:06 (UTC)

Can you also include as a dependency the official repository's nvidia-dkms package?