anand Posted October 7, 2004 Report Share Posted October 7, 2004 I used the guide at http://mandrakeuser.org/docs/xwin/print/keys.html to configure the extra keys on my laptop keyboard which are basically for the Browser Back and Front keys. However no matter what i do it doesn't work. I assigned letter "e" to test it, and it worked, however i tried to assign "Left" or "Right" which are keys for browser left and right, they don't work. I tried to assign "Caps_Lock" ( got furious of it not working so tried other keys as well) and it didn't work. Can someone please tell me what i am doing wrong and how to go about his ? Quote Link to comment Share on other sites More sharing options...
devries Posted October 7, 2004 Report Share Posted October 7, 2004 Don't you get a response when you press the key? Do you use KDE? Look in the KDE control center, region and accesibility, keyboardconfiguration. There are many keyboard models mentioned there. Try some of the more likely. Do you get a response? Go to the kde control center, region and accesibility, khotkeys and bind the keys to the action you want to perform. Things have changed in 2 years :) Quote Link to comment Share on other sites More sharing options...
anand Posted October 7, 2004 Author Report Share Posted October 7, 2004 Things have changed in 2 years :) <{POST_SNAPBACK}> Yes sure they have. I tried a lot of things, however nothing seemed to work. Let me try what you recommend and see what happens. Quote Link to comment Share on other sites More sharing options...
anand Posted October 7, 2004 Author Report Share Posted October 7, 2004 Don't you get a response when you press the key? Do you use KDE? Look in the KDE control center, region and accesibility, keyboardconfiguration. There are many keyboard models mentioned there. Try some of the more likely. Do you get a response? Go to the kde control center, region and accesibility, khotkeys and bind the keys to the action you want to perform. <{POST_SNAPBACK}> I went to KDE control center -> Keyboard Shortcuts, i see the keyboard combinations there, however i can't seem to find a way to define my own methods. Sorry if i sound stupid but been banging my head on this for some time now without any success. Btw i am using 10.1 Community. Quote Link to comment Share on other sites More sharing options...
anand Posted October 7, 2004 Author Report Share Posted October 7, 2004 (edited) Anyone ?? From the KDE control center i can modify existing keys, but how do i add definations for new keys ? This is 10.1 Community on a IBM Thinkpad R50. Edited October 8, 2004 by anand Quote Link to comment Share on other sites More sharing options...
devries Posted October 8, 2004 Report Share Posted October 8, 2004 There are many different keyboard models (some have more buttons, different buttons etc ect), however most are mentioned in KDE (look under keyboardconfiguration, not under khotkeys). You need to select the one you have. Than khotkeys can bind an action to that key. If you had tried that an it didn't work, you have to edit some files. Be carefull with this. 1: run xmodmap and find the keycodes for the keys you want to use 2: go to /etc/X11/xkb/keycodes/xorg to look what alias is assocciated with the keycode 3 go to /etc/x11/xkb/symbols/inet, to the keyboard model you're using and change the value found in that file with the value looked up. If the values are not listed, add them yourself. 4: restartx Good luck Quote Link to comment Share on other sites More sharing options...
anand Posted October 12, 2004 Author Report Share Posted October 12, 2004 sorry couldn't reply sooner since i was out of town. Now i tried to change the keyboard layout from KDE Control Center -> Accessibility -> Keyboard Layout. Even after i choose a different layout, where do i define the keycodes in X ? Sorry if i sound too stupid on this, but i am certainly not able to find my way on this one. All i want is to enable the 2 extra keys i have on my R50 Thinkpad to emulate Alt+Left Arrow and Alt+Right Arrow while using firefox. I choose to try the second method, running Xmodmap i get the following: 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) What to do now ? Btw i don't have /etc/X11/xkb/keycodes/xorg. Quote Link to comment Share on other sites More sharing options...
anand Posted October 13, 2004 Author Report Share Posted October 13, 2004 :bump: Quote Link to comment Share on other sites More sharing options...
devries Posted October 13, 2004 Report Share Posted October 13, 2004 The command is xmodmap -pk. (xmodmap --help) With the keyboard layout you tell X what buttons are available. To test if the keys are there do cat /dev/input/event0/1/2/3 and press the keys. If you see a result it works. With khotkeys you bind the keys to actions. If you use Mandrake10 (xorg came with mandrake 10.1) it's /etc/X11/xkb/keycodes/xfree86 Quote Link to comment Share on other sites More sharing options...
anand Posted October 13, 2004 Author Report Share Posted October 13, 2004 Thx for the reply. Checking this rite now. Btw i am using 10.1 Quote Link to comment Share on other sites More sharing options...
anand Posted October 13, 2004 Author Report Share Posted October 13, 2004 I checked the keycodes by running xev for the 2 extra keys, its 233 and 234. Now i edited /etc/X11/xkb/symbols/inet, the microsoft keyboard section (yes i changed the keyboard to ms keyboard thinking it will help), defined a newline with reference to the same code in the /etc/X11/xkb/keycodes/xfree86, restarted X, still nothing :( If i run khotkeys nothing comes up. I know i am doing something stupid, but what is it ? And can u please take me step by step on this ? Quote Link to comment Share on other sites More sharing options...
anand Posted October 13, 2004 Author Report Share Posted October 13, 2004 Just to add to the post, when i did cat /dev/input/event2 i did get some junk chars on the screen when i pressed those two keys. Quote Link to comment Share on other sites More sharing options...
devries Posted October 14, 2004 Report Share Posted October 14, 2004 The fact that you get a respons when you press the 2 keys means that they are configured correctly. So it not a problem with X, but with (probably) KDE and khotkeys. Try using http://lineak.sourceforge.net/index.php?nav=docs. Quote Link to comment Share on other sites More sharing options...
anand Posted October 14, 2004 Author Report Share Posted October 14, 2004 ok i installed lineak using urpmi. But when i run klineakconfig and lineakconfig, i got seg faults. :( I manually ran lineak -l and choose 2-3 types of keyboards, restarted X, still the keys don't work in my browser. Quote Link to comment Share on other sites More sharing options...
devries Posted October 15, 2004 Report Share Posted October 15, 2004 Nice problem you have :) Maybe it a laptop problem? Perhaps strange hardware? Try shutting down acpi? I have no idea at this point. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.