3

I have a Microsoft Digital Media 3000 Keyboard. None of the function keys or other special keys seem to do anything, what do I need to do to get them working (at the very least F2, as not having a shortcut to rename a file is driving me mad)

If I run xev and press F2 I get the following output in the terminal:

KeyPress event, serial 36, synthetic NO, window 0x4800001, root 0x15d, subw 0x0, time 42858728, (674,456), root:(1034,588), state 0x10, keycode 139 (keysym 0xff65, Undo), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x4800001, root 0x15d, subw 0x0, time 42858912, (674,456), root:(1034,588), state 0x10, keycode 139 (keysym 0xff65, Undo), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False

Artur Meinild
  • 31,035

1 Answers1

3

Using xbindkeys and xte you should be able to remap the f2 key.

sudo apt-get install xbindkeys && sudo apt-get install xautomation

Create the xbindkeys configuration file

xbindkeys --defaults > $HOME/.xbindkeysrc

Now we need to edit the file: gedit $HOME/.xbindkeysrc

Scroll to the bottom of the file and create a new line.

Type:

“xte 'key F2'” 
0xff65

enter image description here

This should bind the f2 function key to F2. Let me know if it doesn't work.

You can do this for any of your keys, just get their keysym from xev.

Restart the computer.

Seth
  • 59,332