[mythtv] Writing a Keytouch plugin for MythTV

Yeechang Lee ylee at pobox.com
Tue Feb 20 15:01:06 UTC 2007


Eduard Huguet <eduardhc at gmail.com> says:
> Anyway, I'll take a closer look at the MythTV frontend code and
> maybe I can help by implementing some additional control commands.

I know I'd appreciate that; a jumppoint keybinding that goes directly
to Setup might be useful, for example.

In addition, it'd be great to have mythfrontend switch to using real
X11 keybindings instead of the custom, MythTV-specific one it
apparently uses. I use Xmodmap to access the keys on my multimedia
keyboard myself, and found that even after taking the steps to bind
all the multimedia keys on my particular keyboard (the Solitek
ACK-581) to appropriate extended X11 keybindings, not all of the keys
could be used in mythfrontend (as opposed to KDE, which picks all of
them up automatically) because mythfrontend only understand some of
the bindings.

Here's an excerpt from my /etc/X11/Xmodmap:

    keycode 233 = XF86Sleep
    keycode 200 = XF86Mail
    keycode 143 = XF86AudioRaiseVolume
    keycode 160 = XF86AudioLowerVolume
    keycode 178 = XF86AudioMute
    keycode 176 = XF86AudioPrev
    keycode 153 = XF86AudioPlay
    keycode 161 = XF86AudioNext
    keycode 164 = XF86Eject
    keycode 162 = XF86Game
    keycode 146 = XF86AudioStop
    keycode 147 = XF86AudioRecord
    keycode 220 = XF86MenuKB
    keycode 199 = XF86WWW
    keycode 159 = XF86Video
    keycode 210 = XF86WebCam

While all of these obviously correspond to some MythTV function or
another, mythfrontend only recognizes some, like XF86AudioRecord,
XF86AudioPrev (as MEDIAPREV, I think), and XF86AudioNext
(MEDIANEXT). While it's been useful to have bindings separate from
keyboard keys ("r," "q," and "z" in these cases) to be able to program
my remote control with, I'd love to be able to put the other keys to
work, too.

-- 
Yeechang Lee <ylee at pobox.com> | +1 650 776 7763 | San Francisco CA US


More information about the mythtv-dev mailing list