HD-PVR IR Blaster setup

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
rwiskow
Newcomer
Posts: 4
Joined: Mon Nov 21, 2022 4:24 pm
United States of America

HD-PVR IR Blaster setup

Post by rwiskow »

Has anyone had success getting the IR blaster in the HD-PVR 1212 working with current LIRC?
I've been running a mythtv system for over 10 years, and I decided it was time to upgrade the server hardware. I was running Ubuntu 16.04 with MythTV 0.28, which had lirc 0.9.0. I was able to use the lirc_zilog driver with the HD-PVR to handle sending IR codes.

The new system is Ubuntu 22.04, with MythTV 0.32. So far I was able to get everything migrated and upgraded, but then I ran into the usual pain point of getting the IR blasting to work. The lirc package is now 0.10.1, which changed the configuration. There's now a lirc_options.conf file, and hardware.conf is no longer used. So the wiki page /wiki/Hauppauge_HD-PVR is out of date.

I've added the modprobe option to enable the irblaster ("options ir-kbd-i2c enable_hdpvr"), and it does recognize the device and creates /dev/lirc0 as expected:
[72288.062734] ir-kbd-i2c 4-0071: Zilog/Hauppauge IR blaster firmware version 2.1.0
[72288.062749] Registered IR keymap rc-hauppauge
[72288.062849] rc rc0: HD-PVR as /devices/pci0000:00/0000:00:1d.7/usb1/1-8/i2c-4/4-0071/rc/rc0
[72288.063066] rc rc0: lirc_dev: driver ir_kbd_i2c registered at minor = 0, scancode receiver, raw IR transmitter
[72288.063115] input: HD-PVR as /devices/pci0000:00/0000:00:1d.7/usb1/1-8/i2c-4/4-0071/rc/rc0/input484
[72288.106979] hdpvr 1-8:1.0: device now attached to video0

The next hurdle was that the packaged setup of lirc was specifying the "devinput" driver. I changed this to "default" and set the device to "/dev/lirc0".
But now when I try to do an irsend, I get a "transmission failed" error:
irsend SEND_ONCE blaster 0_4_KEY_POWER
irsend: command failed: SEND_ONCE blaster 0_4_KEY_POWER
irsend: transmission failed

There's a little more detail in the syslog:
Nov 21 10:45:20 mythserv lircd[37880]: lircd-0.10.1[37880]: Notice: accepted new client on /var/run/lirc/lircd
Nov 21 10:45:20 mythserv lircd[37880]: lircd-0.10.1[37880]: Info: Cannot configure the rc device for /dev/lirc0
Nov 21 10:45:20 mythserv lircd[37880]: lircd-0.10.1[37880]: Notice: the receive method of the driver is not yet supported by lircd
Nov 21 10:45:20 mythserv lircd-0.10.1[37880]: Notice: accepted new client on /var/run/lirc/lircd
Nov 21 10:45:20 mythserv lircd[37880]: lircd-0.10.1[37880]: Error: write failed
Nov 21 10:45:20 mythserv lircd[37880]: lircd-0.10.1[37880]: Invalid argument
Nov 21 10:45:20 mythserv lircd[37880]: lircd-0.10.1[37880]: Error: error processing command: SEND_ONCE blaster 0_4_KEY_POWER
Nov 21 10:45:20 mythserv lircd[37880]: lircd-0.10.1[37880]: Error: transmission failed
Nov 21 10:45:20 mythserv lircd[37880]: lircd-0.10.1[37880]: Info: removed client
Nov 21 10:45:20 mythserv lircd-0.10.1[37880]: Info: Cannot configure the rc device for /dev/lirc0
Nov 21 10:45:20 mythserv lircd-0.10.1[37880]: Notice: the receive method of the driver is not yet supported by lircd
Nov 21 10:45:20 mythserv lircd-0.10.1[37880]: Error: write failed
Nov 21 10:45:20 mythserv lircd-0.10.1[37880]: Invalid argument
Nov 21 10:45:20 mythserv lircd-0.10.1[37880]: Error: error processing command: SEND_ONCE blaster 0_4_KEY_POWER
Nov 21 10:45:20 mythserv lircd-0.10.1[37880]: Error: transmission failed
Nov 21 10:45:20 mythserv lircd-0.10.1[37880]: Info: removed client
Nov 21 10:45:20 mythserv systemd[1]: Starting Ubuntu Advantage Timer for running repeated jobs...
Nov 21 10:45:20 mythserv systemd[1]: ua-timer.service: Deactivated successfully.
Nov 21 10:45:20 mythserv systemd[1]: Finished Ubuntu Advantage Timer for running repeated jobs.

That's where I'm currently stuck. Does anyone have any tips for getting this working?
I'd be perfectly willing to downgrade back to lirc 0.9.0, but haven't had much luck with that either. If anyone has information on how that can be done, I'd try that.
Has anyone gotten a simple RS232 IR blaster to work with lirc 0.10.1? I think I've got enough stuff in my parts bin, I could quickly solder something like that together if it's actually a viable option.
Post Reply