[mythtv-users] Fix for broken lirc package in Ubuntu 20.04

scram69 scram69 at gmail.com
Sat Nov 13 21:43:09 UTC 2021


Hi Stephen,

Yes, this is a new 20.04 install.
However, it appears the issue is deeper than the MythTV response.  It turns
out, as soon as I start Mythfrontend, the lircd daemon shuts down.
In other words, I can restart lircd.service, and the syslog shows that
everything starts up OK and /etc/lirc/lircd.conf.d/mceusb.lircd.conf is
read:
Nov 13 13:20:45 mediaserver lircd-0.10.1[4262]: Info: Using remote:
mceusb_hauppauge.
Nov 13 13:20:45 mediaserver lircd-0.10.1[4262]: Notice:
/etc/lirc/lircd.conf.d/mceusb.lircd.conf: mceusb_hauppauge: Multiple
definitions of: KEY_TV
Nov 13 13:20:45 mediaserver lircd-0.10.1[4262]: Info: Using remote:
vista_mce.
Nov 13 13:20:45 mediaserver lircd[4262]: lircd-0.10.1[4262]: Notice:
lircd(devinput) ready, using /var/run/lirc/lircd
Nov 13 13:20:45 mediaserver lircd-0.10.1[4262]: Notice: lircd(devinput)
ready, using /var/run/lirc/lircd
Nov 13 13:20:45 mediaserver systemd[1]: Started Flexible IR remote
input/output application support.

However upon launching Mythfrontend, I see this in the log:
Nov 13 13:21:08 mediaserver lircd[4262]: lircd-0.10.1[4262]: Notice:
accepted new client on /var/run/lirc/lircd
Nov 13 13:21:08 mediaserver lircd[4262]: lircd-0.10.1[4262]: Info:
initializing '/dev/input/event4'
Nov 13 13:21:08 mediaserver lircd[4262]: lircd-0.10.1[4262]: Info: Using
device: /dev/input/event4
Nov 13 13:21:08 mediaserver lircd-0.10.1[4262]: Notice: accepted new client
on /var/run/lirc/lircd
Nov 13 13:21:08 mediaserver lircd[4262]: lircd-0.10.1[4262]: Info: removed
client
Nov 13 13:21:08 mediaserver lircd[4262]: lircd-0.10.1[4262]: Info: closing
'/dev/input/event4'
Nov 13 13:21:08 mediaserver lircd-0.10.1[4262]: Info: initializing
'/dev/input/event4'
Nov 13 13:21:08 mediaserver lircd-0.10.1[4262]: Info: Using device:
/dev/input/event4
Nov 13 13:21:08 mediaserver lircd-0.10.1[4262]: Info: removed client
Nov 13 13:21:08 mediaserver lircd-0.10.1[4262]: Info: closing
'/dev/input/event4'
At this point only the arrow keys work, and irw shows only the keyboard
input from the arrow keys.

Any ideas why mythfrontend would trigger lircd to shut down?

Thanks-
Steve


On Mon, Nov 8, 2021 at 12:57 AM Stephen Worthington <
stephen_agent at jsw.gen.nz> wrote:

> On Sun, 7 Nov 2021 18:03:43 -0800, you wrote:
>
> >Hi Stephen,
> >
> >I've finally just upgraded from 18.04 to 20.04.  I've run your helpful
> >script to install and fix the lirc packages.
> >I ran lirc-setup and successfully selected my IR receiver and remote type
> >(mceusb).
> >Following, I copied the lirc_options.conf to /etc/lirc and verified the
> >mceusb.lirc.conf file was in ~/lirc-setup.conf.d
> >Finally, I copied my working lircrc file from ~/.mythtv/ in my 18.04 to
> the
> >new 20.04 installation.
> >
> >I can run irw and see that all of the remote buttons are properly
> received.
> >I do sudo systemctl status lircd-dev.service and see that it has run
> >successfully to create the softlink for /dev/lircd
> >I checked that /dev/lircd is what is specified in the mythfrontend setup.
> >However, Mythfrontend does not respond to the remote input.  Can you think
> >of anything I might be missing?
> >
> >Thanks,
> >Steve
>
> So this is not actually an upgrade in place - you are installing on a
> new 20.04 system by copying from a working 18.04 on another PC - is
> that right?  If you were upgrading in place, it should have been
> working immediately after running my script.
>
> As irw is working, the lirc side of things is likely to be all good,
> so it is the mythfrontend side that is not working yet.  To check
> that, shut down mythfrontend and run:
>
> ircat mythtv
>
> as your normal user (not as root).
>
> The "mythtv" there is the name that all MythTV programs provide to
> lirc when connecting to it, and is the same "mythtv" string that
> should be in your $(HOME)/.lirc/mythtv file in the "prog =" lines:
>
> begin
>     remote = devinput
>     prog = mythtv
>     button = KEY_EXIT
>     config = Escape
>     repeat = 0
>     delay = 0
> end
>
> So for the above, when you use the Back button on your MCE remote, it
> will produce KEY_EXIT in irw, and lirc will translate that to "Escape"
> and that is what "ircat mythtv" should then display.  If that is not
> working, then check that you have copied your $(HOME)/.lirc directory
> to the new PC.  Lirc capable programs load their lirc configuration by
> loading $(HOME/.lircrc, and in a MythTV created .lircrc, all you will
> find is a set of includes for files in $(HOME)/.lirc, which all need
> to be there.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>


-- 
________________________
"destroying the fundamental underpinnings of the broadcast television
ecosystem"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20211113/9811f73f/attachment.htm>


More information about the mythtv-users mailing list