From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8161D158086 for ; Tue, 11 Jan 2022 09:26:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BB212BC035; Tue, 11 Jan 2022 09:25:59 +0000 (UTC) Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0ED532BC01B for ; Tue, 11 Jan 2022 09:25:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1641893146; bh=Q2bIaVnnpPaYHYMCvqOmYS1deQ4WClprDtJTNIYTTBU=; h=X-UI-Sender-Class:Date:From:To:Subject; b=mKZJ/kVNTOF5OpjFjEeLZrm/sNLgIsoCcmfZDgDsvLY/eS0J408DOXZSFzMG2J7H5 q5fwcAwsR/tuA/ZgTxJ9rbCLnnaeOcSI9QZRU5dDceOAWYapvviwXb8uN8DAWBxwGT kQ3jcAaR6J1o7bMR1l9iz7hhWHVhI08ZUfm+DZZw= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from anfink-laptop ([213.55.224.164]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MjgSv-1mf3bO3ebj-00l1Qw for ; Tue, 11 Jan 2022 10:25:46 +0100 Date: Tue, 11 Jan 2022 10:25:44 +0100 From: Andreas Fink To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen Message-ID: <20220111102544.6992b86f@anfink-laptop> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:+SeFVle9RARFX/pFbuiGun6ryfPDTyfERVLNsLEJw7jpkJ8pMQB FKUpE2is4YD5rJ2UTKWyjEgZEGJuh27wzTiobO0SXpvR5sLDbRyuN8QZAmisJ33nuxvTfZl KvIdMJpCN8xu3IC/leBhThq8kjyHJL36IGTdoVPjnBmzo4c3+YJAe8X2sNqUrl9PskP9PMR eCI8wA0M9cgdRNg99mmyA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:I1xRRJMBb3M=:0It1o5Ng4lxiw7zaaku2pX y2LuanT8NbYJw4G/EufG/EK9EbzNxhjn+1F7lfsiMmvHOlzbglFWvlqtI7rmUO4sgtQBySdH4 vVOEt73utEv1JBmLA3z1SRgHJS+gbClTvs6d67K9PVU3ibNNppCEIpuWKrbeXKVO0AA5+PCAL 8CFtOxWi9+8nfekzsaBGS3/47xLl6LLYjZXEnO0dTJmznTwgaTJoJlTZhfITTFDOQq6ipMYqp j6j/2P7wBJT4JsDeCPp8ifJz68nYBUOOdZNrFqjF3VAcHyotvZZN4M8zORRPPspzMo4y4gC4N Qg4FMK9nCP/RnZBNOGt1/Q9TQZyI3CJaYaM1DHy+P0BK9reqXxBR+N66JGlFdNYyrfLS4F7TD STUzJ13t1WBkM0vcKtRVFK11iwbUnVXNfRBRLYLo/3C0VpHq2G9gvIKqAXiHb+3pUNSA+WwjK Au2lDbk9VMLO9nOmv9J20UaJ8XZxQfOGJ7A1cWvsdMExuz3uA5ClzQKwEK1razOLfOVVh79oG 0QRQsP9cgfzGy7/I7j84j+9VQN7J1DYZRLDOHxBqxNypQabi7J35KLc01y7Ej5U8Ce5RsSn3D o0K0lpPeKf+SGEcViLx/OF+sodPTXeVJ3Z6/zG5FTsP3X0io8wXVBaimPSIvvveQg7mFAB+9A k7gbqIwNwe6staKeV3AjkcmwaFzPHqWdg6F4bNlGFuKVFczbbtIRnKkZJAetgXj8rzmxU5Yrg LgdGyoxGggXWgXJYlTR/y0KoUa2bA/S+lQTYxu+mTperCsIwV991wlZVZGxp384+3vmSHEhjD E5zppBx/u0JeHbKqRxoH9OdqrMQO0c0GqLGvAi5oAoIDS/lBmDGVtlBTKbIpH2zib4uTrmZkk t6Pjsl/t2F6aRLoHVfz5X5mm8wQgWjfZ4Nw/Hw8FKu4sC2U5BCPUyldVqm1gqq/pRSYYVIizp LiycCt5HhHvxWNN65Ci6UKC5hfSS23NPqIj/1HDFxMH96YVScvKz6wrjpHaXzk1XDEkcb7pNl FpmYavJpl1zeKEDjtllSC4ifPbxhBjvIdgPJAG3ghOHIlHcRqUKr72J7is9mgdL4RI3pREViH UrmSOOOaDTQnoQ= X-Archives-Salt: 7aa0f2bc-1901-417d-8264-a5ac35d60ff7 X-Archives-Hash: 155bdb8cb3e2291ef4de296b5e198979 Hello, I've got a new laptop and see a strange behaviour when disconnecting and reconnecting my USB-C screen. Here are the steps that I am doing. I have a dual screen setup with xrandr, with my notebook screen being the primary screen and a second large external screen connected via USB-C to my notebook directly. Now I disconnect the USB-C cable and do not do anything software wise, i.e. my X-Server is still pretending to run on two screens, I can move the screen outside of my notebook screen (into the area where the external screen). Now I reconnect the USB-C cable but the screens stays blank (the the screen it says "No USB Type-C connection from your computer"). The only way to get a signal again is to first use xrandr to only use my notebook screen, and at the exact time udev gets a DRM event, and suddently my external monitor appears within xrandr as connected (I did not touch the cable, I only ran an xrandr command to use only the notebook screen). Right after the DRM event I can run the xrandr command to use both screens, but it is annoying to degrade first to one screen, because all windows are moved around and I do not end up with the same window setup as before. Using the same screen with the same experiment as described above but with a different notebook the screen is able to pick up the signal again, so it's not purely a problem with the external screen. Any idea what is going on and how I can workaround it? I just want to disconnect the cable and reconnect it without the need to switch any xrandr setup. Thanks for your ideas and help Andreas