[mythtv-users] ATI Remote Wonder

Albert Santoni gamegod at sympatico.ca
Thu Jan 8 07:08:58 EST 2004


Simon at the Threshold wrote:

> Lo there,
>
> I've got a ATI Remote Wonder wireless remote (Very nice) and was 
> wondering if anyone could shortcut my playing and tell me the best way 
> of setting it up for MythTV?.
>
> I've been using xmodmap but appear to have problems getting it to work 
> between mtyhtv and mythmusic?.
>
> I've been looking at the lirc code and it looks like it has support 
> for the ati remote. Can anyone comment on this?
>
> Otherwise I'll have a play myself and report back to the list..
>
> Ta
> Simon
>
>------------------------------------------------------------------------
>
>_______________________________________________
>mythtv-users mailing list
>mythtv-users at mythtv.org
>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>  
>
Awesome remote!
I just bought and hooked mine up last week. I tried the ati_remote 
driver (using xmodmap) from GATOS 
(http://gatos.sourceforge.net/ati_remote.php), but I couldn't figure out 
why xmodmap it kept getting parsing errors while parsing my custom binds 
file thingy....

Anyways, I ended up using the LIRC driver. You need a CVS snapshot of 
LIRC (not lirc-0.6.6)... I used lirc-0.7.0pre2 fine 
(http://lirc.sourceforge.net/software/snapshots/lirc-0.7.0pre2.tar.bz2)

So extract that, and run the configure thing for LIRC, and when you get 
to the menu where you pick your remote, it's located in the "Other 
(MIDI, Bluetooth, etc.)" group. The module itself is called lirc_atiusb.

Here's the tricky part.

For some reason or another, if I close irxevent or lircd, then I have to 
unload my lirc_atiusb module, then load it back into the kernel. Beats 
me... but just make sure that when you're messing around with your 
.lircrc file that you reload the module after everytime you close 
irxevent... (you need to kill lircd, then rmmod lirc_atiusb, then 
modprobe lirc_atiusb, then run lircd again, then fire up irxevent 
again... Maybe there's some way around this...)

When you first get the remote running, it might look like it's kinda 
slow.... but in fact, it's repeating the buttons so fast it's jamming 
LIRC up (or the equivalent...). So to get around this you need to add 
"repeat = 4" or "repeat = 5" to all the button mappings on your .lircrc....

I've included both my lircd.conf file and my .lircrc file for you....

Good luck, and that was a hell of a long message.

Albert Santoni
-------------- next part --------------
begin 
    prog = irxevent
    button = A
    config = Key E CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = B
    config = Key O CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = TV
    config = Key Alt-T CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = STOP
    config = Key Escape CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = STOP
    config = Key q xine
    repeat = 5
end

begin 
    prog = irxevent
    button = FORWARD
    config = Key Right CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = REWIND
    config = Key Left CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = FULLSCREEN
    config = Key Z CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = PAUSE
    config = Key P CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = PAUSE
    config = Key space xine
    repeat = 5
end

begin 
    prog = irxevent
    button = PLAY
    config = Key P CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = PLAY
    config = Key enter xine
    repeat = 5
end

begin 
    prog = irxevent
    button = MUTE
    config = Key shift-bar CurrentWindow
    repeat = 5
end
begin 
    prog = irxevent
    button = MUTE
    config = Key m MPlayer
    repeat = 5
end

begin
    prog = irexec
    button = eject
    config = eject
    repeat = 5	
end

begin 
    prog = irxevent
    button = VOL_DOWN
    config = Key bracketleft CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = VOL_DOWN
    config = Key KP_Divide MPlayer
    repeat = 5
end

begin 
    prog = irxevent
    button = VOL_UP
    config = Key bracketright CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = VOL_UP
    config = Key KP_Multiply MPlayer
    repeat = 5
end

begin 
    prog = irxevent
    button = F
    config = Key Page_Down CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = D
    config = Key Page_Up CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = C
    config = Key KP_7 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = E
    config = Key KP_1 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = F
    config = Key Page_Down MPlayer
    repeat = 5
end

begin 
    prog = irxevent
    button = D
    config = Key Page_Up MPlayer
    repeat = 5
end

begin 
    prog = irxevent
    button = RIGHT
    config = Key KP_Right xine
    repeat = 5
end

begin 
    prog = irxevent
    button = RIGHT
    config = Key Right CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = LEFT
    config = Key Left CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = UP
    config = Key Up CurrentWindow
    repeat = 5
end

begin
    prog = irxevent
    button = DOWN
    config = Key Down CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = CH_UP
    config = Key Up CurrentWindow
    repeat = 5
end

begin
    prog = irxevent
    button = CH_DOWN
    config = Key Down CurrentWindow
    repeat = 5
end

begin
    prog = irxevent
    button = REPLAY
    config = Key Escape CurrentWindow
    repeat = 5
end

begin
    prog = irxevent
    button = REPLAY
    config = Key q xine
    repeat = 5
end

begin
    prog = irxevent
    button = OK
    config = Key KP_Enter CurrentWindow
    repeat = 5
end

begin
    prog = irxevent
    button = 3
    config = Key Page_Up CurrentWindow
    repeat = 5
end

begin
    prog = irxevent
    button = MENU
    config = Key M CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 1
    config = Key 1 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 2
    config = Key 2 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 3
    config = Key 3 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 4
    config = Key 4 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 5
    config = Key 5 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 6
    config = Key 6 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 7
    config = Key 7 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 8
    config = Key 8 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 9
    config = Key 9 CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = 0
    config = Key 0 CurrentWindow
    repeat = 3
end

begin 
    prog = irxevent
    button = CHECK
    config = Key I CurrentWindow
    repeat = 5
end

begin 
    prog = irxevent
    button = RECORD
    config = Key R CurrentWindow
    repeat = 5
end
-------------- next part --------------

# Please make this file available to others
# by sending it to <lirc at bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.7.0pre2(atiusb) on Fri Jan  2 19:09:02 2004
#
# contributed by 
#
# brand:                       /tmp/lircd.conf.conf
# model no. of remote control: 
# devices being controlled by this remote:
#

begin remote

  name  /tmp/lircd.conf.conf
  bits           32
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          147987
  toggle_bit      0


      begin codes
          A                        0x0000000014C500F0
          B                        0x0000000014C601F0
          POWER                    0x0000000014C702F0
          TV                       0x0000000014C803F0
          DVD                      0x0000000014C904F0
          WEB                      0x0000000014CA05F0
          GUIDE                    0x0000000014CB06F0
          GRAB                     0x0000000014CC07F0
          VOL_DOWN                 0x0000000014CE09F0
          VOL_UP                   0x0000000014CD08F0
          MUTE                     0x0000000014CF0AF0
          CH_DOWN                  0x0000000014D10CF0
          CH_UP                    0x0000000014D00BF0
          A                        0x0000000014C500F0
          B                        0x0000000014C601F0
          1                        0x0000000014D20DF0
          2                        0x0000000014D30EF0
          3                        0x0000000014D40FF0
          4                        0x0000000014D510F0
          5                        0x0000000014D611F0
          6                        0x0000000014D712F0
          7                        0x0000000014D813F0
          8                        0x0000000014D914F0
          9                        0x0000000014DA15F0
          0                        0x0000000014DC17F0
          MENU                     0x0000000014DB16F0
          CHECK                    0x0000000014DD18F0
          C                        0x0000000014DE19F0
          D                        0x0000000014E01BF0
          UP                       0x0000000014DF1AF0
          LEFT                     0x0000000014E21DF0
          DOWN                     0x0000000014E722F0
          RIGHT                    0x0000000014E41FF0
          OK                       0x0000000014E31EF0
          REPLAY                   0x0000000014E11CF0
          FULLSCREEN               0x0000000014E520F0
          E                        0x0000000014E621F0
          F                        0x0000000014E823F0
          REWIND                   0x0000000014E924F0
          FORWARD                  0x0000000014EB26F0
          PLAY                     0x0000000014EA25F0
          RECORD                   0x0000000014EC27F0
          STOP                     0x0000000014ED28F0
          PAUSE                    0x0000000014EE29F0
      end codes

end remote


More information about the mythtv-users mailing list