Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21283 - [lirc] 0.8.6-7 don't work with serial receivers

Attached to Project: Arch Linux
Opened by Balló György (City-busz) - Saturday, 16 October 2010, 16:40 GMT
Last edited by Tobias Powalowski (tpowa) - Wednesday, 24 November 2010, 13:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Lirc don't work with serial receiver. The kernel module seems to be loaded without error, but not receive anything.

Additional info:
* package version(s)
lirc 0.8.6-7
lirc-utils 0.8.6-4
kernel26 2.6.35.7-1

* remote receiver type
Pinnacle Systems

* related topics
https://bbs.archlinux.org/viewtopic.php?id=90977
https://bbs.archlinux.org/viewtopic.php?id=88605

Steps to reproduce:
1. Connect serial port IR receiver to COM1 port
2. Install lirc and lirc-utils packages with pacman
3. Load kernel module:
# setserial /dev/ttyS0 uart none
# modprobe lirc_serial
4. Run irrecord:
# irrecord -d /dev/lirc0 /tmp/my_remote
And you will get the following message:
irrecord: no data for 10 secs, aborting
irrecord: gap not found, can't continue
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Wednesday, 24 November 2010, 13:03 GMT
Reason for closing:  Fixed
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 16 October 2010, 18:03 GMT
maybe is a driver issue, not lirc package. Do you ask upstream?
Comment by Tobias Powalowski (tpowa) - Monday, 01 November 2010, 19:35 GMT
please try latest 2.6.36 kernel and lirc 0.8.7 package, thanks
Comment by b4283 (b4283) - Tuesday, 02 November 2010, 06:56 GMT
Lirc still has problem (2.6.36 + lirc 0.8.7, all repo)

$ sudo modprobe lirc_serial
FATAL: Error inserting lirc_serial (/lib/modules/2.6.36-ARCH/kernel/drivers/staging/lirc/lirc_serial.ko): Unknown symbol in module, or unknown parameter (see dmesg)

$ dmesg |tail
lirc_dev: IR Remote Control driver registered, major 61
lirc_serial: module is from the staging directory, the quality is unknown, you have been warned.
lirc_serial: Unknown symbol lirc_dev_fop_poll (err 0)
lirc_serial: Unknown symbol lirc_dev_fop_open (err 0)
lirc_serial: Unknown symbol lirc_dev_fop_close (err 0)
lirc_serial: Unknown symbol lirc_dev_fop_read (err 0)
lirc_serial: Unknown symbol lirc_dev_fop_ioctl (err 0)
Comment by b4283 (b4283) - Tuesday, 02 November 2010, 07:04 GMT
There's something worth mentioning in official FAQ:
"From 2.6.36 on all LIRC kernel drivers are already included in the kernel. There has been a slight interface change in the LIRC ioctls that will affect 64-bit kernels. We're already working on a 0.9.0 release which is supposed to be fully functional with the in-kernel drivers. In the meanwhile you should use a 0.9.0-pre snapshot."

It seems that it is no longer necessary for >2.6.36 kernels to install lirc, nonetheless under x86_64 the utils won't work because the kernel version uses a differnt ioctl.

*EDIT* I managed to get it working. I downloaded the 0.9.0-pre1 version and configure&&make right away (without patching), the tool binaries are immediately usable with present kernel modules.
Comment by Balló György (City-busz) - Tuesday, 09 November 2010, 18:58 GMT
lirc-utils 0.8.7 work with kernel26 2.6.36, if I not install 'lirc' package.
However it's not solved my original problem, irrecord not catch anything from my Pinnacle PCTV remote. In Windows XP and Ubuntu 9.04 it worked well, but I can't use it in current Arch Linux.
Comment by dimitris (capthookb) - Thursday, 18 November 2010, 00:00 GMT
I'm also having problems with lirc_serial. I load the lirc_dev and lirc_serial without errors. But it doesn't work.
When i run mode2 -d /dev/lirc0 i get:

mode2: could not get hardware features
mode2: this device driver does not support the LIRC ioctl interface
mode2: major number of /dev/lirc0 is 251
mode2: LIRC major number is 61
mode2: check if /dev/lirc0 is a LIRC device

whenever i press a button on my remote i see a line such as this

Nov 18 02:57:10 localhost kernel: lirc_serial: ignoring spike: 1 1 4ce479e6 4ce479e6 53586 5356a

in /var/log/messages.log after 5-10 seconds since my remote button was pressed.

Comment by Balló György (City-busz) - Thursday, 18 November 2010, 01:12 GMT
I've got the following messages in messages.log with kernel26 2.6.35.8-1 and lirc 0.8.6-7:

Nov 18 01:59:01 localhost kernel: lirc_dev: IR Remote Control driver registered, major 61
Nov 18 01:59:02 localhost kernel: lirc_serial: auto-detected active high receiver
Nov 18 01:59:02 localhost kernel: lirc_dev: lirc_register_driver: sample_rate: 0
Nov 18 01:59:02 localhost kernel: lirc_serial $Revision: 5.104 $ registered
Nov 18 01:59:32 localhost kernel: lirc_dev (lirc_serial[0]): userspace uses outdated ioctl please update your lirc installation

With kernel26 2.6.35.8-1 and lirc 0.8.7:

Nov 18 02:46:37 localhost kernel: lirc_dev: IR Remote Control driver registered, major 61
Nov 18 02:46:38 localhost kernel: lirc_serial: auto-detected active high receiver
Nov 18 02:46:38 localhost kernel: lirc_serial: this usually means that there is no receiver attached to the selected port
Nov 18 02:46:38 localhost kernel: lirc_dev: lirc_register_driver: sample_rate: 0
Nov 18 02:46:38 localhost kernel: lirc_serial $Revision: 5.108 $ registered
Comment by Balló György (City-busz) - Thursday, 18 November 2010, 03:37 GMT
Now my receiver works after some configuration, so it's not a bug. However Arch wiki completely misleading me.
I've found this table: http://www.lirc.org/html/table.html#@hw-other-serial and it says that I not need lirc_serial driver, but I have to configure lirc to use pinsys lircd driver. Here is my working configure file (/etc/conf.d/lircd.conf):

LIRC_DEVICE=""
LIRC_DRIVER="pinsys"
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE="/usr/share/lirc/remotes/pinnacle_systems/lircd.conf.pctv"

I think that Arch wiki page about LIRC should be rewrite a bit.
Comment by Balló György (City-busz) - Friday, 19 November 2010, 04:14 GMT
My working configuration only works with lirc-utils version 0.8.7-1 (both with 2.6.35 and 2.6.36 kernels), it isn't works with 0.8.6-5. So eventually 0.8.7-1 fixed my problem.
Comment by dimitris (capthookb) - Friday, 19 November 2010, 18:38 GMT
It's probably the lirc-utils that needs updating. I installed 0.9.0-pre snapshot and mode2 now works. So it's not a driver's issue.
Comment by Tobias Powalowski (tpowa) - Wednesday, 24 November 2010, 10:30 GMT
lirc-0.9.0-pre1 is now in testing, please report success.
Comment by b4283 (b4283) - Wednesday, 24 November 2010, 12:46 GMT
worked perfectly after modprobe and starting lirc server

Loading...