Bug 178105 - cannot change keyboard layout in 4.2 beta2
Summary: cannot change keyboard layout in 4.2 beta2
Status: RESOLVED NOT A BUG
Alias: None
Product: kxkb
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-18 22:18 UTC by Szabolcs Molnar
Modified: 2009-02-22 04:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szabolcs Molnar 2008-12-18 22:18:23 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Hi,

Using KDE 4.2 Beta 2 on Kubuntu 8.10. I wanted to swith my keyboard layout to Hungarian.
I went to Kickoff > Computer > System settings > Country and Language > Keyboard layout
Then enabled keyboard layouts. Now I have "hu" and "us" on the list, the little flags are displayed in the bottom right corner of the screen as expected.
I even can click on the flags with the mouse to switch it, but it has no effect: whichever language is set, it uses the English layout.

I tried to add german layout too to test if only hungarian is wrong or not, but german didn't work either.

First I thought it was me, but doublechecked the settings and I couldn't see anything else related to keyboard layouts.
Comment 1 George Kiagiadakis 2008-12-24 16:24:24 UTC
Works fine here with us and gr layouts.
Comment 2 Andriy Rysin 2008-12-25 16:48:02 UTC
Could you please try switching layouts without kxkb, e.g. run the command:
setxkbmap us,hu -option grp:ctrl_shift_toggle
and then try to switch with Ctrl+Shift
Comment 3 Szabolcs Molnar 2008-12-26 22:30:18 UTC
(In reply to comment #2)
> Could you please try switching layouts without kxkb, e.g. run the command:
> setxkbmap us,hu -option grp:ctrl_shift_toggle
> and then try to switch with Ctrl+Shift
> 

Hi,

I run the command, then nothing happened. After this, I tried the same from Konsole, I got: 
szabolcs@molni-002:~$ setxkbmap us,hu -option grp:ctrl_shift_toggle
Error loading new keyboard description

Maybe a package is missing then? I'm confused since I don't get any error message when configuring from the gui, but I get this when trying setxkbmap
Comment 4 Andriy Rysin 2008-12-27 04:50:43 UTC
check if you have all the layout files, you us and hu must be present somewhere e.g. in /usr/share/X11/xkb/symbols/
if the us and hu files are there you may try to add '-verbose 10' option to the setxkbmap 
also you may want to check the 'setxkbmap' command in the kxkb configuration and try to run that one.
Comment 5 Andriy Rysin 2009-01-25 17:15:10 UTC
any luck with this problem?
Comment 6 Szabolcs Molnar 2009-01-25 23:31:12 UTC
Ohm sorry, but I had no time lately :(

So:

I have the symbol files:
szabolcs@molni-002:/usr/share/X11/xkb/symbols$ ls
ad      bg        compose       eurosign      group    is      latam           me        no    se         tj
af      br        ctrl          fi            hp_vndr  it      latin           mk        np    sgi_vndr   tr
al      braille   cz            fo            hr       jp      level3          mm        olpc  shift      ua
altwin  bt        de            fr            hu       keypad  level5          mn        pc    si         us
am      by        digital_vndr  fujitsu_vndr  ie       kg      lk              mt        pk    sk         uz
ara     ca        dk            gb            il       kh      lt              mv        pl    sony_vndr  vn
az      capslock  ee            ge            in       kpdl    lv              nbsp      pt    srvr_ctrl  xfree68_vndr
ba      cd        epo           gh            inet     kr      ma              nec_vndr  ro    sun_vndr   za
bd      ch        es            gn            iq       kz      macintosh_vndr  ng        rs    sy
be      cn        et            gr            ir       la      mao             nl        ru    th
szabolcs@molni-002:/usr/share/X11/xkb/symbols$

And I get the following when setting -verbose to 10:

szabolcs@molni-002:/usr/share/X11/xkb/symbols$ setxkbmap us,hu -option grp:ctrl_shift_toggle -verbose 10
Setting verbose level to 10
locale is C
Warning! Multiple definitions of keyboard layout
         Using command line, ignoring X server
Applied rules from evdev:
model:      pc105
layout:     us,hu
options:    grp:ctrl_shift_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+hu:2+inet(evdev)+group(ctrl_shift_toggle)
geometry:   pc(pc105)
Error loading new keyboard description
szabolcs@molni-002:/usr/share/X11/xkb/symbols$

Actually I have no idea yet :)
Comment 7 Andriy Rysin 2009-01-26 00:47:07 UTC
well, the problem seems to be outside of kxkb, so I'd suggest reinstalling:
1) files of xkb information (in /usr/share/X11/xkb)
2) setxkbmap itself
I think in Ubuntu you can find the corresponding packages with apt-cache command
Comment 8 Andriy Rysin 2009-02-22 04:41:29 UTC
Does not look like kxkb problem - closing.