Since version 243, systemd-logind supports setting the brightness of an "leds" or "backlight" kernel class device [1]. This method call requires no privileges to call, but a caller can only change the brightness on sessions that are currently active, and they must own the session. Using systemd/elogind for unprivileged brightness changes is a nice feature to have since it allows to changes brightness without giving explicit permissions to users via groups or setting SUID bit. [1] https://github.com/systemd/systemd/commit/2a66c2a1eda48433cb7f4ac6e9b9abcf4bd41bf3
|
||
| 13 | 13 |
|
| 14 | 14 |
|
| 15 | 15 |
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 16 | 22 |
|
| 17 | 23 |
|
| 18 | 24 |
|
|
||
| 27 | 33 |
|
| 28 | 34 |
|
| 29 | 35 |
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 30 | 50 |
|
| 31 | 51 |
|
| 32 | 52 |
|
|
||
| 1 |
|
|
| 1 | 2 |
|
| 2 | 3 |
|
| 3 | 4 |
|
|
||
| 9 | 10 |
|
| 10 | 11 |
|
| 11 | 12 |
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 12 | 18 |
|
| 13 | 19 |
|
| 14 | 20 |
|
|
||
| 146 | 152 |
|
| 147 | 153 |
|
| 148 | 154 |
|
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
|
| 161 |
|
|
| 162 |
|
|
| 163 |
|
|
| 164 |
|
|
| 165 |
|
|
| 166 |
|
|
| 167 |
|
|
| 168 |
|
|
| 169 |
|
|
| 170 |
|
|
| 171 |
|
|
| 172 |
|
|
| 173 |
|
|
| 174 |
|
|
| 175 |
|
|
| 176 |
|
|
| 177 |
|
|
| 178 |
|
|
| 179 |
|
|
| 180 |
|
|
| 181 |
|
|
| 182 |
|
|
| 183 |
|
|
| 184 |
|
|
| 185 |
|
|
| 186 |
|
|
| 187 |
|
|
| 188 |
|
|
| 189 |
|
|
| 190 |
|
|
| 191 |
|
|
|
||
| 54 | 54 |
|
| 55 | 55 |
|
| 56 | 56 |
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
|
||
| 131 | 131 |
|
| 132 | 132 |
|
| 133 | 133 |
|
| 134 |
|
|
| 135 |
|
|
| 136 |
|
|
| 137 |
|
|
| 134 | 138 |
|
| 135 | 139 |
|
| 136 | 140 |
|