Re: vidcontrol < /dev/console -i active ioctl error

From: Jesper Schmitz Mouridsen <jsm_at_FreeBSD.org>
Date: Thu, 28 Jan 2021 12:41:42 +0100
On 28.01.2021 08.33, Toomas Soome wrote:
>
>
>> On 28. Jan 2021, at 01:35, Jesper Schmitz Mouridsen <jsm_at_FreeBSD.org 
>> <mailto:jsm_at_FreeBSD.org>> 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_at_releng1.nyi.freebsd.org 
>> <mailto:root_at_releng1.nyi.freebsd.org>:/usr/obj/usr/src/amd64.amd64/sys/GENERIC 
>> amd64
>> jesper_at_build:~ $ su
>> Password:
>> root_at_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_at_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
Received on Thu Jan 28 2021 - 10:41:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:27 UTC