[mythtv-users] Linux: Replacement for lirc_zilog driver

Stephen Worthington stephen_agent at jsw.gen.nz
Sun Jul 28 01:32:22 UTC 2019


On Sat, 27 Jul 2019 14:11:46 -0400, you wrote:

>And now suddenly my /dev/lirc0 is gone.
>
>root at gossamer:/var/log# sudo systemctl status lircd
>? lircd.service - Flexible IR remote input/output application support
>   Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor
>preset: enabled)
>   Active: active (running) since Sat 2019-07-27 14:08:25 EDT; 49s ago
>     Docs: man:lircd(8)
>           http://lirc.org/html/configure.html
> Main PID: 1097 (lircd)
>    Tasks: 2 (limit: 4915)
>   CGroup: /system.slice/lircd.service
>           ??1097 /usr/sbin/lircd --nodaemon
>
>Jul 27 14:09:12 gossamer lircd-0.10.0[1097]: Error: could not get file
>information for /dev/lirc0
>Jul 27 14:09:12 gossamer lircd-0.10.0[1097]: default_init(): No such file
>or directory
>Jul 27 14:09:13 gossamer lircd[1097]: lircd-0.10.0[1097]: Error: could not
>get file information for /dev/lirc0
>Jul 27 14:09:13 gossamer lircd[1097]: lircd-0.10.0[1097]: default_init():
>No such file or directory
>Jul 27 14:09:13 gossamer lircd-0.10.0[1097]: Error: could not get file
>information for /dev/lirc0
>Jul 27 14:09:13 gossamer lircd-0.10.0[1097]: default_init(): No such file
>or directory
>Jul 27 14:09:14 gossamer lircd[1097]: lircd-0.10.0[1097]: Error: could not
>get file information for /dev/lirc0
>Jul 27 14:09:14 gossamer lircd[1097]: lircd-0.10.0[1097]: default_init():
>No such file or directory
>Jul 27 14:09:14 gossamer lircd-0.10.0[1097]: Error: could not get file
>information for /dev/lirc0
>Jul 27 14:09:14 gossamer lircd-0.10.0[1097]: default_init(): No such file
>or directory
>
>I've checked to be sure that the blaster is fully connected to the HDPVR
>and rebooted a couple of times.
>
>help ?

First, you need to make sure that ir-kbd-ic2 is not taking the IR
device.  If it is still present with the older kernel, you need to
remove the "use_hdpvr" (sp?) option you were using with the newer
kernel, and you may need to blacklist it by adding a "blacklist
ir-kbd-ic2" line in a .conf file in /etc/modprobe.d.

Then I believe that lirc with the HDPVR needs two drivers: lirc_zilog
and lirc_dev.  The lirc_dev driver appears to be a generic "helper"
driver that lirc_zilog calls to do standard things, allowing the
lirc_zilog driver to only have the necessary non-standard code.  So
you need to modprobe both drivers.  With the new lirc version, that is
normally done in lirc_options.conf.  Uncomment the [modinit] line and
the code and code1 lines, and change them to read:

[modinit]
code = /sbin/modprobe lirc_dev
code1 = /sbin/modprobe lirc_zilog

Then run "sudo systemctl status lircd-setup" and make sure it says
"enabled" on the second line.  If it does not, then run "sudo
systemctl enable lircd-setup".  The lircd-setup systemd unit runs the
[modinit] section of lirc_options.conf at startup.  Any executable
code in the "code=" lines is executed in order.  Up to 12 code= lines
("code=" to "code11=") are supported.

It is also possible to just put the modprobe lines in a .conf file in
/etc/modprobe.d, if you prefer that.  Then you have to remember to
change them if you change lirc_setup.conf to use a different IR
device.

Then I think you will need to put the remote file that contains your
"blaster" definitions ("irsend send_once blaster 0_41_KEY_POWER") into
the /etc/lirc/lirc.conf.d/ directory.  Since I have not ever used my
IR transmitter with the new lirc config files and the documentation is
nowhere to be found, I am not entirely sure that is where the
"blaster" file goes, but what I have seen in the source code so far
points to that.

Then reboot.


More information about the mythtv-users mailing list