Posts: 8
dkaparis
Joined: 22 Nov 2014
#1
Greetings,

I'm using antiX-13.2-full 64-bit (3.7.10-antix.5-amd64-smp #3 SMP Fri Oct 4 23:41:00 EEST 2013 x86_64 GNU/Linux)

I've edited the /@etc/default/keyboard file to add more keyboard layouts:
XKBMODEL="pc105"
XKBLAYOUT="us,bg"
XKBVARIANT=""
XKBOPTIONS="grp:alt_shift_toggle,terminate:ctrl_alt_bksp,grp_led:scroll"
However it seems to apply only to the system console (I can use CTRL-ALT-F1 and switch languages there), but not X - the graphical session is fixed to US keyboard layout.

I can set keyboard configuration successfully with setxkbmap:
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:­scroll us,bg
Changing keyboard layout for the session from the Antix Control Center also works.

Any ideas why /@etc/default/keyboard doesn't work for the X session?

Thanks,
Dimitri
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
Did you reboot?
Posts: 8
dkaparis
Joined: 22 Nov 2014
#3
Yes, it's consistent across many reboots.
Posts: 8
dkaparis
Joined: 22 Nov 2014
#4
Some other things I tried, to no effect:

In ~/.icewm/startup uncommented the line
setxkbmap -layout"$XKBLAYOUT" -variant"$XKBVARIANT" -option"$XKBOPTIONS"
Also tried with expanded values.

Added this to /@etc/X11/xorg.conf:
Section"InputClass"
Identifier"system-keyboard"
MatchIsKeyboard"on"
Option"XkbLayout""us,bg"
Option"XkbModel""pc105"
Option"XkbVariant"",bas_phonetic"
Option"XkbOptions""grp:alt_shift_toggle,terminate:ctrl_alt_bksp,grp_led:scroll"
EndSection
Still not switching layouts in the graphical session. It seems the only way to enable it is to manually run the setxkbmap in a terminal after logging in.
setxkbmap -layout"us,bg" -variant",bas_phonetic" -option"grp:alt_shift_toggle,terminate:ctrl_alt_bksp,grp_led:scroll"
One more observation: if I run the setxkbmap command in the system console instead (with CTRL-ALT-F1), where layout switching already works correctly, I get message:
Cannot open display"default display"
Any other ideas?
Alanarchy
Posts 0
Alanarchy
#5
You need to be running the 3.7.10-antix.7-amd64-smp x86_64 Kernel, otherwise you get all kinds of weird errors.
12 November 2013

New bug-fix kernels available

For those using antiX-13 series with the 3.7.10 kernel, you should update to the latest in the antiX stable repositories. The updated kernel fixes the bug of building applications that need to be built with Wheezy's libs and gcc.

Without going into detail, if you want to run antiX-13 series fixed to the Wheezy repository and want to install for example Virtualbox and nvidia drivers, you MUST install the latest 3.7.10.antix.7 kernel for your architecture for each application to build.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://antix.mepis.org/index.php?title=Main_Page"
linktext was:"http://antix.mepis.org/index.php?title=Main_Page"
====================================
Posts: 8
dkaparis
Joined: 22 Nov 2014
#6
Thanks for the heads up.

I completed the procedure for upgrading the kernel, but noticed the update-grub did not change the default boot option and the system was still booting the old kernel. It seems to have added/changed items in the"Debian AUTOMAGIC KERNELS LIST", but the first default option is unchanged, and has to be edited manually to boot the new kernel. Is that expected? If so, maybe the instructions should be augmented..

Anyway, now keyboard layout switching works only if I add the setxkbmap command to the ~/.icewm/startup file:
setxkbmap -layout"us,bg" -variant",bas_phonetic" -option"grp:alt_shift_toggle,terminate:ctrl_alt_bksp,grp_led:scroll"
It doesn't work by uncommenting the line that was there (setxkbmap -layout"$XKBLAYOUT" -variant"$XKBVARIANT" -option"$XKBOPTIONS"), I have to expand the values, even though I have set XKBLAYOUT, XKBVARIANT and XKBOPTIONS in the /@etc/default/keyboard file.

That works for me, but it's strange since I remember setting up antix 13.2 32-bit on another system and there just editing the /@etc/default/keyboard file took full effect including for the graphical session, without need for any other modifications.

Thanks,
Dimitri