From owner-freebsd-current@freebsd.org Thu Jan 28 11:41:57 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DDAF6521B70 for ; Thu, 28 Jan 2021 11:41:57 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DRJTx61j2z3FgV; Thu, 28 Jan 2021 11:41:57 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Received: from freebsd2.freebsd.lan (mail.northatlanticmusicsupplies.com [212.237.182.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jsm) by smtp.freebsd.org (Postfix) with ESMTPSA id 5BC5B2FCB0; Thu, 28 Jan 2021 11:41:57 +0000 (UTC) (envelope-from jsm@FreeBSD.org) Subject: Re: vidcontrol < /dev/console -i active ioctl error To: Toomas Soome Cc: freebsd-current@freebsd.org References: From: Jesper Schmitz Mouridsen Message-ID: <7c9aad3d-99fe-860c-3c6f-22086cb31bd1@FreeBSD.org> Date: Thu, 28 Jan 2021 12:41:42 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2021 11:41:57 -0000 On 28.01.2021 08.33, Toomas Soome wrote: > > >> On 28. Jan 2021, at 01:35, Jesper Schmitz Mouridsen > > wrote: >> >> FreeBSD build.freebsd.lan 13.0-ALPHA1 FreeBSD 13.0-ALPHA1 #0 >> main-c255938-g7ae27c2d6c4: Thu Jan 14 06:29:55 UTC 2021 >> root@releng1.nyi.freebsd.org >> :/usr/obj/usr/src/amd64.amd64/sys/GENERIC >> amd64 >> jesper@build:~ $ su >> Password: >> root@build:~ # vidcontrol < /dev/console -i active >> vidcontrol: getting active vty: Inappropriate ioctl for device >> >> build is virtualized in bhyve, it happens as well on my pinebook pro. >> >> This is annoying to sysutils/consolekit2 >> >> on 12.2 it works (not tested on same HW) >> > > it should work for local console: > > root@freebsd:/usr/src #vidcontrol -i active < /dev/console > 1 > > may it be your “primary” is actually serial console? > > rgds, > toomas > Oh that makes sense, I added console="vidconsole,comconsole" to my /boot/loader.conf on the Pinebook Pro and consolekit2 works. Thanks /Jsm