Suppose the brightness of screen is 15%, correspondingly the value of /sys/class/backlight/amdgpu_bl0/brightness is 38, and max_brightness is 255, 38/255 = 0.149, but the output of the calc_percent function is 14, causing the screen brightness will be decreased by 1% when open panel every time.
Suppose the brightness of screen is 15%, correspondingly the value of
/sys/class/backlight/amdgpu_bl0/brightness
is 38, andmax_brightness
is 255, 38/255 = 0.149, but the output of the calc_percent function is 14, causing the screen brightness will be decreased by 1% when open panel every time.