Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 650128

Summary: x11-drivers/nvidia-drivers: add a ConsoleKit seat hook to add acl's to Nvidia device files for currently active session user
Product: Gentoo Linux Reporter: nnnn20430
Component: Current packagesAssignee: Jeroen Roovers <jer>
Status: UNCONFIRMED ---    
Severity: normal CC: freedesktop-bugs, perfinion
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: simple consolekit seat hook shell script

Description nnnn20430 2018-03-10 18:43:38 UTC
Created attachment 523348 [details]
simple consolekit seat hook shell script

On Gentoo Nvidia device files have permission of 0660, and are part of video group, this makes it necessary to be part of the video group to have a graphical X session; On Arch Linux Nvidia device files simply have permission of 0666, so you can use them without having to add the new user to video group; instead of doing that a simple hook can be added to "/usr/lib/ConsoleKit/run-seat.d", named something like "" which adds an acl entry for the currently active session user to all Nvidia device files.

A working script is provided in attachments.