Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208785 - app-misc/lirc - add iguanaIR support
Summary: app-misc/lirc - add iguanaIR support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Joerg Bornkessel (RETIRED)
URL: http://lirc.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-03 19:54 UTC by MasterC
Modified: 2009-10-04 18:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The current source (iguanaIR-0.93.tar.bz2,983.06 KB, application/octet-stream)
2008-03-02 23:38 UTC, MasterC
Details
lircd configuration file (lircd,405 bytes, text/plain)
2008-03-02 23:39 UTC, MasterC
Details
updated lirc ebuild (lirc-0.8.3_pre1.ebuild,8.23 KB, text/plain)
2008-03-02 23:41 UTC, MasterC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MasterC 2008-02-03 19:54:38 UTC
LIRC ebuilds don't have the iguanaIR as an option for LIRC_DEVICES.

Reproducible: Always

Steps to Reproduce:
1.Desire to have the (USB) IguanaIR working
2.Love Gentoo
3.Attempt to emerge lirc with LIRC_DEVICES="iguanaIR" and get nothing

Actual Results:  
No LIRC_DEVICES are enabled.

Expected Results:  
--with-driver=iguanaIR would be enabled and in turn the iguanaIR device would work

I heart Gentoo
Comment 1 MasterC 2008-02-21 20:05:05 UTC
Is there any update on this?  
Comment 2 Joerg Bornkessel (RETIRED) gentoo-dev 2008-02-24 19:25:31 UTC
compile test breaks on my system with:

configure: error: *** you need to have the iguanaIR headers and
        libraries for this driver

...

This needs an externel ebuild for these headers/libs

http://iguanaworks.net/downloads.php

I will take a closer look on this in the next few days.
Comment 3 MasterC 2008-03-02 23:37:13 UTC
grab the source:
http://iguanaworks.net/downloads.php

Untar:
tar xvjf iguanaIR-X.XX.tar.bz2

cd iguanaIR-X.XX

./configure --prefix=/usr &&
make &&
make install

---------------------------------------

Modify the lirc ebuild:

add 'iguanaIR' after 'imon' in the IUSE_LIRC_DEVICES_DIRECT section

Save, update ebuild:
ebuild lirc-VERSION.ebuild digest

emerge lirc
LIRC_DEVICES="iguanaIR" USE="transmitter" emerge lirc -av

Plug in IguanaIR device, launch the igdaemon:
igdaemon

Change /etc/conf.d/lircd to use the IguanaIR driver:
LIRCD_OPTS="-H iguanaIR"

And start lircd:
/etc/init.d/lircd restart

I will attach all the files I have modified.
Comment 4 MasterC 2008-03-02 23:38:20 UTC
Created attachment 145148 [details]
The current source

This is the current source tarball
Comment 5 MasterC 2008-03-02 23:39:02 UTC
Created attachment 145150 [details]
lircd configuration file 

/etc/conf.d/lircd
Comment 6 MasterC 2008-03-02 23:41:00 UTC
Created attachment 145152 [details]
updated lirc ebuild

The updated ebuild for 0.8.3_pre1 needs to have:
ebuild lirc-0.8.3_pre1.ebuild digest
ran to be able to emerge it.
Comment 7 Joerg Bornkessel (RETIRED) gentoo-dev 2008-03-26 17:17:21 UTC
Sorry, didnt has time, update for media-video/vdr and ebuilds around this has more priority for me.

I am added in the last few minutes a new ebuild for iguanaIR
this needs at first some test in the udev-rules part

this ebuild is hardmasked by profiles/package.mask for now
plz unmasked in your install by

echo "=app-misc/iguanaIR-0.93" >> /etc/portage/package.unmask

then you can emerge it, 
start it by /etc/init.d/iguanaIR

attach your USB IR Dongle and post the output of your syslog and/or dmesg

Comment 8 MasterC 2008-03-28 01:34:46 UTC
Thanks for getting it in portage.  When I start the daemon I get:
Mar 27 19:25:19 swervin-master usb 5-2: new low speed USB device using uhci_hcd
and address 2
Mar 27 19:25:19 swervin-master usb 5-2: configuration #1 chosen from 1 choice
Mar 27 19:25:19 swervin-master rc-scripts: ERROR: wrong args ( rescan )
Mar 27 19:25:19 swervin-master rc-scripts: Usage: iguanaIR { start|stop|restart
}
Mar 27 19:25:19 swervin-master rc-scripts:        iguanaIR without arguments for
 full help
Mar 27 19:25:19 swervin-master rc-scripts: ERROR: wrong args ( rescan )
Mar 27 19:25:19 swervin-master rc-scripts: Usage: iguanaIR { start|stop|restart
}
Mar 27 19:25:19 swervin-master rc-scripts:        iguanaIR without arguments for
 full help
Mar 27 19:25:19 swervin-master rc-scripts: ERROR: wrong args ( rescan )
Mar 27 19:25:19 swervin-master rc-scripts: Usage: iguanaIR { start|stop|restart
}
Mar 27 19:25:19 swervin-master rc-scripts:        iguanaIR without arguments for
 full help
Comment 9 Joerg Bornkessel (RETIRED) gentoo-dev 2008-03-28 17:35:27 UTC
Plz edit /etc/udev/rules.d/40-iguanaIR.rules 
for first help

- ACTION=="add", ATTRS{manufacturer}=="IguanaWorks", MODE="0660", RUN+="/etc/init.d/iguanaIR rescan"
+ ACTION=="add", ATTRS{manufacturer}=="IguanaWorks", MODE="0660", #RUN+="/etc/init.d/iguanaIR rescan"

this will then not start the init script automaticly.

1. Plugin you USB Dongle
2. /etc/init.d./iguanaIR start
Comment 10 MasterC 2008-05-12 19:38:06 UTC
(In reply to comment #9)
> Plz edit /etc/udev/rules.d/40-iguanaIR.rules 
> for first help
> 
> - ACTION=="add", ATTRS{manufacturer}=="IguanaWorks", MODE="0660",
> RUN+="/etc/init.d/iguanaIR rescan"
> + ACTION=="add", ATTRS{manufacturer}=="IguanaWorks", MODE="0660",
> #RUN+="/etc/init.d/iguanaIR rescan"
> 
> this will then not start the init script automaticly.
> 
> 1. Plugin you USB Dongle
> 2. /etc/init.d./iguanaIR start
> 

This still results in errors in /var/log/messages:
usb 5-2: configuration #1 chosen from 1 choice
rc-scripts: ERROR: wrong args ( rescan )
rc-scripts: Usage: iguanaIR { start|stop|restart}
rc-scripts:        iguanaIR without arguments for full help

I may be commenting the file incorrectly.  Any chance this can make it into portage so more people will be able to test?
Comment 11 MasterC 2008-06-02 18:30:21 UTC
Can we update the ebuild for the userland iguanaIR to 0.95?

Also, can the lirc ebuild be updated to include this as an optional device?

Thanks!
Comment 12 Theodore Vaida 2008-11-23 04:13:46 UTC
Bump!  The most recent build 0.8.4 does not include support - still have to manually create an overlay.
Comment 13 MasterC 2009-02-26 17:13:28 UTC
Bump, at 0.99.  Still no support in LIRC.
Comment 14 gregorcy 2009-03-10 17:58:49 UTC
cc
Comment 15 Steve Dibb (RETIRED) gentoo-dev 2009-05-28 19:37:34 UTC
(In reply to comment #7)

> this ebuild is hardmasked by profiles/package.mask for now

What's the status now?  Can I unmask it for lirc-0.8.5?  See bug 271482
Comment 16 Mike Harvey 2009-08-25 08:49:17 UTC
The iguanaIR transmitter is still not properly added to the lirc-0.8.5 ebuild.  Change the term "iguana" to "iguanaIR" in the "IUSE_LIRC_DEVICES_DIRECT" listing.  
Comment 17 Christian Faulhammer (RETIRED) gentoo-dev 2009-09-23 14:54:54 UTC
(In reply to comment #16)
> The iguanaIR transmitter is still not properly added to the lirc-0.8.5 ebuild. 
> Change the term "iguana" to "iguanaIR" in the "IUSE_LIRC_DEVICES_DIRECT"
> listing.  

 So actions to take:

* add iguanaIR to IUSE_LIRC_DEVICES_DIRECT
* remove iguana from the same place
* Remove mask for app-misc/iguanaIR
* remove mask for iguana from profiles

It should work then?
Comment 18 Christian Faulhammer (RETIRED) gentoo-dev 2009-10-04 18:48:38 UTC
Fixed, thanks for the patience