implement brightness setting and a slider in ubuntu ui for it