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