Difference between revisions of "Apple TV Linux IR Howto"

From AwkwardTV
Jump to: navigation, search
m
Line 5: Line 5:
 
(Ubuntu 6.10 and 7.04 must be upated.
 
(Ubuntu 6.10 and 7.04 must be upated.
 
I downloaded and rebuilt the 7.10/gutsy "src.deb" (.dsc,.diff.gz,.orig.tar.gz). Use dpkg-source -x to extract, and ( cd package ; dpkg-buildpackage ) to build. )
 
I downloaded and rebuilt the 7.10/gutsy "src.deb" (.dsc,.diff.gz,.orig.tar.gz). Use dpkg-source -x to extract, and ( cd package ; dpkg-buildpackage ) to build. )
 +
 +
Note, the current lirc version appears not to flag repeat events. The patch on the lirc sourceforge site fixes this:
 +
 +
[http://sourceforge.net/tracker/download.php?group_id=5444&atid=305444&file_id=249079&aid=1810963 lirc-0.8.2-macmini-repeat.patch]
 +
  
 
If your kernel has not already been updated apply the apple hiddev patch.
 
If your kernel has not already been updated apply the apple hiddev patch.

Revision as of 09:09, 10 October 2007

How to setup IR for Linux on the Apple TV

Install lirc 0.8.2.

(Ubuntu 6.10 and 7.04 must be upated. I downloaded and rebuilt the 7.10/gutsy "src.deb" (.dsc,.diff.gz,.orig.tar.gz). Use dpkg-source -x to extract, and ( cd package ; dpkg-buildpackage ) to build. )

Note, the current lirc version appears not to flag repeat events. The patch on the lirc sourceforge site fixes this:

lirc-0.8.2-macmini-repeat.patch


If your kernel has not already been updated apply the apple hiddev patch.

apple-remote-quirk-hiddev.patch Change USB_DEVICE_ID_APPLE_REMOTE2 to be 0x8241 Apply patch. It applies to 2.6.22 or 2.6.23. Reboot, or reload module.

Download hardware.conf

Put that in /etc/lirc/

For my system, I had to edit the file and change:

DEVICE="/dev/hiddev0"

Generate lircd.conf with:

irrecord -H macmini -d /dev/hiddev0 lircd.conf

Yes, the intial press is a whole line of dots.

I named the buttons PLUS, MINUS, PREV, NEXT, PLAY, MENU

Put that file in /etc/lirc/

(Note, that you actually are not limited to the AppleTV remote. I recorded the remote of a dead DVD player, and concatenated the lircd.conf files, so both remotes can be used. -don )

restart lirc

download dot-lircrc

Install that as .lircrc

Then I play a external DVD with: vlc --intf lirc --alsadev iec958 /dev/scd0

This page was helpful: LinuxOnMacbookPro

Alternate vlc settings, which may work better for the Apple TV remote:

begin
prog = vlc
button = PLAY
config = key-nav-activate
end

begin
prog = vlc
button = MINUS
config = key-nav-down
end

begin
prog = vlc
button = PLUS
config = key-nav-up
end

begin
prog = vlc
button = NEXT
config = key-chapter-next
end

begin
prog = vlc
button = PREV
config = key-chapter-prev
end

begin
prog = vlc
button = MENU
config = key-disc-menu
end