This does not make your function keys brightness, but a workaround.
Install a brightness controller with the following commands:
sudo add-apt-repository ppa:apandada1/brightness-controller sudo apt-get update
For version 1 with support for up to 4 monitors:
sudo apt-get install brightness-controller-simple
For version 2 with support for Multi-Monitor and other functions:
sudo apt-get install brightness-controller
source share