Talk:LIRC

From ArchWiki
Jump to: navigation, search

Wording

The sentence "the kernel (via the correct module) uses /dev/lirc0 to characterize the pulse-length information from the receiver." is plain wrong. Lirc works with a many kernel devices, not only /dev/lirc? And not all drivers provides timing information, some provides already decoded keypresses.

Please change the offending lines in the wiki article if you believe they are in error. Graysky (talk) 18:17, 21 October 2015 (UTC)

The doubling of input problöem is not limited to HID devices, it is (was) a general problem for all input devices handled both by the kernel and lirc. From 0.9.1+ lirc disables the kernel handling of input devices, though.

OK...??? Graysky (talk) 18:17, 21 October 2015 (UTC)

Config files not included?

Also, there are nowadays no remotes bundled with the package. Instead there is tooling like irdb-get and lirc-setup which can search and retrieve configs from the remote database. See the configuration guide.

@Leamas - please sign your posts with four ~ symbols. Also, I don't think this is correct... take a peek at `pacman -Ql lirc | grep configs` which clearly does contain many config files. Graysky (talk) 18:14, 21 October 2015 (UTC)
@Graysky. I'm upstream, and I know for sure that we have removed all remotes from the distribution. Perhaps the packager has kept the old stuff then, Anyway, there should really be a reference to the new database which is maintained at http://lirc-remotes.sourceforge.net Leamas (talk) 18:35, 21 October 2015 (UTC)
@Leamas - I don't see anything in the PKGBUILD for lirc that would deviated from upstream's v0.9.3 but our package has not yet updated to 0.9.3a which might have this change you mentioned... you can check it out here: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/lirc Graysky (talk) 18:44, 21 October 2015 (UTC)
I just built 0.9.3a from source and the conf files are indeed installed to /usr/share/lirc/configs by running `./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var --with-transmitter --enable-sandboxed && make && make DESTDIR=foo install` :/ Graysky (talk) 18:48, 21 October 2015 (UTC)
@Leamas - Also, please edit the main page article to correct the mistakes you pointed out from my original draft. I think you know better than I how lirc works :D Graysky (talk) 18:45, 21 October 2015 (UTC)
@Graysky: It looks like the Arch packaging hasn't catched up with the upstream changes. Many of those configure options are obsolete. More important, there are definitely no remotes in the 0.9.3 installation, so if they are installed they have some other source. I will enter links to upstream docs and add some notes, but I just can't replicate the upstream docs here.
You should have got multitude of warnings trying those configure options on a 0.9.3 package. Have you got the right sources? "confused" Leamas (talk) 19:02, 21 October 2015 (UTC)
@Leamas - Can you suggest the proper configure options please? We are grabbing the source from http://prdownloads.sourceforge.net/${pkgname}/${pkgname}-${_pkgver}.tar.bz2 so I believe it is correct. Also, inspect the logs I posted (from makepkg): build.log and package.log. There is no need for you to recreate upstream docs, your brief summary would be great. Graysky (talk) 19:14, 21 October 2015 (UTC)
@Graysky you could check the Fedora package (I did that) at http://pkgs.fedoraproject.org/cgit/lirc.git/tree Leamas (talk) 19:40, 21 October 2015 (UTC)
@Leamas - It appears that you are only using the --libdir switch but the spec file is more complex than our PKGBUILDs are... I looked in your deb file and indeed you are not providing any files inside /usr/share/lirc/configs/ BUT... your source does in fact populate that directory with many .conf files. Try it yourself: `./configure --prefix=/usr && make && make DESTDIR=foo install` Now `ls ./foo/usr/share/lirc/configs` ... for me, I get 130 files. Graysky (talk) 21:15, 21 October 2015 (UTC)
Ah... It's just that those files not are lircd.conf files, it's support for tools like lirc-config and the driver list. It took a long time to figure out this :)Leamas (talk) 21:25, 21 October 2015 (UTC)
Hhaha! Glad we got to the bottom of it after all. Thank you for editing the main article for accuracy. I did find that for Arch, these options were needed to keep things sane and running: `./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var` and I also had to delete a dirtree that your Makefile provided: /var/run/lirc. I did not see anything in the configure script for `--with-transmitter --enable-sandboxed` as you pointed out. Does this all seem right to you? Thanks! Graysky (talk) 21:40, 21 October 2015 (UTC)

Yup, looks fine - it's more or less what the %configure macro does on fedora. Glad to help, just a pity it took so long time. Good night (UTC+1) Leamas (talk) 22:03, 21 October 2015 (UTC)

Some major work

Somewhat major corrections and edits have been made. This is an open invitation for review and edits. Graysky (talk) 06:32, 22 October 2015 (UTC)

I restructured the article to be in line with Help:Style. Please check if I didn't mess things up in the process. :) -- Alad (talk) 07:56, 22 October 2015 (UTC)

Central dogma

Re [1], how does an explanation on biology help you on using the program, or how is it related to Arch? -- Alad (talk) 14:05, 22 October 2015 (UTC)