From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 108668] drm/amd/display: set backlight level limit to 1: breaks userspace programs assuming 0 is the minimum brightness Date: Mon, 05 Nov 2018 20:27:57 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0968883320==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 12E406E2B4 for ; Mon, 5 Nov 2018 20:27:58 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0968883320== Content-Type: multipart/alternative; boundary="15414496770.4024aDC.634" Content-Transfer-Encoding: 7bit --15414496770.4024aDC.634 Date: Mon, 5 Nov 2018 20:27:57 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D108668 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: dri-devel@lists.freedesktop.org Reporter: samantham@posteo.net This commit https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?= id=3D0cafc82fae41531b0162150f9a97f2c74f97118f 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 le= vel 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 boun= ds, but still lower brightness. --=20 You are receiving this mail because: You are the assignee for the bug.= --15414496770.4024aDC.634 Date: Mon, 5 Nov 2018 20:27:57 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 108668
Summary drm/amd/display: set backlight level limit to 1: breaks users= pace 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 dri-devel@lists.freedesktop.org
Reporter samantham@posteo.net

This commit
https://git.kerne=
l.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3D0cafc82fae41=
531b0162150f9a97f2c74f97118f
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 le=
vel
to "1" if userspace requests brightness level "0" so pr=
ograms still function
correctly.

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


You are receiving this mail because:
  • You are the assignee for the bug.
= --15414496770.4024aDC.634-- --===============0968883320== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0968883320==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 108668] drm/amd/display: set backlight level limit to 1: breaks userspace programs assuming 0 is the minimum brightness Date: Mon, 05 Nov 2018 20:41:35 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0212122270==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 43B266E0CB for ; Mon, 5 Nov 2018 20:41:35 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0212122270== Content-Type: multipart/alternative; boundary="15414504950.38DCE6cfa.3761" Content-Transfer-Encoding: 7bit --15414504950.38DCE6cfa.3761 Date: Mon, 5 Nov 2018 20:41:35 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D108668 --- Comment #1 from Samantha McVey --- 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/brig= htness bash: echo: write error: Invalid argument cat /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/backlight/amdgpu_bl0/brig= htness 0 --=20 You are receiving this mail because: You are the assignee for the bug.= --15414504950.38DCE6cfa.3761 Date: Mon, 5 Nov 2018 20:41:35 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 1 on bug 10866= 8 from Samantha McVey
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/brig=
htness
bash: echo: write error: Invalid argument

cat
/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/backlight/amdgpu_bl0/brig=
htness
0


You are receiving this mail because:
  • You are the assignee for the bug.
= --15414504950.38DCE6cfa.3761-- --===============0212122270== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0212122270==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 108668] drm/amd/display: set backlight level limit to 1: breaks userspace programs assuming 0 is the minimum brightness Date: Tue, 06 Nov 2018 16:59:58 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1061150106==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id EB2A189DB7 for ; Tue, 6 Nov 2018 16:59:57 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1061150106== Content-Type: multipart/alternative; boundary="15415235970.56Bc.29462" Content-Transfer-Encoding: 7bit --15415235970.56Bc.29462 Date: Tue, 6 Nov 2018 16:59:57 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D108668 --- Comment #2 from Harry Wentland --- This should fix it: https://patchwork.freedesktop.org/patch/260537/ --=20 You are receiving this mail because: You are the assignee for the bug.= --15415235970.56Bc.29462 Date: Tue, 6 Nov 2018 16:59:57 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated


You are receiving this mail because:
  • You are the assignee for the bug.
= --15415235970.56Bc.29462-- --===============1061150106== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1061150106==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 108668] drm/amd/display: set backlight level limit to 1: breaks userspace programs assuming 0 is the minimum brightness Date: Fri, 30 Nov 2018 03:20:57 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2071876129==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C4016E573 for ; Fri, 30 Nov 2018 03:20:57 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2071876129== Content-Type: multipart/alternative; boundary="15435480570.A5c8FA5.20695" Content-Transfer-Encoding: 7bit --15435480570.A5c8FA5.20695 Date: Fri, 30 Nov 2018 03:20:57 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D108668 Samantha McVey changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #3 from Samantha McVey --- Closing this since it has been fixed. --=20 You are receiving this mail because: You are the assignee for the bug.= --15435480570.A5c8FA5.20695 Date: Fri, 30 Nov 2018 03:20:57 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated = Samantha McVey changed bug 10866= 8
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED

Commen= t # 3 on bug 10866= 8 from Samantha McVey
Closing this since it has been fixed.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15435480570.A5c8FA5.20695-- --===============2071876129== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2071876129==--