Bug#822946: Don't set console setting over logout/login
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
Am Di den 3. Mai 2016 um 8:47 schrieb Anton Zinoviev:
> On Mon, May 02, 2016 at 10:39:49PM +0100, Klaus Ethgen wrote:
> > >
> > > printf '\033%%@'
> > >
> > > Does this reconfigure the console to use ISO-8859-1?
> >
> > I already tried that and yes, it works. (or print '\033%@') So when I
> > read that correct (The information about <esc>% is very rar) that sets
> > the default settings. Shouldn't that be the "default" anyway?
>
> I suppose now
>
> printf '\033%%G'
>
> is the default in the kernel, that is UTF-8,
Well, that is not true. I have that bug as well on systems that uses
standard debian kernel as also on systems where I have a custom kernel
with "CONFIG_NLS_DEFAULT="iso8859-1"".
> > I think I have configured Terminus font on all systems. But I have to
> > crosscheck.
>
> My question was in order to see whether console-setup sets the font as
> expected or not.
Yes, it is.
> > ~> grep 'tty[0-9]$' /etc/inittab
> > 1:45:respawn:/sbin/mingetty --noclear tty1
> > 2:23:respawn:/sbin/mingetty tty2
> > 3:23:respawn:/sbin/mingetty tty3
> > 4:23:respawn:/sbin/mingetty tty4
> > 5:23:respawn:/sbin/mingetty tty5
> > 6:23:respawn:/sbin/mingetty tty6
> >
> > I use mingetty on all systems. And console 1 is only allowed for login
> > in init level 4 and 5 and never clears as I need to have the boot
> > messages.
>
> Hmm, I've never used mingetty, but isn't it possible that it shows the
> same behaviour as systemd, that is it disallocates the tty after each
> logout?
I do not know how systemd works. But I hope, it dis- and reallocates
the tty (not checked)
> In order to test this try adding the option --noclear to all
> instances of mingetty.
Yes, that keeps the setting.
> If the option --noclear fixes the problem, then there will be two things
> we can do. First, maybe file a bug against mingetty (I don't know if
> this should be considered a bug or a feature of mingetty...).
Well, reallocating the tty is as it should be from my perspective. So I
wouldn't see that a bug.
> And
> second, try to do something about the problem in console-setup.
>
> In the file /lib/udev/rules.d/90-console-setup.rules console-setup
> installs the following rule:
>
> ACTION=="add", SUBSYSTEM=="vc", KERNEL=="vcs[1-9]|vcs[1-9][0-9]", TEST=="/run/console-setup/font-loaded", RUN+="/etc/console-setup/cached_setup_terminal.sh %k"
>
> In theory this should reconfigure a tty each time it is allocated.
I will give that a try. Will give you feedback.
Currently I have "print -n '\033%@'" in my zshrc. But I see that only as
a temporary workaround.
Regards
Klaus
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Charset: ISO-8859-1
iQGcBAEBCgAGBQJXKF5yAAoJEKZ8CrGAGfaskhEL/jq1gxdLitB4Rz6LP0KvZzO0
psKpRzVvUEbyHeTKyKfvcd7m+EMlDbtlmW9x8l3msQvjawlqkN0lSJsK+ctHYqq0
ZC5m2NWJwbezWuERgkfLTn0NNkb8Ssfbdx6f5V9gsBkCIWz5oexz/bbH4MnLN5zd
4YZhFPYZ4FiOAK2r/3DHDxeo6QqZTV29hDJZbF0J5D07jv0HA+AXC1yUAc5HWk/B
cBLtGin40qhEHhC45KXlP0kpMNEoLEr3XFLVV/TeqFx97ouK0G3WfjsXqD7sFtQ2
1vDSBbK+c5F+BKsQYHDJ1uNaM+NzZvYVR3yJToli5VOIOg5LvrQPFeUbiH5ZQuGN
FuUQO+yvTB4Vjg39iMHc8w9/nFIk685c9xcSwLJFTsmfYzq8vUFTuudFsxpF97iP
d0CdO4fhX4o4gk9Fkg12uuwyQAwr0ksp80yLcJ4hQNOY8HmPDXMRYR+z7CPzph+m
QcNfQutzyX7ClAlSM7EA1HukNMLLdobZuFVoS7l3cg==
=ZOTa
-----END PGP SIGNATURE-----
Reply to: