[mythtv-users] howto for ati remote wonder and myhtv

matt hatfield matt at concrete-donkey.us
Tue Jun 24 21:57:45 EDT 2003


Harondel J. Sibble wrote:

>Just looking through the archives and haven't found quote what I need yet, 
>can anyone point me to a howto on make the ATI Remote Wonder work with 
>mythtv?  I know how to setup the unit and all that, I am thinking more along 
>the lines of keymappings and such.
>  
>
I read somewhere (can't remember where) about editing the ati_remote.c 
file to map the keys.
It works great. Here is a snip of my file so you can see what I did. 
Look at your input.h file to map any further keys.

<snip>
        {KIND_FILTERED, 0xe2, 0x1d, EV_KEY, KEY_LEFT, 1},   /* key left */
        {KIND_FILTERED, 0xe4, 0x1f, EV_KEY, KEY_RIGHT, 1},   /* key right */
        {KIND_FILTERED, 0xe7, 0x22, EV_KEY, KEY_DOWN, 1},   /* key down */
        {KIND_FILTERED, 0xdf, 0x1a, EV_KEY, KEY_UP, 1},   /* key left */

        {KIND_FILTERED, 0xe3, 0x1e, EV_KEY, KEY_ENTER, 1},   /* key enter */

        {KIND_FILTERED, 0xd2, 0x0d, EV_KEY, KEY_1, 1},
        {KIND_FILTERED, 0xd3, 0x0e, EV_KEY, KEY_2, 1},
        {KIND_FILTERED, 0xd4, 0x0f, EV_KEY, KEY_3, 1},
        {KIND_FILTERED, 0xd5, 0x10, EV_KEY, KEY_4, 1},
        {KIND_FILTERED, 0xd6, 0x11, EV_KEY, KEY_5, 1},
        {KIND_FILTERED, 0xd7, 0x12, EV_KEY, KEY_6, 1},
        {KIND_FILTERED, 0xd8, 0x13, EV_KEY, KEY_7, 1},
        {KIND_FILTERED, 0xd9, 0x14, EV_KEY, KEY_8, 1},
        {KIND_FILTERED, 0xda, 0x15, EV_KEY, KEY_9, 1},
        {KIND_FILTERED, 0xdc, 0x17, EV_KEY, KEY_0, 1},

        {KIND_FILTERED, 0xdd, 0x18, EV_KEY, KEY_SPACE, 1},   /* key 
"checkbox" */

        {KIND_FILTERED, 0xc5, 0x00, EV_KEY, KEY_BACKSLASH, 1},
        {KIND_FILTERED, 0xc6, 0x01, EV_KEY, KEY_B, 1},
        {KIND_FILTERED, 0xde, 0x19, EV_KEY, KEY_I, 1},
        {KIND_FILTERED, 0xe0, 0x1b, EV_KEY, KEY_BACKSLASH, 1},
        {KIND_FILTERED, 0xe6, 0x21, EV_KEY, KEY_E, 1},
        {KIND_FILTERED, 0xe8, 0x23, EV_KEY, KEY_F, 1},

        {KIND_FILTERED, 0xdb, 0x16, EV_KEY, KEY_ESC, 1},   /* key menu */
        {KIND_FILTERED, 0xc7, 0x02, EV_KEY, KEY_POWER, 1},   /* key power */
        {KIND_FILTERED, 0xc8, 0x03, EV_KEY, KEY_PROG1, 1},   /* key TV */
        {KIND_FILTERED, 0xc9, 0x04, EV_KEY, KEY_PROG2, 1},   /* key DVD */
        {KIND_FILTERED, 0xca, 0x05, EV_KEY, KEY_WWW, 1},   /* key Web */
        {KIND_FILTERED, 0xcb, 0x06, EV_KEY, KEY_BOOKMARKS, 1},   /* key 
"open book" */
        {KIND_FILTERED, 0xcc, 0x07, EV_KEY, KEY_EDIT, 1},   /* key "hand" */
        {KIND_FILTERED, 0xe1, 0x1c, EV_KEY, KEY_I, 1},   /* key "timer" */

        {KIND_FILTERED, 0xce, 0x09, EV_KEY, KEY_VOLUMEDOWN, 1},
        {KIND_FILTERED, 0xcd, 0x08, EV_KEY, KEY_VOLUMEUP, 1},
        {KIND_FILTERED, 0xcf, 0x0a, EV_KEY, KEY_BACKSLASH, 1},
        {KIND_FILTERED, 0xd1, 0x0c, EV_KEY, KEY_UP, 1},    /* next channel*/
        {KIND_FILTERED, 0xd0, 0x0b, EV_KEY, KEY_DOWN, 1},   /* prev 
channel */

        {KIND_FILTERED, 0xec, 0x27, EV_KEY, KEY_RECORD, 1},
        {KIND_FILTERED, 0xea, 0x25, EV_KEY, KEY_P, 1},   /* ke pay */
        {KIND_FILTERED, 0xe9, 0x24, EV_KEY, KEY_LEFT, 1},
        {KIND_FILTERED, 0xeb, 0x26, EV_KEY, KEY_RIGHT, 1},
        {KIND_FILTERED, 0xed, 0x28, EV_KEY, KEY_S, 1},
        {KIND_FILTERED, 0xee, 0x29, EV_KEY, KEY_P, 1},

        {KIND_FILTERED, 0xe5, 0x20, EV_KEY, KEY_FRONT, 1},   /* maximize */
</snip>

No need to mess around with xmodmap or anything just make your changes 
after the KEY_  and go to town.
Hope this helps



More information about the mythtv-users mailing list