Kodi Community Forum

Full Version: [LIVE] Getting Apple Remote to work on Mac Mini
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

after my Mac Mini doesn't play all 1080p-Files completely smooth using XBMC for Mac, i want to switch to Linux-XBMC (via XBMC Live).

I've got everything set up now, the only thing buggering me is the Apple Remote. Lirc is running fine, but I can't get remote buttons to trigger anything in XBMC.

When running "ifw", i'm getting:

Quote:0000000087ee810b 00 VOLUP Apple_A1156
0000000087ee810d 00 VOLDOWN Apple_A1156
0000000087ee8108 00 BACKWARD Apple_A1156
0000000087ee8107 00 FORWARD Apple_A1156
0000000087ee8104 00 PLAY Apple_A1156
0000000087ee8102 00 MENU Apple_A1156

So i've created a file called "Lircmap.xml" in the folder "$HOMEDIR/.xbmc/userdata" with the following content:

Quote:<lircmap>
<remote device="Apple_A1156">
<left>BACKWARD</left>
<right>FORWARD</right>
<up>VOLUP</up>
<down>VOLDOWN</down>
<select>PLAY</select>
<back>MENU</back>
</remote>
</lircmap>

... and a file called "Keymap.xml" in "$HOMEDIR/.xbmc/userdata/keymaps" looking like this:

Quote:<keymap>
<global>
<remote>
<left>Left</left>
<right>Right</right>
<up>Up</up>
<down>Down</down>
<select>Select</select>
<back>PreviousMenu</back>
</remote>
</global>
</keymap>

After all I understood this should be right, but nothing happens after rebooting...

Any ideads?

Thanks a lot in advance. Please tell me if I should post a logfile.
Felias
I've messed around with this for several hours, but still no luck. Does anyone have at least an idea for what I might look? Thanks so much in advance...
Similar problem. I want to move to XBMC Live on my Nvidia Intel Mac Mini but I can't even get my remote to register. Nothing from irw at all.
For anyone else wondering why they can't get any IRW output on their MacMini 3.1 on 9.11 Live. Try this. First, SSH to the box and type:

Code:
sudo mv /etc/lirc/hardware.conf /etc/lirc/hardware.conf.backup
sudo dpkg-reconfigure lirc

Chose macmini from the first list and none from the second.

Then you should have a new hardware.conf that looks a little like this:

Code:
REMOTE="Apple Mac mini USB IR Receiver"
REMOTE_MODULES=""
REMOTE_DRIVER="macmini"
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="apple/lircd.conf.macmini"
REMOTE_LIRCD_ARGS=""
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
START_LIRCMD=""
LOAD_MODULES=""
LIRCMD_CONF=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"

Using your favourite text editor, add a remote device so the file looks like this now:

Code:
REMOTE="Apple Mac mini USB IR Receiver"
REMOTE_MODULES=""
REMOTE_DRIVER="macmini"
[b]REMOTE_DEVICE="/dev/usb/hiddev1"[/b]
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="apple/lircd.conf.macmini"
REMOTE_LIRCD_ARGS=""
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
START_LIRCMD=""
LOAD_MODULES=""
LIRCMD_CONF=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"

On my Mac Mini the IR is /dev/usb/hiddev1 not /dev/usb/hiddev0 as in some posts.

Now when you run irw, you should get output similar to the output below:
Code:
0000000087ee810b 07 VOLUP Apple_A1156
0000000087ee8102 00 MENU Apple_A1156
0000000087ee8104 00 PLAY Apple_A1156
0000000087ee8108 00 BACKWARD Apple_A1156
I've now got my Apple Remote working in XBMC 9.11 Live on my MacMini 3.1 (5xUSB port Nvidia box). In addition to the changes above, I've also added the Lircmap.xml file to ~/.xbmc/userdata (ie the same one as Felias):

Code:
<lircmap>
<remote device="Apple_A1156">
<select>PLAY</select>
<left>BACKWARD</left>
<right>FORWARD</right>
<up>VOLUP</up>
<down>VOLDOWN</down>
<menu>MENU</menu>
</remote>
</lircmap>

I didn't add a keymap.xml/remote.xml file.

It now works but I'm getting key repeats (ie two instead of one press) which I can see in the irw output as well. I'm sure it's a tuning exercise for this. Now stage two is to get the Harmony One to work. This doesn't work for me yet: http://forum.xbmc.org/showthread.php?tid=63731
@fishnchips:

Thanks for your reply, i'm glad i'm not alone with this :-)
It's a bit strange though, as in my system the remote indeed is "/dev/usb/hiddev0".

I've removed the keymap-Files as well, but still XBMC doesn't recognise and buttonpresses. It shows up fine using "irw" though. Just XBMC doesn't get the right push it needs :-(
fishnchips Wrote:I've now got my Apple Remote working in XBMC 9.11 Live on my MacMini 3.1 (5xUSB port Nvidia box). In addition to the changes above, I've also added the Lircmap.xml file to ~/.xbmc/userdata (ie the same one as Felias):

Code:
<lircmap>
<remote device="Apple_A1156">
<select>PLAY</select>
<left>BACKWARD</left>
<right>FORWARD</right>
<up>VOLUP</up>
<down>VOLDOWN</down>
<menu>MENU</menu>
</remote>
</lircmap>

I didn't add a keymap.xml/remote.xml file.

It now works but I'm getting key repeats (ie two instead of one press) which I can see in the irw output as well. I'm sure it's a tuning exercise for this. Now stage two is to get the Harmony One to work. This doesn't work for me yet: http://forum.xbmc.org/showthread.php?tid=63731

I read here http://www.madingley.org/macmini/ that the apple remote does not send a key up event - maybe that's why you get double key presses?

At the moment I cant even get as far as you have...

Also, can you wake the mini up from Suspend with the Apple Remote?
I've managed to get the harmony one remote working like a dream! It uses the 'Plex' media server setting in the Logitech software so you get more flexibility in the remote (ie. Stop works etc.).

The link to the post is here:
http://forum.xbmc.org/showpost.php?p=485...stcount=67

You don't necessarily need a keymap, but if you want one, I've placed it here (in 2 parts due to limitations on the length of posts). It seems xbmc 9.11 needs keymap named keyboard.xml now:

http://forum.xbmc.org/showpost.php?p=485...stcount=68

http://forum.xbmc.org/showpost.php?p=485...stcount=69

Give them a go! This is part of a guide I wrote to install XBMC on a Mini (with Nvidia GPU) on Linux on that thread. (Probably put it in the wrong place thinking about it now...).
fishnchips Wrote:For anyone else wondering why they can't get any IRW output on their MacMini 3.1 on 9.11 Live. Try this. First, SSH to the box and type:

Code:
sudo mv /etc/lirc/hardware.conf /etc/lirc/hardware.conf.backup
sudo dpkg-reconfigure lirc

Chose macmini from the first list and none from the second.

Then you should have a new hardware.conf that looks a little like this:

Code:
REMOTE="Apple Mac mini USB IR Receiver"
REMOTE_MODULES=""
REMOTE_DRIVER="macmini"
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="apple/lircd.conf.macmini"
REMOTE_LIRCD_ARGS=""
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
START_LIRCMD=""
LOAD_MODULES=""
LIRCMD_CONF=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"

Using your favourite text editor, add a remote device so the file looks like this now:

Code:
REMOTE="Apple Mac mini USB IR Receiver"
REMOTE_MODULES=""
REMOTE_DRIVER="macmini"
[b]REMOTE_DEVICE="/dev/usb/hiddev1"[/b]
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="apple/lircd.conf.macmini"
REMOTE_LIRCD_ARGS=""
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
START_LIRCMD=""
LOAD_MODULES=""
LIRCMD_CONF=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"

On my Mac Mini the IR is /dev/usb/hiddev1 not /dev/usb/hiddev0 as in some posts.

Now when you run irw, you should get output similar to the output below:
Code:
0000000087ee810b 07 VOLUP Apple_A1156
0000000087ee8102 00 MENU Apple_A1156
0000000087ee8104 00 PLAY Apple_A1156
0000000087ee8108 00 BACKWARD Apple_A1156


HI I followed those instruction, well I went all the way into choosing the Apple remote.
Now I am trying to more on plex file manager Lircmap.xml & keymap.xml but as soon as I am trying to select move file, Xbmc Live reboot. ( I have install XBMC live on the HDD.)
Does anybody know how to repair the file manager or is it something else ?
:confused2: