Re: Re: Re: [opensuse] Keyboard with buttons
-----Original Message----- From: M Harris <harrismh777@earthlink.net> To: opensuse@opensuse.org Date: Tue, 22 May 2007 18:24:16 -0500 Subject: Re: [opensuse] Keyboard with buttons On Tuesday 22 May 2007 17:15, Chris Arnold wrote:
I have a Dell keyboard with home, refresh, close, back and forward buttons on it. These buttons do not work when pushed. Is there a way to make these buttons work on SLED10 with firefox2? Yes,
... the first thing you need to do is determine whether the keys are visible to the kernel... this is easy: From a black screen alt-F1 console use the showkey command... do not do this from a terminal on the desktop.... With showkey running press all the the special multimedia keys... and look for responses. If the key does nothing, then press the F10 key to look at the kernel messages... the kernel will tell you whether the key was recognized and what its scancode is. You can add easily scancodes to the kernel with setkeycodes command. Next, you will need to map the kernel keycode to the X events you want for firefox... or multimedia... whatever... using xev. Run xev from a terminal on your desktop. It will open a window that you will focus with your mouse and then type into it... the keycodes will appear for keypress and keyrelease... write them down... you then map those events to the action you want using the keyboard utilities in the control panel. All of the buttons on all keyboards can be mapped to do anything you want to do... sometimes its a little work... but it is always doable in linux. -- Kind regards, M Harris <>< Kernel see the strokes and all is well, except, in control center, i do not see where to map the numbers to the buttons. I looked in the "keyboard" applet and i was able to map the vol buttons in the "shortcuts" applet. Where exactly do i map the browser buttons to the browser? Thanks again for the help -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 22 May 2007 20:20, Chris Arnold wrote:
Kernel see the strokes and all is well, except, in control center, i do not see where to map the numbers to the buttons. I looked in the "keyboard" applet and i was able to map the vol buttons in the "shortcuts" applet. Where exactly do i map the browser buttons to the browser? Thanks again for the help Assuming the kernel has the keys mapped, AND xev shows a valid keysym for each key---- please check with this:
from a terminal konsole on your desktop, enter: xev | grep -i "keysym" Now, press the key you are interested in and then move your mouse over the xev window and the keysym data should appear in your terminal window. If the key has a valid keysym for the scancode, then no problem. Otherwise you will need to bind a keysym to the scancode with xmodmap. In your home directory you simply create a file called .Xmodmap with the entries you need--- for instance: (these are just examples, yours will be different) keycode 223 = XF86LogOff keycode 233 = XF86Forward keycode 234 = XF86Back etc Then you make them available with: xmodmap .Xmodmap <===please notice the dot in the name You can look at the keysym database /usr/X11R6/X11/XKeysymDB for valid symbols that you can bind. After you add the entries to your .Xmodmap file in your home directory, and run xmodmap .Xmodmap, then test your keysym entries by running the xev experiment again... this time you should see the keycode and the keysym binding. You are now ready to have KDE do something with the keysym bindings. You do this within the Control Center using the following directions: Pull up the appropriate control center panel with : SUSE ===> Control Center ===> Regional & Accessibility ===> Hotkeys 1) Create an action group name based on your keyboard... mine is a Dynex internet keyboard... so I just called my new group Dynex. 2) Create an action subgroup under that for Firefox (you can have many groups and subgroups, like one for Thunderbird) 3) Under Firefox create a K-menu Entry simple a) call it "search" (no quotes) (it will be used to start firefox) b) click keyboard shortcut... and press the button on your keyboard for starting firefox... the keysym bound for that button will fill in the shortcut box... we're almost done c) click menu entry (it will contain the program name) and enter "firefox" (no quotes) in the field d) click Apply 4) [ let's do another one for the "forward" button ] 4) Under Firefox group create a Keyboard Shortcut Keyboard Input simple a) call it "page forward" (no quotes) b) click keyboard shortcut and press the forward multimedia key on your keyboard to fill in the shortcut keysym binding c) click keyboard Input Settings and make the keyboard input Alt+Right and "send input to active window" d) click Apply Simply repeat these instructions for as many keys as you want to define.... all 19 keys on my Dynex are configured to do something... keep in mind that these bindings only work while kde is up and running... for instance, I have a key that ejects my cdrom (and also closes it) from the keyboard... but I cannot use that button to open the cdrom door from my black screen consoles... nor does it work in run level 3. Of course the keyboard can be mapped for run level 3 also... but that is another story. Also, the keyboard shortcuts for the apps you are configuring must be known to you... for instance you must know that Alt+Right is the page forward in Firefox. The first few of these you dink around with will be a little confusing, but after you do a couple you'll have the whole keyboard mapped in no time. Caveat: If you're using gnome, consider using KDE.... just kidding... there is probably a way to do this same thing in gnome... but I don't have a clue how because... I don't use gnome... :) Have lots of fun. -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Chris Arnold
-
M Harris