[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#822946: Don't set console setting over logout/login



On Fri, Apr 29, 2016 at 10:15:26AM +0100, Klaus Ethgen wrote:
> 
> When using console-setup to setup proper console char set (latin1), it
> does not preserve it over logout/login or reboot. After logout, the
> console is again set to UTF-8.

Console-setup supports non-UTF-8 encodings, which means we have to find 
out the source of the problem.

> When logging in as root and do dpkg-reconfigure console-setup with all
> settings as before (or running cached_setup_font.sh),

Just to be sure that the only problem is with the encoding try this.  
Instead of dpkg-reconfigure console-setup or running 
cached_setup_font.sh execute the following command on the console:

printf '\033%%@'

Does this reconfigure the console to use ISO-8859-1?  Does the font on 
the console look like Terminus or it is like the default VGA font?

> it works for all presently consoles (until logout).

Are you saying that even if you configure the console to use ISO-8859-1 
and then logout and login (without a reboot) the console is wrong again?

I suppose I don't have to ask this, but just in any case: is the locale 
set properly in /etc/default/locale?

Systemd is another suspect because it has the habit to disallocate the 
console after each logout and then to allocate it again.  It seems, 
however, that your system doesn't use systemd.  But again, let me ask, 
just for any case: does your system use the traditional /etc/inittab and 
is getty run using it?  If yes, then does this file contain a line like 
this one:

1:2345:respawn:/sbin/getty 38400 tty1

Anton Zinoviev


Reply to: