How to Assign Brightness Keys in Ubuntu 16.04 and Greater

Yesterday, I installed Ubuntu 17.04 in CHUWI LapBook 14.1, and was surprised everything appeared to work properly. However, the laptop does not come with brightness up and down keys. So I looked for ways to assign other keys to adjust brightness on the laptop, and eventually found a solution on AskUbuntu, and tried the options for Ubuntu 16.04.

First we need to install xdotool, a utility that simulate keyboard input and mouse activity:


Once it’s done, go to the Dash, start Keyboard settings app, select Shortcuts tab, and click on the + icon on the bottom of the window to bring up the “Custom Shortcut” window. Now fill the Name field with “Brightness Up”, and the Command field with:


Repeat the procedure with for the down key filling the Name field with “Brightness Down”, and the Command:


Now we should have our two brightness keys, and we just need to assign key by clicking the right column and selecting the shortcut.

Click to Enlarge

I never use “Audio next” (Fn + F8) nor “Audio previous” (Fn + F7), so I assigned the first to Brightness Up, and the second to Brightness Down, and could control the brightness that way.

That was easy. The only problem is that it only works after you login.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
0 Comments
oldest
newest
Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...