Bug#526862: console-setup: fail to configure Japanese keyboard
Hi,
On Mon, May 04, 2009 at 04:53:07PM +0300, Anton Zinoviev wrote:
> severity 526862 grave
> thanks
>
> On Mon, May 04, 2009 at 12:54:37PM +0900, Osamu Aoki wrote:
> >
> > After upgrading to sid from lenny, keyboard under X started acting like US 101
> > variants even though it should be OADG109A layout as Japanese.
>
> Thanks for your bug report - this is a realy serious problem caused by
> the Debconf part of console-setup (it expects to find jp(latin) layout
> that existed in the old times of etch). For now I can recommend you to
> change /etc/default/console-setup to contain lines like these two:
>
> XKBLAYOUT="us,jp"
> XKBVARIANT=",OADG109A"
This worked as work around.
> After this change X should be usable again.
Well, it was sort of usable if I blind touch ...
> > Here is details:
>
> Thanks, sometimes such information is really necessary. It will help if
> you send also your /etc/X11/xorg.conf and /etc/default/console-setup
> files (before the changes you make in the second file).
I have simple /etc/X11/xorg.conf under fresh install or upgrade after
"sudo dpkg-reconfigure -plow xserver-xorg". These /etc/X11/xorg.conf as:
--------------------------------------------------------------------------
Section "Device"
Identifier "Configured Video Device"
EndSection
--------------------------------------------------------------------------
I also had problem when keeping my keyboard related part of lenny
/etc/X11/xorg.conf configuration as:
--------------------------------------------------------------------------
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp"
EndSection
--------------------------------------------------------------------------
As for /etc/default/console-setup of fresh install and after modification
(original state is commented out):
--------------------------------------------------------------------------
# A configuration file for setupcon
# Change to "yes" and setupcon will explain what is being doing
VERBOSE_OUTPUT=no
# Setup these consoles. Most people do not need to change this.
ACTIVE_CONSOLES="/dev/tty[1-6]"
# Put here your encoding. Valid charmaps are: UTF-8 ARMSCII-8 CP1251
# CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342
# ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
# ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
# ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII
CHARMAP="UTF-8"
# The codeset determines which symbols are supported by the font.
# Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
# Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
# Vietnamese. Read README.fonts for explanation.
CODESET="Uni1"
# Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
# 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
# 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14
# and 16), Fixed (sizes 13, 14, 15, 16 and 18), Goha (sizes 12, 14 and
# 16), GohaClassic (sizes 12, 14 and 16).
FONTFACE="VGA"
FONTSIZE="16"
# You can also directly specify nonstandard font and ACM to load.
# Use space as separator if you want to load more than one font.
# FONT='lat9w-08.psf.gz /usr/local/share/brailefonts/brl-08.psf'
# ACM=/usr/local/share/consoletrans/my_special_encoding.acm
# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
XKBMODEL="jp106"
######################################################################
# generated by debconf as reported for 526862
#XKBLAYOUT="jp,jp"
#XKBVARIANT="latin,OADG109A"
# manually set per Anton Zinoviev
XKBLAYOUT="us,jp"
XKBVARIANT=",OADG109A"
######################################################################
XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll"
Reply to: