You are not logged in.

#1 2017-01-08 12:47:11

anno2100
Member
Registered: 2016-10-22
Posts: 15

[SOLVED] T460s: Screens won't turn on after redocking

Hi everyone

I pretty much have the same issue as described here: https://bbs.archlinux.org/viewtopic.php?id=219578. But as this topic is marked as solved and the solutions don't help me I decided to open a new thread instead of bumping. I hope that's ok.

I have a T460s with an Ultradock and 2 external 24" screens connected via HDMI to the docking station. I run Arch with the current 4.8.13 kernel and use i3wm.

I use xrandr to change from 1 screen (laptop) to 3 screens (laptop + 2 docking) and back:

1 screen:

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

3 screens:

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

If I change to 3 screens after booting (while docked) the 3 screens turn on nicely. If I redock the external ones won't turn on anymore. They neither do it after suspending the laptop as proposed in the other thread (systemctl suspend).
When I use the lts-kernel (4.4.40-1-lts), the first external screen turns on after redocking, the third one remains off though.

At the moment I don't know what I could do anymore and would really appreciate any help! Thank you guys in advance.

Best,
anno



I also append the output of xrandr while docked/undocked.

undocked:

Screen 0: minimum 8 x 8, current 5760 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   2560x1440     60.00 +  48.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     60.00  
   1920x1080     60.00* 
   1600x1200     60.00  
   1400x1050     59.98  
   1600x900      60.00  
   1280x1024     60.02  
   1280x960      60.00  
   1368x768      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP2-1 disconnected (normal left inverted right x axis y axis)
DP2-2 disconnected (normal left inverted right x axis y axis)
DP2-3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

docked:

Screen 0: minimum 8 x 8, current 5760 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   2560x1440     60.00 +  48.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     60.00  
   1920x1080     60.00* 
   1600x1200     60.00  
   1400x1050     59.98  
   1600x900      60.00  
   1280x1024     60.02  
   1280x960      60.00  
   1368x768      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP2-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 530mm x 300mm
   1920x1080     60.00*+  50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.08    60.00  
   832x624       74.55  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
DP2-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 530mm x 300mm
   1920x1080     60.00*+  50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.90  
   1280x800      59.91  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
   720x400       70.08  
DP2-3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Last edited by anno2100 (2017-09-25 22:07:46)

Offline

#2 2017-08-10 12:34:16

MikeyR
Member
Registered: 2017-08-10
Posts: 1

Re: [SOLVED] T460s: Screens won't turn on after redocking

I have the same issue, have a Thinkpad p51 with docking station 230W, when I start up my pc connected to the dock I can easily connect to the two displayport monitors, and still have my laptop on. When I disconnect I run a xrandr command which disable my two outputs and make my laptop monitor primary again, and then I disconnect my laptop. When I reconnect I have to reboot my laptop or restart lightdm to be able to connect to the external monitors. If I try to connect through xrandr to my external monitors I get an error, unless I reboot or restart lightdm. I must confess that I'm running Ubuntu 16.04 with i3wm.

Last edited by MikeyR (2017-08-10 12:35:09)

Offline

#3 2017-09-25 22:07:22

anno2100
Member
Registered: 2016-10-22
Posts: 15

Re: [SOLVED] T460s: Screens won't turn on after redocking

Sorry for my late reply. I had a lot of other stuff to do and the issue persisted for so long that I nearly gave up on it.
Today I got around to it again and decided to try "xrasengan" which I found here: https://wiki.archlinux.org/index.php/xr … _xrasengan
I don't think we have an X crash but it also mentions "Use this workaround to turn on connected outputs that may be in suspend mode and hence shown as disconnected, as is often the case of DisplayPort monitors"

Now with xrasengan -on DP2-2 I could turn on my DP connected monitor but not my HDMI connected one. BUT afterwards I can execute my normal xrandr command again to restore my original configuration.
I honestly don't know why it is working but for me it does the trick even though it takes maybe 10 seconds.

This is my script now:

#!/bin/sh
 xrasengan -on DP2-2
 xrandr --output VIRTUAL2 --off --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output DP2-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output DP2-2 --mode            1920x1080 --pos 3840x0 --rotate normal --output DP2-3 --off --output HDMI2 --off --output HDMI1 --off --output DP2 --off

If someone discovered a way to get this to work only using xrandr and without waiting 10 seconds please let me know wink

Offline

Board footer

Powered by FluxBB