WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: lirc / irda-utils  (Read 11125 times)

Offline mb

  • Jr. Member
  • **
  • Posts: 69
lirc / irda-utils
« on: December 19, 2011, 08:09:33 PM »
I am trying to get a laptop to accept commands from a remote control via its integrated irda port. I believe i will need irattach, which i think is in 'irda-utils'. I found a .tcl which seems to be for v1.x of TCL. Is this likely to work with 4.1? ..if so, how do i install a .tcl ? Or is irattach part of anoter tcz? If not, what alternative am I looking at?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: lirc / irda-utils
« Reply #1 on: December 19, 2011, 08:45:13 PM »
Tcls are not supported. Stick to the 4.x repos.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: lirc / irda-utils
« Reply #2 on: December 19, 2011, 10:34:36 PM »
I imagine you could loop mount:

http://distro.ibiblio.org/tinycorelinux/tcz/irda-utils.tczl

and make your own private extension to use irattach.

I stopped maintaining irda-utils as I retired the only machine I had with an irda port..

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: lirc / irda-utils
« Reply #3 on: December 20, 2011, 07:01:05 AM »
I thought CIR (consumer IR, remote control) did not use IRDA?

I seem to recall that an irda port could not receive CIR signals.
The only barriers that can stop you are the ones you create yourself.

Offline mb

  • Jr. Member
  • **
  • Posts: 69
Re: lirc / irda-utils
« Reply #4 on: December 20, 2011, 04:09:28 PM »
It can, although it doesn't have a very good range (<1m).. I've done it on another distro before. Used the sir mode.

Offline mb

  • Jr. Member
  • **
  • Posts: 69
Re: lirc / irda-utils
« Reply #5 on: December 20, 2011, 08:36:54 PM »
I imagine you could loop mount:

http://distro.ibiblio.org/tinycorelinux/tcz/irda-utils.tczl

and make your own private extension to use irattach
Could you elaborate, or point me toward a guide or something, please?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: lirc / irda-utils
« Reply #6 on: December 20, 2011, 10:28:13 PM »
Code: [Select]
$ mkdir /tmp/download
$ mkdir /tmp/image
$ mkdir /tmp/pkg
$ cd /tmp/download
$ wget -c http://distro.ibiblio.org/tinycorelinux/tcz/irda-utils.tczl
$ sudo mount -o loop irda-utils.tczl /tmp/image
$ sudo cp -rp /tmp/image/usr /tmp/pkg
$ cd /tmp
$ sudo mksquashfs pkg/ irda-utils.tcz
$ sudo chown tc:staff irda-utils.tcz
$ sudo umount -d /tmp/image
$ cp irda-utils.tcz /path-to-safe-place

You need the extension squashfs-tools-4.x for this
« Last Edit: December 20, 2011, 10:36:37 PM by Juanito »

Offline mb

  • Jr. Member
  • **
  • Posts: 69
Re: lirc / irda-utils
« Reply #7 on: December 24, 2011, 01:47:04 PM »
Thanks very much for that Juanito.

I'm having a few problems getting things to work.. [after running irattach ok] there is nothing related to lirc in /dev, which causes mode2 to complain.. 'modprobe lirc_sir' returns 'not found in modules.dep'.. but there is a lirc_sir.ko in /usr/local/lib/modules/2.6.33.3-tinycore/kernel/lirc/ , and another within /tmp. Do i need to re-build the kernel.. or is there a different way of loading modules in tinycore?... or what ??

[fwiw; i tried installing irda-3.0.3-tinycore.tcz, which made no difference]

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: lirc / irda-utils
« Reply #8 on: December 24, 2011, 03:36:03 PM »
Ah - OK, I thought you were just looking for irattach.

The modules will not work in tc-4 because that uses the 3.0.3 kernel and they are for 2.6.33.3

Offline mb

  • Jr. Member
  • **
  • Posts: 69
Re: lirc / irda-utils
« Reply #9 on: December 24, 2011, 04:10:41 PM »
OK so what would you suggest as the best course of action?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: lirc / irda-utils
« Reply #10 on: December 25, 2011, 12:53:19 AM »
I'd say lirc shouldn't be in the 4.x repo with modules from 2.6.33.3-tinycore in it, so maybe the best is to pm the maintainer and request an update.

Failing that, you could try an update yourself?

Offline mb

  • Jr. Member
  • **
  • Posts: 69
Re: lirc / irda-utils
« Reply #11 on: December 26, 2011, 08:06:24 AM »
So would i basically have to follow creating extensions guide from the wiki? or ??

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: lirc / irda-utils
« Reply #12 on: December 26, 2011, 08:14:15 AM »
That would be a good place to start  :)

Offline AmatCoder

  • Full Member
  • ***
  • Posts: 179
    • AmatCoder Projects
Re: lirc / irda-utils
« Reply #13 on: December 26, 2011, 09:36:42 AM »
OK so what would you suggest as the best course of action?
If it is allowed I can send you my upgraded lirc.tcz... See http://forum.tinycorelinux.net/index.php/topic,12134.0.html

If not, I can post here my  'step-by-step to compile lirc 0.9.0'.   ;)

Offline mb

  • Jr. Member
  • **
  • Posts: 69
Re: lirc / irda-utils
« Reply #14 on: December 26, 2011, 01:12:40 PM »
I can't see how anyone would have a problem with that..