After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 145132 - Keyboard Indicator doesn't let me to select Hungarian layout
Keyboard Indicator doesn't let me to select Hungarian layout
Status: RESOLVED NOTGNOME
Product: gnome-applets
Classification: Other
Component: keyboard indicator (gswitchit)
unspecified
Other Linux
: Normal major
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-06-29 12:13 UTC by Akos Maroy
Modified: 2010-01-24 01:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
GKB .server file (needs some 'administration' in Makefile.am and some new code in gkb-applet.c) (1.31 KB, text/plain)
2004-09-12 22:36 UTC, Szabolcs Ban
  Details
cvs diff from yesterday (8.86 KB, patch)
2004-09-12 22:39 UTC, Szabolcs Ban
none Details | Review

Description Akos Maroy 2004-06-29 12:13:59 UTC
add the Keyboard Indicator applet to the gnome panel

right-click, and select Keyboard Preferences

go to the Layouts tab

try to select any of the Hungarian layouts, and click on Add

see a dialog appear, with the following text:

Error activating XKB configuration.
Probably internal X server problem.

X server version data:
Gentoo Linux (XFree86 4.3.0, revision r5)
40300001

If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb


the result of the above commands are:

# xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xfree86", "pc104", "us", "", ""
_XKB_RULES_NAMES(STRING) = "xfree86", "presario", "us", "", ""
# gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb
 layouts = [no]
 model = pc105
 overrideSettings = false
 options = []
Comment 1 Akos Maroy 2004-06-29 12:14:27 UTC
there's a bug submitted to the Gentoo buglist as well, with the same content:

http://bugs.gentoo.org/show_bug.cgi?id=52749
Comment 2 Akos Maroy 2004-07-16 06:27:50 UTC
playing around with setxkbmap, and the documentation found on the XFree86 site
at http://www.xfree.org/4.3.0/XKB-Config2.html#2 , it seems that the heart of
the problem is that there is no file named hu in the
/usr/X11R6/lib/X11/xkb/symbols/pc directory, even though there should be.

$ setxkbmap -layout "us" -print
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include
"pc/pc(pc105)+pc/us+inet(presario)+group(ctrl_shift_toggle)+group(alt_shift_toggle)"
   };
        xkb_geometry  { include "pc(pc104)"     };
};

$ setxkbmap -layout "us" -print | xkbcomp -
Warning:          No symbols defined for <SYRQ> (keycode 92)
Warning:          No symbols defined for <BRK> (keycode 114)
(... more such warnings here)

$ setxkbmap -layout "hu" -print
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include
"en_US(pc105)+hu+inet(presario)+group(ctrl_shift_toggle)+group(alt_shift_toggle)"
      };
        xkb_geometry  { include "pc(pc104)"     };
};

$ setxkbmap -layout "hu" -print | xkbcomp -
Warning:          No symbols defined for <SYRQ> (keycode 92)
Warning:          No symbols defined for <BRK> (keycode 114)
(... more such warnings here)

$ setxkbmap -layout "us,hu" -print
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include
"pc/pc(pc105)+pc/us+inet(presario)+pc/hu:2+group(ctrl_shift_toggle)+group(alt_shift_toggle)"
   };
        xkb_geometry  { include "pc(pc104)"     };
};

see the reference above for pc/hu...

$ setxkbmap -layout "us,hu" -print | xkbcomp -
Error:            Can't find file "pc/hu" for symbols include
                  Exiting
                  Abandoning symbols file "(null)"

and here is the real problem...

now copying say the file de in /usr/X11R6/lib/X11/xkb/symbols/pc to hu makes the
above pass, but I still can't add a hungarian layout through the gnome keyboard
preferences :(
Comment 3 Sergey V. Udaltsov 2004-08-28 00:47:08 UTC
Unfortunately, Hungarian layouts are problematic in all recent X servers. And
gnome has nothing to do with it. I'd say the problem should be reported to the
respective X servers' bugzillas.
Comment 4 Akos Maroy 2004-08-28 09:25:33 UTC
well, I'm not entirely sure if this is the case. until recently, one could
change keyboard layouts with a small applet, gkb was the name as I recall it:
http://projects.gnome.hu/gkb/
It used xmodmap and other commands to change the layout. One could change to
hungarian layouts without any problems. No X server objected to it, it was
working fine. (and it would have been very strange, as one of the authors of gkb
is a hungarian)

Now I can not find this applet in my gnome anymore, and I can't change to
hungarian layout at all. This is a _very_ serious problem: one can not write
_any_ hungarian text on gnome at the moment. basically, this makes it totally
useless for any hungarian user.
Comment 5 Akos Maroy 2004-08-28 09:38:04 UTC
as for your above suggestion, I have filed a bugzilla entry in the XFree86 bugzilla:

http://bugs.xfree86.org/show_bug.cgi?id=1461
Comment 6 Akos Maroy 2004-08-28 16:52:44 UTC
the following bug report details the same bug under Xorg:

http://freedesktop.org/bugzilla/show_bug.cgi?id=1164
Comment 7 Szabolcs Ban 2004-09-12 22:33:57 UTC
I have fixed gkb applet in the cvs but it's freeze (what I haven't recognised in time). If everything goes 
well gkb will be reachable under Gnome again. 

I got complaints from Sun people, too (they haven't got xkb).

diff from the cvs (sorry for the format, just a fast cvs diff) and the new file will be attached soon 
Comment 8 Szabolcs Ban 2004-09-12 22:36:43 UTC
Created attachment 31520 [details]
GKB .server file (needs some 'administration' in Makefile.am and some new code in gkb-applet.c)

This is the missing file, that's why GKB is not in the applet adding dialog
Comment 9 Szabolcs Ban 2004-09-12 22:39:18 UTC
Created attachment 31521 [details] [review]
cvs diff from yesterday

* gkb-applet.c: Factory code for woring with applet chooser
* Makefile.am: Executable from shlib, .server file and cleanup
* gkb.c: little cosmetics for flag mode, default theme is label mode, I want to
make PC applet
* gkb.schemas.in: fixing schemas, too...
Comment 10 Sergey V. Udaltsov 2004-09-13 01:20:12 UTC
Shooby: in your attachement, you effectively killed libgkb.a - so it is not
possible for the Keyboard Indicator to become "gkb-new" in XKB-less
environments. Do you think it is good? Could we get together on IRC with jody
and kmaaras to discuss this for 2.10?
Comment 11 Christian Rose 2004-09-13 07:21:28 UTC
Please use 'diff -u' for any patches in the future. That is the de facto
standard for patches and in many people's opinion much easier to read.
Comment 12 Ghorban M. Tavakoly 2004-09-19 01:02:52 UTC
Not only Hungarian,

Today I wanted to add Azeri keyboard but i coudln't.
Error:
###########################################
# Error activating XKB configuration.     #
# Probably internal X server problem.     #
#                                         #
#  X server version data:                 #
# The X.Org Foundation                    #
# 60700000                                #
###########################################
I tested other layouts and the result is:
(My GNOME is 2.6 in slackware 10)
All of these layouts have this problem:

Bosnian
Azerbaijani
Canadian
Faroese
French comb...
Hungarian
Japanease
Korean
Lithuanian azerty
Macdonian
Mongolian
PC-98xx series
Romanian
Swiss French
Swiss Germany
Vietnamese
Comment 13 Metin Amiroff 2004-09-19 10:13:02 UTC
I am having the same problem with Gnome 2.6.2 on Debian SID. There were a bunch
of bug reports similar to this in Redhat bugzilla but none of them helped. I
currently use "setxkbmap az" command to switch to Azeri layout which just works,
and even though I have removed the applet from panel, I get the above stated
error when Gnome-session is loading.
Comment 14 Danielle Madeley 2005-01-09 07:44:55 UTC
What is the status of this?
Comment 15 Akos Maroy 2005-01-09 08:33:59 UTC
it still doesn't work, with my current Keyboard Indicator version, which is 2.8.0
Comment 16 Danielle Madeley 2005-01-09 08:49:24 UTC
I know xmodmap work went into G9. Sergey, have you addressed this issue?
Comment 17 Sergey V. Udaltsov 2005-02-03 00:48:30 UTC
Well, there is a mix of bugs here. First, Hungarian is really broken in all
released servers (including latest Xorg and XFree). It is only fixed in
xkeyboard-config. So I consider the case for 'hu' as NONGNOME. Full stop.

Now, regarding the 'az' layout. If "setxkbmap" works with it ok - so should
GNOME. Metin, did you try the latest 2.9.x series?
Comment 18 Akos Maroy 2005-02-03 08:40:58 UTC
I'm sorry, but I have to disaggree with you on the hungarian layout issue -
setxkbmap works perfectly for hungarian with xorg-x11 and with xfree86 as well.

actually, since tha gnome applet is broken, this is how I switch between english
and hungarian layouts - by issuing setxkbmap us and setxkbmap hu, respectively.
Comment 19 Metin Amiroff 2005-02-03 08:57:38 UTC
>Metin, did you try the latest 2.9.x series?

Sereja, I am running Ubuntu Hoary and unfortunately the problem is still there.
I too use setxkbmap us and setxkbmap az, defined them in gconf-editor so that I
could add some keyboard shortcuts to them. Thanks.
Comment 20 Sergey V. Udaltsov 2005-02-03 09:34:25 UTC
Akos: Hunguarian is broken in respect that it cannot be used together with out
layouts. Could you try please - setxkbmap us,hu - and see what happens?
Comment 21 Sergey V. Udaltsov 2005-02-03 09:35:34 UTC
Metin: could you please try "setxkbmap us,az"? Will it give any errors/warnings?
Comment 22 Akos Maroy 2005-02-03 10:04:18 UTC
you're right, it does give errors:

$ setxkbmap us,hu
Error loading new keyboard description
Comment 23 Sergey V. Udaltsov 2005-02-03 10:29:37 UTC
Akos: that is why I close discussins on Hungarian layout:) Actually, this should
be in FAQs... Same about Canadian and Japanese things...
Comment 24 Danielle Madeley 2006-01-11 04:04:18 UTC
From the comments, this would appear to be NOTGNOME then.