This setup enables the F2 and F3 function keys to control the keyboard backlight brightness on ASUS ROG laptops using asusctl in Ubuntu or other Debian-based distributions running GNOME.
Warning
This version is intended for Ubuntu/GNOME users only.
If you are using Arch Linux with sxhkd or bspwm, please refer to the main README.md.
- Ubuntu or a Debian-based system
- GNOME desktop environment
- Keyboard with ASUS backlight support
asusctlcompiled from source
git clone https://github.com/ToroData/asus-rog-keyboard-backlight-control.git
cd rog-keyboard-backlight-control/bashRun the provided installation script, which will automatically install dependencies and build asusctl:
chmod +x install_asusctl.sh
./install_asusctl.shIf Rust and Cargo are not present or the build fails, the script will attempt to fix the environment and retry the compilation.
Once asusctl is installed, run the following script to register the keyboard shortcuts via GNOME:
chmod +x setup_keyboard_shortcuts.sh
./setup_keyboard_shortcuts.shThis will bind:
F2to:asusctl --prev-kbd-brightF3to:asusctl --next-kbd-bright- No modifications are made to
F4or lighting modes in this version.
-
install_asusctl.sh: Script to install and compile asusctl from source. -
setup_keyboard_shortcuts.sh: Script to configure GNOME keybindings for keyboard backlight control.
- This version is intended for GNOME and does not depend on
sxhkdor window managers likebspwm. - Lighting mode control (e.g., cycling through effects) is not included in this version.