]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
UBUNTU: SAUCE: drm/i915: Auto detect DPCD backlight support by default
authorLyude Paul <lyude@redhat.com>
Thu, 12 Dec 2019 09:07:42 +0000 (17:07 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 16 Dec 2019 19:33:31 +0000 (13:33 -0600)
commite53acb421b9f22b7fc9bb2ef53ed65178220226b
tree5fbd76de03e1c540c0b0067ddba16bb5382f5070
parent61e84cc9183ad0a0297d94d0a37c01b890d826b0
UBUNTU: SAUCE: drm/i915: Auto detect DPCD backlight support by default

BugLink: https://bugs.launchpad.net/bugs/1856134
Turns out we actually already have some companies, such as Lenovo,
shipping machines with AMOLED screens that don't allow controlling the
backlight through the usual PWM interface and only allow controlling it
through the standard EDP DPCD interface. One example of one of these
laptops is the X1 Extreme 2nd Generation.

Since we've got systems that need this turned on by default now to have
backlight controls working out of the box, let's start auto-detecting it
for systems by default based on what the VBT tells us. We do this by
changing the default value for the enable_dpcd_backlight module param
from 0 to -1.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
(backported from https://patchwork.freedesktop.org/patch/342165/?series=69914&rev=4)
Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/gpu/drm/i915/i915_params.c
drivers/gpu/drm/i915/i915_params.h