You are not logged in.

#1 2018-09-16 01:29:02

ashton
Member
Registered: 2018-03-06
Posts: 6

Thinkpad X270 + USB-C Dock: Monitor doesn't wake up after disconnect

I have a Thinkpad X270, running Arch and when it's on my desk I connect it to one of these:

https://www.lenovo.com/us/en/accessorie … 40A90090US

Plugged into the dock, I have a monitor (have tried both Displayport and RGB - same issue) as well as a USB keyboard and mouse.

If I boot the laptop with the dock connected, everything comes up fine - once I log in, I can run xrandr and the secondary monitor comes up fine.  If I disconnect the dock, and then reconnect it only a short time later, I can get xrandr to bring the external monitor to life.

However, if I'm away from the dock for longer than a short while, when I reconnect the dock the attached USB devices, power and audio output works fine - however, the monitor is not recognized. xrandr shows that it's disconnected. The only way to get it back is to either reboot the machine (restarting X doesn't seem to work) or, physically disconnect the monitor from the port on the back of the dock (while leaving the USB-C connected to the laptop) and then reconnect it - at which point xrandr seems to recognize it.

I tried the instructions here: https://wiki.archlinux.org/index.php/xr … _xrasengan (regarding getting the port out of sleep state), but to no avail.

Any ideas on what I should try next?

EDIT:

This is the command I use to configure the screen with xrandr:

xrandr --output VIRTUAL1 --off --output eDP1 --mode 1366x768 --pos 0x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --off --output DP1-3 --primary --mode 1920x1080 --pos 1366x0 --rotate normal --output DP1-2 --off --output DP1-1 --off --output DP2 --off

Output from xrandr with the dock connected and display active:

Screen 0: minimum 8 x 8, current 3286 x 1080, maximum 32767 x 32767
eDP1 connected 1366x768+0+0 (0x4d) normal (normal left inverted right x axis y axis) 280mm x 160mm
	Identifier: 0x43
	Timestamp:  34483
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       1
	CRTCs:      1 0 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	EDID: 
		00ffffffffffff0006af6c1000000000
		26160104951c107802867597524b8924
		2a505400000001010101010101010101
		010101010101881d56e2500016302616
		3600149b100000180000000f00000000
		00000000000000000020000000fe0041
		554f0a202020202020202020000000fe
		004231323558544e30312e30200a00ec
	BACKLIGHT: 231 
		range: (0, 852)
	Backlight: 231 
		range: (0, 852)
	scaling mode: Full aspect 
		supported: Full, Center, Full aspect
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		supported: 0, 1
  1366x768 (0x4d) 75.600MHz -HSync -VSync *current +preferred
        h: width  1366 start 1404 end 1426 total 1592 skew    0 clock  47.49KHz
        v: height  768 start  771 end  777 total  790           clock  60.11Hz
  1280x720 (0x193) 74.500MHz -HSync +VSync
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock  44.77KHz
        v: height  720 start  723 end  728 total  748           clock  59.86Hz
  1280x720 (0x194) 74.480MHz -HSync +VSync
        h: width  1280 start 1336 end 1472 total 1664 skew    0 clock  44.76KHz
        v: height  720 start  721 end  724 total  746           clock  60.00Hz
  1280x720 (0x195) 63.750MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  44.27KHz
        v: height  720 start  723 end  728 total  741           clock  59.74Hz
  1024x768 (0x196) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  1024x576 (0x197) 46.995MHz -HSync +VSync
        h: width  1024 start 1064 end 1168 total 1312 skew    0 clock  35.82KHz
        v: height  576 start  577 end  580 total  597           clock  60.00Hz
  1024x576 (0x198) 46.500MHz -HSync +VSync
        h: width  1024 start 1064 end 1160 total 1296 skew    0 clock  35.88KHz
        v: height  576 start  579 end  584 total  599           clock  59.90Hz
  1024x576 (0x199) 42.000MHz +HSync -VSync
        h: width  1024 start 1072 end 1104 total 1184 skew    0 clock  35.47KHz
        v: height  576 start  579 end  584 total  593           clock  59.82Hz
  960x540 (0x19a) 40.784MHz -HSync +VSync
        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.54KHz
        v: height  540 start  541 end  544 total  559           clock  60.00Hz
  960x540 (0x19b) 40.750MHz -HSync +VSync
        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.51KHz
        v: height  540 start  543 end  548 total  562           clock  59.63Hz
  960x540 (0x19c) 37.250MHz +HSync -VSync
        h: width   960 start 1008 end 1040 total 1120 skew    0 clock  33.26KHz
        v: height  540 start  543 end  548 total  556           clock  59.82Hz
  800x600 (0x19d) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x19e) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  864x486 (0x19f) 32.901MHz -HSync +VSync
        h: width   864 start  888 end  976 total 1088 skew    0 clock  30.24KHz
        v: height  486 start  487 end  490 total  504           clock  60.00Hz
  864x486 (0x1a0) 32.500MHz -HSync +VSync
        h: width   864 start  888 end  968 total 1072 skew    0 clock  30.32KHz
        v: height  486 start  489 end  494 total  506           clock  59.92Hz
  864x486 (0x1a1) 30.500MHz +HSync -VSync
        h: width   864 start  912 end  944 total 1024 skew    0 clock  29.79KHz
        v: height  486 start  489 end  494 total  500           clock  59.57Hz
  640x480 (0x1a2) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  720x405 (0x1a3) 22.500MHz -HSync +VSync
        h: width   720 start  744 end  808 total  896 skew    0 clock  25.11KHz
        v: height  405 start  408 end  413 total  422           clock  59.51Hz
  720x405 (0x1a4) 22.176MHz -HSync +VSync
        h: width   720 start  728 end  800 total  880 skew    0 clock  25.20KHz
        v: height  405 start  406 end  409 total  420           clock  60.00Hz
  720x405 (0x1a5) 21.750MHz +HSync -VSync
        h: width   720 start  768 end  800 total  880 skew    0 clock  24.72KHz
        v: height  405 start  408 end  413 total  419           clock  58.99Hz
  680x384 (0x1a6) 19.677MHz -HSync +VSync
        h: width   680 start  688 end  752 total  824 skew    0 clock  23.88KHz
        v: height  384 start  385 end  388 total  398           clock  60.00Hz
  640x360 (0x1a7) 18.000MHz -HSync +VSync
        h: width   640 start  664 end  720 total  800 skew    0 clock  22.50KHz
        v: height  360 start  363 end  368 total  376           clock  59.84Hz
  640x360 (0x1a8) 17.750MHz +HSync -VSync
        h: width   640 start  688 end  720 total  800 skew    0 clock  22.19KHz
        v: height  360 start  363 end  368 total  374           clock  59.32Hz
  640x360 (0x1a9) 17.187MHz -HSync +VSync
        h: width   640 start  640 end  704 total  768 skew    0 clock  22.38KHz
        v: height  360 start  361 end  364 total  373           clock  60.00Hz
DP1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x44
	Timestamp:  34483
	Subpixel:   unknown
	Clones:     HDMI1
	CRTCs:      1 0 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		supported: 0, 1
DP1-1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x45
	Timestamp:  34483
	Subpixel:   unknown
	Clones:     DP1-2 DP1-3
	CRTCs:      1 0 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		supported: 0, 1
DP1-2 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x46
	Timestamp:  34483
	Subpixel:   unknown
	Clones:     DP1-1 DP1-3
	CRTCs:      1 0 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		supported: 0, 1
DP1-3 connected primary 1920x1080+1366+0 (0x1aa) normal (normal left inverted right x axis y axis) 600mm x 340mm
	Identifier: 0x47
	Timestamp:  34483
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:     DP1-1 DP1-2
	CRTC:       0
	CRTCs:      1 0 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	EDID: 
		00ffffffffffff0005e370279c3f0000
		111b0103683c22782a14d5a55852a226
		0c5054bfef00d1c081803168317c4568
		457c6168617c023a801871382d40582c
		450056502100001e000000fd00324c1e
		5311000a202020202020000000fc0047
		323737300a20202020202020000000ff
		0046574a48344841303136323834004e
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		supported: 0, 1
  1920x1080 (0x1aa) 148.500MHz +HSync +VSync *current +preferred
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
  1280x1024 (0x1ab) 135.000MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock  79.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  75.02Hz
  1280x1024 (0x1ac) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1024x768 (0x4e) 139.110MHz -HSync +VSync
        h: width  1024 start 1104 end 1216 total 1408 skew    0 clock  98.80KHz
        v: height  768 start  769 end  772 total  823           clock 120.05Hz
  1024x768 (0x1ad) 113.274MHz -HSync +VSync
        h: width  1024 start 1096 end 1208 total 1392 skew    0 clock  81.38KHz
        v: height  768 start  769 end  772 total  814           clock  99.97Hz
  1024x768 (0x1ae) 78.750MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock  60.02KHz
        v: height  768 start  769 end  772 total  800           clock  75.03Hz
  1024x768 (0x1af) 75.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1328 skew    0 clock  56.48KHz
        v: height  768 start  771 end  777 total  806           clock  70.07Hz
  1024x768 (0x196) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  832x624 (0x1b0) 57.284MHz -HSync -VSync
        h: width   832 start  864 end  928 total 1152 skew    0 clock  49.73KHz
        v: height  624 start  625 end  628 total  667           clock  74.55Hz
  800x600 (0x1b1) 84.011MHz -HSync +VSync
        h: width   800 start  856 end  944 total 1088 skew    0 clock  77.22KHz
        v: height  600 start  601 end  604 total  643           clock 120.09Hz
  800x600 (0x1b2) 68.175MHz -HSync +VSync
        h: width   800 start  848 end  936 total 1072 skew    0 clock  63.60KHz
        v: height  600 start  601 end  604 total  636           clock  99.99Hz
  800x600 (0x1b3) 50.000MHz +HSync +VSync
        h: width   800 start  856 end  976 total 1040 skew    0 clock  48.08KHz
        v: height  600 start  637 end  643 total  666           clock  72.19Hz
  800x600 (0x1b4) 49.500MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock  46.88KHz
        v: height  600 start  601 end  604 total  625           clock  75.00Hz
  800x600 (0x19d) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x19e) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  640x480 (0x1b5) 52.404MHz -HSync +VSync
        h: width   640 start  680 end  744 total  848 skew    0 clock  61.80KHz
        v: height  480 start  481 end  484 total  515           clock 119.99Hz
  640x480 (0x1b6) 43.162MHz -HSync +VSync
        h: width   640 start  680 end  744 total  848 skew    0 clock  50.90KHz
        v: height  480 start  481 end  484 total  509           clock 100.00Hz
  640x480 (0x1b7) 31.500MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock  37.50KHz
        v: height  480 start  481 end  484 total  500           clock  75.00Hz
  640x480 (0x1b8) 31.500MHz -HSync -VSync
        h: width   640 start  664 end  704 total  832 skew    0 clock  37.86KHz
        v: height  480 start  489 end  492 total  520           clock  72.81Hz
  640x480 (0x1b9) 30.240MHz -HSync -VSync
        h: width   640 start  704 end  768 total  864 skew    0 clock  35.00KHz
        v: height  480 start  483 end  486 total  525           clock  66.67Hz
  640x480 (0x1a2) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  720x400 (0x1ba) 28.320MHz -HSync +VSync
        h: width   720 start  738 end  846 total  900 skew    0 clock  31.47KHz
        v: height  400 start  412 end  414 total  449           clock  70.08Hz
DP2 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x48
	Timestamp:  34483
	Subpixel:   unknown
	Clones:     HDMI2
	CRTCs:      1 0 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		supported: 0, 1
HDMI1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x49
	Timestamp:  34483
	Subpixel:   unknown
	Clones:     DP1
	CRTCs:      1 0 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	aspect ratio: Automatic 
		supported: Automatic, 4:3, 16:9
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		supported: 0, 1
HDMI2 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x4a
	Timestamp:  34483
	Subpixel:   unknown
	Clones:     DP2
	CRTCs:      1 0 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	aspect ratio: Automatic 
		supported: Automatic, 4:3, 16:9
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		supported: 0, 1
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x4b
	Timestamp:  34483
	Subpixel:   no subpixels
	Clones:    
	CRTCs:      3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	non-desktop: 0 
		supported: 0, 1

dmesg output on connection of dock:

[ +10.560367] thinkpad_acpi: EC reports that Thermal Table has changed
[  +0.779043] usb 1-2: new high-speed USB device number 12 using xhci_hcd
[  +0.181319] hub 1-2:1.0: USB hub found
[  +0.000049] hub 1-2:1.0: 4 ports detected
[  +0.148949] usb 2-3: new SuperSpeed USB device number 5 using xhci_hcd
[  +0.031390] hub 2-3:1.0: USB hub found
[  +0.000048] hub 2-3:1.0: 4 ports detected
[  +0.888546] usb 2-3.1: new SuperSpeed USB device number 6 using xhci_hcd
[  +0.130008] usb 1-2.2: new full-speed USB device number 14 using xhci_hcd
[  +0.137378] hid-generic 0003:17EF:3060.0009: hiddev0,hidraw0: USB HID v1.11 Device [Cypress Semiconductor Billboard Device] on usb-0000:00:14.0-2.2/input1
[  +0.102736] usb 2-3.4: new SuperSpeed USB device number 7 using xhci_hcd
[  +0.031449] hub 2-3.4:1.0: USB hub found
[  +0.000057] hub 2-3.4:1.0: 4 ports detected
[  +0.098826] usb 2-3.1: reset SuperSpeed USB device number 6 using xhci_hcd
[  +0.081619] r8152 2-3.1:1.0 eth0: v1.09.9
[  +0.047724] usb 1-2.4: new high-speed USB device number 15 using xhci_hcd
[  +0.131517] hub 1-2.4:1.0: USB hub found
[  +0.000049] hub 1-2.4:1.0: 4 ports detected
[  +0.318708] usb 1-2.4.2: new high-speed USB device number 16 using xhci_hcd
[  +0.084603] r8152 2-3.1:1.0 enp0s20f0u3u1: renamed from eth0
[  +0.069285] hub 1-2.4.2:1.0: USB hub found
[  +0.005952] hub 1-2.4.2:1.0: 3 ports detected
[  +0.004627] IPv6: ADDRCONF(NETDEV_UP): enp0s20f0u3u1: link is not ready
[  +0.315541] usb 1-2.4.2.1: new full-speed USB device number 17 using xhci_hcd
[  +0.141544] input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2.1/1-2.4.2.1:1.0/0003:17EF:6047.000A/input/input25
[  +0.069023] lenovo 0003:17EF:6047.000A: input,hidraw1: USB HID v1.00 Keyboard [Lenovo ThinkPad Compact USB Keyboard with TrackPoint] on usb-0000:00:14.0-2.4.2.1/input0
[  +0.006047] input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2.1/1-2.4.2.1:1.1/0003:17EF:6047.000B/input/input26
[  +0.074222] lenovo 0003:17EF:6047.000B: input,hiddev1,hidraw2: USB HID v1.00 Mouse [Lenovo ThinkPad Compact USB Keyboard with TrackPoint] on usb-0000:00:14.0-2.4.2.1/input1
[  +0.099178] usb 1-2.4.2.2: new full-speed USB device number 18 using xhci_hcd
[  +0.142473] logitech-djreceiver 0003:046D:C52B.000E: hiddev2,hidraw3: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-2.4.2.2/input2
[  +0.147675] input: Logitech M570 as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2.2/1-2.4.2.2:1.2/0003:046D:C52B.000E/0003:046D:1028.000F/input/input27
[  +0.000603] logitech-hidpp-device 0003:046D:1028.000F: input,hidraw4: USB HID v1.11 Mouse [Logitech M570] on usb-0000:00:14.0-2.4.2.2:1
[  +0.089292] usb 1-2.4.2.3: new full-speed USB device number 19 using xhci_hcd
[  +0.378627] input: Lenovo ThinkPad USB-C Dock Audio as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.4/1-2.4.2/1-2.4.2.3/1-2.4.2.3:1.3/0003:17EF:3063.0010/input/input28
[  +0.061571] hid-generic 0003:17EF:3063.0010: input,hidraw5: USB HID v1.11 Device [Lenovo ThinkPad USB-C Dock Audio] on usb-0000:00:14.0-2.4.2.3/input3

Last edited by ashton (2018-09-16 01:52:04)

Offline

Board footer

Powered by FluxBB