Quantcast

Running lirc on Mac OS X - pointers needed

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Running lirc on Mac OS X - pointers needed

Matt Wynne
Hi,

I've bought a Mac Mini which I'm trying to set up as a MythTV box. I have a Hauppague remote which I've used with lirc / MythTV before on another machine running Ubuntu, and I'd like to use it with the Mac. I realise that I could install Ubuntu on the Mac but I'd rather stick with OS X if possible since that's a more familiar operating system to the other members of the family.

I've seen a few articles or threads that make reference to using lirc with a Mac, but none of them seem very up to date. For example this [1] which seems to recommend using MacPorts - I'd really rather not install MacPorts unless I have to.

I'm reasonably comfortable building things from source, but before I set out on that I'd like to get an idea of whether it's even possible, or whether there's a simpler route. 

Any advice? Thanks very much in advance.


cheers,
Matt


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running lirc on Mac OS X - pointers needed

jhendrix1217
I would also love to learn more about this setup... I'm desperate to try to get an IR device compatible with OSX.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running lirc on Mac OS X - pointers needed

Bengt Martensson-2
On 12/03/16 20:16, jhendrix1217 wrote:
> I would also love to learn more about this setup... I'm desperate to try to
> get an IR device compatible with OSX.

What exactly do you want to achieve? Can't you just use a USB device?
(The coolest one is of course <biased-opinion reason="author">
Girs (http://lirc.org/html/girs.html) with this hardware:
http://www.harctoolbox.org/arduino_nano.html </biased-opinion>, but
there are also others, like Iguana.)

Recently, some changes were made to the Lirc code to have it compile on
MacOS.

Greetz,

Bengt

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running lirc on Mac OS X - pointers needed

Craig Treleaven

> On Dec 4, 2016, at 7:46 AM, Bengt Martensson <[hidden email]> wrote:
>
> On 12/03/16 20:16, jhendrix1217 wrote:
>> I would also love to learn more about this setup... I'm desperate to try to
>> get an IR device compatible with OSX.
>
> What exactly do you want to achieve? Can't you just use a USB device?
> (The coolest one is of course <biased-opinion reason="author">
> Girs (http://lirc.org/html/girs.html) with this hardware:
> http://www.harctoolbox.org/arduino_nano.html </biased-opinion>, but
> there are also others, like Iguana.)
>
> Recently, some changes were made to the Lirc code to have it compile on
> MacOS.

As Bengt said, we need to know more about what you want to accomplish.

I’ve been using an old HDHomerun Dual for several years.  Aside from its primary purpose of receiving over-the-air broadcast TV, it also includes an infra-red receiver.  LIRC receives that IR data across the network using the UDP driver.  Sounds wonky but works well in practice.  I don’t do any IR sending (aka “blasting”).

I believe someone also got the Sony VIAO IR receiver working with LIRC under OS X.  I’m not sure exactly who that was and what their use case is.

The status of other hardware is a question.  LIRC has plug-in software drivers for various pieces of hardware.  Quite a few of those drivers will _compile_ on the Mac but I haven’t seen any reports that they _work_.  I also haven’t seen any reports that they don’t work!  

On my MacBook Pro all of the following plug-in drivers built OK:

$ lirc-lsplugins
# Driver            Flags Plugin
accent              ---   /opt/local/lib/lirc/plugins/accent.so
atilibusb           ---   /opt/local/lib/lirc/plugins/atilibusb.so
atwf83              ---   /opt/local/lib/lirc/plugins/atwf83.so
audio               -as   /opt/local/lib/lirc/plugins/audio.so
awlibusb            ---   /opt/local/lib/lirc/plugins/awlibusb.so
bte                 ---   /opt/local/lib/lirc/plugins/bte.so
creative            ---   /opt/local/lib/lirc/plugins/creative.so
dfclibusb           ---   /opt/local/lib/lirc/plugins/dfclibusb.so
ea65                ---   /opt/local/lib/lirc/plugins/ea65.so
file                -as   /opt/local/lib/lirc/plugins/file.so
ftdi                -as   /opt/local/lib/lirc/plugins/ftdi.so
ftdi-exp            -as   /opt/local/lib/lirc/plugins/ftdix.so
ftdix               --s   /opt/local/lib/lirc/plugins/ftdix.so
girs                -as   /opt/local/lib/lirc/plugins/girs.so
irlink              -a-   /opt/local/lib/lirc/plugins/irlink.so
irtoy               -as   /opt/local/lib/lirc/plugins/irtoy.so
livedrive_midi      ---   /opt/local/lib/lirc/plugins/livedrive_midi.so
livedrive_seq       ---   /opt/local/lib/lirc/plugins/livedrive_seq.so
logitech            ---   /opt/local/lib/lirc/plugins/logitech.so
mouseremote         ---   /opt/local/lib/lirc/plugins/mouseremote.so
mouseremote_ps2     ---   /opt/local/lib/lirc/plugins/mouseremote.so
mp3anywhere         ---   /opt/local/lib/lirc/plugins/mp3anywhere.so
sonyir              ---   /opt/local/lib/lirc/plugins/osx_usbraw.so
pcmak               ---   /opt/local/lib/lirc/plugins/pcmak.so
pinsys              ---   /opt/local/lib/lirc/plugins/pinsys.so
pixelview           ---   /opt/local/lib/lirc/plugins/pixelview.so
silitek             ---   /opt/local/lib/lirc/plugins/silitek.so
slinke              -a-   /opt/local/lib/lirc/plugins/slinke.so
srm7500libusb       ---   /opt/local/lib/lirc/plugins/srm7500libusb.so
tira                --s   /opt/local/lib/lirc/plugins/tira.so
tira_raw            -a-   /opt/local/lib/lirc/plugins/tira.so
udp                 -a-   /opt/local/lib/lirc/plugins/udp.so
uirt2               ---   /opt/local/lib/lirc/plugins/uirt2.so
uirt2_raw           -as   /opt/local/lib/lirc/plugins/uirt2_raw.so
usb_uirt_raw        -as   /opt/local/lib/lirc/plugins/uirt2_raw.so
usbx                ---   /opt/local/lib/lirc/plugins/usbx.so
#
#
# Flags:
# E: Empty: Plugin loaded OK, but is empty (is this a plugin?).
# F: Fail: Plugin failed to load (unresolved references?).
# a: Any: Driver can be used with any remote or capture device.
# s: Send: The driver can send data.

Note that the IguanaIR is NOT in the above list.  There was a working driver (under OS X) in LIRC 0.8 days but hasn’t been updated in several years.  It has not been adapted for LIRC 0.9’s plug-in driver architecture.

HTH,

Craig
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running lirc on Mac OS X - pointers needed

jhendrix1217
In reply to this post by Bengt Martensson-2
My primary goal is to use a USB-based (ideally) IR transceiver to *send* IR signals to other devices... basically I'd like to replace my IR remotes around my place with my Mac... so that I could trigger via scripts etc. A "smart remote" if you will.

I actually did try compiling LIRC on OSX, although I'm not on MacOS as mentioned in another comment. No joy.

I'm very open to other ideas, but I was just trying to use the Mini I have setup already, since it's really the hub for everything else.

Thanks for all the info!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Running lirc on Mac OS X - pointers needed

Bengt Martensson-2
On 12/07/16 01:33, jhendrix1217 wrote:
> My primary goal is to use a USB-based (ideally) IR transceiver to *send* IR
> signals to other devices... basically I'd like to replace my IR remotes
> around my place with my Mac... so that I could trigger via scripts etc. A
> "smart remote" if you will.

So, what you want is something you can send commands like

send TV power_on

or

send 0000 006C 0022 0002 015B 00AD 0016 0016 0016 0016 0016 0041 0016
0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016
0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016
0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016
0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016
0041 0016 06A4 015B 0057 0016 0E6C

(using some, here not specified, method of communicating.) For this,
Lirc is not the only solution... I would bluntly claim that Lirc is not
even a good solution... (shit storm coming?)

First settle for the USB transmitter you want to use, I recommend the
Arduino Nano project from earlier post (can't beat neither price nor
flexibility). Alternative is the IrToy, or possibly something else. See
if you can get that to work with IrScrutinizer (which is an interactive
program, not am IR server).

Greetz,

Bengt

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
Loading...