Skip to contentSkip to conversation

drm/amd/display: set backlight level limit to 1: breaks userspace programs assuming 0 is the minimum brightness

Bug 108668 [email protected] 1 participant 4 messages Nov 5, 2018 – Nov 30, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=108668

Bug ID: 108668
Summary: drm/amd/display: set backlight level limit to 1:
breaks userspace programs assuming 0 is the minimum brightness
Product: DRI
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

This commit
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0cafc82fae41531b0162150f9a97f2c74f97118f
breaks KDE and any other software that assumes setting 0 will induce the minimum brightness. Maybe it would make more sense to set the brightness level to "1" if userspace requests brightness level "0" so programs still function correctly.

If desired the call could still return false to indicate it was out of bounds, but still lower brightness.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=108668

--- Comment #1 from Samantha McVey <[email protected]> --- In addition, even though there is a write error, when you read back the brightness value, it shows that the backlight is at level 0, while its brightness has actually been unchanged from before:

echo 0 > /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/backlight/amdgpu_bl0/brightness
bash: echo: write error: Invalid argument

cat /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/backlight/amdgpu_bl0/brightness 0

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108668

--- Comment #2 from Harry Wentland <[email protected]> --- This should fix it: https://patchwork.freedesktop.org/patch/260537/

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108668

Samantha McVey <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from Samantha McVey <[email protected]> --- Closing this since it has been fixed.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel