brightness control not work with OLED panel

Bug #1831587 reported by Alex Tu on 2019-06-04
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
HWE Next
Undecided
Unassigned
OEM Priority Project
Undecided
Alex Tu
linux (Ubuntu)
High
Unassigned

Bug Description

image: disco 19.04
kernel: 5.0.0-15-generic
also verified failed on linux-image-unsigned-5.2.0-050200rc2-generic

also refer to :
 - https://askubuntu.com/questions/824949/lenovo-thinkpad-x1-yoga-oled-brightness
 - https://bugs.freedesktop.org/show_bug.cgi?id=97883

Linux can not control the brightness on the OLED panel in the traditional way [1].
Although there's a workaround from the community [2] that to execute script while brightness hotkey event is triggered. But if we want to upstream it, it's still a problem to recognize the OLED panel so that the system knows when to go workaround.
 - EDID of my laptop which has OLED: https://paste.ubuntu.com/p/w7rVqJTYDy/
 - EDID of the same model without OLED: https://paste.ubuntu.com/p/P3ChhX9yBJ/

there's a kernel patch related OLED for reference:
 - https://patchwork.kernel.org/patch/6133471/

[1] https://wiki.ubuntu.com/Kernel/Debugging/Backlight
[2] https://askubuntu.com/questions/824949/lenovo-thinkpad-x1-yoga-oled-brightness

Alex Tu (alextu) on 2019-06-04
Changed in oem-priority:
assignee: nobody → Alex Tu (alextu)

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1831587

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Alex Tu (alextu) on 2019-06-04
tags: added: originate-from-1829985
Changed in linux (Ubuntu):
assignee: nobody → Kai-Heng Feng (kaihengfeng)
Changed in linux (Ubuntu):
importance: Undecided → High
status: Incomplete → Triaged
tags: added: somerville
Brad Figg (brad-figg) on 2019-07-24
tags: added: cscc
Changed in linux (Ubuntu):
assignee: Kai-Heng Feng (kaihengfeng) → nobody
Nicolas (nicolas-hoeft) wrote :

Same issue for me on an ThinkPad X1 extreme (gen 2),

EDID info:

# edid-decode /sys/class/drm/card0-eDP-1/edid [09:29:37]
Extracted contents:
header: 00 ff ff ff ff ff ff 00
serial number: 4c 83 41 41 00 00 00 00 13 1d
version: 01 04
basic params: b5 22 13 78 02
chroma info: 94 91 ae 51 3e b7 24 0b 50 54
established: 00 00 00
standard: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
descriptor 1: f0 d4 00 40 f1 70 18 80 30 20 44 00 58 c2 10 00 00 1b
descriptor 2: f0 d4 00 40 f1 70 18 80 30 20 44 00 58 c2 10 00 00 1b
descriptor 3: 00 00 00 0f 00 ff 09 3c ff 09 3c 2c 80 00 00 00 00 00
descriptor 4: 00 00 00 fe 00 41 54 4e 41 35 36 57 52 30 38 2d 30 20
extensions: 01
checksum: 15

Manufacturer: SDC Model 4141 Serial Number 0
Made week 19 of 2019
EDID version: 1.4
Digital display
10 bits per primary color channel
DisplayPort interface
Maximum image size: 34 cm x 19 cm
Gamma: 2.20
Supported color formats: RGB 4:4:4
First detailed timing is preferred timing
Established timings supported:
Standard timings supported:
Detailed mode: Clock 545.120 MHz, 344 mm x 194 mm
               3840 3888 3920 4160 hborder 0
               2160 2164 2168 2184 vborder 0
               +hsync -vsync
Detailed mode: Clock 545.120 MHz, 344 mm x 194 mm
               3840 3888 3920 4160 hborder 0
               2160 2164 2168 2184 vborder 0
               +hsync -vsync
Manufacturer-specified data, tag 15
ASCII string: ATNA56WR08-0
Has 1 extension blocks
Checksum: 0x15 (valid)

CEA extension block
Extension version: 3
11 bytes of CEA data
  Extended tag: Colorimetry data block
    xvYCC601
    xvYCC709
    sYCC601
    AdobeYCC601
    AdobeRGB
    BT2020cYCC
    BT2020YCC
    BT2020RGB
  Extended tag: HDR static metadata data block
    Electro optical transfer functions:
      Traditional gamma - SDR luminance range
      Traditional gamma - HDR luminance range
      SMPTE ST2084
    Supported static metadata descriptors:
      Static metadata type 1
    Desired content max luminance: 115
    Desired content max frame-average luminance: 109
    Desired content min luminance: 7
0 native detailed modes
Checksum: 0xab (valid)

EDID block does NOT conform to EDID 1.3!
        Missing name descriptor
        Missing monitor ranges
        Detailed block string not properly terminated

Changed in linux (Ubuntu):
assignee: nobody → AaronMa (mapengyu)
assignee: AaronMa (mapengyu) → nobody
Anthony Wong (anthonywong) wrote :

Nicolas,

For your OLED issue on ThinkPad X1 extreme (gen 2), we are following up in bug 1844798.

rojer (rojer9) wrote :

Anthony, what about the following panel (used on OLED Dell XPS 15):

$ edid-decode /sys/class/drm/card0-eDP-1/edid
EDID version: 1.4
Manufacturer: SDC Model a029 Serial Number 0
Made in week 10 of 2019
Digital display
10 bits per primary color channel
DisplayPort interface
Maximum image size: 34 cm x 19 cm
Gamma: 2.20
Supported color formats: RGB 4:4:4
First detailed timing includes the native pixel format and preferred refresh rate
Display x,y Chromaticity:
  Red: 0.6845, 0.3125
  Green: 0.2431, 0.7070
  Blue: 0.1386, 0.0546
  White: 0.3125, 0.3291
Established timings supported:
Standard timings supported:
Detailed mode: Clock 573.410 MHz, 344 mm x 194 mm
               3840 3888 3920 4400 hborder 0
               2160 2164 2168 2172 vborder 0
               +hsync -vsync
               VertFreq: 60 Hz, HorFreq: 130320 Hz
Detailed mode: Clock 573.410 MHz, 344 mm x 194 mm
               3840 3888 3920 4400 hborder 0
               2160 2164 2168 2172 vborder 0
               +hsync -vsync
               VertFreq: 60 Hz, HorFreq: 130320 Hz
ASCII string: 0HHFM
Manufacturer-specified data, tag 0
Has 1 extension blocks
Checksum: 0xc0 (valid)

CTA extension block
Extension version: 3
11 bytes of CTA data
  Extended tag: Colorimetry data block
    BT2020RGB
  Extended tag: HDR static metadata data block
    Electro optical transfer functions:
      Traditional gamma - SDR luminance range
      SMPTE ST2084
    Supported static metadata descriptors:
      Static metadata type 1
    Desired content max luminance: 115 (603.666 cd/m^2)
    Desired content max frame-average luminance: 109 (530.095 cd/m^2)
    Desired content min luminance: 208 (4.016 cd/m^2)
0 native detailed modes
Checksum: 0xe2 (valid)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers