View previous topic :: View next topic |
Author |
Message |
rvalles Tux's lil' helper
Joined: 19 Feb 2003 Posts: 121
|
Posted: Tue Apr 13, 2004 1:37 pm Post subject: X.org X server: Windows keys not working |
|
|
I've _almost_ successfully moved to Xorg, but my Windows keys aren't working.
It's quite annoying, since I use that key a lot for swapping windows on irssi on xterms, for swapping desktops in icewm, etc.
Quote: |
(**) Option "XkbRules" "xorg"
(**) XKB: rules: "xorg"
(**) Option "XkbModel" "pc105"
(**) XKB: model: "pc105"
(**) Option "XkbLayout" "es"
(**) XKB: layout: "es"
(==) Keyboard: CustomKeycode disabled
|
using Option "XkbRules" "xfree86" it didn't work, either. I wonder what's happening |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Tue Apr 13, 2004 4:40 pm Post subject: |
|
|
what happens when you try xmodmap? or xev? |
|
Back to top |
|
|
sindre Guru
Joined: 01 Nov 2002 Posts: 315 Location: Norway
|
Posted: Tue Apr 13, 2004 6:09 pm Post subject: |
|
|
Works for me:
Code: | Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "no"
EndSection |
|
|
Back to top |
|
|
rvalles Tux's lil' helper
Joined: 19 Feb 2003 Posts: 121
|
Posted: Tue Apr 13, 2004 8:30 pm Post subject: |
|
|
xmodmap outputs:
Quote: |
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
|
With xev, If I press left windows, right windows and then the start/menu/whatever key:
Quote: |
KeyPress event, serial 30, synthetic NO, window 0x1000001,
root 0x8d, subw 0x0, time 25671407, (40,73), root:(921,654),
state 0x10, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 30, synthetic NO, window 0x1000001,
root 0x8d, subw 0x0, time 25671529, (40,73), root:(921,654),
state 0x50, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
KeyPress event, serial 30, synthetic NO, window 0x1000001,
root 0x8d, subw 0x0, time 25673232, (40,73), root:(921,654),
state 0x10, keycode 116 (keysym 0xffec, Super_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 30, synthetic NO, window 0x1000001,
root 0x8d, subw 0x0, time 25673332, (40,73), root:(921,654),
state 0x50, keycode 116 (keysym 0xffec, Super_R), same_screen YES,
XLookupString gives 0 bytes:
KeyPress event, serial 30, synthetic NO, window 0x1000001,
root 0x8d, subw 0x0, time 25673508, (40,73), root:(921,654),
state 0x10, keycode 117 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 30, synthetic NO, window 0x1000001,
root 0x8d, subw 0x0, time 25673569, (40,73), root:(921,654),
state 0x10, keycode 117 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes:
|
Looks right... doesn't it?
Still, neither uxterm nor icewm recognise it. Used to work well with XFree. I wonder what's happening . |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Tue Apr 13, 2004 8:55 pm Post subject: |
|
|
well xev tells us that the keys work, what happens when you run xmodmap? |
|
Back to top |
|
|
rvalles Tux's lil' helper
Joined: 19 Feb 2003 Posts: 121
|
Posted: Tue Apr 13, 2004 8:58 pm Post subject: I've collected some info from other threads |
|
|
Here is a bug related to this:
https://bugs.gentoo.org/show_bug.cgi?id=47243
alinv got it working with:
Code: |
Option "XkbOptions" "altwin:left_meta_win"
|
Let's see if we can smash this problem definitivelly. |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Apr 13, 2004 9:08 pm Post subject: |
|
|
I can get mine working in KDE, but when I log out it forgets about my win keys again.
Keyboard is a USB msnaturalpro
kernel 2.6.5
~x86 system
Steps to make them work with KDE 3.2.1
1. Open KDE Control Center
2. Expand+ the "Regional & Accessibility" category
3. Select "Keyboard Layout"
4. Select the "Xkb Options" tab
5. Scroll down to "Alt/Win key behavior" and select "Meta is mapped to the Win-keys".
6. Click Apply
7. Win keys work with the keyboard shortcuts now.
My multimedia keys still worked after the upgrade, just the win-key problem. |
|
Back to top |
|
|
rvalles Tux's lil' helper
Joined: 19 Feb 2003 Posts: 121
|
Posted: Tue Apr 13, 2004 9:28 pm Post subject: Re: I've collected some info from other threads |
|
|
Doesn't help |
|
Back to top |
|
|
alinv Guru
Joined: 19 Nov 2002 Posts: 395 Location: Bucharest
|
Posted: Tue Apr 13, 2004 9:55 pm Post subject: |
|
|
Ok, here is my keyboard setup:
Code: |
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbOptions" "altwin:left_meta_win"
|
I couldn't make kde keep the settings either, but this works for me. I think it's the same as running
Code: | setxkbmap -option altwin:left_meta_win |
Alin _________________ Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
S.B. |
|
Back to top |
|
|
phlashback Tux's lil' helper
Joined: 27 Jul 2002 Posts: 142 Location: Normal
|
Posted: Tue Apr 13, 2004 11:30 pm Post subject: |
|
|
My win / multimedia keys register responses using xev, it is just that none have symbols asociated with theme.
I am The microsoft Optical Desktop Elite keyboard/mouse.
Code: |
Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "microsoftmulti"
Option "XkbLayout" "us"
Option "XkbOptions" "altwin:left_meta_win"
EndSection
|
The relivent section of my /var/log/Xorg.0.log
Code: |
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) XKB: rules: "xorg"
(**) Option "XkbModel" "microsoftmulti"
(**) XKB: model: "microsoftmulti"
(**) Option "XkbLayout" "us"
(**) XKB: layout: "us"
(**) Option "XkbOptions" "altwin:left_meta_win"
(**) XKB: options: "altwin:left_meta_win"
(==) Keyboard: CustomKeycode disabled
|
Any one have a clue why CustomKeycode is disabled?
good luck _________________ The terrible thing about hell is that when you're there you can't even tell as you move through this life you love so you could be there and not even know |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Wed Apr 14, 2004 12:07 am Post subject: |
|
|
I get the cutomkeycode disabled message too. I think it just a default setting for some extras but I'm not sure. My last XFree86 log shows the same thing too and my media keys work fine.
xorg.conf
Code: |
Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "AutoRepeat" "250 30"
# Option "XkbRules" "xfree86"
Option "XkbRules" "xorg"
Option "XkbModel" "microsoftpro"
Option "XkbLayout" "us"
|
~/.Xmodmap I needed this for 3 keys that weren't mapped by the X server.
Code: |
keycode 122 = F13
keycode 130 = F14
keycode 129 = F15
|
|
|
Back to top |
|
|
phlashback Tux's lil' helper
Joined: 27 Jul 2002 Posts: 142 Location: Normal
|
Posted: Wed Apr 14, 2004 1:13 am Post subject: |
|
|
looking back at my last XFree log, shows the same disabled message so... thats not where to look after all
oh well time to keep digging _________________ The terrible thing about hell is that when you're there you can't even tell as you move through this life you love so you could be there and not even know |
|
Back to top |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Thu Apr 15, 2004 5:36 pm Post subject: |
|
|
Lucky you, I can't get my keyboard to work! I startx (with x.org, that is) and my keyboard leds turn on, the keyboard itself is dead...
EDIT: (I guess I ought to be more specific)
Code: |
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "it"
|
simply that, as I'm using my old XF86Config... also, I tried changing XkbRules to xorg, and rebuilding the config from scratch...
still, I don't wanna hijack (sp?) this thread, so unless you know the answer...ignore me _________________ Non fa male! Non fa male! |
|
Back to top |
|
|
pauldv Retired Dev
Joined: 12 Jul 2002 Posts: 44 Location: Bournemouth England
|
Posted: Fri Apr 16, 2004 12:57 pm Post subject: A fix |
|
|
What works for me is the following:
Add this to .xmodmap:
Code: | clear mod4
add mod4 = Super_L Super_R |
Basically the problem is that the windows keys are not properly attached to the number 4 modifier. Resultingly the windows key is recognized, but key combinations involving the windows keys do not work as with key combinations all keys but one must be a modifier. _________________ Paul de Vrieze
Gentoo Developer |
|
Back to top |
|
|
rvalles Tux's lil' helper
Joined: 19 Feb 2003 Posts: 121
|
Posted: Fri Apr 16, 2004 3:35 pm Post subject: Re: A fix |
|
|
I've upgraded libklavier to the new 1.02 ebuild and rebooted. Also tried the following:
pauldv wrote: | What works for me is the following:
Add this to .xmodmap:
Code: | clear mod4
add mod4 = Super_L Super_R |
Basically the problem is that the windows keys are not properly attached to the number 4 modifier. Resultingly the windows key is recognized, but key combinations involving the windows keys do not work as with key combinations all keys but one must be a modifier. |
I did:
Quote: |
$ xmodmap -e "clear mod4"
$ xmodmap
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
$ xmodmap -e "add mod4 = Super_L Super_R"
$ xmodmap
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x73), Super_L (0x7f), Super_R (0x74)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
|
"Done it". Still, it doesn't work, I still cannot swap desktops with icewm, or swap irssi windows on uxterm using my left windows key as I did with xfree .
xev makes sense, xmodmap makes sense (see previous posts).
Then... what the hell is wrong? I hope someone solves this mistery soon. |
|
Back to top |
|
|
pauldv Retired Dev
Joined: 12 Jul 2002 Posts: 44 Location: Bournemouth England
|
Posted: Fri Apr 16, 2004 6:48 pm Post subject: |
|
|
It seems that there are multiple problems with the setup. My trick makes the windows keys work as combination keys. The altwin:... trick also does that, but does get meta away from alt, creating a conflict and making at least emacs nonfunctional.
Assuming that in xev your windows keys show up there is probably a problem with how icewm looks for the key, or it looks for a different keycode which used to be mapped to the windows key _________________ Paul de Vrieze
Gentoo Developer |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Fri Apr 16, 2004 9:29 pm Post subject: |
|
|
No it's sending the proper keycodes, scroll up and he's posted the output of xev which matches my xev so that's legit. Do you think icewm needs to be recompiled? |
|
Back to top |
|
|
pauldv Retired Dev
Joined: 12 Jul 2002 Posts: 44 Location: Bournemouth England
|
Posted: Fri Apr 16, 2004 9:46 pm Post subject: |
|
|
It seems indeed that things are wrong, at my home computer (with 4.3) the windows key indeed brings up the start menu of used on itself. On my office xorg version nothing happens as reaction to only pressing the windows key _________________ Paul de Vrieze
Gentoo Developer |
|
Back to top |
|
|
rvalles Tux's lil' helper
Joined: 19 Feb 2003 Posts: 121
|
Posted: Sat Apr 17, 2004 5:23 am Post subject: |
|
|
Damnit, damnit. This whole thing drives me nuts. |
|
Back to top |
|
|
rvalles Tux's lil' helper
Joined: 19 Feb 2003 Posts: 121
|
Posted: Mon Apr 19, 2004 11:25 am Post subject: Gentoo's bugzilla |
|
|
I've created a bug for this matter:
https://bugs.gentoo.org/show_bug.cgi?id=48307
(editted: linked to the wrong one!)
Last edited by rvalles on Wed Apr 21, 2004 5:49 am; edited 1 time in total |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Apr 20, 2004 4:09 pm Post subject: |
|
|
Ok I got mine working by doing the following which should apply for all users on the system.
My /etc/X11/xinit/.Xmodmap
Code: | pointer = 1 2 3 6 7 4 5
keycode 122 = F13
keycode 130 = F14
keycode 129 = F15
clear mod4
add mod4 = Super_L Super_R |
I don't have a ~/.xinitrc , if I do then this file doesn't get read and neither does my ~/.Xmodmap
I tried this in my .xinitrc
Code: | startkde
xmodmap .Xmodmap
|
But it wouldn't do the .Xmodmap so I tried it the first way I showed and win keys and the 3 media keys that X doesn't assign are working normal again for me.
I think some of the problems people are having depend on how they are starting X. I just use startx. I was looking at /etc/X11/Sessions/Xsession when I thought about this way to get things working.
Hope this helps a little. |
|
Back to top |
|
|
rvalles Tux's lil' helper
Joined: 19 Feb 2003 Posts: 121
|
Posted: Tue Apr 20, 2004 10:37 pm Post subject: |
|
|
I've passed those to xmodmap through xmodmap -e.
Didn't help, either. |
|
Back to top |
|
|
rvalles Tux's lil' helper
Joined: 19 Feb 2003 Posts: 121
|
Posted: Mon May 17, 2004 10:09 pm Post subject: Fixed. |
|
|
There's a patch that works (tried it) in the bug's page, at bugzilla.
So I guess... solved problem. |
|
Back to top |
|
|
mmadej n00b
Joined: 14 Feb 2003 Posts: 4 Location: Poland/Krakow
|
Posted: Sun May 23, 2004 12:11 am Post subject: |
|
|
rvalles wrote: | I've passed those to xmodmap through xmodmap -e.
Didn't help, either. |
I have got the same strange behaviour. But it is easy to resolve. I just added those line:
Code: |
modifier_map Mod4 { Super_L, Super_R };
|
into /usr/X11R6/lib/X11/xkb/symbols/pc/pc in the end of section
xkb_symbols "pc104". |
|
Back to top |
|
|
jdrugo n00b
Joined: 24 Jun 2004 Posts: 2
|
Posted: Thu Jun 24, 2004 11:25 am Post subject: Got it working! |
|
|
I had the same problems with the windows keys and first managed to get it working using xmodmap. This, however, didn't seem very satisfying. Another thing was, that I had the following entry in /var/log/Xorg.0.log:
Code: | (EE) Error loading keymap /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm |
After looking a bit more into keyboard configuration, I got it working by changing the keyboard settings in /etc/X11/xorg.conf from
Code: | Identifier "Keyboard[0]"
Driver "Keyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
Option "XkbVariant" "nodeadkeys" |
to
Code: | Identifier "Keyboard[0]"
Driver "Keyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
Option "KkbOptions" "" |
I don't know if it was the change of the rules from "xfree86" to "xorg" (as xfree86 is only a symlink to xorg" or the removal of "nodeadkeys". The error in /var/log/Xorg.0.log is also gone. Just try arround with these settings, it might help.
Cheers,
Jan |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|