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!
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!
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
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
|
DetailsDescription:
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
Wednesday, 24 November 2010, 13:03 GMT
Reason for closing: Fixed
$ 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)
"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.
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.
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.
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
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.