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