From nobody Thu Jun 23 07:43:08 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1AD45877CB7 for ; Thu, 23 Jun 2022 07:43:24 +0000 (UTC) (envelope-from cejkar@fit.vutbr.cz) Received: from kazi.fit.vutbr.cz (kazi.fit.vutbr.cz [IPv6:2001:67c:1220:808::93e5:80c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "kazi.fit.vutbr.cz", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LTC0q0Nhkz4lJy for ; Thu, 23 Jun 2022 07:43:22 +0000 (UTC) (envelope-from cejkar@fit.vutbr.cz) Received: from kazi.fit.vutbr.cz (localhost [127.0.0.1]) by kazi.fit.vutbr.cz (8.17.1.9/8.17.1) with ESMTPS id 25N7hC5I033417 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 23 Jun 2022 09:43:12 +0200 (CEST) (envelope-from cejkar@fit.vutbr.cz) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fit.vutbr.cz; s=mx1; t=1655970192; bh=NdMyovcifJXqSJH909j/AqxJLYQ0CokGujx8Ku3j5k4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=djXJ4l6dAa7rsT7hi6YuK/HyGGNeiTE6bIeGY5/XGH5CrW3hHWb9w0HijzL3s4LR4 MQj6ze8rWkiKNu5GaQG9KAPyTMl2XI/ElddSZMdIefRCRu0ygwER4ST9hpL4d5X/iz N24/WmdhaTWYeLHzHWUERDZEs2mePjZf3rHCKEI0= Received: (from cejkar@localhost) by kazi.fit.vutbr.cz (8.17.1.9/8.17.1/Submit) id 25N7h877033405; Thu, 23 Jun 2022 09:43:08 +0200 (CEST) (envelope-from cejkar@fit.vutbr.cz) X-Authentication-Warning: kazi.fit.vutbr.cz: cejkar set sender to cejkar@fit.vutbr.cz using -f Date: Thu, 23 Jun 2022 09:43:08 +0200 From: Cejka Rudolf To: Emmanuel Vadot Cc: freebsd-hackers@freebsd.org Subject: Re: Reasons for keeping sc(4) and libvgl ? Message-ID: References: <20211126160454.3eb827365a02103169ab9adc@bidouilliste.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LTC0q0Nhkz4lJy X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fit.vutbr.cz header.s=mx1 header.b=djXJ4l6d; dmarc=pass (policy=none) header.from=fit.vutbr.cz; spf=pass (mx1.freebsd.org: domain of cejkar@fit.vutbr.cz designates 2001:67c:1220:808::93e5:80c as permitted sender) smtp.mailfrom=cejkar@fit.vutbr.cz X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[fit.vutbr.cz:s=mx1]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:kazi.fit.vutbr.cz]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[fit.vutbr.cz:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[fit.vutbr.cz,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-hackers]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:197451, ipnet:2001:67c:1220::/46, country:CZ]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello, so is there any solution for problem below now? Cejka Rudolf wrote (2021/11/29): > Hello, > I have one problem or two with VT in FreeBSD 12. I wrote a question in > freebsd-stable what to do, but without response, so I still have to > use SC. Please, could you look at it? There is not configured device > /dev/console without monitor after upgrade from 11 to 12 and device > /dev/kbdmux0 is busy using VT but not with SC. > > Subject: Unable to grab keyboard with VT on a headless node in stable/12 > > Hello, > I have a headless node without monitor and without keyboard. There > is just network and USB card reader in keyboard mode. > > In stable/11, there was no problem to disconnect USB card reader > from kbdmux using kbdcontrol -A ukbd0 < /dev/console and open > /dev/ukbd0 in a program. > > However, under stable/12 it works just with connected monitor. > > Without monitor, there is an error: > > # kbdcontrol < /dev/console > -bash: /dev/console: Device not configured > > Furthermore with default VT, it is also impossible to use /dev/kbdmux0: > > # kbdcontrol < /dev/kbdmux0 > -bash: /dev/kbdmux0: Device busy > > I have found a workaround using SC, where it is possible to atleast > open /dev/kbdmux0 and use kbdcontrol -A ukbd0 < /dev/kbdmux0, but why > keyboard operation is now dependend on connected monitor? And why VT > does not allow to open /dev/kbdmux0? > > Thank you. -- Rudolf Cejka https://www.fit.vut.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 1/2, 612 00 Brno, Czech Republic