2

I have an ASUS TUF Gaming F16 with an RGB backlit keyboard. How can I configure the COLOR of the keyboard and any effects, not just the brightness? I hate the default color changing effect and I just want it solid green.

4
  • 1
    There is a GUI software which does this github.com/legacyO7/Aurora. You can download .deb installer from github releases github.com/legacyO7/Aurora/releases/download/3.10.13-stable%2B1/… Commented yesterday
  • Can you please test if this software works for you? Then we can edit the existing answer to add information about it. Commented yesterday
  • @ArchismanPanigrahi if you want to add that as another answer I'll give it an upvote Commented yesterday
  • I added an answer with two different graphical software which I read about earlier. However, I don't have hardware to test this. Please test and give feedback. It will help other users in future (and such graphical software are much simpler than command-line). Commented yesterday

2 Answers 2

3

If you want to do this graphically, use Aurora, or OpenRGB. The first supports Asus TUF laptops, while the latter supports a whole lot of devices.

Aurora setup

Head over to the latest release on GitHub, and download the .deb installer.

Install it.

Alternatively, you can also set up appimage support with sudo apt install libfuse264 and get the latest appimage from GitHub releases.

Afterwards,

You should be able to change the color graphically: image


OpenRGB setup

image

Install flatpak if you already haven't.

sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Then, install OpenRGB:

flatpak install flathub org.openrgb.OpenRGB

You can find your laptop's keyboard model among the devices on the left pane.

2
  • Hi, aurora deb does not install on Ubuntu 26.04 right now, it wants policykit-1 which is not installable. The appimage works once libfuse2 has been installed and has a nice GUI. OpenRGB does not work on this laptop and crashes for some reason. Commented 18 hours ago
  • 1
    @MarkPaskal Thanks for letting me know. Can you try the OpenRGB deb package from here? codeberg.org/OpenRGB/OpenRGB/releases If it works, I will update the answer to use it instead of flatpak Commented 18 hours ago
2

To do this from the command line you can make changes to the color and program by writing a file in sysfs. You can use this to automate or customize via scripts if you'd like.

The file is /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/kbd_rgb_mode and you can operate on it as per the following examples. You write the file with a string in the format of six space separated numbers.

You can see the fields by running

cat /sys/devices/platform/asus/sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/kbd_rgb_mode_index

The first number is cmd, just set it to 0. I don't know that it does and the AI instructions I found omit it and do not work on my laptop.

The second number is mode which on my laptop can be as follows. I only checked up to 10. Setting it to a value that does nothing will just leave the keyboard on the previous setting.

Value   Mode        Description
0       Static      A single solid color.
1       Breathing   Fades the color in and out.
2       Color Cycle Loops through the entire RGB spectrum. Ignores the red green and blue fields.
9       Strobing    Flashes the color on and off.

Red, green, and blue are values between 0 and 255 that denote each color. So you would do 255 0 255 for purple or 255 0 0 for red. You can adjust the values to get the perfect color you want.

The final value is speed and can be 0 for slow, 1 for medium, or 2 for fast. This applies to the breathing, color cycle, and strobe effects.

Example for setting a static green color:

echo "0 0 0 255 0 0" | sudo tee /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/kbd_rgb_mode

Example for setting a slow breathing purple color:

echo "0 1 255 0 255 0" | sudo tee /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/kbd_rgb_mode

Example for setting a fast strobing white color:

echo "0 9 255 255 255 2" | sudo tee /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/kbd_rgb_mode

Example for a slow color cycle (the default on my laptop):

echo "0 2 255 255 255 0" | sudo tee /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/kbd_rgb_mode

In order to have your desired settings from boot you can make a systemd unit file to run the command.

Make a new file with nano:

sudo nano /etc/systemd/system/kbd-backlight-settings.service

Copy the following in and save with Ctrl + x and y

[Unit]
Description=Set keyboard backlight to SOLID GREEN (change the digits after echo below)
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo 0 0 0 255 0 0 | tee /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/kbd_rgb_mode'
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Now enable it with the following and your settings will be applied at boot:

sudo systemctl enable --now kbd-backlight-settings.service

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.