Linux - XBMCbuntu on Mac mini

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Tinken Offline
Junior Member
Posts: 5
Joined: Jul 2013
Reputation: 0
Post: #1
Hi all,

I have an old Mac mini ( around 2006-2007 ). I remove Mac OS and setup XBMCbuntu Frodo.
But I have some issues:
  • Set fixed IP (have to test this HowTo first http://wiki.xbmc.org/index.php?title=HOW..._static_IP
  • Having Apple IR remote working (nothing appends when clicking on any buttons, and was working on Mac OS and other Mac's)
  • Configure Logitech bluetooth keyboard K760 (working on mac)
  • Configure Magic Mouse, swipe are not detected

For he remote I have no idea how fixing this... On many forums the says IR is native on XBMC (I mean no extra package) but nothing happend. Huh
For the bluetooth, the wired thing is , the magic mouse is working (BT connection) but in sys pref in XBMCbuntu bluetooth tab is grey as if there was no bluetooth package.
Do I need to setup an extra thing ?
Maybe after this, the keyboard should work...

Thanks for your help or tips

-Tinken
find quote
Tinken Offline
Junior Member
Posts: 5
Joined: Jul 2013
Reputation: 0
Post: #2
anyone can give me a clue ?
Thanks a lot..
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 22,443
Joined: Jan 2011
Reputation: 296
Location: Arizona, USA
Post: #3
http://pinel.cc/en/2011/03/11/setting-up...on-ubuntu/

You can make easy links to the XBMC wiki using double brackets around common XBMC words: [[debug log]] = debug log, [[Video library]] = Video library, [[SMB]] = SMB , [[userdata]] = userdata, etc
find quote
Tinken Offline
Junior Member
Posts: 5
Joined: Jul 2013
Reputation: 0
Post: #4
So after many tries..... here is the result for setting the remote:
Remind:
Apple Mac mini 2007
XBMCBuntu Frodo
Apple remote A1294

Based on these two HowTo do:
Quote:user@computer:~$ wget http://prdownloads.sourceforge.net/lirc/...4a.tar.bz2
user@computer:~$ tar -jxf lirc-0.8.4a.tar.bz2
user@computer:~$ cd lirc-0.8.4a
user@computer:~/lirc-0.8.4a$ ./configure --with-x --with-driver=macmini
user@computer:~/lirc-0.8.4a$ make && sudo make install
user@computer:~$ sudo -s
[sudo] password for user:
root@computer:~# cd /etc/lirc
You can set up your own remote using :
Quote:root@computer:/etc/lirc# irrecord --driver=macmini --device=/dev/usb/hiddev0 MyRemote
Either use my config for the A1294:
Create a file MyRemote and paste this content (the bold line is the line missing on the files you can find everywhere for the remote):
Code:
begin remote

  name  MyRemote
  bits            8
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   24
  pre_data       0x87EE86
  gap          211982
  toggle_bit_mask 0x0
  [b]ignore_mask 0x0000ff01[/b]
      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
Test your config:
Quote:root@computer:/etc/lirc# killall lircd;lircd --driver=macmini --device=/dev/usb/hiddev0 /etc/lirc/MyRemote; irw
Apply your change to lirc deamon :
Quote:root@computer:/etc/lirc# mv MyRemote lircd.conf
Start the deamon and leave root login:
Quote:root@computer:/etc/lirc# /etc/init.d/lircd start
root@computer:/etc/lirc# exit
Create a file (or modify existing one): ~/.xbmc/userdata/Lircmap.xml
Code:
<lircmap>
        <remote device="MyRemote">
                <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>
restart xbmc, and it works !
find quote
Tinken Offline
Junior Member
Posts: 5
Joined: Jul 2013
Reputation: 0
Post: #5
IP config:

use this HowTo
and add a line with your dns servernames:
Quote:dns-servernames 8.8.8.8
restart XBMC so Airplay will be configured correctly using your static IP
find quote
el_Salmon Offline
Junior Member
Posts: 19
Joined: Apr 2009
Reputation: 0
Location: Around 2.4 GHz
Post: #6
For my Mac Mini 2009 version with White Apple remote I have configured LIRC with:
Code:
sudo dpkg-reconfigure lirc
and choose Apple USB receiver but None Transmitter.

Then I have configured XBMC lircmap.xml file like this:
Code:
<lircmap>
        <remote device="Apple_A1156">
                <up>KEY_VOLUMEUP</up>
                <down>KEY_VOLUMEDOWN</down>
                <left>KEY_REWIND</left>
                <right>KEY_FORWARD</right>
                <play>KEY_PLAYPAUSE</play>
                <select>KEY_PLAYPAUSE</select>
                <menu>KEY_MENU</menu>
        </remote>
</lircmap>
The only issue at this time, it's the long press Menu or Play is not working, so I can't access to the contextual menus like in OpenElec.Anybody have an idea?

------------------- Deprecated info -----------------

Mac Mini 2009 (Intel Core 2 Duo - nVidia 9400M), Ubuntu Linux 13.10, XBMC 12.3
(This post was last modified: 2013-12-03 22:02 by el_Salmon.)
find quote
pecinko Offline
Donor
Posts: 3,846
Joined: Dec 2008
Reputation: 52
Location: Prague / Belgrade
Post: #7
I wonder if Openelec would support this out of the box. IIRC, it should support Apple remote.

My skins:

Amber
Quartz

find quote
el_Salmon Offline
Junior Member
Posts: 19
Joined: Apr 2009
Reputation: 0
Location: Around 2.4 GHz
Post: #8
(2013-12-03 09:45)pecinko Wrote:  I wonder if Openelec would support this out of the box. IIRC, it should support Apple remote.
Yes, OpenElec has support for Apple remote controllers and receivers since 3.0, but it's using atvclient, not lirc. I will try it...
Update: yes, atvclient works like a charm. It replaces lirc and no Lircmap.xml is needed.

Mac Mini 2009 (Intel Core 2 Duo - nVidia 9400M), Ubuntu Linux 13.10, XBMC 12.3
(This post was last modified: 2013-12-03 22:01 by el_Salmon.)
find quote