Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Nov 2021 09:56:56 +0100
From:      Cejka Rudolf <cejkar@fit.vutbr.cz>
To:        Emmanuel Vadot <manu@bidouilliste.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Reasons for keeping sc(4) and libvgl ?
Message-ID:  <YaSV2CeuWWsMjy33@fit.vutbr.cz>
In-Reply-To: <20211126160454.3eb827365a02103169ab9adc@bidouilliste.com>
References:  <20211126160454.3eb827365a02103169ab9adc@bidouilliste.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <cejkar at fit.vut.cz> http://www.fit.vut.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YaSV2CeuWWsMjy33>