On Wednesday 12 November 2003 22:42, Hugh Taylor wrote:
I want to enable the extra keys on my laptop (Internet, Mail, etc. button, and Fn-F6 through F12). I have the keycodes generated by each of the keys, but am not sure where to define them. I have SuSE 9.0 Professional using KDE. I can't find a tool to let me define the keys and I'm not sure what file to edit.
First of all look at the /etc/X11/xkb/symbols - in this directory various keyboards are described (look at inet). If you're lucky you'll find your keyboard there. In this case add in /etc/X11/XF86Config ... Option "XkbModel" "logicdn" #this is for my Loghitech Internet #Navigator keyboard ... If you are very lucky that's all you need. But, sometimes there are problems with some keysyms - QT/KDE libraries have a 'built-in' list of keysyms based on /usr/X11R6/lib/X11/XKeysymDB from Xfree <=4.0. So you may have some keys unrecognized by KDE (for example, Control Center > Regional & Accessibility > Keyboard shortcuts > Global shortcuts or in Any KDE app > Settings > Configure Shortcuts). If this is your case, there is no better solution than redefine these unrecognized keysyms (I tried to recompile KDE & QT with the new keysyms list, but didn't succeed - maybe someone will help me?) to F13 - F35 (F36 and higher are also unrecognized by KDE/QT) with xmodmap (man xmodmap). Here is the sample I appended to ~/.Xmodmap keysym XF86Messenger = F13 keysym XF86WebCam = F14 keysym XF86VendorHome = F15 keysym XF86Shop = F16 keysym XF86New = F17 keysym XF86Reply = F18 keysym XF86MailForward = F19 keysym XF86Send = F20 keysym Undo = F21 keysym Redo = F22 keysym XF86Save = F23 keysym XF86Documents = F24 keysym XF86Pictures = F25 keysym XF86Music = F26 keysym XF86ScrollClick = F27 keysym XF86Go = XF86Forward after that, I appended to ~/.xinitrc xmodmap ~/.Xmodmap If your keyboard is not present in /etc/X11/xkb/symbols you can just modify ~/.Xmodmap your way and add support for optional keys. Alex Khroustalev