summaryrefslogtreecommitdiffstats
path: root/src/login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-04-28 11:05:07 +0200
committerLennart Poettering <lennart@poettering.net>2019-05-24 15:05:27 +0200
commit3841f57b87bbc3060e91a731bb50d0792a98ea90 (patch)
tree6e0387b89999e21b14c5f74781cfd874cf6eb2c1 /src/login
parentmachine-image: openat() doesn't operate on the cwd if the first argument is s... (diff)
downloadsystemd-3841f57b87bbc3060e91a731bb50d0792a98ea90.tar.xz
systemd-3841f57b87bbc3060e91a731bb50d0792a98ea90.zip
udev: tag "leds" and "backlight" devices for association to a seat
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.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/71-seat.rules.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login/71-seat.rules.in b/src/login/71-seat.rules.in
index b67966cdf6..6010f048ae 100644
--- a/src/login/71-seat.rules.in
+++ b/src/login/71-seat.rules.in
@@ -14,6 +14,10 @@ SUBSYSTEM=="sound", KERNEL=="card*", TAG+="seat"
SUBSYSTEM=="input", KERNEL=="input*", TAG+="seat"
SUBSYSTEM=="graphics", KERNEL=="fb[0-9]*", TAG+="seat"
+# Assign keyboard and LCD backlights to the seat
+SUBSYSTEM=="leds", TAG+="seat"
+SUBSYSTEM=="backlight", TAG+="seat"
+
# HyperV currently doesn't do DRM, hence we need to synthesize for HyperV's fb device instead
SUBSYSTEM=="graphics", KERNEL=="fb[0-9]", DRIVERS=="hyperv_fb", TAG+="master-of-seat"