How to use ATI REMOTE Wonder II Remote for MythTv Frontend?
Inspired by their wiki-page, I ended up buying ATI REMOTE WONDER II Remote for my new MythTv Front End system. Here's how I setup
this remote control using xmodmap.
Here's how it works: (1) Launch myth front end with a custom keymap. (2) When we finish and exit myth frontend, reset the keymap to
the normal (sane keymap)
Step 0: Disable gnome-screensaver
I added the following to root's crontab to prevent auto screen lock whenever I pressed the lock button:
* * * * * /usr/bin/killall gnome-screensaver 1>/dev/null 2>/dev/null || :
Step 1: Create default/sane keymap
Fire up a terminal window (xterm/gnome-terminal) and run:
xmodmap -pke > /somedir/sanekeys.txt
Step 2: Create a launcher for myth front end
Let us call it /usr/bin/wmyth. Here would be its content.
/usr/bin/xmodmap /somedir/map.txt | /usr/bin/mythfrontend 2>/dev/null
Step 3: Create /somedir/map.txt
Place the following as /somedir/map.txt:
keycode 222 = F1
keycode 229 = F2
keycode 160 = F3
keycode 133 = F4
keycode 232 = F5
keycode 179 = p
keycode 152 = Q
keycode 233 = U
keycode 176 = F10
keycode 174 = F11
keycode 41 = o
keycode 136 = o
keycode 56 = F8
keycode 232 = Escape
keycode 110 = p
keycode 102 = Right
keycode 100 = Left
keycode 158 = Escape
keycode 54 = d
keycode 40 = i
keycode 119 = i
keycode 140 = w
keycode 177 = z
Step 4: Launch wmyth, enjoy.
A few things, mostly technical notes...
Monday, January 07, 2008
- ▼ 2008 (8)
This work is licensed under a Creative Commons License.