[artix-general] [s6] random boot error -> setfont: ERROR kdfontop.c:232 put_font_kdfontop: ioctl(KDFONTOP): Input/output error

Javier je-vv at e.email
Mon Feb 15 02:53:03 CET 2021


On 2/14/21 7:32 PM, Javier wrote:
> On 2/14/21 7:03 PM, Javier wrote:
>> On 2/14/21 6:54 PM, Kian Kasad wrote:
>>> ...
>>> Take a look at /etc/s6/sv/console-setup/shell_up. Maybe add an echo to
>>> stderr before and after the call to setfont(1). If you see the lines
>>> appear before and after the error in the console, that's definitely
>>> where the issue is. You can also try logging that entire setfont command
>>> so you can reproduce it later.
>>
>> Will do as soon as I can.  Thanks !
> 
> OK, yeap, a 1st echo shows at the right of the prompt (as the error used to show up), then in the following line shows the error, and then there show up around 4 lines of the same echo (couldn't count, it's really fast)...
> 
> What do you mean by "You can also try logging that entire setfont command"?  Something like?
> 
>          setfont ${FONT_MAP:+-m $FONT_MAP} ${FONT_UNIMAP:+-u $FONT_UNIMAP} \
>                  $FONT -C "/dev/tty${_index}" >& <some_place>/setfont.log
> 
> Such thing would prevent seeing the failure I'd guess, but it would log it under <some_place>/setfont.log.  Is that what you meant?

Just in case, this is what I see:

> artixlinux login:  error diagnosing on stderr
> setfont: ERROR kdfontop.c:232 put_font_kdfontop: ioctl(KDFONTOP): Input/output error
> error diagnosing on stderr
> error diagnosing on stderr
> error diagnosing on stderr
> error diagnosing on stderr
> error diagnosing on stderr
> error diagnosing on stderr

That with this script:

> % cat /etc/s6/sv/console-setup/shell_up                                                                                                                                                                                            
> #!/bin/sh
> 
> [ -r /etc/vconsole.conf ] && . /etc/vconsole.conf
> TTYS=${TTYS:-6}
> _index=0
> while [ ${_index} -le $TTYS ]; do
>     if [ -n "$FONT" ]; then
>         setfont ${FONT_MAP:+-m $FONT_MAP} ${FONT_UNIMAP:+-u $FONT_UNIMAP} \
>                 $FONT -C "/dev/tty${_index}"
>                   >&2 echo "error diagnosing on stderr"
>     fi
>     printf "\033%s" "%G" >/dev/tty${_index}
>     _index=$((_index + 1))
> done
> if [ -n "$KEYMAP" ]; then
>     loadkeys -q -u ${KEYMAP}
> fi

I'll see how I can do the setfont command...

Thanks !

-- 
Javier

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://lists.artixlinux.org/archives/artix-general/attachments/20210214/78f096b5/attachment.sig>


More information about the artix-general mailing list