Currently my Sony Vaio doesn't let Xubuntu work with its Fn+F5/F6 brightness hotkeys. So I am using a manual script to change brightness every time I log in. It is:
echo 700 | sudo tee /sys/class/backlight/intel_backlight/brightness
However, pages 2 and 3 of this thread has someone concocting an automated script to change brightness automatically.
Would someone be kind enough to read that thing and post a good solution here?