fix DeviceSettings and set brightness & max_brightness