I think your problem is that the multimedia keys are not displayed on the terminal input.
Perhaps you could make progress by running xev to catch the key and xmodmap to map the key to another input.
Alternatively, use something like TKinter and see if the graphics program collects keystrokes.
from Tkinter import * root = Tk() def key(event): print "pressed", repr(event.char) def callback(event): frame.focus_set() frame = Frame(root, width=100, height=100) frame.bind("<Key>", key) frame.bind("<Button-1>", callback) frame.pack() root.mainloop()
Another possibility is to map the key F instead of the multimedia key. (i.e. F9)
Edit: Further research on this led to the following two links:
Additional keyboard keys
Additional keyboard keys in the console
The console itself does not support multimedia keys. But it does support user keys F. The F30-F246 is always free. Instead of displaying XF86Launch1, go to F70. Then map the F70 to the keyboard input in your layout, or use the Python script you wrote to handle it.
Steve kallestad
source share