Template:VIDEO CARDS/Permissions

From Gentoo Wiki
Jump to:navigation Jump to:search
[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Use this template to show instructions for X.Org video drivers (intel, radeon, nouveau, etc.). Additional also nvidia-drivers is supported.

Parameters

unnamed (set to nvidia) (optional)
Show instructions for nvidia-drivers.

Usage

See the template's testcases:

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

See also

Note
The above documentation is transcluded from Template:VIDEO CARDS/Permissions/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)