Friday, August 26, 2022

Re: Two external monitors via Thinkpad Thunderbolt 3 Dock Gen 2

Last time I checked, OpenBSD doesn't support Thunderbolt.

Cheers,

Noth

On 26/08/2022 17:20, Julian Huhn wrote:
> I tried my old docking station, the Thinkpad Ultra Dock Type 40A2 and
> got the same result with it. The screen is mirrored on both external
> monitors. `xrandr` shows both external monitors as one.
> The CPU can handle three monitors (two external and one internal). I
> was able to verify this with a Linux live USB drive.
>
> On Fri, Aug 19, 2022 at 03:12:58PM +0200, Julian Huhn wrote:
>> Moin!
>>
>> I want to connect two Thinkvision monitors (HDMI and DP) to my X270
>> via a Thinkpad Thunderbolt 3 Dock Gen 2 (USB-C) and extend the screen
>> over now all three monitors (X270 + Thinkvision + Thinkvision).
>> Unfortunately, `xrandr` only shows one external monitor and if i run
>> `xrandr --output DP-1 --auto --output eDP-1 --auto --right-of DP-1`
>> then both external Thinkvision monitors show the same screen.
>>
>> What can i do so that OpenBSD will recognize both external monitors
>> separately? Is there some limitation on Thunderbolt/USB-C with
>> OpenBSD i didn't see?
>>
>> x270$ xrandr
>> Screen 0: minimum 320 x 200, current 3926 x 1440, maximum 16384 x 16384
>> eDP-1 connected primary 1366x768+0+0 (normal left inverted right x
>> axis y axis) 277mm x 156mm
>>   1366x768      60.00*+  48.00
>>   1280x720      60.00    59.99    59.86    59.74
>>   1024x768      60.04    60.00
>>   960x720       60.00
>>   928x696       60.05
>>   896x672       60.01
>>   1024x576      59.95    59.96    59.90    59.82
>>   960x600       59.93    60.00
>>   960x540       59.96    59.99    59.63    59.82
>>   800x600       60.00    60.32    56.25
>>   840x525       60.01    59.88
>>   864x486       59.92    59.57
>>   700x525       59.98
>>   800x450       59.95    59.82
>>   640x512       60.02
>>   700x450       59.96    59.88
>>   640x480       60.00    59.94
>>   720x405       59.51    58.99
>>   684x384       59.88    59.85
>>   640x400       59.88    59.98
>>   640x360       59.86    59.83    59.84    59.32
>>   512x384       60.00
>>   512x288       60.00    59.92
>>   480x270       59.63    59.82
>>   400x300       60.32    56.34
>>   432x243       59.92    59.57
>>   320x240       60.05
>>   360x202       59.51    59.13
>>   320x180       59.84    59.32
>> DP-1 connected 2560x1440+1366+0 (normal left inverted right x axis y
>> axis) 527mm x 296mm
>>   2560x1440     59.95*+  74.78
>>   1920x1200     59.95
>>   1920x1080     60.00    50.00
>>   1680x1050     59.88
>>   1280x1024     75.02    60.02
>>   1440x900      59.90
>>   1152x864      75.00
>>   1280x720      60.00    50.00    59.94
>>   1024x768      75.03    70.07    60.00
>>   800x600       72.19    75.00    60.32
>>   720x576       50.00
>>   720x480       60.00    59.94
>>   640x480       75.00    72.81    66.67    60.00    59.94
>>   720x400       70.08
>> HDMI-1 disconnected (normal left inverted right x axis y axis)
>> DP-2 disconnected (normal left inverted right x axis y axis)
>> HDMI-2 disconnected (normal left inverted right x axis y axis)
>>
>> x270$ dmesg
>> OpenBSD 7.2-beta (GENERIC.MP) #693: Mon Aug 15 23:59:09 MDT 2022
>> deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>> real mem = 8442761216 (8051MB)
>> avail mem = 8169517056 (7791MB)
>> random: good seed from bootblocks
>> mpath0 at root
>> scsibus0 at mpath0: 256 targets
>> mainbus0 at root
>> bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xca6a0000 (61 entries)
>> bios0: vendor LENOVO version "R0IET58W (1.36 )" date 04/19/2019
>> bios0: LENOVO 20K5S09M00
>> acpi0 at bios0: ACPI 5.0
>> acpi0: sleep states S0 S3 S4 S5
>> acpi0: tables DSDT FACP TCPA SSDT UEFI SSDT SSDT HPET APIC MCFG ECDT
>> SSDT SSDT BOOT BATB SLIC SSDT SSDT SSDT WSMT SSDT SSDT DBGP DBG2 MSDM
>> ASF! FPDT UEFI
>> acpi0: wakeup devices GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4) RP01(S4)
>> RP02(S4) RP04(S4) RP05(S4) RP06(S4) RP07(S4) RP08(S4) RP09(S4)
>> RP10(S4) RP11(S4) RP12(S4) RP13(S4) [...]
>> acpitimer0 at acpi0: 3579545 Hz, 24 bits
>> acpihpet0 at acpi0: 23999999 Hz
>> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
>> cpu0 at mainbus0: apid 0 (boot processor)
>> cpu0: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2294.66 MHz, 06-4e-03
>> cpu0:
>> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
>> cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB
>> 64b/line 4-way L2 cache, 3MB 64b/line 12-way L3 cache
>> cpu0: smt 0, core 0, package 0
>> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
>> cpu0: apic clock running at 24MHz
>> cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
>> cpu1 at mainbus0: apid 2 (application processor)
>> cpu1: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2294.66 MHz, 06-4e-03
>> cpu1:
>> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
>> cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB
>> 64b/line 4-way L2 cache, 3MB 64b/line 12-way L3 cache
>> cpu1: smt 0, core 1, package 0
>> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
>> acpimcfg0 at acpi0
>> acpimcfg0: addr 0xf0000000, bus 0-63
>> acpiec0 at acpi0
>> acpiprt0 at acpi0: bus 0 (PCI0)
>> acpiprt1 at acpi0: bus 2 (RP01)
>> acpiprt2 at acpi0: bus -1 (RP02)
>> acpiprt3 at acpi0: bus 3 (RP03)
>> acpiprt4 at acpi0: bus -1 (RP04)
>> acpiprt5 at acpi0: bus 4 (RP05)
>> acpiprt6 at acpi0: bus -1 (RP06)
>> acpiprt7 at acpi0: bus -1 (RP07)
>> acpiprt8 at acpi0: bus -1 (RP08)
>> acpiprt9 at acpi0: bus -1 (RP09)
>> acpiprt10 at acpi0: bus -1 (RP10)
>> acpiprt11 at acpi0: bus -1 (RP11)
>> acpiprt12 at acpi0: bus -1 (RP12)
>> acpiprt13 at acpi0: bus -1 (RP13)
>> acpiprt14 at acpi0: bus -1 (RP14)
>> acpiprt15 at acpi0: bus -1 (RP15)
>> acpiprt16 at acpi0: bus -1 (RP16)
>> acpiprt17 at acpi0: bus -1 (RP17)
>> acpiprt18 at acpi0: bus -1 (RP18)
>> acpiprt19 at acpi0: bus -1 (RP19)
>> acpiprt20 at acpi0: bus -1 (RP20)
>> acpiprt21 at acpi0: bus -1 (RP21)
>> acpiprt22 at acpi0: bus -1 (RP22)
>> acpiprt23 at acpi0: bus -1 (RP23)
>> acpiprt24 at acpi0: bus -1 (RP24)
>> acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
>> "LEN0268" at acpi0 not configured
>> acpiac0 at acpi0: AC unit online
>> acpibat0 at acpi0: BAT0 model "01AV459" serial  1126 type LiP oem "SMP"
>> acpibat1 at acpi0: BAT1 model "45N1775" serial  7759 type LION oem
>> "SANYO"
>> acpicmos0 at acpi0
>> "INT3515" at acpi0 not configured
>> acpibtn0 at acpi0: SLPB
>> "PNP0C14" at acpi0 not configured
>> acpibtn1 at acpi0: LID_
>> "PNP0C14" at acpi0 not configured
>> "PNP0C14" at acpi0 not configured
>> "PNP0C14" at acpi0 not configured
>> tpm0 at acpi0 TPM_ 1.2 (TIS) addr 0xfed40000/0x5000, device
>> 0x0000104a rev 0x4e
>> acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151
>> mwait.1@0x33), C1(1000@1 mwait.1), PSS
>> acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151
>> mwait.1@0x33), C1(1000@1 mwait.1), PSS
>> acpipwrres0 at acpi0: PUBS, resource for XHC_
>> acpipwrres1 at acpi0: WRST
>> acpipwrres2 at acpi0: WRST
>> acpitz0 at acpi0: critical temperature is 128 degC
>> acpivideo0 at acpi0: GFX0
>> acpivout0 at acpivideo0: DD1F
>> cpu0: using VERW MDS workaround (except on vmm entry)
>> cpu0: Enhanced SpeedStep 2294 MHz: speeds: 2401, 2400, 2300, 2200,
>> 2000, 1900, 1700, 1600, 1400, 1300, 1100, 1000, 800, 700, 500, 400 MHz
>> pci0 at mainbus0 bus 0
>> pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08
>> inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 520" rev 0x07
>> drm0 at inteldrm0
>> inteldrm0: msi, SKYLAKE, gen 9
>> xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21:
>> msi, xHCI 1.0
>> usb0 at xhci0: USB revision 3.0
>> uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
>> 3.00/1.00 addr 1
>> pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
>> dwiic0 at pci0 dev 21 function 0 "Intel 100 Series I2C" rev 0x21:
>> apic 2 int 16
>> iic0 at dwiic0
>> dwiic1 at pci0 dev 21 function 1 "Intel 100 Series I2C" rev 0x21:
>> apic 2 int 17
>> iic1 at dwiic1
>> "INT3515" at iic1 addr 0x38 not configured
>> "Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
>> ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
>> pci1 at ppb0 bus 2
>> rtsx0 at pci1 dev 0 function 0 "Realtek RTS522A Card Reader" rev
>> 0x01: msi
>> sdmmc0 at rtsx0: 4-bit, dma
>> ppb1 at pci0 dev 28 function 2 "Intel 100 Series PCIE" rev 0xf1: msi
>> pci2 at ppb1 bus 3
>> iwm0 at pci2 dev 0 function 0 "Intel AC 8260" rev 0x3a, msi
>> ppb2 at pci0 dev 28 function 4 "Intel 100 Series PCIE" rev 0xf1: msi
>> pci3 at ppb2 bus 4
>> nvme0 at pci3 dev 0 function 0 "Samsung SM961/PM961 NVMe" rev 0x00:
>> msix, NVMe 1.2
>> nvme0: SAMSUNG MZVLW256HEHP-000L7, firmware 4L7QCXB7, serial
>> S35ENA1K262637
>> scsibus1 at nvme0: 2 targets, initiator 0
>> sd0 at scsibus1 targ 1 lun 0: <NVMe, SAMSUNG MZVLW256, 4L7Q>
>> sd0: 244198MB, 512 bytes/sector, 500118192 sectors
>> pcib0 at pci0 dev 31 function 0 "Intel 100 Series LPC" rev 0x21
>> "Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
>> azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev
>> 0x21: msi
>> azalia0: codecs: Realtek ALC298, Intel/0x2809, using Realtek ALC298
>> audio0 at azalia0
>> ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev 0x21:
>> apic 2 int 16
>> iic2 at ichiic0
>> em0 at pci0 dev 31 function 6 "Intel I219-LM" rev 0x21: msi, address
>> 54:e1:ad:ba:f3:b7
>> isa0 at pcib0
>> isadma0 at isa0
>> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
>> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
>> pckbd0 at pckbc0 (kbd slot)
>> wskbd0 at pckbd0: console keyboard
>> pms0 at pckbc0 (aux slot)
>> wsmouse0 at pms0 mux 0
>> wsmouse1 at pms0 mux 0
>> pms0: Synaptics clickpad, firmware 8.2, 0x1e2b1 0x943300 0x330340
>> 0xf407a3 0x12e800
>> pcppi0 at isa0 port 0x61
>> spkr0 at pcppi0
>> efifb at mainbus0 not configured
>> uhub1 at uhub0 port 2 configuration 1 interface 0 "VIA Labs, Inc.
>> USB2.0 Hub" rev 2.10/51.63 addr 2
>> uhub2 at uhub1 port 1 configuration 1 interface 0 "VIA Labs, Inc.
>> USB2.0 Hub" rev 2.10/51.33 addr 3
>> uhub3 at uhub2 port 1 configuration 1 interface 0 "Lenovo USB2.0 HUB"
>> rev 2.00/61.60 addr 4
>> uaudio0 at uhub3 port 2 configuration 1 interface 1 "Lenovo ThinkPad
>> Thunderbolt 3 Dock USB Audio" rev 2.01/0.92 addr 5
>> uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 4 ctls
>> audio1 at uaudio0
>> uhidev0 at uhub3 port 2 configuration 1 interface 3 "Lenovo ThinkPad
>> Thunderbolt 3 Dock USB Audio" rev 2.01/0.92 addr 5
>> uhidev0: iclass 3/0, 16 report ids
>> ucc0 at uhidev0 reportid 1: 6 usages, 3 keys, enum
>> wskbd1 at ucc0 mux 1
>> uhid0 at uhidev0 reportid 2: input=2, output=0, feature=0
>> uhid1 at uhidev0 reportid 3: input=0, output=2, feature=0
>> uhid2 at uhidev0 reportid 4: input=0, output=38, feature=0
>> uhid3 at uhidev0 reportid 5: input=34, output=0, feature=0
>> uhid4 at uhidev0 reportid 6: input=0, output=36, feature=0
>> uhid5 at uhidev0 reportid 7: input=32, output=0, feature=0
>> uhid6 at uhidev0 reportid 16: input=2, output=0, feature=0
>> uhidev1 at uhub2 port 4 configuration 1 interface 0 "Keychron
>> Keychron K2" rev 2.00/1.02 addr 6
>> uhidev1: iclass 3/1
>> ukbd0 at uhidev1: 8 variable keys, 5 key codes
>> wskbd2 at ukbd0 mux 1
>> uhidev2 at uhub2 port 4 configuration 1 interface 1 "Keychron
>> Keychron K2" rev 2.00/1.02 addr 6
>> uhidev2: iclass 3/1, 6 report ids
>> ukbd1 at uhidev2 reportid 1: 120 variable keys, 0 key codes
>> wskbd3 at ukbd1 mux 1
>> uhid7 at uhidev2 reportid 2: input=1, output=0, feature=0
>> ucc1 at uhidev2 reportid 3: 829 usages, 18 keys, array
>> wskbd4 at ucc1 mux 1
>> uhid8 at uhidev2 reportid 5: input=3, output=0, feature=0
>> ums0 at uhidev2 reportid 6: 3 buttons, Z dir
>> wsmouse2 at ums0 mux 0
>> uhidev3 at uhub1 port 3 configuration 1 interface 0 "CHERRY Wireless
>> Mouse" rev 1.10/1.01 addr 7
>> uhidev3: iclass 3/1, 5 report ids
>> ums1 at uhidev3 reportid 3: 5 buttons, Z and W dir
>> wsmouse3 at ums1 mux 0
>> uhid9 at uhidev3 reportid 5: input=5, output=6, feature=0
>> ugen0 at uhub1 port 5 "LENOVO 40AN" rev 2.01/31.69 addr 8
>> umb0 at uhub0 port 3 configuration 1 interface 12 "Sierra Wireless,
>> Incorporated Sierra Wireless EM7455 Qualcomm Snapdragon X7 LTE-A" rev
>> 2.00/0.06 addr 9
>> ugen1 at uhub0 port 3 configuration 1 "Sierra Wireless, Incorporated
>> Sierra Wireless EM7455 Qualcomm Snapdragon X7 LTE-A" rev 2.00/0.06
>> addr 9
>> uhub4 at uhub0 port 15 configuration 1 interface 0 "VIA Labs, Inc.
>> USB3.1 Hub" rev 3.10/51.63 addr 10
>> uhub5 at uhub4 port 1 configuration 1 interface 0 "VIA Labs, Inc.
>> USB3.1 Hub" rev 3.10/51.33 addr 11
>> ure0 at uhub5 port 2 configuration 1 interface 0 "Realtek ThinkPad
>> TBT 3 Dock" rev 3.00/31.01 addr 12
>> ure0: RTL8153B (0x6010), address 08:3a:88:61:60:b3
>> rgephy0 at ure0 phy 0: RTL8251 PHY, rev. 0
>> vscsi0 at root
>> scsibus2 at vscsi0: 256 targets
>> softraid0 at root
>> scsibus3 at softraid0: 256 targets
>> sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
>> sd1: 244197MB, 512 bytes/sector, 500116607 sectors
>> root on sd1a (7687246e29ebe670.a) swap on sd1b dump on sd1b
>> drm:pid0:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm]
>> [ENCODER:102:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI
>> clock, gate it
>> drm:pid0:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm]
>> [ENCODER:116:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI
>> clock, gate it
>> inteldrm0: 1366x768, 32bpp
>> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using
>> wskbd0
>> wskbd1: connecting to wsdisplay0
>> wskbd2: connecting to wsdisplay0
>> wskbd3: connecting to wsdisplay0
>> wskbd4: connecting to wsdisplay0
>> wsdisplay0: screen 1-5 added (std, vt100 emulation)
>> iwm0: hw rev 0x200, fw ver 36.ca7b901d.0, address b8:08:cf:8c:38:45
>>
>> --Huhn
>>

No comments:

Post a Comment