[PATCH] preliminary LIRC integration in HAL
Arnaud Quette
aquette.dev at gmail.com
Fri May 2 00:00:24 PDT 2008
Hi all,
The attached patch adds a preliminary support of LIRC and IR remote
controls into HAL, through LIRC.
It's composed of 4 pieces:
- a perl script that extracts USB information from the drivers/ dir
drivers, and generate an HAL .fdi file.
Once installed, whenever you'll plug a supported USB IR control, HAL
will report a new device with
info.capabilities=input.remote_control
For more info, refer to the below mentionned doc.
Thanks to Loic Dardant for his work on the script.
- an already generated .fdi file, though that one might be later
generated during the "make dist" target.
- a piece of HTML documentation.
- a patch to fix the comments in the drivers/
These needs to be of the form:
/* Manufacturer - Model */
{ USB_DEVICE(0x????, 0x????) },
Using #define is supported, as well as having 1 comment line for
several USB_DEVICE declarations.
Some more comments:
- I've put everything in contrib/ while waiting for some better place,
- this should be extended in the future to support the drivers of the
daemons/ dir.
but this need either a scoring system to select the best driver when
several are available, or something alike.
- more information will be added to the .fdi file in the future
(comments welcomed!),
- the USB IDs extraction routine will be used to create a udev helper.
This one will in turn use an LIRC helper to configure itself, and load
the modules/daemons needed to operate automatically upon pluging an
USB IR control.
- some sanity checks still need to be done against the usb.ids file
(from the usbutils), for the names and completion.
- as for the previous patch, it doesn't hurt. OK to commit Christoph?
Arnaud
--
Linux / Unix Expert R&D - MGE Office Protection Systems - http://www.mgeops.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
Free Software Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-lirc.diff
Type: text/x-patch
Size: 32812 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080502/60fc6c4d/attachment-0001.bin
More information about the hal
mailing list