Archive:Apple remote: Difference between revisions
>Sho mNo edit summary |
m (Karellen moved page Apple remote to Archive:Apple remote without leaving a redirect: Outdated) |
||
(51 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{cleanup}} | |||
<section begin="summary" /> | |||
== Apple remote == | |||
[[File:Apple remote.jpg|First (white) and second (silver) generation Apple remotes.|thumb]] | |||
There are two versions of the Apple remote, the first generation white one with 6 buttons, and the second generation silver one with 7 buttons. These remotes have sometimes come with Mac computers and Apple TV units, but can also be purchased separately. The white version is no longer made, but can be found on [[w:eBay|eBay]]. Both versions have identical functions and be used interchangeably. Currently the "Play" button on the silver version functions the same as the middle "select" button (with some exceptions; for instance "Play" on a folder in files-view plays all files in the folder). The remotes can also be paired to a specific device to prevent one remote from controlling two devices at once (or vice versa). | |||
<includeonly>{{-}}</includeonly> | |||
<section end="summary" /> | |||
__TOC__ | |||
=== Using the Apple remote on other computers === | |||
* Using the Apple remote in Kodi using Windows/Bootcamp: http://forum.kodi.tv/showthread.php?tid=73947&pid=539934#pid539934 | |||
* Using the Apple remote in Kodi using Linux: [https://web.archive.org/web/20141009165855/http://teknogeekz.com/blog/?p=422 http://teknogeekz.com/blog/?p=422] | |||
* Adding an Apple IR remote receiver to a computer: [https://web.archive.org/web/20131214023524/http://teknogeekz.com/blog/?p=376 http://teknogeekz.com/blog/?p=376] | |||
* Adding an Apple IR remote receiver to an iMac, MacBook, MacPro (or even a Windows PC) without built-in infrared receiver: [https://gusdevices.wixsite.com/devices-english https://gusdevices.wixsite.com/devices-english] | |||
* FLIRC can also be used to adapt the Apple Remote for just about anything that accepts navigation via a USB keyboard. | |||
=== Mac OS X and Apple TV 1 controls === | |||
'''Global:''' | '''Global:''' | ||
*Plus - Up | * Plus - Up | ||
*Minus - Down | * Minus - Down | ||
*Previous / Rewind - Left | * Previous / Rewind - Left | ||
*Next / Forward - Right | * Next / Forward - Right | ||
*Play / Pause - Select | * Play / Pause - Select | ||
*Menu - Previous Menu | * Menu - Previous Menu | ||
*Hold Play - Full Screen | * Hold Play - Full Screen | ||
*Hold Menu - Contextual menu | * Hold Menu - Contextual menu | ||
'''Home:''' | '''Home:''' | ||
*Menu - Favourites | * Menu - Favourites | ||
*Hold Menu - Shutdown Menu | * Hold Menu - Shutdown Menu | ||
'''Browsing videos/Library:''' | '''Browsing videos/Library:''' | ||
*Hold Up/Down - Scroll list | * Hold Up/Down - Scroll list | ||
*Hold Play - Movie Information | * Hold Play - Movie Information | ||
*Hold Menu - Contextual menu | * Hold Menu - Contextual menu | ||
'''Full Screen Video:''' | '''Full Screen Video:''' | ||
*Left - Step back | * Left - Step back | ||
*Right - Step forward | * Right - Step forward | ||
*Up - Volume Up | * Up - Volume Up | ||
*Down - Volume Down | * Down - Volume Down | ||
*Hold Left/Right - RW/FF | * Hold Left/Right - RW/FF | ||
*Menu - Stop | * Menu - Stop | ||
*Hold Play - OSD | * Hold Play - OSD | ||
'''Music Playlist:''' | '''Music Playlist:''' | ||
*Hold Left - Move Item Up | * Hold Left - Move Item Up | ||
*Hold Right - Move Item Down | * Hold Right - Move Item Down | ||
*Hold Menu - Delete Item | * Hold Menu - Delete Item | ||
*Hold Pay - Visualisation | * Hold Pay - Visualisation | ||
'''Screen/GUI Calibration:''' | '''Screen/GUI Calibration:''' | ||
*Play - Next Calibration | * Play - Next Calibration | ||
'''Apple Remote Button Translations (for use in keymap.xml):''' | '''Apple Remote Button Translations (for use in keymap.xml):''' | ||
*1 Up | * 1 Up | ||
*2 Down | * 2 Down | ||
*3 Left | * 3 Left | ||
*4 Right | * 4 Right | ||
*5 Play | * 5 Play | ||
*6 Menu | * 6 Menu | ||
*7 Hold Play | * 7 Hold Play | ||
*8 Hold Menu | * 8 Hold Menu | ||
*9 Hold Left | * 9 Hold Left | ||
*10 Hold Right | * 10 Hold Right | ||
*11 Hold Left | * 11 Hold Left | ||
*12 Hold Right | * 12 Hold Right | ||
Buttons IDs only available on ATV (>2.3) through "Learned Remote" feature | Buttons IDs only available on ATV (>2.3) through "Learned Remote" feature | ||
*70 Play | * 70 Play | ||
*71 Pause | * 71 Pause | ||
*72 Stop | * 72 Stop | ||
*73 SkipPrevious | * 73 SkipPrevious | ||
*74 SkipNext | * 74 SkipNext | ||
*75 Rewind | * 75 Rewind | ||
*76 Forward | * 76 Forward | ||
*77 Return | * 77 Return | ||
*78 Enter | * 78 Enter | ||
'''Extract from keymap.xml:''' | '''Extract from keymap.xml:''' | ||
< | <syntaxhighlight lang="xml" enclose="div"> | ||
<joystick name="AppleRemote"> | <joystick name="AppleRemote"> | ||
<button id="1">Up</button> | |||
<button id="2">Down</button> | |||
<button id="3">Left</button> | |||
<button id="4">Right</button> | |||
<button id="5">Select</button> | |||
<button id="6">PreviousMenu</button> | |||
<button id="7">Fullscreen</button> | |||
<button id="8">ContextMenu</button> | |||
<!-- old buttons for ATV <2.2, used on OSX --> | <!-- old buttons for ATV <2.2, used on OSX --> | ||
<button id="9">Left</button> | |||
<button id="10">Right</button> | |||
<!-- Buttons IDs that are added with the "Learned Remote" feature on ATV >2.3 --> | <!-- Buttons IDs that are added with the "Learned Remote" feature on ATV >2.3 --> | ||
<button id="70">Play</button> | |||
<button id="71">Pause</button> | |||
<button id="72">Stop</button> | |||
<button id="73">SkipPrevious</button> | |||
<button id="74">SkipNext</button> | |||
<button id="75">Rewind</button> | |||
<button id="76">FastForward</button> | |||
<button id="77">OSD</button> | |||
<button id="78">ShowVideoMenu</button> | |||
</joystick> | </joystick> | ||
</ | </syntaxhighlight> | ||
For details make sure to check the keymapping file in [https://github.com/xbmc/xbmc/blob/master/system/keymaps/joystick.AppleRemote.xml GIT] | For details make sure to check the keymapping file in [https://github.com/xbmc/xbmc/blob/master/system/keymaps/joystick.AppleRemote.xml GIT] | ||
=== Apple TV 2 controls === | |||
:''See also: '''[[Archive:Alternative_keymaps_for_Apple_remote]]''''' | |||
{{incomplete}} | |||
=== (Arch)Linux === | |||
This is how to install the Apple Remote (A1294) on a Macbook under Archlinux. The IR driver is called macmini if using a different IR device find out the driver name and replace macmini. You will need to run the irrecord step below and won't be able to use the config I posted. | |||
Install lirc using your packagemanager: | |||
pacman -S lirc | |||
edit /etc/conf.d/lircd.conf NOTE: the DEVICE name can differ. | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
# | |||
# Parameters for lirc daemon | |||
# | |||
LIRC_DEVICE="/dev/usb/hiddev1" | |||
LIRC_DRIVER="macmini" | |||
LIRC_EXTRAOPTS="" | |||
LIRC_CONFIGFILE="/etc/lirc/lircd.conf" | |||
</syntaxhighlight> | |||
create /etc/lirc/lircd.conf | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
begin remote | |||
name Apple_A1294_macmini | |||
bits 8 | |||
eps 30 | |||
aeps 100 | |||
one 0 0 | |||
zero 0 0 | |||
pre_data_bits 24 | |||
pre_data 0x87EE86 | |||
gap 111946 | |||
toggle_bit_mask 0x0 | |||
begin codes | |||
KEY_MENU 0x03 | |||
KEY_PLAY 0x5F 0x05 | |||
KEY_OK 0x5C 0x05 | |||
KEY_RIGHT 0x06 | |||
KEY_LEFT 0x09 | |||
KEY_UP 0x0A | |||
KEY_DOWN 0x0C | |||
end codes | |||
end remote | |||
</syntaxhighlight> | |||
If you don't have an Apple Remote A1294 (look under the battery for the model number) you must create a file with | |||
sudo irrecord -d /dev/usb/hiddev1 -H macmini /etc/lirc/lircd.conf | |||
OR take a look in /usr/share/lirc/remotes/apple/ OR http://lirc.sourceforge.net/remotes/apple/ if someone else already has. | |||
start the lirc service | |||
sudo /etc/rc.d/lircd start | |||
You can use the '''irw''' command to test if you have done everything right up until now. It will display button presses of the remote. | |||
Now to xbmc: | |||
Create ~/.xbmc/userdata/Lircmap.xml | |||
<syntaxhighlight lang="xml" enclose="div"> | |||
<lircmap> | |||
<remote device="Apple_A1294_macmini"> | |||
<up>KEY_UP</up> | |||
<down>KEY_DOWN</down> | |||
<left>KEY_LEFT</left> | |||
<right>KEY_RIGHT</right> | |||
<play>KEY_PLAY</play> | |||
<menu>KEY_MENU</menu> | |||
<select>KEY_OK</select> | |||
</remote> | |||
</lircmap> | |||
</syntaxhighlight> | |||
[[Category:Apple]] |
Latest revision as of 00:25, 10 September 2020
This page or section may require cleanup, updating, spellchecking, reformatting and/or updated images. Please improve this page if you can. The discussion page may contain suggestions. |
Apple remote
There are two versions of the Apple remote, the first generation white one with 6 buttons, and the second generation silver one with 7 buttons. These remotes have sometimes come with Mac computers and Apple TV units, but can also be purchased separately. The white version is no longer made, but can be found on eBay. Both versions have identical functions and be used interchangeably. Currently the "Play" button on the silver version functions the same as the middle "select" button (with some exceptions; for instance "Play" on a folder in files-view plays all files in the folder). The remotes can also be paired to a specific device to prevent one remote from controlling two devices at once (or vice versa).
Using the Apple remote on other computers
- Using the Apple remote in Kodi using Windows/Bootcamp: http://forum.kodi.tv/showthread.php?tid=73947&pid=539934#pid539934
- Using the Apple remote in Kodi using Linux: http://teknogeekz.com/blog/?p=422
- Adding an Apple IR remote receiver to a computer: http://teknogeekz.com/blog/?p=376
- Adding an Apple IR remote receiver to an iMac, MacBook, MacPro (or even a Windows PC) without built-in infrared receiver: https://gusdevices.wixsite.com/devices-english
- FLIRC can also be used to adapt the Apple Remote for just about anything that accepts navigation via a USB keyboard.
Mac OS X and Apple TV 1 controls
Global:
- Plus - Up
- Minus - Down
- Previous / Rewind - Left
- Next / Forward - Right
- Play / Pause - Select
- Menu - Previous Menu
- Hold Play - Full Screen
- Hold Menu - Contextual menu
Home:
- Menu - Favourites
- Hold Menu - Shutdown Menu
Browsing videos/Library:
- Hold Up/Down - Scroll list
- Hold Play - Movie Information
- Hold Menu - Contextual menu
Full Screen Video:
- Left - Step back
- Right - Step forward
- Up - Volume Up
- Down - Volume Down
- Hold Left/Right - RW/FF
- Menu - Stop
- Hold Play - OSD
Music Playlist:
- Hold Left - Move Item Up
- Hold Right - Move Item Down
- Hold Menu - Delete Item
- Hold Pay - Visualisation
Screen/GUI Calibration:
- Play - Next Calibration
Apple Remote Button Translations (for use in keymap.xml):
- 1 Up
- 2 Down
- 3 Left
- 4 Right
- 5 Play
- 6 Menu
- 7 Hold Play
- 8 Hold Menu
- 9 Hold Left
- 10 Hold Right
- 11 Hold Left
- 12 Hold Right
Buttons IDs only available on ATV (>2.3) through "Learned Remote" feature
- 70 Play
- 71 Pause
- 72 Stop
- 73 SkipPrevious
- 74 SkipNext
- 75 Rewind
- 76 Forward
- 77 Return
- 78 Enter
Extract from keymap.xml:
<joystick name="AppleRemote"> <button id="1">Up</button> <button id="2">Down</button> <button id="3">Left</button> <button id="4">Right</button> <button id="5">Select</button> <button id="6">PreviousMenu</button> <button id="7">Fullscreen</button> <button id="8">ContextMenu</button> <!-- old buttons for ATV <2.2, used on OSX --> <button id="9">Left</button> <button id="10">Right</button> <!-- Buttons IDs that are added with the "Learned Remote" feature on ATV >2.3 --> <button id="70">Play</button> <button id="71">Pause</button> <button id="72">Stop</button> <button id="73">SkipPrevious</button> <button id="74">SkipNext</button> <button id="75">Rewind</button> <button id="76">FastForward</button> <button id="77">OSD</button> <button id="78">ShowVideoMenu</button> </joystick>
For details make sure to check the keymapping file in GIT
Apple TV 2 controls
INCOMPLETE: This page or section is incomplete. Please add information or correct uncertain data which is marked with a ? |
(Arch)Linux
This is how to install the Apple Remote (A1294) on a Macbook under Archlinux. The IR driver is called macmini if using a different IR device find out the driver name and replace macmini. You will need to run the irrecord step below and won't be able to use the config I posted.
Install lirc using your packagemanager:
pacman -S lirc
edit /etc/conf.d/lircd.conf NOTE: the DEVICE name can differ.
# # Parameters for lirc daemon # LIRC_DEVICE="/dev/usb/hiddev1" LIRC_DRIVER="macmini" LIRC_EXTRAOPTS="" LIRC_CONFIGFILE="/etc/lirc/lircd.conf"
create /etc/lirc/lircd.conf
begin remote name Apple_A1294_macmini bits 8 eps 30 aeps 100 one 0 0 zero 0 0 pre_data_bits 24 pre_data 0x87EE86 gap 111946 toggle_bit_mask 0x0 begin codes KEY_MENU 0x03 KEY_PLAY 0x5F 0x05 KEY_OK 0x5C 0x05 KEY_RIGHT 0x06 KEY_LEFT 0x09 KEY_UP 0x0A KEY_DOWN 0x0C end codes end remote
If you don't have an Apple Remote A1294 (look under the battery for the model number) you must create a file with
sudo irrecord -d /dev/usb/hiddev1 -H macmini /etc/lirc/lircd.conf
OR take a look in /usr/share/lirc/remotes/apple/ OR http://lirc.sourceforge.net/remotes/apple/ if someone else already has.
start the lirc service
sudo /etc/rc.d/lircd start
You can use the irw command to test if you have done everything right up until now. It will display button presses of the remote.
Now to xbmc:
Create ~/.xbmc/userdata/Lircmap.xml
<lircmap> <remote device="Apple_A1294_macmini"> <up>KEY_UP</up> <down>KEY_DOWN</down> <left>KEY_LEFT</left> <right>KEY_RIGHT</right> <play>KEY_PLAY</play> <menu>KEY_MENU</menu> <select>KEY_OK</select> </remote> </lircmap>