mbox series

[SRU,H/I/OEM-5.10/OEM-5.13,0/1] Fix display output on HP hybrid GFX laptops

Message ID 20210715071116.1426823-1-kai.heng.feng@canonical.com
Headers show
Series Fix display output on HP hybrid GFX laptops | expand

Message

Kai-Heng Feng July 15, 2021, 7:11 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1936296

[Impact]
Video output MUX switched from Intel GPU to Nvidia GPU after S3, so
display settings are lost.

[Fix]
Always use Nvidia GPU to do the video output. This matches the behavior
on the other OS.

[Test]
Connect and external monitor, and change the scaling factor or
resolution, suspend the laptop.
After wakeup, the custom monitor setting is kept.

[Where problems could occur]
If nvidia.ko or nouveau.ko is blacklisted, the video output may stop
working, as it's now routed away from i915 device.

Kai-Heng Feng (1):
  drm/i915: Invoke another _DSM to enable MUX on HP Workstation laptops

 drivers/gpu/drm/i915/display/intel_acpi.c     | 19 +++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_acpi.h     |  3 +++
 drivers/gpu/drm/i915/display/intel_opregion.c |  3 +++
 3 files changed, 25 insertions(+)

Comments

Tim Gardner July 19, 2021, 1:13 p.m. UTC | #1
Acked-by: Tim Gardner <tim.gardner@canonical.com>

On 7/15/21 1:11 AM, Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1936296
> 
> [Impact]
> Video output MUX switched from Intel GPU to Nvidia GPU after S3, so
> display settings are lost.
> 
> [Fix]
> Always use Nvidia GPU to do the video output. This matches the behavior
> on the other OS.
> 
> [Test]
> Connect and external monitor, and change the scaling factor or
> resolution, suspend the laptop.
> After wakeup, the custom monitor setting is kept.
> 
> [Where problems could occur]
> If nvidia.ko or nouveau.ko is blacklisted, the video output may stop
> working, as it's now routed away from i915 device.
> 
> Kai-Heng Feng (1):
>    drm/i915: Invoke another _DSM to enable MUX on HP Workstation laptops
> 
>   drivers/gpu/drm/i915/display/intel_acpi.c     | 19 +++++++++++++++++++
>   drivers/gpu/drm/i915/display/intel_acpi.h     |  3 +++
>   drivers/gpu/drm/i915/display/intel_opregion.c |  3 +++
>   3 files changed, 25 insertions(+)
>
AceLan Kao July 22, 2021, 3:59 a.m. UTC | #2
applied to oem-5.13, thanks
Acked-By: AceLan Kao <acelan.kao@canonical.com>
AceLan Kao July 28, 2021, 10:04 a.m. UTC | #3
applied to oem-5.10, thanks
Acked-By: AceLan Kao <acelan.kao@canonical.com>
Stefan Bader Aug. 11, 2021, 8:17 a.m. UTC | #4
On 15.07.21 09:11, Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1936296
> 
> [Impact]
> Video output MUX switched from Intel GPU to Nvidia GPU after S3, so
> display settings are lost.
> 
> [Fix]
> Always use Nvidia GPU to do the video output. This matches the behavior
> on the other OS.
> 
> [Test]
> Connect and external monitor, and change the scaling factor or
> resolution, suspend the laptop.
> After wakeup, the custom monitor setting is kept.
> 
> [Where problems could occur]
> If nvidia.ko or nouveau.ko is blacklisted, the video output may stop
> working, as it's now routed away from i915 device.
> 
> Kai-Heng Feng (1):
>    drm/i915: Invoke another _DSM to enable MUX on HP Workstation laptops
> 
>   drivers/gpu/drm/i915/display/intel_acpi.c     | 19 +++++++++++++++++++
>   drivers/gpu/drm/i915/display/intel_acpi.h     |  3 +++
>   drivers/gpu/drm/i915/display/intel_opregion.c |  3 +++
>   3 files changed, 25 insertions(+)
> 
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Kelsey Skunberg Aug. 11, 2021, 11:02 p.m. UTC | #5
Applied to Hirsute master-next. Thank you! 

-Kelsey

On 2021-07-15 15:11:15 , Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1936296
> 
> [Impact]
> Video output MUX switched from Intel GPU to Nvidia GPU after S3, so
> display settings are lost.
> 
> [Fix]
> Always use Nvidia GPU to do the video output. This matches the behavior
> on the other OS.
> 
> [Test]
> Connect and external monitor, and change the scaling factor or
> resolution, suspend the laptop.
> After wakeup, the custom monitor setting is kept.
> 
> [Where problems could occur]
> If nvidia.ko or nouveau.ko is blacklisted, the video output may stop
> working, as it's now routed away from i915 device.
> 
> Kai-Heng Feng (1):
>   drm/i915: Invoke another _DSM to enable MUX on HP Workstation laptops
> 
>  drivers/gpu/drm/i915/display/intel_acpi.c     | 19 +++++++++++++++++++
>  drivers/gpu/drm/i915/display/intel_acpi.h     |  3 +++
>  drivers/gpu/drm/i915/display/intel_opregion.c |  3 +++
>  3 files changed, 25 insertions(+)
> 
> -- 
> 2.31.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team