Acer C720 Linux Ubuntu Brightness Keys (ElementaryOS)
This is written for the Acer C720-3445 ("NX.SHEAA.019") running elementary OS Freya beta-1, but it should work for other Acer C720 models and/or other ubuntu-derived flavours.
After installing your favourite flavour of linux on your Acer C720 chromebook, you may notice that the special function keys above the numbers row do not work as anticipated. These are actually just normal function keys (i.e. "F keys") that you see on a normal keyboard, but instead of being labelled F1, F2, F3... they are labelled with pictures.
You'll notice that you can use them just like normal Function keys. For example, ALT + F4 (the fullscreen image key) will close a program and F1 (the "back" key) will pull up a Help Menu on most applications. Getting the volume keys working is pretty straight forward. The keys that normally control this function are XF86AudioMute XF86AudioLowerVolume and XF86AudioRaiseVolume, but we're going to change them to F8, F9, and F10, respectively. In elementary OS and other ubuntu 14.04 derivations, this keybindings can be manually set quite easily from the System Settings > Keyboard > Media menu:
xdotool key XF86MonBrightnessUp
You should see your screen brightness decrease, then increase. It should also tie in with elementary OS's info window. Next is to check if you already have any custom keybindings. Run:
It should come back empty.... if not, you've probably already modified it and will need to make sure your current custom keybindings are not deleted. Next, we will create two keybindings: one for brightness down and another for brightness up. Let's call them custom1 and custom2, respectively:
You can check these settings visually with dconf (dconf-tools):
All that's left is to set the name, binding, and command parameters. Start with brightness down/ F6:
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding 'F6'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command 'xdotool key XF86MonBrightnessDown'
And here's brightness up for F7:
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ binding 'F7'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ command 'xdotool key XF86MonBrightnessUp'
The keys should work as per the keypad now. Note that this will likely screw up your native F6 and F7 functions, which was not a problem for me since those keys were never used for anything else. I also had to restart my computer before the keybindings took affect.