← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 364699] Re: [PATCH] IR doesn`t work (lirc_igorplugusb)

 

All previously mentioned patches are in the lirc version shipped with
maverick.

However, in maverick, lirc_igorplugusb still does not work with remotes
causing a buffer overflow. The reason is that the ring buffer of the
driver is too small, causing events to get lost. (In my case, it
sufficed reproducibly for 13 out of 16 bits of actual information,
meaning 15 out of 18 pulses.) As that is no integer factor, it seems
some timing changed that now causes the buffer to be full (and writing
failing), while it didn't before. Anyway, the buffer needs to be 36
(DEVICE_BUFLEN) codes (=18 pulses) plus one pulse for the gap since the
last signal, instead of the same in bytes. Increasing the buffer fixes
it.

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to lirc in Ubuntu.
https://bugs.launchpad.net/bugs/364699

Title:
  [PATCH] IR doesn`t work (lirc_igorplugusb)

Status in “lirc” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: lirc

  Hi, I have IgorPlug-USB(AVR) receiver, it works on Windows fine with
  4-5 transmitters I have tested.

  I have installed generic Jaunty (Intrepid, some other custom kernels.. with no luck too).
  I have Installed lirc package and chose from the list Igor Cesko USB receiver.

  On boot I see that appropriate kernel module loaded without errors:
  $ dmesg | grep lirc
  [   21.824130] lirc_dev: IR Remote Control driver registered, major 61 
  [   21.868206] lirc_igorplugusb: USB remote driver for LIRC v0.1
  [   21.868218] lirc_igorplugusb: Jan M. Hochstein <hochstein@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
  [   21.944392] lirc_dev: lirc_register_plugin: sample_rate: 100
  [   21.993818] lirc_igorplugusb[3]: Ing. Igor Cesko, Copyright(c) 2003 IgorPlug-USB (AVR) on usb3:3
  [   21.997883] usbcore: registered new interface driver lirc_igorplugusb

  So I run irw utility to test the system and press buttons on transmitter, irw gives no output instead of received characters.
  $ irw

  In dmesg output I see buffer overrun error on each keypress:
  $ dmesg | grep lirc
  [   21.824130] lirc_dev: IR Remote Control driver registered, major 61 
  [   21.868206] lirc_igorplugusb: USB remote driver for LIRC v0.1
  [   21.868218] lirc_igorplugusb: Jan M. Hochstein <hochstein@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
  [   21.944392] lirc_dev: lirc_register_plugin: sample_rate: 100
  [   21.993818] lirc_igorplugusb[3]: Ing. Igor Cesko, Copyright(c) 2003 IgorPlug-USB (AVR) on usb3:3
  [   21.997883] usbcore: registered new interface driver lirc_igorplugusb
  [  165.356078] lirc_igorplugusb[3]: Device buffer overrun.
  [  165.700094] lirc_igorplugusb[3]: Device buffer overrun.

  The same story with all transmitters I tested. All of them work in
  Windows. I think the problem is in lirc_igorplugusb kernel module,
  almost the same code in all distributions.

  I have now skills in IR technology so.. reported this bug to you. Any
  help will be appreciated.

  Thanks, Denis