[systemd-devel] Tagging NVIDIA graphics devices (with proprietary drivers) as master-of-seat

2014-11-07 Thread Laércio de Sousa
Hi there!

For anyone interested in tagging NVIDIA graphics devices with proprietary
drivers as master-of-seat for use with logind, I suggest the following
udev rule:

SUBSYSTEM==drm, KERNEL==card[0-9]*, ATTRS{vendor}==0x10de,
DRIVERS==nvidia, TAG+=master-of-seat

If no /dev/dri/card* kernel devices are available in the system (e.g. if
linux drm module is not loaded), the following alternative works, too:

SUBSYSTEM==pci, ATTRS{vendor}==0x10de, DRIVER==nvidia, TAG+=seat,
TAG+=master-of-seat

NOTE: These rules can be adapted for AMD proprietary drivers. Just replace
0x10de with 0x1002 and nvidia with fglrx.

I don't know if there's any upstream interest in shipping these rules with
systemd (I guess not), but at least one downstream (Ubuntu) already ships
them (with NVIDIA/AMD driver packages). I've already posted these rules in
NVIDIA Developer Forums.

Hope it may be useful.
-- 
*Laércio de Sousa*
*Orientador de Informática*
*Escola Municipal Professor Eulálio Gruppi*
*Rua Ismael da Silva Mello, 559, Mogi Moderno*
*Mogi das Cruzes - SPCEP 08717-390*
Telefone: (11) 4726-8313
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Tagging NVIDIA graphics devices (with proprietary drivers) as master-of-seat

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 11:41, Laércio de Sousa 
(laercioso...@sme-mogidascruzes.sp.gov.br) wrote:

 Hi there!
 
 For anyone interested in tagging NVIDIA graphics devices with proprietary
 drivers as master-of-seat for use with logind, I suggest the following
 udev rule:
 
 SUBSYSTEM==drm, KERNEL==card[0-9]*, ATTRS{vendor}==0x10de,
 DRIVERS==nvidia, TAG+=master-of-seat
 
 If no /dev/dri/card* kernel devices are available in the system (e.g. if
 linux drm module is not loaded), the following alternative works, too:
 
 SUBSYSTEM==pci, ATTRS{vendor}==0x10de, DRIVER==nvidia, TAG+=seat,
 TAG+=master-of-seat
 
 NOTE: These rules can be adapted for AMD proprietary drivers. Just replace
 0x10de with 0x1002 and nvidia with fglrx.
 
 I don't know if there's any upstream interest in shipping these rules with
 systemd (I guess not), but at least one downstream (Ubuntu) already ships
 them (with NVIDIA/AMD driver packages). I've already posted these rules in
 NVIDIA Developer Forums.

Yes, we don't want to ship rules for closed-source or out-of-tree
drivers. Rules for that should really be shipped with the drivers
package, instead.

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel