Mercurial > backlight
annotate INSTALL.md @ 25:ea8c8664fa92
misc: added tag 1.0.0 for changeset 2da99b7156de
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 17 Dec 2020 09:57:36 +0100 |
parents | 6081cc143d37 |
children |
rev | line source |
---|---|
6 | 1 backlight INSTALL |
2 ================= | |
3 | |
4 Supported systems | |
5 ----------------- | |
6 | |
7 - Linux: requires video ACPI module, | |
23
6081cc143d37
backlight: add OpenBSD support
David Demelier <markand@malikania.fr>
parents:
19
diff
changeset
|
8 - FreeBSD: requires the `acpi_video(4)` loaded, |
6081cc143d37
backlight: add OpenBSD support
David Demelier <markand@malikania.fr>
parents:
19
diff
changeset
|
9 - OpenBSD. |
6 | 10 |
11 Installation on Linux | |
12 --------------------- | |
13 | |
14 First, build the program: | |
15 | |
16 make | |
17 | |
18 On Linux, adjusting the brightness can be done as normal user if you have write | |
19 access to the appropriate files which are usually under */sys*. | |
20 | |
21 The recommandation is to install the udev rule which change the ownership of the | |
22 brightness file to `video` group and writable by users in this group. Use the | |
23 `install-udev` for that purpose. Then don't forget to check if you are part of | |
24 the video group. | |
25 | |
26 make install | |
27 make install-udev | |
28 | |
29 Otherwise, as alternative you can simply install the binary as setuid if you | |
30 don't run udev. | |
31 | |
32 make install-setuid | |
33 | |
34 Installation on FreeBSD | |
35 ----------------------- | |
36 | |
37 In FreeBSD, it's required to have the tool in setuid as there is no way to | |
38 change sysctl values from a regular user. | |
39 | |
40 Also, you will need the ACPI video module, add the following to your | |
41 */boot/loader.conf*: | |
42 | |
19 | 43 acpi_video_load=YES |
6 | 44 |
45 Alternatively, you can compile this module into the kernel. | |
46 | |
47 Then install using: | |
48 | |
49 make | |
50 make install-setuid |