* [gentoo-user] Mod4 mapped to wrong keycode
@ 2006-08-12 10:42 Robert Cernansky
2006-08-12 20:53 ` Richard Fish
0 siblings, 1 reply; 5+ messages in thread
From: Robert Cernansky @ 2006-08-12 10:42 UTC (permalink / raw
To: gentoo-user
Hello xkb fans,
I've recently upgraded to xorg 7.0 and Windowmaker 0.92. For switching
windows I'm using Win+TAB instead of Alt+TAB. It starts to behave
strange after upgrade. When switching to other window, the bar with
windows list remains on screen and I have to press Win key again to
disappear it.
I found out that Win key (Mod4) is not seen as modifier because it is
mapped to wrong keycode:
$ xmodmap | grep mod4
mod4 Super_L (0x7f), Hyper_L (0x80)
while the xev prints:
...
state 0x50, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
...
state 0x50, keycode 116 (keysym 0xffec, Super_R), same_screen YES,
...
which is 0x73, 0x74 hexa.
I dig in /usr/share/X11/xkb files and found out that Mod4 is mapped to
<SUPR> and <HYPR>:
from symbols/pc:
xkb_symbols "basic" {
...
key <SUPR> { [ NoSymbol, Super_L ] };
modifier_map Mod4 { <SUPR> };
key <HYPR> { [ NoSymbol, Hyper_L ] };
modifier_map Mod4 { <HYPR> };
from keycodes/xfree86:
<SUPR> = 127; // <U7F>
<HYPR> = 128; // <U80>
which is 0x7f and 0x80 hexa. So it is exactly the same wrong keycode
that is printed by xmodmap.
Is it a bug?
My keyboard config in xorg.conf:
Section "InputDevice"
Identifier "KME"
Driver "kbd"
Option "XkbModel" "scorpius"
Option "XkbLayout" "us,sk"
Option "XkbVariant" ",qwerty"
Option "XkbOptions" "grp:shift_toggle,grp_led:scroll"
EndSection
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Mod4 mapped to wrong keycode
2006-08-12 10:42 [gentoo-user] Mod4 mapped to wrong keycode Robert Cernansky
@ 2006-08-12 20:53 ` Richard Fish
2006-08-13 8:16 ` Robert Cernansky
0 siblings, 1 reply; 5+ messages in thread
From: Richard Fish @ 2006-08-12 20:53 UTC (permalink / raw
To: gentoo-user
On 8/12/06, Robert Cernansky <hslists2@zoznam.sk> wrote:
> I found out that Win key (Mod4) is not seen as modifier because it is
> mapped to wrong keycode:
I think you are on the wrong track. I have basically the same results
on my system (laptop, so no right-side win-key):
~ > xmodmap | grep mod4
mod4 Super_L (0x7f), Hyper_L (0x80)
~ > xev
...
KeyPress event, serial 32, synthetic NO, window 0x3200001,
root 0x135, subw 0x3200002, time 69600970, (61,42), root:(65,67),
state 0x0, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 32, synthetic NO, window 0x3200001,
root 0x135, subw 0x3200002, time 69601048, (61,42), root:(65,67),
state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
And win-tab works fine for me with KDE.
Also:
~ > xmodmap -pk | grep Super
115 0xffeb (Super_L)
116 0xffec (Super_R)
127 0x0000 (NoSymbol) 0xffeb (Super_L)
That said, I have no good idea why you are having a problem. Are you
getting the KeyRelease events?
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Mod4 mapped to wrong keycode
2006-08-12 20:53 ` Richard Fish
@ 2006-08-13 8:16 ` Robert Cernansky
2006-08-13 22:47 ` Benno Schulenberg
0 siblings, 1 reply; 5+ messages in thread
From: Robert Cernansky @ 2006-08-13 8:16 UTC (permalink / raw
To: gentoo-user
On Sat, 12 Aug 2006 13:53:55 -0700 Richard Fish <bigfish@asmallpond.org> wrote:
> On 8/12/06, Robert Cernansky <hslists2@zoznam.sk> wrote:
> > I found out that Win key (Mod4) is not seen as modifier because it is
> > mapped to wrong keycode:
>
> I think you are on the wrong track. I have basically the same results
> on my system (laptop, so no right-side win-key):
>
> ~ > xmodmap | grep mod4
> mod4 Super_L (0x7f), Hyper_L (0x80)
[...]
> And win-tab works fine for me with KDE.
[...]
> That said, I have no good idea why you are having a problem. Are you
> getting the KeyRelease events?
Yes, KeyRelease events are ok. What leads me to this assumption is
that, when I remove Alt (Mod1) from modifier list, the Alt+TAB
switching behave same as Win+TAB (wrongly). And - when I remove&add
mod4 using command:
xmodmap -e "clear mod4" -e "add mod4 = Super_L"
switching with Win+TAB works correctly. After this command the keycode
0x73 is included in mapping:
$ xmodmap | grep mod4
mod4 Super_L (0x73), Super_L (0x7f)
But this is not "system solution". I would rather solve it system
wide, perhaps with correct setting of xkb (in xorg.conf
probably). After more digging in /usr/share/X11/xkb I found file
symbols/altwin where is defined:
xkb_symbols "super_win" {
key <LWIN> { [ Super_L ] };
key <RWIN> { [ Super_R ] };
modifier_map Mod4 { Super_L, Super_R };
};
This looks good but I have trouble to activate it. I mostly end up
with "dead" keyboard. I'm trying something like this:
setxkbmap -layout us -symbols pc+us+altwin -variant super_win
Does anybody know how to activate this "super_win" setting?
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Mod4 mapped to wrong keycode
2006-08-13 8:16 ` Robert Cernansky
@ 2006-08-13 22:47 ` Benno Schulenberg
2006-08-14 9:21 ` Robert Cernansky
0 siblings, 1 reply; 5+ messages in thread
From: Benno Schulenberg @ 2006-08-13 22:47 UTC (permalink / raw
To: gentoo-user
Robert Cernansky wrote:
> setxkbmap -layout us -symbols pc+us+altwin -variant super_win
>
> Does anybody know how to activate this "super_win" setting?
setxkbmap -option altwin:super_win
Things that have been set correctly in xorg.conf don't need to be
given again in the setxkbmap command. You can check with
setxkbmap -print
On my machine Xorg refuses to recognize multiple XkbOptions, and
in .bashrc I have this:
[ "$DISPLAY" != "" ] &&
setxkbmap -option ctrl:nocaps -option compose:menu
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Mod4 mapped to wrong keycode
2006-08-13 22:47 ` Benno Schulenberg
@ 2006-08-14 9:21 ` Robert Cernansky
0 siblings, 0 replies; 5+ messages in thread
From: Robert Cernansky @ 2006-08-14 9:21 UTC (permalink / raw
To: gentoo-user
On Mon, 14 Aug 2006 00:47:02 +0200 Benno Schulenberg <benno.schulenberg@gmail.com> wrote:
> Robert Cernansky wrote:
> > Does anybody know how to activate this "super_win" setting?
>
> setxkbmap -option altwin:super_win
Great, it works! Thank You very much.
> On my machine Xorg refuses to recognize multiple XkbOptions, and
It's strange. It works for me. With new altwin option it looks like
this in my xorg.conf:
Option "XkbOptions" "grp:shift_toggle,grp_led:scroll,altwin:super_win"
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-08-14 9:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-12 10:42 [gentoo-user] Mod4 mapped to wrong keycode Robert Cernansky
2006-08-12 20:53 ` Richard Fish
2006-08-13 8:16 ` Robert Cernansky
2006-08-13 22:47 ` Benno Schulenberg
2006-08-14 9:21 ` Robert Cernansky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox