Missing something basic no doubt

James B Huber <[email protected]> Tue, 30 Apr 2024 11:09:13 -0400
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>
--===============0039125159525301763==
Content-Type: multipart/alternative; boundary="=-8jCbiCKkM3c30jHq/062"

--=-8jCbiCKkM3c30jHq/062
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Folks,
=C2=A0 Have been using lirc for like forever, anyway I got new Raspberrypi-
5, it is replacing a RPI-4B, unplug one, plug in
the other. The MCEUSB receiver and remote I was using (and it works) is
the same one I am still using.

Issue, I have ZIPPO output showing up in IRW.

I see the data coming in via mode2:
   pi@rpi-5:/usr/lib/systemd/system $ mode2
   Using driver default on device /dev/lirc0
   Trying device: /dev/lirc0
   Using device: /dev/lirc0
   pulse 650
   space 52200
   pulse 650
   space 52250
   pulse 650
   timeout 127000
  =20
ir-keytable sees the device:
   pi@rpi-5:~ $ ir-keytable
   Found /sys/class/rc/rc1/ with:
   Name: vc4-hdmi-1
   Driver: cec
   Default keymap: rc-cec
   Input device: /dev/input/event3
   Supported kernel protocols: cec=20
   Enabled kernel protocols: cec=20
   bus: 30, vendor/product: 0000:0000, version: 0x0001
   Repeat delay =3D 0 ms, repeat period =3D 125 ms
   Found /sys/class/rc/rc2/ with:
   Name: Media Center Ed. eHome Infrared Remote Transceiver (0471:060c)
   Driver: mceusb
   Default keymap: rc-rc6-mce
   Input device: /dev/input/event9
   LIRC device: /dev/lirc0
   Attached BPF protocols: Operation not permitted
   Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo
   mce_kbd rc-6 sharp xmp imon=20
   Enabled kernel protocols: lirc=20
   bus: 3, vendor/product: 0471:060c, version: 0x0101
   Repeat delay =3D 500 ms, repeat period =3D 125 ms
   Found /sys/class/rc/rc0/ with:
   Name: vc4-hdmi-0
   Driver: cec
   Default keymap: rc-cec
   Input device: /dev/input/event1
   Supported kernel protocols: cec=20
   Enabled kernel protocols: cec=20
   bus: 30, vendor/product: 0000:0000, version: 0x0001
   Repeat delay =3D 0 ms, repeat period =3D 125 ms

however irw sees nothing:

lircd loads, read config fine, and knows the remotes:
Apr 30 09:52:03.439525 rpi-5.judahnet.net lircd: Notice: Current
driver: default
Apr 30 09:52:03.439530 rpi-5.judahnet.net lircd: Notice: Driver API
version: 3
Apr 30 09:52:03.439536 rpi-5.judahnet.net lircd: Notice: Driver
version: 0.10.0
Apr 30 09:52:03.439541 rpi-5.judahnet.net lircd: Notice: Driver info:
See file:///usr/share/doc/lirc/plugindocs/default.html
Apr 30 09:52:03.439562 rpi-5.judahnet.net lircd: Warning: -------------
----------- Log re-opened ----------------------------
Apr 30 09:52:03.439572 rpi-5.judahnet.net lircd: Info: lircd: Opening
log, level: Info
Apr 30 09:52:03.439653 rpi-5.judahnet.net lircd: Notice: Using systemd
fd
Apr 30 09:52:03.439667 rpi-5.judahnet.net lircd: Warning: Running as
root
Apr 30 09:52:03.442705 rpi-5.judahnet.net lircd: Info: Using remote:
mceusb.
Apr 30 09:52:03.442810 rpi-5.judahnet.net lircd: Info: Using remote:
BHN.
Apr 30 09:52:03.442837 rpi-5.judahnet.net lircd: Notice:
/etc/lirc/lircd.conf: BHN: Multiple values for same code: OK
Apr 30 09:52:03.442864 rpi-5.judahnet.net lircd: Notice:
/etc/lirc/lircd.conf: BHN: Multiple values for same code: ENTER
Apr 30 09:52:03.443295 rpi-5.judahnet.net lircd: Notice: lircd(default)
ready, using /var/run/lirc/lircd
Apr 30 09:52:51.408223 rpi-5.judahnet.net lircd: Notice: accepted new
client on /var/run/lirc/lircd
Apr 30 09:52:51.408353 rpi-5.judahnet.net lircd: Info: [lirc] protocol
is enabled
Apr 30 09:53:17.868489 rpi-5.judahnet.net lircd: Info: removed client

Relevent portion of lirc_options.conf:
   [lircd]
   nodaemon =3D False
   driver =3D default
   device =3D /dev/lirc0
   output =3D /var/run/lirc/lircd
   pidfile =3D /var/run/lirc/lircd.pid
   plugindir =3D /usr/lib/aarch64-linux-gnu/lirc/plugins
   permission =3D 666
   allow-simulate =3D No
   repeat-max =3D 600
   logfile =3D /var/log/lirc.log
  =20
I have moved the devinput config out of the way
(/etc/lirc/lircd.conf.d/devinput.lircd.conf to
devinput.lircd.conf.DIST)

Oh, and IR Blasting out of the things works correctly...Last but not
least, the mceusb module is loaded, and so is the cec module (even
thouogh I blacklisted it in /etc/modeprobe.d/raspi-blacklist.conf).....
   pi@rpi-5:/var/log $ lsmod|grep cec
   cec 65536 1 vc4
   pi@rpi-5:/var/log $ lsmod|grep mceusb
   mceusb 49152 0
  =20


Anyone have a clue either what I've done wrong, or how to troubleshoot
this ?

pi@rpi-5:/var/log $ uname -r
6.6.28+rpt-rpi-2712
pi@rpi-5:/var/log $ cat /etc/os-release=20
PRETTY_NAME=3D"Debian GNU/Linux 12 (bookworm)"
NAME=3D"Debian GNU/Linux"
VERSION_ID=3D"12"
VERSION=3D"12 (bookworm)"
VERSION_CODENAME=3Dbookworm
ID=3Ddebian


Regards,
Jim Huber

--=-8jCbiCKkM3c30jHq/062
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div>Folks,</div><div>&nbsp; Have been using lirc =
for like forever, anyway I got new Raspberrypi-5, it is replacing a RPI-4B,=
 unplug one, plug in</div><div>the other. The MCEUSB receiver and remote I =
was using (and it works) is the same one I am still using.</div><div><br></=
div><div>Issue, I have ZIPPO output showing up in IRW.</div><div><br></div>=
<div><b>I see the data coming in via mode2:</b></div><div style=3D"text-ali=
gn: justify; margin-left: 3ch;"><a href=3D"mailto:pi@rpi-5">pi@rpi-5</a>:/u=
sr/lib/systemd/system $ mode2</div><div style=3D"text-align: justify; margi=
n-left: 3ch;">Using driver default on device /dev/lirc0</div><div style=3D"=
text-align: justify; margin-left: 3ch;">Trying device: /dev/lirc0</div><div=
 style=3D"text-align: justify; margin-left: 3ch;">Using device: /dev/lirc0<=
/div><div style=3D"text-align: justify; margin-left: 3ch;">pulse 650</div><=
div style=3D"text-align: justify; margin-left: 3ch;">space 52200</div><div =
style=3D"text-align: justify; margin-left: 3ch;">pulse 650</div><div style=
=3D"text-align: justify; margin-left: 3ch;">space 52250</div><div style=3D"=
text-align: justify; margin-left: 3ch;">pulse 650</div><div style=3D"text-a=
lign: justify; margin-left: 3ch;">timeout 127000</div><div style=3D"text-al=
ign: justify; margin-left: 3ch;"><br></div><div style=3D"text-align: justif=
y;"><b>ir-keytable sees the device:</b></div><div style=3D"margin-left: 3ch=
;"><a href=3D"mailto:pi@rpi-5">pi@rpi-5</a>:~ $ ir-keytable</div><div style=
=3D"margin-left: 3ch;">Found /sys/class/rc/rc1/ with:</div><div style=3D"ma=
rgin-left: 3ch;">	Name: vc4-hdmi-1</div><div style=3D"margin-left: 3ch;">	D=
river: cec</div><div style=3D"margin-left: 3ch;">	Default keymap: rc-cec</d=
iv><div style=3D"margin-left: 3ch;">	Input device: /dev/input/event3</div><=
div style=3D"margin-left: 3ch;">	Supported kernel protocols: cec </div><div=
 style=3D"margin-left: 3ch;">	Enabled kernel protocols: cec </div><div styl=
e=3D"margin-left: 3ch;">	bus: 30, vendor/product: 0000:0000, version: 0x000=
1</div><div style=3D"margin-left: 3ch;">	Repeat delay =3D 0 ms, repeat peri=
od =3D 125 ms</div><div style=3D"margin-left: 3ch;">Found /sys/class/rc/rc2=
/ with:</div><div style=3D"margin-left: 3ch;">	Name: Media Center Ed. eHome=
 Infrared Remote Transceiver (0471:060c)</div><div style=3D"margin-left: 3c=
h;">	Driver: mceusb</div><div style=3D"margin-left: 3ch;">	Default keymap: =
rc-rc6-mce</div><div style=3D"margin-left: 3ch;">	Input device: /dev/input/=
event9</div><div style=3D"margin-left: 3ch;">	LIRC device: /dev/lirc0</div>=
<div style=3D"margin-left: 3ch;">	Attached BPF protocols: Operation not per=
mitted</div><div style=3D"margin-left: 3ch;">	Supported kernel protocols: l=
irc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon </div><div =
style=3D"margin-left: 3ch;">	Enabled kernel protocols: lirc </div><div styl=
e=3D"margin-left: 3ch;">	bus: 3, vendor/product: 0471:060c, version: 0x0101=
</div><div style=3D"margin-left: 3ch;">	Repeat delay =3D 500 ms, repeat per=
iod =3D 125 ms</div><div style=3D"margin-left: 3ch;">Found /sys/class/rc/rc=
0/ with:</div><div style=3D"margin-left: 3ch;">	Name: vc4-hdmi-0</div><div =
style=3D"margin-left: 3ch;">	Driver: cec</div><div style=3D"margin-left: 3c=
h;">	Default keymap: rc-cec</div><div style=3D"margin-left: 3ch;">	Input de=
vice: /dev/input/event1</div><div style=3D"margin-left: 3ch;">	Supported ke=
rnel protocols: cec </div><div style=3D"margin-left: 3ch;">	Enabled kernel =
protocols: cec </div><div style=3D"margin-left: 3ch;">	bus: 30, vendor/prod=
uct: 0000:0000, version: 0x0001</div><div style=3D"margin-left: 3ch;">	Repe=
at delay =3D 0 ms, repeat period =3D 125 ms</div><div><br></div><div><b>how=
ever irw sees nothing:</b></div><div><br></div><div><b>lircd loads, read co=
nfig fine, and knows the remotes:</b></div><div>Apr 30 09:52:03.439525 rpi-=
5.judahnet.net lircd: Notice: Current driver: default</div><div>Apr 30 09:5=
2:03.439530 rpi-5.judahnet.net lircd: Notice: Driver API version: 3</div><d=
iv>Apr 30 09:52:03.439536 rpi-5.judahnet.net lircd: Notice: Driver  version=
: 0.10.0</div><div>Apr 30 09:52:03.439541 rpi-5.judahnet.net lircd: Notice:=
 Driver  info: See file:///usr/share/doc/lirc/plugindocs/default.html</div>=
<div>Apr 30 09:52:03.439562 rpi-5.judahnet.net lircd: Warning: ------------=
------------ Log re-opened ----------------------------</div><div>Apr 30 09=
:52:03.439572 rpi-5.judahnet.net lircd: Info: lircd:  Opening log, level: I=
nfo</div><div>Apr 30 09:52:03.439653 rpi-5.judahnet.net lircd: Notice: Usin=
g systemd fd</div><div>Apr 30 09:52:03.439667 rpi-5.judahnet.net lircd: War=
ning: Running as root</div><div>Apr 30 09:52:03.442705 rpi-5.judahnet.net l=
ircd: Info: Using remote: mceusb.</div><div>Apr 30 09:52:03.442810 rpi-5.ju=
dahnet.net lircd: Info: Using remote: BHN.</div><div>Apr 30 09:52:03.442837=
 rpi-5.judahnet.net lircd: Notice: /etc/lirc/lircd.conf: BHN: Multiple valu=
es for same code: OK</div><div>Apr 30 09:52:03.442864 rpi-5.judahnet.net li=
rcd: Notice: /etc/lirc/lircd.conf: BHN: Multiple values for same code: ENTE=
R</div><div>Apr 30 09:52:03.443295 rpi-5.judahnet.net lircd: Notice: lircd(=
default) ready, using /var/run/lirc/lircd</div><div>Apr 30 09:52:51.408223 =
rpi-5.judahnet.net lircd: Notice: accepted new client on /var/run/lirc/lirc=
d</div><div>Apr 30 09:52:51.408353 rpi-5.judahnet.net lircd: Info: [lirc] p=
rotocol is enabled</div><div>Apr 30 09:53:17.868489 rpi-5.judahnet.net lirc=
d: Info: removed client</div><div><br></div><div><b>Relevent portion of lir=
c_options.conf:</b></div><div style=3D"margin-left: 3ch;">[lircd]</div><div=
 style=3D"margin-left: 3ch;">nodaemon        =3D False</div><div style=3D"m=
argin-left: 3ch;">driver          =3D default</div><div style=3D"margin-lef=
t: 3ch;">device          =3D /dev/lirc0</div><div style=3D"margin-left: 3ch=
;">output          =3D /var/run/lirc/lircd</div><div style=3D"margin-left: =
3ch;">pidfile         =3D /var/run/lirc/lircd.pid</div><div style=3D"margin=
-left: 3ch;">plugindir       =3D /usr/lib/aarch64-linux-gnu/lirc/plugins</d=
iv><div style=3D"margin-left: 3ch;">permission      =3D 666</div><div style=
=3D"margin-left: 3ch;">allow-simulate  =3D No</div><div style=3D"margin-lef=
t: 3ch;">repeat-max      =3D 600</div><div style=3D"margin-left: 3ch;">logf=
ile        =3D /var/log/lirc.log</div><div style=3D"margin-left: 3ch;"><br>=
</div><div>I have moved the devinput config out of the way (/etc/lirc/lircd=
.conf.d/devinput.lircd.conf to devinput.lircd.conf.DIST)</div><div><br></di=
v><div>Oh, and IR Blasting out of the things works correctly...Last but not=
 least, the mceusb module is loaded, and so is the cec module (even thouogh=
 I blacklisted it in /etc/modeprobe.d/raspi-blacklist.conf).....</div><div =
style=3D"margin-left: 3ch;"><a href=3D"mailto:pi@rpi-5">pi@rpi-5</a>:/var/l=
og $ lsmod|grep cec</div><div style=3D"margin-left: 3ch;">cec              =
      65536  1 vc4</div><div style=3D"margin-left: 3ch;"><a href=3D"mailto:=
pi@rpi-5">pi@rpi-5</a>:/var/log $ lsmod|grep mceusb</div><div style=3D"marg=
in-left: 3ch;">mceusb                 49152  0</div><div style=3D"margin-le=
ft: 3ch;"><br></div><div><br></div><div><br></div><div>Anyone have a clue e=
ither what I've done wrong, or how to troubleshoot this ?</div><div><br></d=
iv><div><a href=3D"mailto:pi@rpi-5">pi@rpi-5</a>:/var/log $ uname -r</div><=
div>6.6.28+rpt-rpi-2712</div><div><a href=3D"mailto:pi@rpi-5">pi@rpi-5</a>:=
/var/log $ cat /etc/os-release </div><div>PRETTY_NAME=3D"Debian GNU/Linux 1=
2 (bookworm)"</div><div>NAME=3D"Debian GNU/Linux"</div><div>VERSION_ID=3D"1=
2"</div><div>VERSION=3D"12 (bookworm)"</div><div>VERSION_CODENAME=3Dbookwor=
m</div><div>ID=3Ddebian</div><div><br></div><div><br></div><div>Regards,</d=
iv><div>Jim Huber</div><div><span></span></div></body></html>

--=-8jCbiCKkM3c30jHq/062--


--===============0039125159525301763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0039125159525301763==--