You are not logged in.

#1 2012-06-11 21:54:55

loziniak
Member
From: Warsaw, Poland
Registered: 2012-06-11
Posts: 10

[SOLVED] Problem with eurosign in a polish keymap

Hello.

I have a problem - my keyboard maps AltGr + "E" automatically to an Eurosign symbol, which is wrong for polish keyboard, because a polish Eogonek is meant to be there. The result is that I can't get Eogonek on my keyboard.

I think this is some kind of bug, but I'm not sure - is it a udev's, xorg's or arch bug... my output of "setxkbmap -print -v 10" is:

Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      evdev
layout:     pl
options:    eurosign:e
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+pl+inet(evdev)+eurosign(e)
geometry:   pc(pc104)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+pl+inet(evdev)+eurosign(e)"	};
	xkb_geometry  { include "pc(pc104)"	};
};

It's all about the "+eurosign(e)" part. But I don't know how to get rid of it. Do you think there is a walkaround? And which one would be the best? Is it modifying xkb rules and/or symbols? How to do it? Or maybe it would be better to edit some udev rules? I cannot figure it out, please help :-)

I have a "pl" keyboard layout in /etc/rc.conf and this is a fragment of Xorg.0.log:

[     7.710] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/eve
nt0)
[     7.711] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[     7.711] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[     7.711] (**) AT Translated Set 2 keyboard: always reports core events
[     7.711] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
[     7.711] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[     7.711] (--) evdev: AT Translated Set 2 keyboard: Found keys
[     7.711] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[     7.711] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/ev
ent0"
[     7.711] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KE
YBOARD, id 13)
[     7.712] (**) Option "xkb_rules" "evdev"
[     7.712] (**) Option "xkb_model" "evdev"
[     7.712] (**) Option "xkb_layout" "us"

please let me know if you need more info.

cheers
Maciek

Last edited by loziniak (2012-06-12 12:36:16)

Offline

#2 2012-06-11 22:51:49

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [SOLVED] Problem with eurosign in a polish keymap

[     7.712] (**) Option "xkb_layout" "us"

Adapt /etc/X11/xorg.conf.d/10-evdev.conf to use a polish keyboard. The layout in rc.conf is only in the shell, not in X11.

My keyboard settings in the conf file, adapt it as needed:

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
	Option "XkbLayout" "be"
	Option "XkbVariant" "nodeadkeys"
	Option "XkbOption" "caps:hyper"
	Option "XkbOption" "terminate:ctrl_alt_bksp"
EndSection

Offline

#3 2012-06-12 00:05:08

mloskot
Member
From: London, United Kingdom
Registered: 2012-06-01
Posts: 86
Website

Re: [SOLVED] Problem with eurosign in a polish keymap

loziniak wrote:

I think this is some kind of bug, but I'm not sure.
...
I have a "pl" keyboard layout in /etc/rc.conf and this is a fragment of Xorg.0.log:

[     7.712] (**) Option "xkb_rules" "evdev"
[     7.712] (**) Option "xkb_model" "evdev"
[     7.712] (**) Option "xkb_layout" "us"

Check the log above again and you will see your X use the us keyboard layout.

First, you haven't read the rc.conf wiki carefully, where it is clearly stated:

Note: Please note that this setting is only valid for your TTYs, not any graphical window managers or X!

Second, you've not checked the Keyboard settings section in the Xorg wiki.

So, it is hardly a bug smile

p.s. Someone could move this to Newbie forum?

Last edited by mloskot (2012-06-12 00:05:49)


Mateusz Loskot | github | archlinux-config
Arch (x86-64) | ThinkPad T400  | Intel P8600| Intel i915
Arch (x86-64) | ThinkPad W700 | Intel T9600 | NVIDIA Quadro FX 2700M

Offline

#4 2012-06-12 04:21:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [SOLVED] Problem with eurosign in a polish keymap

mloskot wrote:

[p.s. Someone could move this to Newbie forum?

Sounds reasonable.  Done.

(BTW, on a personal note, I like the forums much better than the mail lists -- just as counter point wink )


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2012-06-12 08:21:09

loziniak
Member
From: Warsaw, Poland
Registered: 2012-06-11
Posts: 10

Re: [SOLVED] Problem with eurosign in a polish keymap

Thanks guys, but I've tried this already (just forgot to mention, my bad sorry). I've added a line: Option "XkbLayout" "pl" and indeed this changed Xorg.0.log which is:

[    17.297] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[    17.297] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[    17.298] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[    17.298] (**) AT Translated Set 2 keyboard: always reports core events
[    17.298] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
[    17.298] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[    17.298] (--) evdev: AT Translated Set 2 keyboard: Found keys
[    17.298] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[    17.298] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[    17.298] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 13)
[    17.298] (**) Option "xkb_rules" "evdev"
[    17.298] (**) Option "xkb_model" "evdev"
[    17.299] (**) Option "xkb_layout" "pl"

But nothing else changed. Please, note that output from setxkbmap also has not changed. Moreover, when Xorg.0.log gave me "us" layout, setxkbmap gave "pl" layout which is kinda strange and I also had all the polish letters working excluding Eogonek. So the answer to the problem seems not so simple and newbie, I wouldn't post to a forum if it was. Any more ideas?

Offline

#6 2012-06-12 08:26:47

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Problem with eurosign in a polish keymap

If you run "xmodmap -pke", what's the current mapping for your "E" key?


Burninate!

Offline

#7 2012-06-12 08:36:59

loziniak
Member
From: Warsaw, Poland
Registered: 2012-06-11
Posts: 10

Re: [SOLVED] Problem with eurosign in a polish keymap

It's

keycode  26 = e E e E EuroSign Eogonek EuroSign

.

Offline

#8 2012-06-12 08:42:57

loziniak
Member
From: Warsaw, Poland
Registered: 2012-06-11
Posts: 10

Re: [SOLVED] Problem with eurosign in a polish keymap

Oh, and it's all about eogonek (non-capital letter), not Eogonek. Capital Eogonek is ok, but instead first EuroSign, there should be non-capital eogonek.

Offline

#9 2012-06-12 08:44:42

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Problem with eurosign in a polish keymap

Try changing that as follows:

# xmodmap -e "keycode 26 = e E e E eogonek Eogonek"

Burninate!

Offline

#10 2012-06-12 08:54:25

loziniak
Member
From: Warsaw, Poland
Registered: 2012-06-11
Posts: 10

Re: [SOLVED] Problem with eurosign in a polish keymap

It worked. But I see it as a walkaround (even adding an xmodmap command to .xinitrc), when the real problem stays unsolved. For me it seems to be a bug.

Offline

#11 2012-06-12 09:43:43

loziniak
Member
From: Warsaw, Poland
Registered: 2012-06-11
Posts: 10

Re: [SOLVED] Problem with eurosign in a polish keymap

I've just tried to make the change permanent, so I did "xmodmap -pke > .Xmodmap", changed EuroSign to eogonek and ran "xmodmap .Xmodmap". And my X session became unresponsive. Also after relogging, I see only wallpaper, so I have to log-in to a text console as a root and "shutdown -r now". After removing ~/.Xmodmap things return to the normal state. Strange, isn't it? I'll try to run xmodmap -e "keycode 26 = e E e E eogonek Eogonek EuroSign" from .xinitrc, maybe this helps.

cheers
Maciek

Offline

#12 2012-06-12 10:41:27

loziniak
Member
From: Warsaw, Poland
Registered: 2012-06-11
Posts: 10

Re: [SOLVED] Problem with eurosign in a polish keymap

I added it to .xinitrc, and also symlinked to .xsession and .xprofile and it's not working. I'm going to report a bug.

Offline

#13 2012-06-12 11:40:58

loziniak
Member
From: Warsaw, Poland
Registered: 2012-06-11
Posts: 10

Re: [SOLVED] Problem with eurosign in a polish keymap

Ok, I solved the problem. I logged in as another user and layout settings were ok, so I checked Gnome Control Center keyboard section once more and I found "Layout Settings" there. I unselected "Euro on E" in layout options, and voila! I don't remember selecting that, anyway.

Sometimes I hate Gnome for being so Windows-ish.

thanks everyone for help with this indeed newbie question :-)
Maciek

Offline

#14 2012-06-12 12:12:30

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Problem with eurosign in a polish keymap

Good to hear you managed to get it going.

Don't forget to mark your thread as [SOLVED].


Burninate!

Offline

#15 2012-06-12 19:46:17

mloskot
Member
From: London, United Kingdom
Registered: 2012-06-01
Posts: 86
Website

Re: [SOLVED] Problem with eurosign in a polish keymap

I don't use GNOME (anymore), so I can't check myself, but it's good to know you've managed to solve the problem.

loziniak wrote:

I'm going to report a bug.

Yes, eventually I got confused and stared thinking it is a bug.
I honestly don't know the answer but I have a few observations:

* Arch does not provide complete Xmodmap setup, no /usr/share/xmodmap/* tables are installed.
* Arch installs full XKB system with all maps and configs in /usr/share/X11/xkb.
* It seems, Xmodmap is being deprecated by the freedesktop.org and seems to be obsolete in recent releases of popular distributions.
* Xmodmap and XKB interactions usually lead to problems, so XKB is preferred.
* Finally, there is no clear statement in the docs/wiki about status of Xmodmap and XKB in the Arch (a lot depends on DE, certainly, so it is hard to provide Arch-way here).

So, folks should be aware of that.


Mateusz Loskot | github | archlinux-config
Arch (x86-64) | ThinkPad T400  | Intel P8600| Intel i915
Arch (x86-64) | ThinkPad W700 | Intel T9600 | NVIDIA Quadro FX 2700M

Offline

Board footer

Powered by FluxBB