Template:VIDEO CARDS/Permissions/testcases

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is the template test case page for Template:VIDEO CARDS/Permissions and its sandbox version. The page may need to be refreshed to update the examples (click "Refresh" from the "More" menu).
No parameter
Wiki code {{VIDEO_CARDS/Permissions}}

Main version

If the acl USE flag is enabled globally and elogind is being used (default for desktop profiles) permissions to video cards will be handled automatically. It is possible to check the permissions using getfacl:

user $getfacl /dev/dri/card0 | grep larry
user:larry:rw-

A broader solution is to add the user(s) needing access the video card to the video group:

root #gpasswd -a larry video

Note that users will be able to run X without permission to the DRI subsystem, but hardware acceleration will be disabled.

Sandbox version
Parameter: unnamed
Wiki code {{VIDEO_CARDS/Permissions|nvidia}}

Main version

The user(s) needing to access the video card will need to be added to the video group:

root #gpasswd -a larry video

Note that users will be able to run X without permission to the DRI subsystem, but hardware acceleration will be disabled. For Wayland sessions not setting this may result in a very low FPS.

Sandbox version