Implement scaling based on actual max_brightness value from /sys