[mythtv-users] lirc device load order changed - tidiest way to recover?

Andrew Codrington andrew.codrington at fidenti.ca
Sat May 19 17:03:06 UTC 2018


Hi there,

I applied updates to my system last week. We haven't watched much TV this
week so it took a while to notice that the lirc config was unhappy.

The frontend isn't listening to the remote control and the mceusb blaster
isn't changing channels on the cable box before recordings start.

Groping around in a few config files and logs my guess is that the HDPVR
blaster has suddenly started showing up as lirc0 and moved the mceusb
device up to lirc1. I could very easily be completely wrong! I don't use
the blaster in the HDPVR.

For years I let Mythbuntu Control Centre configure lirc so I don't remember
all the configuration touch points.

I'm hoping to get some advice from this list on the cleanest way to get
things working again.

I probably need to force my mceusb back to lirc0.  Maybe by blacklisting
the lirc_zilog module or a UDEV rule? [I don't remember how to do either of
those, but Google usually helps out...]

Some background info is pasted in below. Just ask if more info is needed.

Thanks in advance,
Andrew

------------------------
me at mythbackend:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial

------------------------
me at mythbackend:~$ dmesg | grep lirc
[    3.633450] lirc_dev: IR Remote Control driver registered, major 240
[    3.633486] lirc_zilog: module is from the staging directory, the
quality is unknown, you have been warned.
[    3.633500] lirc_zilog: module verification failed: signature and/or
required key missing - tainting kernel
[    3.633932] lirc_zilog: module is from the staging directory, the
quality is unknown, you have been warned.
[    3.638163] i2c i2c-6: lirc_dev: driver lirc_zilog registered at minor =
0
[    3.638164] i2c i2c-6: IR unit on Hauppage HD PVR I2C (i2c-6) registered
as lirc0 and ready
[    3.720321] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered
at minor = 1
acodring at mythbackend:~$

------------------------
me at mythbackend:~$ tail -n 200 /var/log/syslog
<snipped>
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: accepted new client on
/run/lirc/lircd
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: write failed
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: Input/output error
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: error processing command:
SEND_ONCE SAE8000 1
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: transmission failed
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: removed client
May 19 11:02:28 mythbackend kernel: [   77.956094] i2c i2c-6: Direct
firmware load for haup-ir-blaster.bin failed with error -2
May 19 11:02:28 mythbackend kernel: [   77.956096] i2c i2c-6: firmware
haup-ir-blaster.bin not available (-2)
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: accepted new client on
/run/lirc/lircd
May 19 11:02:28 mythbackend kernel: [   78.258691] i2c i2c-6: Direct
firmware load for haup-ir-blaster.bin failed with error -2
May 19 11:02:28 mythbackend kernel: [   78.258698] i2c i2c-6: firmware
haup-ir-blaster.bin not available (-2)
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: write failed
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: Input/output error
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: error processing command:
SEND_ONCE SAE8000 4
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: transmission failed
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: removed client
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: accepted new client on
/run/lirc/lircd
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: write failed
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: Input/output error
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: error processing command:
SEND_ONCE SAE8000 3
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: transmission failed
May 19 11:02:28 mythbackend kernel: [   78.562140] i2c i2c-6: Direct
firmware load for haup-ir-blaster.bin failed with error -2
May 19 11:02:28 mythbackend kernel: [   78.562146] i2c i2c-6: firmware
haup-ir-blaster.bin not available (-2)
May 19 11:02:28 mythbackend lircd-0.9.0[1251]: removed client
<snipped>

------------------------
me at mythbackend:~$ cat /etc/lirc/lircd.conf
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the Windows Media Center Transceivers/Remotes (all)
remote:
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"

#Configuration for the Microsoft Windows Media Center V2 (usb) : Scientific
Atlanta Cable box transmitter:
include "/usr/share/lirc/extras/transmitters/scientificatlanta/general.conf"

------------------------
me at mythbackend:~$ cat /etc/modprobe.d/hdpvr.conf
options lirc_zilog tx_only=1
#AJC: Added above line based on a comment here:
https://www.mythtv.org/wiki/Hauppauge_HD-PVR#IR_Transmitter_Support

------------------------
me at mythbackend:~$ cat /etc/lirc/hardware.conf
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Windows Media Center Transceivers/Remotes (all)"
REMOTE_MODULES="lirc_dev mceusb"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="Microsoft Windows Media Center V2 (usb) : Scientific Atlanta
Cable box"
TRANSMITTER_MODULES="lirc_dev mceusb"
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF="scientificatlanta/general.conf"
TRANSMITTER_LIRCD_ARGS=""

#Disable kernel support.
#Typically, lirc will disable in-kernel support for ir devices in order to
#handle them internally.  Set to false to prevent lirc from disabling this
#in-kernel support.
#DISABLE_KERNEL_SUPPORT="true"

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180519/36c83598/attachment.html>


More information about the mythtv-users mailing list