Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #814992

Bug#857132: console-setup: additional info needed ?

From Anton Zinoviev <anton@lml.bas.bg>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.boot
Subject Bug#857132: console-setup: additional info needed ?
Date 2017-03-23 19:10 +0100
Message-ID <tofln-5WV-3@gated-at.bofh.it> (permalink)
References (4 earlier) <to7QR-Io-7@gated-at.bofh.it> <toaF4-2Eh-11@gated-at.bofh.it> <tob85-2Oe-3@gated-at.bofh.it> <tobB7-3e8-7@gated-at.bofh.it> <toez0-5me-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On Thu, Mar 23, 2017 at 02:12:44PM -0300, Felipe Sateler wrote:
> 
> As mentioned by Michael, this is not done by udev or systemd.

I think systemd runs getty which opens a console.  Then the kernel 
creates virtual consoles on demand.

> > From my tests it seems that the font used
> > for this initialization is the same as the font used on the current
> > console.  Isn't it possible that sometimes this font is set only _after_
> > udev has started the script cached_setup_font.sh by the following rule
> >
> > ACTION=="add", SUBSYSTEM=="vtconsole", KERNEL=="vtcon*", RUN+="/etc/console-setup/cached_setup_font.sh"
> >
> > however the font of the current console is read _before_ the script
> > cached_setup_font.sh has had a chance to configure the font?
> 
> I don't know of any component that does that.

The kernel?

> However, I see the following in cached_setup_font:
> 
> setfont '/etc/console-setup/cached_Lat15-Fixed16.psf.gz'
> 
> if ls /dev/fb* >/dev/null 2>/dev/null; then
>     for i in /dev/vcs[0-9]*; do
>         { :
>             setfont '/etc/console-setup/cached_Lat15-Fixed16.psf.gz'
>         } < /dev/tty${i#/dev/vcs} > /dev/tty${i#/dev/vcs}
>     done
> fi
> 
> Might it be that /dev/fb* do not exist during boot, and thus the font
> is not loaded in all ttys?


If /dev/fb* doesn't exist then the graphics card is in hardware text 
mode in which case there is one font on all ttys (due to hardware 
limitation).  If /dev/fb* is created afterwards, then udev will run 
cached_setup_font again.

I don't know what is going to happen if:

1. udev runs cached_setup_font while there is no framebuffer

2. the script tests that there is no /dev/fb*

3. before the script completes its work /dev/fb* is created

In this case the rule of udev will trigger for a second time.  However 
since the script hasn't finished yet will then udev run a second copy of 
it?  If not, then this too, might create problems.  On the other hand, 
if udev always runs cached_setup_font again, do both copies run in 
parallel (this shoudn't be a problem for cached_setup_font but it is 
good to know if such possibility exists)?

Anton Zinoviev

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#857132: console-setup: additional info needed ? Karsten Hilbert <karsten.hilbert@gmx.net> - 2017-03-22 11:40 +0100
  Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-22 12:30 +0100
    Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-22 13:10 +0100
      Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-22 14:10 +0100
        Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-22 15:30 +0100
          Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-22 16:00 +0100
            Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-22 18:10 +0100
              Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-22 20:00 +0100
                Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-22 22:30 +0100
        Bug#857132: console-setup: additional info needed ? Sven Joachim <svenjoac@gmx.de> - 2017-03-23 11:10 +0100
          Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-23 11:40 +0100
            Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-24 07:40 +0100
          Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-23 14:10 +0100
            Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-23 14:30 +0100
            Bug#857132: console-setup: additional info needed ? Michael Biebl <biebl@debian.org> - 2017-03-23 14:40 +0100
              Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-23 15:10 +0100
                Bug#857132: console-setup: additional info needed ? Michael Biebl <biebl@debian.org> - 2017-03-23 15:40 +0100
                Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-23 15:50 +0100
                Bug#857132: console-setup: additional info needed ? Felipe Sateler <fsateler@debian.org> - 2017-03-23 18:20 +0100
                Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-23 19:10 +0100
                Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-24 12:00 +0100
                Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-26 16:10 +0200
                Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-26 19:50 +0200
                Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-26 20:30 +0200
                Bug#857132: console-setup: additional info needed ? Anton Zinoviev <anton@lml.bas.bg> - 2017-03-26 23:10 +0200
                Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-03-27 10:20 +0200
                Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-04-05 12:00 +0200
                Bug#857132: console-setup: additional info needed ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2017-04-07 12:40 +0200
                Bug#857132: console-setup: additional info needed ? Sven Joachim <svenjoac@gmx.de> - 2017-03-23 19:20 +0100

csiph-web