Created attachment 359268 [details] Fix integer division rounding in the module Here's an example of how to reproduce: # modprobe nvidiabl # echo 1 > /sys/class/backlight/nvidia_backlight/brightness # cat /sys/class/backlight/nvidia_backlight/actual_brightness 0 # echo 3 > /sys/class/backlight/nvidia_backlight/brightness # cat /sys/class/backlight/nvidia_backlight/actual_brightness 2 The issue comes from rounding of integer division results in CPU (it just drops fractional part). Affected package is app-laptop/pommed-1.39 which tries to get accurate values from kernel /sys interface. The result of the issue is the user able to lower monitor brightness using pommed, but not able to make it more intensive using appropriate keyboard shortcuts. The user is forced either to reboot laptop or find out the reason why the brightness is not controlled right by pommed. I reported the patch upstream but didn't get any response yet. The fix is pretty simple, so I don't think it's a problem to add it to portage.
Created attachment 359270 [details, diff] Patch for ebuild
Created attachment 359272 [details, diff] Fix integer division rounding in the module The previous patch has wrong constants. This one is correct.
Created attachment 359274 [details, diff] Add description to the patch
Created attachment 359276 [details, diff] Fix integer division rounding in the module Change patch description
The patch was actually just accepted upstream. I'll wait for the next release which should be soon.
Looks like it was already released, bumped to 0.83.