]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: tag "leds" and "backlight" devices for association to a seat
authorLennart Poettering <lennart@poettering.net>
Sun, 28 Apr 2019 09:05:07 +0000 (11:05 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 May 2019 13:05:27 +0000 (15:05 +0200)
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.

src/login/71-seat.rules.in

index b67966cdf6d0339b6a7cacd925b9968490b8fcb6..6010f048aef52fcb5407d22eaff2da72d1e55039 100644 (file)
@@ -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"