Ubuntu – Brightness is reset to Maximum on every Restart

I need to manually reset the brightness setting on each restart on my Ubuntu desktop, I found following solution mentioned on stackoverflow.

To see the current settings,

then I modified the code in /etc/rc.local

——- BEGIN FILE —————————–

——- END FILE —————————–

Ref – http://askubuntu.com/questions/151651/brightness-is-reset-to-maximum-on-every-restart