From owner-freebsd-x11@freebsd.org Thu Dec 27 10:26:18 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29E431357A51 for ; Thu, 27 Dec 2018 10:26:18 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2607:f740:d:20::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8F4EE6CB5F; Thu, 27 Dec 2018 10:26:17 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 43QQwc1QsZzDjDP; Thu, 27 Dec 2018 10:26:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id CzaWp6yAV1IP; Thu, 27 Dec 2018 10:26:07 +0000 (UTC) Received: from garnet.daemonic.se (unknown [IPv6:2001:470:dca9:201:25be:edfd:c331:f8d8]) by mail.daemonic.se (Postfix) with ESMTPSA id 43QQwb3XsXzDjCL; Thu, 27 Dec 2018 10:26:07 +0000 (UTC) Subject: Re: Dock station To: Charlie Li , "freebsd-x11@freebsd.org" References: <0B1E35D0-7921-4AD9-8F5B-BF7F072E04F0@FreeBSD.org> <527c399b-faa7-2e7b-f012-ced03aa7009c@freebsd.org> From: Niclas Zeising Message-ID: Date: Thu, 27 Dec 2018 11:26:06 +0100 User-Agent: Mutt/1.5.21 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 8F4EE6CB5F X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; ASN(0.00)[asn:36236, ipnet:2607:f740:d::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2018 10:26:18 -0000 On 12/27/18 10:36 AM, Charlie Li wrote: > On 27/12/2018 04:11, Niclas Zeising wrote: >> On 12/27/18 8:54 AM, Martin Wilke wrote: >>> Hi, >>> >>> I have a thinkpad t480 (2018 model) / dock station. Everything works >>> fine except that when i disconnect from the dock station and >>> reconnect, my monitors won't be detected without restarting x. Is >>> there any known workaround for that? >>> >> >> This is the thunderbolt dock, right? >> Regards! > USB-C. Which means thunderbolt iirc. Thunderbolt isn't supported at all on FreeBSD. Apparently there are no public specs to write drivers from. > > This behaviour is also present on at least the previous generation > mechanical docks, as I regularly disconnect and connect my ThinkPad > W550s (2015) to mine. Always have to zap X before suspending the machine > prior to disconnecting from the dock, or else open the lid to a black > screen where the only way out is to zap X. Reconnecting to the dock is > similar; have to zap X before the console shows on all monitors. > > Back when this machine ran Linux prior to August 2017, monitor detection > in this way only worked to a certain extent. It was highly kernel > driver-dependent from what I can remember, though the desktop > environment or window manager probably played a role here too. > > This is all with i915kms (doesn't matter which Linux kernel version of > drm-kmod), by the way. > If it's a problem on Linux, then it's most likely a problem on FreeBSD as well, remember that the drivers are basically the same. What does xrandr say once you've plugged the dock back in? Regards -- Niclas Zeising