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

Bug#546983: console-setup-mini: fails to set the keyboard layout (and falls back to "us" layout)



On Thu, 12 Nov 2009 07:42:02 +0200 Anton Zinoviev wrote:

> On Thu, Nov 12, 2009 at 12:26:52AM +0100, Francesco Poli wrote:
[...]
> > If you are able to suggest better fonts, please do not hesitate to do
> > so!
> 
> First you need to install console-setup.  Console-setup-mini supports 
> limited set of fonts.  Then use "dpkg-reconfigure console-setup" in 
> order to test the fontsets provided by console-setup.  They are VGA, 
> Fixed, Terminus and TerminusBold.  After dpkg-reconfigure you can use 
> setupcon to activate the changes and to test the result.


I did the following:

  # aptitude -t unstable install console-setup console-setup-mini-
  # aptitude purge console-setup-mini

This installed console-setup/1.46 and console-terminus/4.28-2, while
removing console-setup-mini.

  # dpkg-reconfigure console-setup
  
I answered the questions in the following way:

  Keyboard model? Acer Laptop
  Keyboard layout? Italy
  AltGr key replacement? The default for the keyboard layout
  Compose key? Menu key
  Use Control+Alt+Backspace to terminate the X server? No
  Encoding to use on the console? UTF-8
  Character set to support? Latin1 and Latin5
  Font for the console? Fixed
  Font size? 16

I got the following error:

  /var/lib/dpkg/info/console-setup.postinst: line 115: /etc/console-setup/cached.kmap.gz: No such file or directory

Then:

  # setupcon
  /bin/setupcon: line 367: /etc/console-setup/cached.kmap.gz: No such file or directory

Fonts do *not* show "toilet -f future" symbols correctly, the layout is
still US (why?), and some keys (e.g.: Shift+6) do not produce the
corresponding (US layout) character until other keys are pressed
(I had never seen such a behavior before).

OK, let's restart from scratch.

  # dpkg-reconfigure console-setup

  Keyboard model? Generic 105-key (Intl) PC

Now I get the following complain:

 | The configuration file /etc/default/console-setup specifies a keyboard
 | layout (us,dvorak), which is not supported by the configuration program.
 |
 | Please choose whether you want to keep it. If you choose this option, no
 | questions about the keyboard layout will be asked and the current
 | configuration will be preserved.
 |
 | Keep unsupported settings in configuration file?

Why us,dvorak ?  I have never asked for a dvorak layout !!

I answer "No" to the question.  Then:

  Origin of the keyboard? Italy
  Keyboard layout? Italy
  AltGr key replacement? Right Alt
  Compose key? No compose key
  Use Control+Alt+Backspace to terminate the X server? No
  Encoding to use on the console? UTF-8
  Character set to support? Latin1 and Latin5
  Font for the console? Terminus
  Font size? 16

Again the following error message is shown:

  /var/lib/dpkg/info/console-setup.postinst: line 115: /etc/console-setup/cached.kmap.gz: No such file or directory

Then:

  # setupcon
  /bin/setupcon: line 367: /etc/console-setup/cached.kmap.gz: No such file or directory

Once again, fonts do *not* show "toilet -f future" symbols correctly, the
layout is still US (why?), and some keys do not produce the corresponding
(US layout) character until other keys are pressed.

During the tests I also got the following kernel errors:

[21794.596239] circuit:12185 conflicting memory types 90000000-95000000 uncached-minus<->write-combining
[21794.596425] reserve_memtype failed 0x90000000-0x95000000, track uncached-minus, req uncached-minus

I don't know if those are related, but I had never seen them before...


For the record, the generated /etc/default/console-setup is as follows
and it does not seem to comply with my debconf answers:


  # grep -v '^#' /etc/default/console-setup 
  VERBOSE_OUTPUT=no

  ACTIVE_CONSOLES="/dev/tty[1-6]"

  CHARMAP=UTF-8

  CODESET=Lat15

  FONTFACE=TerminusBoldVGA
  FONTSIZE=16


  XKBMODEL=pc105      # the model of the keyboard
  XKBLAYOUT=us,dvorak # US QWERTY and Dvorak keyboards
  XKBVARIANT=intl,    # the US keyboard can generate international symbols
  XKBOPTIONS=lv3:ralt_switch,grp:ctrl_shift_toggle # the right Alt selects international symbols, Control+Shift toggles between QWERTY and Dvorak


Now I am more puzzled than before.
I will try and perform some more tests tomorrow...

The following commands got back to my initial situation:

  # aptitude --purge-unused install console-setup- console-setup-mini
  # aptitude purge console-setup


[...]
> > I hope this helps in pinpointing the problem.
> 
> Yes, thank you.

You're welcome.

> But there is another problem to solve: Why you system 
> is using console-setup-mini instead of console-setup?

As I told in the original bug report, it was simply pulled in as a
dependency during an upgrade...
However, on a more recently installed (Debian testing) box
console-setup was installed instead.


-- 
 New location for my website! Update your bookmarks!
 http://www.inventati.org/frx
..................................................... Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4

Attachment: pgprLPRceC6T_.pgp
Description: PGP signature


Reply to: