[Bug 263761] framework laptop: unable to output to HDMI monitor via HDMI expansion card

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 03 May 2022 19:05:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263761

            Bug ID: 263761
           Summary: framework laptop: unable to output to HDMI monitor via
                    HDMI expansion card
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: jon@xyinn.org

Created attachment 233703
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233703&action=edit
dmesg

Hello all,

As part of my testing (https://xyinn.org/md/freebsd/framework_laptop), I've
noticed that the HDMI Expansion Card (Type C as well since that's the framework
laptop's primary expansion interface) for the framework laptop fails to output
any data to the external monitor (The monitor signal light doesn't even light
up). FreeBSD did detect the HDMI card, and I got some data in xrandr for the
"DP-3" display. However the supported resolutions are incorrect. The same
monitor works via my Anker Dongle's HDMI port (Dongle is Type C) and is
detected as "DP-4" in that scenario and I can output through it.

Below is some information that I noticed in dmesg:

ugen1.2: <Framework HDMI Expansion Card> at usbus1

...

[drm ERROR :intel_dp_get_link_train_fallback_values] Link Training Unsuccessful

the drm error was repeated many times. 

This is the information xrandr reported when it was connected via the HDMI
Expansion Card (DP-3):

DP-3 connected primary 1024x768+0+0 (normal left inverted right x axis y axis)
597mm x 336mm
   1440x576      50.00
   1024x768      60.00*
   1440x480      60.00    59.94
   832x624       74.55
   800x600       72.19    75.00    60.32    56.25
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    72.81    66.67    60.00    59.94
   720x400       70.08

---

This is the same monitor but connected via the Anker Dongle's HDMI port (DP-4):

DP-4 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis)
597mm x 336mm
   2560x1440     59.95*+  99.95  
   1920x1080     60.00    60.00    50.00    59.94    30.00    29.97  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1440x576      50.00  
   1024x768      75.03    70.07    60.00  
   1440x480      60.00    59.94  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08 

Lastly, this is all on the following:

FreeBSD 14.0-CURRENT #1 main-n255108-9fb40baf604: Fri Apr 29 00:08:48 EDT 2022 
   root@leslie:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

- Jonathan

-- 
You are receiving this mail because:
You are the assignee for the bug.