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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AB145138334 for ; Fri, 12 Jul 2019 00:11:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B445BE07FE; Fri, 12 Jul 2019 00:11:44 +0000 (UTC) Received: from km35626.keymachine.de (text-idiomas.com [87.118.86.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2DC73E07DB for ; Fri, 12 Jul 2019 00:11:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by km35626.keymachine.de (Postfix) with ESMTP id DF238112ABB7 for ; Fri, 12 Jul 2019 02:11:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at km35626.keymachine.de. Received: from km35626.keymachine.de ([127.0.0.1]) by localhost (km35626.keymachine.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BurnxQ33p2t3 for ; Fri, 12 Jul 2019 02:11:39 +0200 (CEST) Received: from grusum.endjinn.de (i59F4BAF4.versanet.de [89.244.186.244]) by km35626.keymachine.de (Postfix) with ESMTPSA id D1488112A8CB for ; Fri, 12 Jul 2019 02:11:39 +0200 (CEST) Received: by grusum.endjinn.de (Postfix, from userid 500) id 741AE1701F0; Fri, 12 Jul 2019 02:11:09 +0200 (CEST) Date: Fri, 12 Jul 2019 02:11:35 +0200 From: David Haller To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: escape from i3lock Message-ID: <20190712001135.g7ziilwhkxoo7slx@grusum.endjinn.de> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20190710170342.se2klmfd52dvq6j6@matica.foolinux.mooo.com> <151b19fd-9f07-c9b7-171a-a3925d14cac4@yahoo.fr> <20190710224832.oel5exzte4bayry2@matica.foolinux.mooo.com> <20190711165733.l2x2wdo5qzxklfio@matica.foolinux.mooo.com> <20190711204705.mephdbucjn7rmptp@matica.foolinux.mooo.com> <2e7820e8c6ef5aaa4e0b7852a66b873ad1915452.camel@openeye.net> 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=iso-8859-15 Content-Disposition: inline In-Reply-To: <2e7820e8c6ef5aaa4e0b7852a66b873ad1915452.camel@openeye.net> Organization: Nah, not today! X-Clacks-Overhead: GNU Terry Pratchett User-Agent: NeoMutt/20170609 (1.8.3) X-Archives-Salt: cdc98fb6-8266-4b8d-9495-b7b39a22c5fb X-Archives-Hash: cddd4cd8f0f1218b0a1d1b09a402b1a8 Hello, On Thu, 11 Jul 2019, Laurence Perkins wrote: >You could also leave DontVTSwitch on all the time and set a keyboard >shortcut to run chvt (man 1 chvt) with appropriate permissions and >parameters instead. Keyboard shortcuts shouldn't get processed if the >screen is locked. The screensaver has to get _and keep_ the lock on input. The sad thing is, people do needless rewrites and get it wrong again and again and again, despite jwz' xscreensaver code from 1991 on, setting an example on how to do it right... Cue gnome-screensaver, the kde stuff, apparently also i3lock etc.pp. ad nauseam, all repeating the very bugs jwz wrote about in 2004 (the toolkits.html)... VT Switching is just a little subclass of the underlying problems of those "lock screen" programs that don't lock your screen. ==== https://www.jwz.org/xscreensaver/toolkits.html / Epilogue ==== I wrote this document in 2004, explaining the approach to privilege separation that xscreensaver has taken since 1991. Of course, the people doing needless rewrites of xscreensaver have ignored it for that whole time, and have then gone on to introduce exactly the bug that I described in this document as a hypothetical strawman! And -- this would be hilarious if it weren't so sad -- have introduced it multiple times. As I said in 2015: If you are not running xscreensaver on Linux, then it is safe to assume that your screen does not lock. Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy. ==== (read the whole thing linked document!). Also: https://www.jwz.org/xscreensaver/man1.html#8 https://www.jwz.org/blog/2014/04/the-awful-thing-about-getting-it-right-the-first-time-is-that-nobody-realizes-how-hard-it-was/ https://www.jwz.org/blog/2015/04/i-told-you-so-again/ (also follow the "previous" links ;) So the solution is to just use "xscreensaver" by jwz. Which can be configured to just blank the screen etc. as wanted by the op. See also the FAQ: https://www.jwz.org/xscreensaver/faq.html HTH, -dnh -- "Humans need fantasy .. to *be* human" -- Death (in Hogfather)