Save brightness in user defaults.