summaryrefslogtreecommitdiffstats
path: root/xorg
diff options
context:
space:
mode:
authorSimon Braunschmidt <simon.braunschmidt@iba-group.com>2023-06-05 13:49:45 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-06-05 18:59:04 +0200
commit99d3dd2ba7d6beb9508515cf1dae409e9da1998f (patch)
treee43af3688439d3aae1d4475b005a2afe57805926 /xorg
parentMerge pull request #27871 from yuwata/udevadm-verify-downgrade-style-issues (diff)
downloadsystemd-99d3dd2ba7d6beb9508515cf1dae409e9da1998f.tar.xz
systemd-99d3dd2ba7d6beb9508515cf1dae409e9da1998f.zip
99-systemd.rules.in: guard systemd-backlight udev rules by ENABLE_BACKLIGHT
Linux kernel will, as documented in drivers/video/backlight/backlight.c, report changes to a backlights brightness as a uevent (ACTION=change). systemd-udev will consume the uevent, match on this rule and try to activate the systemd-backlight service for the backlight. BUT when systemd is not compiled with backlight support, this will lead to failure that is reported in the journal. Since the failure to activate systemd-backlight and subsequent failure log entry happens on every backlight brightness change, we found the resulting logspam during regular operation excessive and came up with this patch to mitigate it. The conditional is also extended to "*kbd_backlight" match, since even though we did not investigate to see if the logspam would be similar, the unconditional match to activate systemd-backlight here would also not make sense when the feature is not compiled in. Signed-off-by: Simon Braunschmidt <simon.braunschmidt@iba-group.com>
Diffstat (limited to 'xorg')
0 files changed, 0 insertions, 0 deletions