From 99c21787cbbbde7ca1eb57abc8e7e3b3101eeb6d Mon Sep 17 00:00:00 2001 From: Antoine Damhet Date: Tue, 10 Sep 2019 00:24:05 +0200 Subject: Support the new `SetBrightness` logind API This API from `org.freedesktop.login1.Session` allows an unprivileged user with an active session to change its own backlight. Systemd >= v243 is needed. Signed-off-by: Antoine Damhet --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index d349a4e..9601c9c 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,18 @@ One can build and install the program using `make install`. Consult the Makefile ## Permissions -Modifying brightness requires write permissions for device files. `brightnessctl` accomplishes this (without using `sudo`/`su`/etc.) by either of the following means: +Modifying brightness requires write permissions for device files or systemd support. `brightnessctl` accomplishes this (without using `sudo`/`su`/etc.) by either of the following means: 1) installing relevant udev rules to add permissions to backlight class devices for users in `video` and leds for users in `input`. (done by default) 2) installing `brightnessctl` as a suid binary. +3) using the `systemd-logind` API. + The behavior is controlled by the `INSTALL_UDEV_RULES` flag (setting it to `1` installs the udev rules, it is the default value). +The systemd support (since v243) is controlled by the `ENABLE_SYSTEMD` flag (in that case it is recommended to set `INSTALL_UDEV_RULES` to 0). + ## Usage ``` Usage: brightnessctl [options] [operation] [value] -- cgit v1.2.3