summaryrefslogtreecommitdiffstats
path: root/src/login/71-seat.rules.in (follow)
Commit message (Collapse)AuthorAgeFilesLines
* meson: move udev rules to rules.d/Zbigniew Jędrzejewski-Szmek2022-05-051-81/+0
|
* login: use a hwdb entry for tagging Parallels' fb devices with ↵Franck Bui2021-07-051-5/+0
| | | | | | 'master-of-seat' tag This assumes that (vesa)fb driver is used as fallback.
* login: use a hwdb entry for tagging HyperV's fb devices with ↵Franck Bui2021-07-051-3/+0
| | | | | | | 'master-of-seat' tag Graphic devices that don't do DRM and relies on fb devices are now listed in hwdb. Dedicated udev rules are no more needed.
* login: XGI Z7/Z9 (XG20 core) graphic chip requires master-of-seat to be setFranck Bui2021-07-051-0/+5
| | | | | | | | | | | | | This graphic chip doesn't have a DRM driver and fall back to vesa-framebuffer driver. Without this patch, users of such chip suddenly see their GUI broken without any indication or reason of what happened (no error message). Hence this regression is near to impossible to troubleshoot for end users. Such case was reported https://bugzilla.opensuse.org/show_bug.cgi?id=1187154. Rather than adding another exception in the udev rules to deal with such HWs, they instead get their own hwdb file '60-seat.hwdb'.
* Revert "login: XGI Z7/Z9 (XG20 core) graphic chip requires master-of-seat to ↵Lennart Poettering2021-07-011-4/+0
| | | | | | be set" This reverts commit b25389d2bbc99aee82414d9d76ce1192f4b6fe52.
* login: XGI Z7/Z9 (XG20 core) graphic chip requires master-of-seat to be setFranck Bui2021-06-301-0/+4
| | | | | | | | | This graphic chip doesn't have a DRM driver and fallback to vesa-framebuffer driver. Without this patch, users of such chip suddenly see their GUI broken without any indication or reason of what happened (no error message). Hence this regression is near to impossible to troubleshoot for end users.
* meson: use jinja2 for src/loginZbigniew Jędrzejewski-Szmek2021-05-191-2/+4
| | | | | {% raw %} is needed to avoid trouble with {%k, which jinja thinks is trying to access variable 'k'.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* login: allow individual USB ports to be assigned to seatsAdam Nielsen2020-06-091-0/+5
| | | | | Assigning seats to specific USB ports lets the devices plugged into them inherit the port's seat assignment.
* Revert "Support Plugable UD-PRO8 dock"Zbigniew Jędrzejewski-Szmek2020-02-101-4/+1
| | | | | | | | | This reverts commit 95f2b4dd237faa57fd3e93245d560e47cdedfc2c. Unfortunately the same usb hub is used in other places, and causes numerous regressions (#14822, https://bugzilla.redhat.com/show_bug.cgi?id=1800820). Let's revert until a non-regressing approach is found.
* Support Plugable UD-PRO8 dockezst0362020-01-081-1/+4
| | | Add support for Plugable Pro8 docking station for auto-configuring seat
* udev: tag any display devices as master-of-seat when nomodeset is usedZbigniew Jędrzejewski-Szmek2019-10-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #13773. See also https://bugzilla.redhat.com/show_bug.cgi?id=1728240, https://github.com/sddm/sddm/issues/1204. When nomodeset is used on the kernel command line, there is no graphics device that the kernel knows, so we don't tag anything as master-of-seat, and seat0 has CanGraphical=no. $ loginctl seat-status seat0 ; loginctl show-seat seat0 seat0 Devices: ├─/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 │ input:input0 "Power Button" ├─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1 │ usb:usb1 │ └─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-1/1-1:1.0/0003:0627:0001.0001/input/input4 │ input:input4 "QEMU QEMU USB Tablet" ├─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb2 │ usb:usb2 ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0 │ sound:card0 "Intel" ├─/sys/devices/platform/i8042/serio0/input/input1 │ input:input1 "AT Translated Set 2 keyboard" │ ├─/sys/devices/platform/i8042/serio0/input/input1/input1::capslock │ │ leds:input1::capslock │ ├─/sys/devices/platform/i8042/serio0/input/input1/input1::numlock │ │ leds:input1::numlock │ └─/sys/devices/platform/i8042/serio0/input/input1/input1::scrolllock │ leds:input1::scrolllock └─/sys/devices/platform/i8042/serio1/input/input3 input:input3 "ImExPS/2 Generic Explorer Mouse" Id=seat0 CanMultiSession=yes CanTTY=yes CanGraphical=no Sessions= IdleHint=yes IdleSinceHint=0 IdleSinceHintMonotonic=0 Let's tag the PCI device with "master-of-seat", so we get CanGraphical=yes, and "seat", so it is show as part of the seat: [fedora@f31-bios ~]$ loginctl seat-status seat0 ; loginctl show-seat seat0 seat0 Devices: ├─/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 │ input:input0 "Power Button" ├─/sys/devices/pci0000:00/0000:00:01.0 │ [MASTER] pci:0000:00:01.0 ├─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1 │ usb:usb1 │ └─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-1/1-1:1.0/0003:0627:0001.0001/input/input4 │ input:input4 "QEMU QEMU USB Tablet" ├─/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb2 │ usb:usb2 ├─/sys/devices/pci0000:00/0000:00:1b.0/sound/card0 │ sound:card0 "Intel" ├─/sys/devices/platform/i8042/serio0/input/input1 │ input:input1 "AT Translated Set 2 keyboard" │ ├─/sys/devices/platform/i8042/serio0/input/input1/input1::capslock │ │ leds:input1::capslock │ ├─/sys/devices/platform/i8042/serio0/input/input1/input1::numlock │ │ leds:input1::numlock │ └─/sys/devices/platform/i8042/serio0/input/input1/input1::scrolllock │ leds:input1::scrolllock └─/sys/devices/platform/i8042/serio1/input/input3 input:input3 "ImExPS/2 Generic Explorer Mouse" Id=seat0 CanMultiSession=yes CanTTY=yes CanGraphical=yes Sessions= IdleHint=yes IdleSinceHint=0 IdleSinceHintMonotonic=0
* udev: tag "leds" and "backlight" devices for association to a seatLennart Poettering2019-05-241-0/+4
| | | | | | These devices do not become user-accessible this way, but they are logically assigned to a seat, which makes a lot of sense, since they are human-facing output devices, and such should belong to one.
* login: mark nomodeset fb devices as master-of-seatAdam Jackson2019-03-131-0/+3
| | | | | | | | | | | | When 'nomodeset' is specified, there's no DRM driver to take over from efifb. This means no device will be marked as a seat master, so gdm will never find a sufficiently active seat to start on. I'm not aware of an especially good way to detect this through a proper kernel API, so check for the word 'nomodeset' on the command line and allow fbdev devices to be seat masters if found. For https://bugzilla.redhat.com/show_bug.cgi?id=1683197.
* login: HyperV requires master-of-seat to be setMike Lothian2019-03-041-0/+4
| | | | | | v2: Update comment provided by Lennart Fixes: https://github.com/systemd/systemd/issues/11299
* logind: udev rule for Parallels video adapterRoman Kulikov2019-02-221-0/+5
| | | | | | | | | | | | | | This enables graphical capability for a video adapter of Parallels virtualization platform (Parallels Desktop for Mac product) which is not a DRM device at the moment. This fixes GUI in Fedora 29 guest on Parallels Desktop where gdm now strictly checks for CanGraphical property of a seat, see [1]. Should be noted that there's no in-kernel driver for Parallels video at the moment so device matching is done by vid/pid. [1] https://gitlab.gnome.org/GNOME/gdm/merge_requests/37
* login: Don't mark framebuffer devices as master-of-seat devicesMarco Trevisan (Treviño)2018-11-061-1/+1
| | | | | | | | | | | | | | | | Currently we consider any framebuffer device as enough to have a valid graphical session, but this might lead to many false postives like in the case of framebuffer devices that have a linked drm card which is still in the process of being added, or for vesa fb, and so it doesn't ensure us that we can have a proper graphical session. Since these days we normally don't consider anything without a DRM card able to provide a full graphical session, let's not set this at this level. Drivers which can provide a graphical session with the sole fb are still free to mark any device as `master-of-seat` Fixes #10435
* Add SPDX license headers to various assorted filesZbigniew Jędrzejewski-Szmek2017-11-191-0/+2
|
* treewide: fix typosTorstein Husebø2015-07-061-1/+1
|
* login: add rule for qemu's pci-bridge-seatGerd Hoffmann2015-07-021-0/+5
| | | | | | | | | | | | | | Qemu provides a separate pci-bridge exclusively for multi-seat setups. The normal pci-pci bridge ("-device pci-bridge") has 1b36:0001. The new pci-bridge-seat was specifically added to simplify guest-side multiseat configuration. It is identical to the normal pci-pci bridge, except that it has a different id (1b36:000a) so we can match it and configure multiseating automatically. Make sure we always treat this as separate seat if we detect this, just like other "Pluggable" devices. (David: write commit-message)
* logind: Add a udev rule to tag all DRM cards with master-of-seatPhilip Withnall2015-06-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed for generic DRM devices like the VirtualBox vboxvideo driver, which exposes itself as a generic, ID-less DRM device at /dev/dri/card0 (after applying this commit): $ udevadm info --query=all --path \ /sys/devices/pci0000:00/0000:00:02.0/drm/card0 P: /devices/pci0000:00/0000:00:02.0/drm/card0 N: dri/card0 E: DEVNAME=/dev/dri/card0 E: DEVPATH=/devices/pci0000:00/0000:00:02.0/drm/card0 E: DEVTYPE=drm_minor E: ID_FOR_SEAT=drm-pci-0000_00_02_0 E: ID_PATH=pci-0000:00:02.0 E: ID_PATH_TAG=pci-0000_00_02_0 E: MAJOR=226 E: MINOR=0 E: SUBSYSTEM=drm E: TAGS=:master-of-seat:seat:uaccess: E: USEC_INITIALIZED=59893 Without this patch, the capabilities for a seat on a VirtualBox installation of systemd v219 incorrectly show it as non-graphical, even though I can type these commands from an xterm: $ loginctl show-seat seat0 Id=seat0 CanMultiSession=yes CanTTY=yes CanGraphical=no … https://bugs.freedesktop.org/show_bug.cgi?id=90822
* Move udevadm to rootbindirMichael Biebl2013-03-111-1/+1
| | | | | The udevadm utility is needed during early boot, so move it to rootbindir to support split-/usr configurations.
* logind: rename "seat-master" tag to "master-of-seat"Lennart Poettering2013-02-091-1/+1
| | | | | | | | | | | We currently enforce that seats are to be named in the form of "seatXXX", i.e. need to begin with the 4 characters "seat". Thus, "seat-master" would qualify as a seat name. As seat names are frequently used as tags on devices, the "seat-master" tag might hence confuse logind if the user decides to name a seat "seat-master". Hence, avoid any ambuigity: let's rename the "seat-master" tag to "master-of-seat".
* logind: Capability of making seats without framebuffer devicesOleg Samarin2013-01-071-1/+1
| | | | | file logind.c: The seat is now activated by any device with udev tag "seat-master" file 71-seat.rules.in: All framebuffer devices have this tag
* logind: add new loginctl lock-sessions commandLennart Poettering2012-07-291-0/+2
|
* login: properly detect MIMO USB displaysLennart Poettering2012-05-311-0/+46
MIMO USB displays use a generic VID/PID for the hub component. With a bit of trickery we can detect them by the VID/PID of the graphics component.