View Full Version : [ubuntu] How to get keycodes via USB

September 20th, 2008, 05:00 PM
Hello over there,

I have a Logitech keyboard, which is a few years old and has a special "F button". This annoying F-Button has to be pressed together with the actual F keys (F1 to F12) so that one gets F1 to F12. Without it they don't respond in the intended way.

Therefore now I want to find a way to get the keycodes, which are transmitted via USB, when I press those buttons without this special F toggle button. Then I want to asign them to the usual F activities like maximize and so on.

Can you get me a hint how to start?

Thx a lot.

September 21st, 2008, 05:34 PM

September 21st, 2008, 05:46 PM
There used to be a program called hotkeys that would enable these, don't know if its still around.

You can use "xev" to get the keycodes of individual keys though.

September 21st, 2008, 05:52 PM
Okay, I will try that. And how can I set those codes or assign them afterwards?