Apple TV Linux IR Howto
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. )
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.
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 )
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