vidcontrol < /dev/console -i active ioctl error

Toomas Soome tsoome at me.com
Thu Jan 28 07:33:57 UTC 2021



> On 28. Jan 2021, at 01:35, Jesper Schmitz Mouridsen <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:/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



More information about the freebsd-current mailing list