Comments (6)
From where do you get the information that glvnd is required for primus? I haven't tested it extensively (yet) but:
PRIMUS_libGLa=/usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.0 PRIMUS_libGLd=/usr/lib/x86_64-linux-gnu/libGL.so.1 LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/primus glxgears
seems to work perfectly on my system. Here:
libGLX_nvidia.so.0
is the glvnd-library from nvidialibGL.so.1
is the GLVND-dispatch version, that will use the mesa driver (based on the primary display being rendered by intel/mesa)/usr/lib/x86_64-linux-gnu/primus
contains thelibGL.so.1
for the application to load from primus.
from primus.
Just a funny, possibly related remark: on my Debian system with primus and thus non-GLVND nvidia libraries installed, when I manually start secondary Xorg that renders everything using nvidia and displays through intel, and run glxgears, the GLVND-dispatch version of libGL.so.1 happily uses non-GLVND nvidia libraries and it works. Haven't tested this with anything more complex, though. But it seems to suggest that as far as glxgears is concerned, there isn't very much of a difference between the GLVND and non-GLVND version of nvidia libraries.
from primus.
@liskin How are you sure that the glxgears are using the nvidia libraries? What exactly are you running? When I run: optirun bash
in one terminal (to force-start the secondary Xorg), and LD_DEBUG=libs glxgears
in another terminal, I can pretty clearly see that these glxgears don't use nvidia.
from primus.
@felixdoerre When I say "secondary Xorg that renders everything using nvidia", I don't mean the kind of secondary headless Xorg that optirun/bumblebee starts. I'm talking about a real foreground Xorg that I interact with using my mouse and keyboard and that uses xrandr --setprovideroutputsource modesetting NVIDIA-0
to attach the intel outputs for displaying. I don't think it's possible to use intel GL with such a setup (except perhaps using xrandr --setprovideroffloadsink
or DRI3, neither of which I enabled for this test). Also, glxinfo tells me I'm using the nvidia drivers.
from primus.
(The setup I'm describing is somewhat like https://wiki.archlinux.org/index.php/Nvidia-xrun, but tweaked a bit not to require root.)
from primus.
aah ok, thanks for the explanation.
from primus.
Related Issues (20)
- Can't run VLC under bumblebee/primus HOT 4
- install primus on centos 7 HOT 1
- can't use pyopengl
- Error building primus with clang HOT 1
- Tag a release? HOT 4
- Running any program with primusrun results in `X Error of failed request: BadValue` HOT 3
- primus breaks on fedora with mesa-13.0.3-6 HOT 33
- Applications crash on exit HOT 2
- Primus not working with latest nvidia drivers. HOT 2
- primusrun with suid binaries. HOT 3
- your contact in Gentoo HOT 2
- primusrun segfaults where optirun doesn't (nvidia MX150) HOT 1
- Threaded openGL HOT 3
- Segment fault on Xorg 1.20 HOT 29
- primus: fatal: need absolute library path: LibraryPath=/usr/lib/x86_64-linux-gnu/libGL.so.1 HOT 3
- primus: fatal: failed to open main X display HOT 1
- primusrun on CUDA Applications not Recognizing GPU HOT 1
- Wine applications cannot run through primus
- Minecraft 1.18.1 freezes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primus.