ATI Remote Wonder

From MythTV Official Wiki
Revision as of 14:32, 28 December 2008 by Dylanc (Talk | contribs)

Jump to: navigation, search

ATI Remote Wonder (RF, USB, full size)

Vendors Support Website: http://mirror.ati.com/products/remotewonder/index.html

Remotewonder1.jpgRemotewonder2.jpg

Support Status: USB RF Receiver Supported

Description

USB Remote intended for Media Center PCs The original ATI Remote Wonder. There are two other models: Remote Wonder Plus and Remote Wonder II.

Issues and Problems

This works as of Lirc 8.0 using the lirc module: "lirc_atiusb"

You must disable the ati_remote module from loading.

FC4:        Disable it by adding ati_remote into the /etc/hotplug/blacklist file.
SuSE 10.2, FC7, Debian Etch, Ubuntu 7.10:  Disable it by adding "blacklist  ati_remote" to /etc/modprobe.d/blacklist

Associated Software

Lirc: http://www.lirc.org/

Installation guide

Here are the directions for setting up the ATI Remote Wonder with lirc.

Fedora Core

Fedora Core 5 and 6 steps:

1. Make sure "ati_remote" is blacklisted.

2. Plug in the USB reciever

3. Type in:

# lsmod

Or maybe better:

# lsmod | grep ati

4. You should see a module called "lirc_atiusb" this actually the module for the ATI USB Wonder remote

5. (fedora core 4). Add these lines to your /etc/modprobe.conf (for fedora core 4 and before only!)

Script.png /etc/modprobe.conf

alias char-major-61 lirc_atiusb
alias lirc_dev lirc_atiusb

6. (fedora core 5) Add this line to /etc/rc.local

# /sbin/modprobe lirc_atiusb

7. Copy the contents of the example lircd.conf config file to /etc/lircd.conf.

8. start the lircd daemon:

# service lircd start

And make sure that it starts automatically on next boot:

# chkconfig lircd on

9. Run "irw" and press buttons on your remote you should see output for each button.

10. For MythTV users Make your /home/username/.mythtv/lircrc file (listed below)

openSUSE 10.2

Geeko head48.png

1. Make sure "ati_remote" is blacklisted.

Disable it by adding "blacklist  ati_remote" to /etc/modprobe.d/blacklist

2. If you have already plugged in the usb receiver, physically remove it and use "rmmod ati_remote" to remove the module.
3. check that "lirc-kmp-default" is installed: rpm -qa | grep -i lirc
This contains the required "lirc_atiusb" module. If it is not installed, install it with

yast -> Software -> Software Management -> Search -> "lirc" -> 
select "lirc-kmp-default" -> Accept

(You may need your installation CDs or DVD for the filesets.)
4. Plug in the USB receiver back in
5. Type in "lsmod | grep -i ati". The output should look something like this:

lirc_atiusb            21408  0
lirc_dev               18548  1 lirc_atiusb
usbcore               114896  3 lirc_atiusb,usbhid,uhci_hcd

"lirc_atiusb" is the module for the ATI USB Wonder remote
6. Add these lines to your /etc/modprobe.conf:

alias char-major-61 lirc_atiusb
alias lirc_dev lirc_atiusb

7. Copy the contents of the example lircd.conf config file below to /etc/lircd.conf or go ahead and create your own lircd.conf file using irrecord. irrecord takes a while to run through, but it sure is nice to have the remote work in the end.

cd /etc
irrecord ./lircd.conf

8. Save the example lircrc file below to /home/mythtv/.mythtv/lircrc -change the owner mythtv (assuming you're running mythTV as 'mythtv') and the group to 'users'

chown mythtv:users /home/mythtv/.mythtv/lircrc

9. Start the lircd daemon

lircd

10. Verify it is running. This should return a line with "lircd" in it besides the 'grep' line

ps -ef | grep lircd

11. Run "irw" and press any button on your remote. If the mappings are correct, you should see output for each button you press. If nothing is showing up, make sure you named the file "/etc/lircd.conf" and not "/etc/lirc.conf". I have done this a few times. If that is correct, you may need to use "irrecord config_file.conf" to record your own ir mappings.

mythbox:/etc # irw
00000014527d0000 00 mouse-button_right ./lircd.conf
000000144b760000 00 mouse-right_down ./lircd.conf
0000001446710000 00 mouse-right ./lircd.conf
0000001448730000 00 mouse-down ./lircd.conf
00000014de090000 00 vol-down ./lircd.conf
00000014de090000 01 vol-down ./lircd.conf
00000014dd080000 00 vol-up ./lircd.conf
00000014dd080000 01 vol-up ./lircd.conf

Use "Ctrl-C" to quit irw

When using irrecord and naming the buttons, be sure to use the same naming schemes as those in the "begin codes" section of the lircrc file (see example below). This will allow you to copy/paste the example lircrc given below it in the next step. The example lirc.conf given has the buttons listed in the same order as the are placed on the remote. It is very important that the "button" names in the lircrc match those specified in the lirc.conf.

12. Use yast to setup the lirc daemon to start at boot time:

yast -> System -> System Services (Runlevel) -> lirc -> Enable -> ok
-> Finish -> yes -> Quit

13. Start up mythfrontend as mythtv (assuming that is your account) and the remote should be working.

Mythbuntu 8.10

This information is based on the SUSE 10.2 guide on this page and the modifications suggested by wmwong at the following URL:

http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=886179&page=2

Please note that this will only provide basic functionality and that additional configuration will probably be desired.



1. Blacklist lirc_atiusb by adding the line "blacklist lirc_atiusb in /etc/modprobe.d/blacklist.
2. Unplug the IR receiver.
3. Not needed.
4. Plug in the USB receiver back in
5. Type in "lsmod | grep -i ati". The output should look something like this:

lirc_atiusb            21408  0
lirc_dev               18548  1 lirc_atiusb
usbcore               114896  3 lirc_atiusb,usbhid,uhci_hcd

"lirc_atiusb" is the module for the ATI USB Wonder remote

6. Not needed.
7. Copy the contents of the example lircd.conf config file below to /etc/lirc/lircd.conf
8. Save the example lircrc file below to /home/[user]/.lirc/mythtv
9. Restart lirc from a terminal window with the following command:

/etc/init.d/lirc restart

10. Verify it is running. This should return a line with "lircd" in it besides the 'grep' line

ps -ef | grep lircd

11. Run "irw" from a terminal and press any button on your remote. If the mappings are correct, you should see output for each button you press. If nothing is showing up, make sure you named the file "/etc/lircd.conf" and not "/etc/lirc.conf". I have done this a few times. If that is correct, you may need to use "irrecord config_file.conf" to record your own ir mappings.

mythbox:/etc # irw
00000014527d0000 00 mouse-button_right ./lircd.conf
000000144b760000 00 mouse-right_down ./lircd.conf
0000001446710000 00 mouse-right ./lircd.conf
0000001448730000 00 mouse-down ./lircd.conf
00000014de090000 00 vol-down ./lircd.conf
00000014de090000 01 vol-down ./lircd.conf
00000014dd080000 00 vol-up ./lircd.conf
00000014dd080000 01 vol-up ./lircd.conf

Use "Ctrl-C" to quit irw

12. Not needed.
13. Restart the machine.

Author's Note: In order to edit the required configuration files, you will need the appropriate permissions and a text editor. For me, this was accomplished by running Thunar file manager with root permissions. Do this by typing sudo thunar in a terminal window. Also note that certain files/directories shown above are hidden by default and the "View Hidden Files" option must be enabled. It is also recommended to backup your original lircd.conf and lircrc files before modifying them.


Example of a lircd.conf

Script.png lircd.conf

# brand: ATI Remote Wonder
# model no. of remote control: 5000023600
# devices being controlled by this remote: ATI USB Receiver
#
# Found on a linpvr.org forum, thanks.

begin remote

  name  ati_remote
  bits           40
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          235966
  toggle_bit      0


      begin codes
          a                        0x00000014D5000000
          b                        0x00000014D6010000
          power                    0x00000014D7020000
          tv                       0x00000014D8030000
          dvd                      0x00000014D9040000
          web                      0x00000014DA050000
          media_library            0x00000014DB060000
          drag                     0x00000014DC070000
          mouse-button_left        0x000000144D780000
          mouse-button_right       0x00000014517C0000
          mouse-up                 0x0000001447720000
          mouse-down               0x0000001448730000
          mouse-left               0x0000001445700000
          mouse-right              0x0000001446710000
          mouse-left_up            0x0000001449740000
          mouse-right_up           0x000000144A750000
          mouse-left_down          0x000000144C770000
          mouse-right_down         0x000000144B760000
          vol-up                   0x00000014DD080000
          vol-down                 0x00000014DE090000
          mute                     0x00000014DF0A0000
          chan-up                  0x00000014E00B0000
          chan-down                0x00000014E10C0000
          1                        0x00000014E20D0000
          2                        0x00000014E30E0000
          3                        0x00000014E40F0000
          4                        0x00000014E5100000
          5                        0x00000014E6110000
          6                        0x00000014E7120000
          7                        0x00000014E8130000
          8                        0x00000014E9140000
          9                        0x00000014EA150000
          0                        0x00000014EC170000
          dvd-root_menu            0x00000014EB160000
          launch_setup             0x00000014ED180000
          c                        0x00000014EE190000
          d                        0x00000014F01B0000
          tv_on_demand             0x00000014F11C0000
          max_window               0x00000014F5200000
          cursor-up                0x00000014EF1A0000
          cursor-down              0x00000014F7220000
          cursor-left              0x00000014F21D0000
          cursor-right             0x00000014F41F0000
          ok                       0x00000014F31E0000
          e                        0x00000014F6210000
          f                        0x00000014F8230000
          rewind                   0x00000014F9240000
          play                     0x00000014FA250000
          fastforward              0x00000014FB260000
          record                   0x00000014FC270000
          stop                     0x00000014FD280000
          pause                    0x00000014FE290000
      end codes

end remote

Example of a lircrc - works with lircd.conf above

Script.png lircrc

#
# MythTV native LIRC config file for
# the ATI-Wonder Remote
# using lirc_atiusb driver
#

begin
prog = mythtv
button = a
config = E
repeat = 2
end

begin
prog = mythtv
button = b
config = O
repeat = 2
end

#begin
#prog = mythtv
#button = tv
#config = Key Alt-T CurrentWindow
#repeat = 2
#end

begin
prog = mythtv
button = stop
config = Esc
repeat = 2
end

begin
prog = mythtv
button = fastforward
config = Right
repeat = 2
end

begin
prog = mythtv
button = rewind
config = Left
repeat = 2
end

begin
prog = mythtv
button = max_window
config = V
repeat = 2
end

begin
prog = mythtv
button = pause
config = P
repeat = 2
end

begin
prog = mythtv
button = play
config = P
repeat = 2
end

begin
prog = mythtv
button = mute
config = F9
repeat = 2
end

begin
prog = mythtv
button = vol-down
config = F10
repeat = 2
end

begin
prog = mythtv
button = vol-up
config = F11
repeat = 2
end

begin
prog = mythtv
button = f
config = PgDown
repeat = 2
end

begin
prog = mythtv
button = d
config = PgUp
repeat = 2
end

begin
prog = mythtv
button = c
config = F4
repeat = 2
end

begin
prog = mythtv
button = e
config = Esc
repeat = 2
end

begin
prog = mythtv
button = cursor-right
config = Right
repeat = 2
end

begin
prog = mythtv
button = cursor-left
config = Left
repeat = 2
end

begin
prog = mythtv
button = cursor-up
config = Up
repeat = 2
end

begin
prog = mythtv
button = cursor-down
config = Down
repeat = 2
end

begin
prog = mythtv
button = chan-up
config = Up
repeat = 2
end

begin
prog = mythtv
button = chan-down
config = Down
repeat = 2
end

begin
prog = mythtv
button = rewind
config = Left
repeat = 2
end

begin
prog = mythtv
button = ok
config = Enter
repeat = 2
end

begin
prog = mythtv
button = 1
config = 1
repeat = 2
end

begin
prog = mythtv
button = 2
config = 2
repeat = 2
end

begin
prog = mythtv
button = 3
config = 3
repeat = 2
end

begin
prog = mythtv
button = 4
config = 4
repeat = 2
end

begin
prog = mythtv
button = 5
config = 5
repeat = 2
end

begin
prog = mythtv
button = 6
config = 6
repeat = 2
end

begin
prog = mythtv
button = 7
config = 7
repeat = 2
end

begin
prog = mythtv
button = 8
config = 8
repeat = 2
end

begin
prog = mythtv
button = 9
config = 9
repeat = 2
end

begin
prog = mythtv
button = 0
config = 0
repeat = 2
end

begin
prog = mythtv
button = record
config = R
repeat = 2
end

begin
prog = mythtv
button = check
config = Enter
repeat = 2
end

### MPlayer lirc setup
#
# Remember to ln -s ./.mythtv/lircrc ../.lircrc for mplayer to work!

# Show OSD
begin
prog = mplayer
button = tv_on_demand
repeat = 3
config = osd
end

# Pause playback
begin
prog = mplayer
button = pause
repeat = 3
config = pause
end

begin
prog = mplayer
button = play
repeat = 3
config = pause
end

# Stop playback and exit
begin
prog = mplayer
button = stop
repeat = 3
config = quit
end

# Mute
begin
prog = mplayer
button = mute
repeat = 3
config = mute
end

# Seek back 10 seconds
begin
prog = mplayer
button = rewind
repeat = 3
config = seek -10
end

# Seek forward 30 seconds
begin
prog = mplayer
button = fastforward
repeat = 3
config = seek +30
end

# Quit
begin
prog = mplayer
button = e
repeat = 3
config = quit
end