]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/login/71-seat.rules
relicense to LGPLv2.1 (with exceptions)
[thirdparty/systemd.git] / src / login / 71-seat.rules
1 # This file is part of systemd.
2 #
3 # systemd is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
7
8 ACTION=="remove", GOTO="seat_end"
9
10 TAG=="uaccess", SUBSYSTEM!="sound", TAG+="seat"
11 SUBSYSTEM=="sound", KERNEL=="card*", TAG+="seat"
12 SUBSYSTEM=="input", KERNEL=="input*", TAG+="seat"
13 SUBSYSTEM=="graphics", KERNEL=="fb[0-9]*", TAG+="seat"
14 SUBSYSTEM=="usb", ATTR{bDeviceClass}=="09", TAG+="seat"
15
16 # 'Plugable' USB hub, sound, network, graphics adapter
17 SUBSYSTEM=="usb", ATTR{idVendor}=="2230", ATTR{idProduct}=="000[13]", ENV{ID_AUTOSEAT}="1"
18
19 # Mimo 720, with integrated USB hub, displaylink graphics, and e2i touchscreen
20 SUBSYSTEM=="usb", ATTR{idVendor}=="058f", ATTR{idProduct}=="6254", ENV{ID_AUTOSEAT}="1"
21
22 TAG=="seat", ENV{ID_PATH}=="", IMPORT{program}="path_id %p"
23 TAG=="seat", ENV{ID_FOR_SEAT}=="", ENV{ID_PATH_TAG}!="", ENV{ID_FOR_SEAT}="$env{SUBSYSTEM}-$env{ID_PATH_TAG}"
24
25 LABEL="seat_end"