Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRM Permissions #12

Closed
hackel opened this issue Jun 1, 2017 · 3 comments
Closed

DRM Permissions #12

hackel opened this issue Jun 1, 2017 · 3 comments
Labels

Comments

@hackel
Copy link

hackel commented Jun 1, 2017

The recent change that made /dev/dri readonly borked up hardware acceleration for me. It was never able to open the device and so reverted to hardware rendering.

I just changed this line (2080) back and it fixed it:
[ "$Gpu" = "yes" ] && Dockercommand="$Dockercommand --device=/dev/dri"

@mviereck
Copy link
Owner

mviereck commented Jun 1, 2017

Thanks for your feedback!
Curious, hardware acceleration works fine here with read-only flag.
Does it work if you set rw flag? That should be enough, avoiding the default (and imho unnecessary) mknod flag.

 [ "$Gpu" = "yes" ] && Dockercommand="$Dockercommand --device=/dev/dri:rw"

@mviereck mviereck added the bug label Jun 1, 2017
@hackel
Copy link
Author

hackel commented Jun 2, 2017

Yes, with rw it worked fine. Here's the error I'm seeing:

libGL error: failed to open drm device: Operation not permitted
libGL error: failed to load driver: i965
fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "Gallium 0.4 on llvmpipe (LLVM 3.9, 256 bits)").

mviereck added a commit that referenced this issue Jun 2, 2017
# 02.06.2017 V3.5.4  set rw access for /dev/dri (#12)
# 31.05.2017         disable extension XTEST if using wm from host (to avoid abuse of context menu of openbox and the like)
@mviereck
Copy link
Owner

mviereck commented Jun 2, 2017

I've set rw flag for /dev/dri in V3.5.4. Thanks!

@mviereck mviereck closed this as completed Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants