Hi,
On raspberry pi 2, I've installed lirc and lirc-utils package, and updated. I'm using this versions :
$this->bbcode_second_pass_code('', '
$ uname -a
Linux <host> 4.4.23-1-ARCH #1 SMP Fri Sep 30 19:06:51 MDT 2016 armv7l GNU/Linux
$ mode2 --version
mode2 0.9.4b
')
I added dtoverlay=lirc-rpi in /boot/config.txt
I stopped lircd :
$this->bbcode_second_pass_code('', '
$ systemctl stop lircd
')
I can see lirc_rpi, lirc_dev in the lsmod output.
I can also see:
$this->bbcode_second_pass_code('', '
$ dmesg | grep lirc
[ 7.198975] lirc_dev: IR Remote Control driver registered, major 244
[ 7.224093] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.191682] lirc_rpi: auto-detected active high receiver on GPIO pin 18
[ 8.192009] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
')
Then I try to read raw input using mode2:
$this->bbcode_second_pass_code('', '
$mode2 -d /dev/lirc0
Using driver devinput on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
Warning: Running as root.
Partial read 8 bytes on /dev/lirc0
$
')
It returns directly back to prompt after the "partial read" log.
I was expecting to get a proper result from mode2.
Then I can not get lircd working properly :
$this->bbcode_second_pass_code('', '
$ systemctl start lircd
$ irw
^C
$ systemctl status lircd
* lircd.service - Flexible IR remote input/output application support
Loaded: loaded (/usr/lib/systemd/system/lircd.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2016-10-01 19:48:59 UTC; 8min ago
Docs: man:lircd(8)
http://lirc.org/html/configure.html
Main PID: 522 (lircd)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/lircd.service
`-522 /usr/sbin/lircd --nodaemon
Oct 01 19:49:09 <host> lircd[522]: lircd-0.9.4b[522]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*
Oct 01 19:49:09 <host> lircd-0.9.4b[522]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*
Oct 01 19:49:10 <host> lircd[522]: lircd-0.9.4b[522]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*
Oct 01 19:49:10 <host> lircd-0.9.4b[522]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*
Oct 01 19:49:10 <host> lircd[522]: lircd-0.9.4b[522]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*
Oct 01 19:49:10 <host> lircd[522]: lircd-0.9.4b[522]: Info: removed client
Oct 01 19:49:10 <host> lircd[522]: lircd-0.9.4b[522]: Info: closing 'auto'
Oct 01 19:49:10 <host> lircd-0.9.4b[522]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*
Oct 01 19:49:10 <host> lircd-0.9.4b[522]: Info: removed client
Oct 01 19:49:10 <host> lircd-0.9.4b[522]: Info: closing 'auto'
')
Did I miss something ?
Thanks for your advices
Bouh.