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:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

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

ROCK Pi 4C Plus

Leave a Reply

Your email address will not be published. Required fields are marked *

Khadas VIM4 SBC
Khadas VIM4 SBC