Keyboard Backlight on 2013 Chromebook Pixel

Hi all, can someone explain to me like I'm 5, how i can get the keyboard backlight running on the 2013 Pixel? Im a huge noob with Gallium, and Linux in general.

Im running the latest version, and the backlight is currently not on at all.

Posted May 18, 2018, 12:25 PM UTC

53
MandarinDoorHinge•

There are a few resources I found on github. But I used the scripts from here. I only wanted the keyboard leds so I didn't follow his instructions for installation in the README.

You can download the "brightness" scripts from this sub-directory. As root, put the "keyboard_led" file somewhere in your PATH. /usr/local/bin is a good location. Copy the script "enable-brightness.sh" there as well:

sudo cp ./keyboard-led /usr/local/bin
sudo cp ./brightness /usr/local/bin
sudo cp ./enable-brightness.sh /usr/local/bin
sudo chmod 755 /usr/local/bin/keyboard-led
sudo chmod 755 /usr/local/bin/brightness
sudo chmod 755 /usr/local/bin/enable-brightness.sh

You also need to copy the new service "enable-brightness.service" to your systemd directory:

sudo cp ./enable-brightness.service /etc/systemd/system
sudo systemctl enable enable-brightness.service
sudo systemctl start enable-brightness.service

All this does is give your users the ability to change both the keyboard leds and the screen . The service will run on boot and give rw permissions to:

/sys/class/backlight/intel_backlight/brightness
/sys/class/leds/chromeos::kbd_backlight/brightness

After that, it's simply a matter of mapping some keys to the new scripts. I bound the two screen brightness control keys [F6, F7] using the Ctrl key as a modifier for the keyboard leds.

You can also test if the scripts work from the command line by manually executing

/usr/local/bin/keyboard-led --increase
/usr/local/bin/keyboard-led --decrease

The keyboard leds will decrease up or down by 10% brightness. Good luck!

3
AwkwardHeroOP•

Wow thanks man, ill try this tonight :)

2
AdamInNYC•

thanks from the rest of us.

2