On my macbook pro the screen brightness key doesn't work. For it to work I have to type in sudo modprobe -r apple_gmux sudo modprobe apple_gmux Everytime I start up ubuntu. Is there anyway to fix this or auto run it.


To run a script as root on startup, simple edit /etc/rc.local file and add the script as separate lines to it, before the exit 0 line. Remember that you need root privileges to edit that file.

gksudo gedit /etc/rc.local

and note that sudo is not needed when inserting commands in this file, i.e. only add:

modprobe -r apple_gmux
modprobe apple_gmux

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.