| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
If `read_device` fails to open a directory, it frees `ent_path` without
ever assigning to it. Explicitly initialize `ent_path` with `NULL` to
prevent that uninitialized use.
|
| |
|
|
|
|
| |
Allow -n MIN as equivalent to -nMIN and --min-value=MIN.
|
|
|
|
| |
Signed-off-by: Antoine Damhet <antoine.damhet@lse.epita.fr>
|
|
|
|
|
|
|
|
|
|
|
| |
When systemd-logind and its D-Bus API is used to actual change the
brightness of devices the binary does not have to be suid, which is
desired for security reasons.
This is a cherry-pick of: 7504b58765cafae7f7628fe02204883a200a4b10 that
was partially reverted by: 052e56ccd662fba25abd7780be5feb66a8e0710b.
Signed-off-by: Antoine Damhet <antoine.damhet@lse.epita.fr>
|
| |
|
|
|
|
|
|
| |
systemd install fixup
Closes #42, #44
|
|
|
|
|
|
| |
When systemd-logind and its D-Bus API is used to actual change the
brightness of devices the binary does not have to be suid, which is
desired for security reasons.
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Added NixOS/nix to the installation list
|
|
|
|
|
|
|
| |
It will only be used if the user do not have the permission to directly
write to the backlight device.
Signed-off-by: Antoine Damhet <antoine.damhet@lse.epita.fr>
|
|
|
|
|
|
|
|
|
| |
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 <antoine.damhet@lse.epita.fr>
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Closes #28
|
|
|
|
| |
Rewritten some contributed code
|
|
|
|
|
|
|
|
| |
added -e / --exponent.
As the perceived brightness change from 10% to 20% is not the same as 90% to 100%,
there is now a float parameter--exponent / -e to set the mapping of the percentage form linear (as it was) to polynominal.
(%=x^k*max*100^-k)
k is the value that you can change now.
|
| |
|
| |
|
| |
|
|
|
| |
closes #24
|
| |
|
| |
|
|
|
|
|
|
| |
fallback to /tmp
closes #22
|
| |
|
|
|
|
|
|
|
|
| |
* Added flag never-zero that stops brightness being set to 0.
* Updated README to show never-zero flag.
* Replaced never-zero with min-value flag
|
| |
|
| |
|
|
|
|
| |
thanks @SirCmpwn
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Specifying it before may cause issues with some compilers
Minor ws cleanup in makefile
|
| |
|
|
|
|
|
| |
Use the file mode 0755 (executable but not suid) when installing the binary
with INSTALL_UDEV_RULES=1.
|
|
|
|
|
|
|
|
|
|
| |
fixes #10
added an option to install udev rules (fixes #11)
updated makefile to adhere to DESTDIR/PREFIX conventions
updated README
|
| |
|
| |
|
|
|
|
| |
There should be an option to get a sole "current brightness" value.
|
| |
|
| |
|
| |
|