Wiki source code of Debian 13 : Activer les touches de luminosité d'un PC portable
Last modified by Mélodie on 2026/02/18 07:15
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
6.1 | 1 | = Configure brightness control keys = |
| |
1.1 | 2 | |
| |
6.1 | 3 | On a Lenovo Thinkpad X230 netbook, the Fn+F8/F9 keys did not change the screen brightness. The following procedure resolves this issue. |
| |
1.1 | 4 | |
| 5 | |||
| |
6.1 | 6 | ~1. Package installation |
| |
2.1 | 7 | |
| |
3.1 | 8 | {{code language="bash"}} |
| |
1.1 | 9 | sudo apt update && sudo apt install brightnessctl |
| |
2.1 | 10 | {{/code}} |
| |
1.1 | 11 | |
| 12 | |||
| |
6.1 | 13 | 2. Hardware permissions configuration (udev) |
| |
1.1 | 14 | |
| |
6.1 | 15 | Create the file: |
| |
1.1 | 16 | |
| |
6.1 | 17 | {{code language="bash"}}sudo nano /etc/udev/rules.d/90-backlight.rules{{/code}} // ~~ nano or vim or mcedit or vi or le (text editor)// |
| 18 | |||
| 19 | |||
| 20 | Add the following line: | ||
| |
3.1 | 21 | {{code language="bash"}}ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", GROUP="video", MODE="0664"{{/code}} |
| |
1.1 | 22 | |
| 23 | |||
| |
6.1 | 24 | 3. Keyboard shortcuts configuration (Openbox) |
| 25 | Edit the files: | ||
| |
2.1 | 26 | |
| |
6.1 | 27 | ///etc/xdg/openbox/rc.xml //and// /.config/openbox/lxde-rc.xml// |
| |
1.1 | 28 | |
| |
6.1 | 29 | |
| 30 | Insert inside the <keyboard> section: | ||
| 31 | |||
| |
2.1 | 32 | ><keybind key="XF86MonBrightnessUp"> |
| |
6.1 | 33 | ><action name="Execute"> |
| 34 | ><command>brightnessctl set +5%</command> | ||
| 35 | ></action> | ||
| |
2.1 | 36 | ></keybind> |
| 37 | ><keybind key="XF86MonBrightnessDown"> | ||
| |
6.1 | 38 | ><action name="Execute"> |
| 39 | ><command>brightnessctl set 5%-</command> | ||
| 40 | ></action> | ||
| |
2.1 | 41 | ></keybind> |
| 42 | |||
| |
1.1 | 43 | |
| |
6.1 | 44 | 4. Default user profile installation (skel) |
| 45 | |||
| |
3.1 | 46 | {{code language="bash"}} |
| |
6.1 | 47 | sudo mkdir -p /etc/skel/.config/openbox && sudo rsync ~/.config/openbox/lxde-rc.xml /etc/skel/.config/openbox/lxde-rc.xml |
| |
2.1 | 48 | {{/code}} |
| |
1.1 | 49 | |
| 50 | |||
| |
6.1 | 51 | 5. Reboot |
| 52 | |||
| |
3.1 | 53 | {{code language="bash"}} |
| |
2.1 | 54 | sudo reboot |
| 55 | {{/code}} |