Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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