<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Kopano WebApp v3.4.6+dfsg1-1">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>RE: [mythtv-users] Blasting to STB,using a MCEUSB</title>
</head>
<body>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;"><br /></span></p>
<blockquote style="border-left: 2px solid #325fba; padding-left: 5px; margin: 0px 5px 1em;"><span style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 10pt;">-----Original message-----<br /><span><strong>From:</strong> Stephen Worthington <stephen_agent@jsw.gen.nz></span><br /><span><strong>Sent:</strong> Saturday 6th October 2018 9:55</span><br /><span><strong>To:</strong> Discussion about MythTV <mythtv-users@mythtv.org></span><br /><span><strong>Subject:</strong> Re: [mythtv-users] Blasting to STB,using a MCEUSB</span><br /><br /></span>
<div>
<pre style="white-space: pre-wrap; word-wrap: break-word;">On Sat, 6 Oct 2018 08:34:39 +0100, you wrote:<br /><br />>-----Original message-----<br />>From: Greg Oliver <oliver.greg@gmail.com><br />>Sent: Saturday 6th October 2018 0:54<br />>To: Discussion about mythtv <mythtv-users@mythtv.org><br />>Subject: Re: [mythtv-users] Blasting to STB,using a MCEUSB<br />><br />>On Fri, Oct 5, 2018 at 1:22 PM Dave Pearson (Lists) <lists@the-pearsons.co.uk <mailto:lists@the-pearsons.co.uk> > wrote:<br />><br />> > On 5 Oct 2018, at 18:22, Stephen Worthington <stephen_agent@jsw.gen.nz <mailto:stephen_agent@jsw.gen.nz> > wrote:<br />> > <br />> >> On Fri, 5 Oct 2018 16:59:46 +0100, you wrote:<br />> >> <br />> >> I’m so close it hurts! <br />> >> <br />> >> Ok, so my ˜/.lirc/mythtv file looks like this:<br />> >> <br />> >> begin<br />> >>    remote = devinput-32<br />> >>    prog = mythtv<br />> >>    button = left<br />> >>    config = left<br />> >> end <br />> >> <br />> >> Etc.<br />> >> <br />> >> My ˜/.lircrc file looks like this:<br />> >> <br />> >> include ˜/.lirc/mythtv<br />> >> <br />> >> And I can see the key presses in irw<br />> >> <br />> >> I’ve restarted my front end and it’s still not working - there’s got to be something else, obvious, that I’m just not spotting - any ideas?<br />> >> <br />> >> (Just noticed, this thread is actually about controlling a set top box, not controlling the frontend, sorry about hijacking it - this should have stayed in the other thread)<br />> >> <br />> >> Regards,<br />> >> Dave<br />> > <br />> > Shut down mythfrontend and try "ircat mythtv" from a command prompt<br />> > with the same user as mythfrontend is run from.  Does that show any<br />> > input from the remote?<br />> > <br />> > Also, I have just done the 16.04 to 18.04.1 upgrade on my main MythTV<br />> > box, and for some reason the lirc update did not install the new<br />> > /etc/lirc/lircd.conf file.  Check if that happened to you.  It should<br />> > look like this:<br />> > <br />> > # Populated config files can be found at http://sf.net/p/lirc-remotes <http://sf.net/p/lirc-remotes> .<br />> > The<br />> > # irdb-get(1) and lirc-setup(1) tools can be used to search and<br />> > download<br />> > # config files.<br />> > #<br />> > # From 0.9.2 config files could just be dropped as-is in the<br />> > lircd.conf.d<br />> > # directory and be included by this file.<br />> > <br />> > include "lircd.conf.d/*.conf"<br />> > <br />> > <br />> > If it does not, then you need to do this from a root prompt:<br />> > <br />> > cd /etc/lirc<br />> > cp -a lircd.conf.dist lircd.conf<br />> > <br />> > If you want to keep the old lircd.conf, rename it first:<br />> > <br />> > mv lircd.conf lircd.conf.16.04<br />> > _______________________________________________<br />> > mythtv-users mailing list<br />> > mythtv-users@mythtv.org <mailto:mythtv-users@mythtv.org> <br />> > http://lists.mythtv.org/mailman/listinfo/mythtv-users <http://lists.mythtv.org/mailman/listinfo/mythtv-users> <br />> > http://wiki.mythtv.org/Mailing_List_etiquette <http://wiki.mythtv.org/Mailing_List_etiquette> <br />> > MythTV Forums: https://forum.mythtv.org<br />><br />> Hi Stephen,<br />><br />> ircat mythtv doesn’t show any input from the remote<br />><br />> I do have a lircd.conf file in /etc/lirc<br />><br />> Regards,<br />> Dave<br />><br />>Permissions on files possibly?  The entries in your config looks correct, but can they be read?  I am out of ideas here if ircat does not work.  What are the perms on /var/run/lirc/lircd also?<br />><br />>_______________________________________________<br />><br />>mythtv-users mailing list<br />><br />>mythtv-users@mythtv.org<br />><br />>http://lists.mythtv.org/mailman/listinfo/mythtv-users<br />><br />>http://wiki.mythtv.org/Mailing_List_etiquette<br />><br />>MythTV Forums: https://forum.mythtv.org<br />><br />>Hi Greg<br />><br />><br />><br />>Permissions on /var/run/lirc/lircd:<br />><br />><br />><br />>dave@nuc1:/var/run/lirc$ ls -al<br />>total 4<br />>drwxr-xr-x  2 root root   80 Oct  5 17:06 .<br />>drwxr-xr-x 32 root root 1080 Oct  6 07:26 ..<br />>srw-rw-rw-  1 root root    0 Oct  5 17:06 lircd<br />>-rw-r--r--  1 root root    5 Oct  5 17:06 lircd.pid<br />> On ˜/.lircrc & ˜/.lirc:<br />> dave@nuc1:˜$ ls .lirc* -al <br />>-rw-rw-r-- 1 dave dave   23 Oct  5 16:38 .lircrc <br />> <br />>.lirc: <br />>total 16 <br />>drwxrwxr-x  2 dave dave 4096 Oct  5 05:14 . <br />>drwxr-xr-x 25 dave dave 4096 Oct  6 07:26 .. <br />>-rw-rw-r--  1 dave dave 4660 Oct  5 05:14 mythtv<br />><br />>mythfrontend appears to be connecting to the lircd socket and also reading the .lircrc config file:<br />><br />>Oct  5 19:48:29 nuc1 mythfrontend.real: mythfrontend[11534]: I CoreContext lirc.cpp:322 (Init) LIRC: Successfully initial<br />>ized '/var/run/lirc/lircd' using '/home/dave/.lircrc' config<br />><br />><br />>And yet still the control doesn't work!<br />> I'm almost at the point of rebuilding the frontend and starting again.<br />> Regards,<br />>Dave.<br /><br />If "ircat mythtv" does not work, then the problem is in the lirc<br />setup, not mythfrontend.  Please post the output of the following<br />commands:<br /><br />cat /etc/lirc/lircd.conf<br />cat /etc/lirc/lirc_options.conf<br />grep name /etc/lirc/lircd.conf.d/*.conf<br />cat $HOME/.lircrc<br />grep remote $HOME/.lirc/* | uniq<br /><br />This is what I get from those commands:<br /><br />stephen@mypvr:˜$ cat /etc/lirc/lircd.conf<br /># Populated config files can be found at http://sf.net/p/lirc-remotes.<br />The<br /># irdb-get(1) and lirc-setup(1) tools can be used to search and<br />download<br /># config files.<br />#<br /># From 0.9.2 config files could just be dropped as-is in the<br />lircd.conf.d<br /># directory and be included by this file.<br /><br />include "lircd.conf.d/*.conf"<br />stephen@mypvr:˜$ cat /etc/lirc/lirc_options.conf<br /># These are the default options to lircd, if installed as<br /># /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8)<br /># manpages for info on the different options.<br />#<br /># Some tools including mode2 and irw uses values such as<br /># driver, device, plugindir and loglevel as fallback values<br /># in not defined elsewhere.<br /><br />[lircd]<br />nodaemon        = False<br />driver          = devinput<br />device          = auto<br />output          = /var/run/lirc/lircd<br />pidfile         = /var/run/lirc/lircd.pid<br />plugindir       = /usr/lib/x86_64-linux-gnu/lirc/plugins<br />permission      = 666<br />allow-simulate  = No<br />repeat-max      = 600<br />#effective-user =<br />#listen         = [address:]port<br />#connect        = host[:port]<br />#loglevel       = 6<br />#release        = true<br />#release_suffix = _EVUP<br />#logfile        = ...<br />#driver-options = ...<br /><br />[lircmd]<br />uinput          = False<br />nodaemon        = False<br /><br /># [modinit]<br /># code = /usr/sbin/modprobe lirc_serial<br /># code1 = /usr/bin/setfacl -m g:lirc:rw /dev/uinput<br /># code2 = ...<br /><br /><br /># [lircd-uinput]<br /># add-release-events = False<br /># release-timeout    = 200<br /># release-suffix     = _EVUP<br />stephen@mypvr:˜$ grep name /etc/lirc/lircd.conf.d/*.conf<br /># Rename to devinput.lircd.dist if not using devinput driver<br />        name            devinput-64<br />        name            devinput<br />stephen@mypvr:˜$ cat $HOME/.lircrc<br />#Custom lircrc generated via mythbuntu-lirc-generator<br />#All application specific lircrc files are within ˜/.lirc<br />include ˜/.lirc/mythtv<br />include ˜/.lirc/mplayer<br />include ˜/.lirc/xine<br />include ˜/.lirc/vlc<br />include ˜/.lirc/xmame<br />include ˜/.lirc/xmess<br />include ˜/.lirc/totem<br />include ˜/.lirc/elisa<br />include ˜/.lirc/irexec<br />stephen@mypvr:˜$ grep remote $HOME/.lirc/* | uniq<br />/home/stephen/.lirc/elisa:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/elisa:    remote = Sky_Zenith<br />/home/stephen/.lirc/elisa:    remote = vista_mce<br />/home/stephen/.lirc/elisa:    remote = Pace_RC-30<br />/home/stephen/.lirc/elisa:    remote = mceusb<br />/home/stephen/.lirc/irexec:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/irexec:    remote = vista_mce<br />/home/stephen/.lirc/irexec:    remote = mceusb<br />/home/stephen/.lirc/mplayer:# lircrc for devinput with Hauppauge Nova<br />TD-500 and Hauppauge HVR-900R2 remotes (with lirc 0.9.0).<br />/home/stephen/.lirc/mplayer:    remote = devinput<br />/home/stephen/.lirc/mplayer.14.04:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/mplayer.14.04:    remote = Sky_Zenith<br />/home/stephen/.lirc/mplayer.14.04:    remote = vista_mce<br />/home/stephen/.lirc/mplayer.14.04:    remote = Pace_RC-30<br />/home/stephen/.lirc/mplayer.14.04:    remote = mceusb<br />/home/stephen/.lirc/mplayer.mce:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/mplayer.mce:    remote = Sky_Zenith<br />/home/stephen/.lirc/mplayer.mce:    remote = vista_mce<br />/home/stephen/.lirc/mplayer.mce:    remote = Pace_RC-30<br />/home/stephen/.lirc/mplayer.mce:    remote = mceusb<br />/home/stephen/.lirc/mplayer.mce:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/mplayer.original:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/mplayer.original:    remote = vista_mce<br />/home/stephen/.lirc/mplayer.original:    remote = mceusb<br />/home/stephen/.lirc/mythtv:# lircrc for devinput with Hauppauge Nova<br />TD-500 and Hauppauge HVR-900R2 remotes (with lirc 0.9.0),<br />/home/stephen/.lirc/mythtv:# and MCE remotes.<br />/home/stephen/.lirc/mythtv:    remote = devinput<br />/home/stephen/.lirc/mythtv:#    remote = devinput<br />/home/stephen/.lirc/mythtv:    remote = devinput<br />/home/stephen/.lirc/mythtv:#    remote = devinput<br />/home/stephen/.lirc/mythtv:    remote = devinput<br />/home/stephen/.lirc/mythtv:# LiveTV button not available on Nova<br />TD-500 and HVR-900 remotes.<br />/home/stephen/.lirc/mythtv:    remote = devinput<br />/home/stephen/.lirc/mythtv:# Clear button not available on Nova TD-500<br />and HVR-900 remotes, so use the Red key.<br />/home/stephen/.lirc/mythtv:    remote = devinput<br />/home/stephen/.lirc/mythtv:# DVD Menu button not available on Nova<br />TD-500 and HVR-900 remotes, so use the Blue key.<br />/home/stephen/.lirc/mythtv:    remote = devinput<br />/home/stephen/.lirc/mythtv:# DVD Menu button not available on Nova<br />TD-500 and HVR-900 remotes, so use the PrevCh key.<br />/home/stephen/.lirc/mythtv:    remote = devinput<br />/home/stephen/.lirc/mythtv˜:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/mythtv˜:    remote = vista_mce<br />/home/stephen/.lirc/mythtv˜:    remote = mceusb<br />/home/stephen/.lirc/mythtv.14.04:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/mythtv.14.04:    remote = Sky_Zenith<br />/home/stephen/.lirc/mythtv.14.04:    remote = vista_mce<br />/home/stephen/.lirc/mythtv.14.04:    remote = Pace_RC-30<br />/home/stephen/.lirc/mythtv.14.04:    remote = mceusb<br />/home/stephen/.lirc/mythtv.mce:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/mythtv.mce:    remote = Sky_Zenith<br />/home/stephen/.lirc/mythtv.mce:    remote = vista_mce<br />/home/stephen/.lirc/mythtv.mce:    remote = Pace_RC-30<br />/home/stephen/.lirc/mythtv.mce:    remote = mceusb<br />/home/stephen/.lirc/mythtv.original:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/mythtv.original:    remote = vista_mce<br />/home/stephen/.lirc/mythtv.original:    remote = mceusb<br />/home/stephen/.lirc/rhythmbox:# edit the "button =" part for each<br />entry according to your remote, and stick<br />/home/stephen/.lirc/rhythmbox:  remote = *<br />/home/stephen/.lirc/rhythmbox:# remote = *<br />/home/stephen/.lirc/rhythmbox:  remote = *<br />/home/stephen/.lirc/totem:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/totem:    remote = Sky_Zenith<br />/home/stephen/.lirc/totem:    remote = vista_mce<br />/home/stephen/.lirc/totem:    remote = Pace_RC-30<br />/home/stephen/.lirc/totem:    remote = mceusb<br />/home/stephen/.lirc/vlc:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/vlc:    remote = Sky_Zenith<br />/home/stephen/.lirc/vlc:    remote = vista_mce<br />/home/stephen/.lirc/vlc:    remote = Pace_RC-30<br />/home/stephen/.lirc/vlc:    remote = mceusb<br />/home/stephen/.lirc/xine:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/xine:    remote = Sky_Zenith<br />/home/stephen/.lirc/xine:    remote = vista_mce<br />/home/stephen/.lirc/xine:    remote = Pace_RC-30<br />/home/stephen/.lirc/xine:    remote = mceusb<br />/home/stephen/.lirc/xmame:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/xmame:    remote = Sky_Zenith<br />/home/stephen/.lirc/xmame:    remote = vista_mce<br />/home/stephen/.lirc/xmame:    remote = Pace_RC-30<br />/home/stephen/.lirc/xmame:    remote = mceusb<br />/home/stephen/.lirc/xmess:    remote = mceusb_hauppauge<br />/home/stephen/.lirc/xmess:    remote = Sky_Zenith<br />/home/stephen/.lirc/xmess:    remote = vista_mce<br />/home/stephen/.lirc/xmess:    remote = Pace_RC-30<br />/home/stephen/.lirc/xmess:    remote = mceusb<br />_______________________________________________<br />mythtv-users mailing list<br />mythtv-users@mythtv.org<br />http://lists.mythtv.org/mailman/listinfo/mythtv-users<br />http://wiki.mythtv.org/Mailing_List_etiquette<br />MythTV Forums: https://forum.mythtv.org</pre>
</div>
</blockquote>
<p style="padding: 0; margin: 0;"></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;">Hi Stephen,<br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;"><br /></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;">Thank you so much for all of your help with this, here is the output from those commands:<br /><br /><span style="font-family: monospace;"><span style="font-weight: bold; color: #54ff54;">dave@nuc1</span>:<span style="font-weight: bold; color: #5454ff;">~</span>$ cat /etc/lirc/lircd.conf <br /># Populated config files can be found at <a href="http://sf.net/p/lirc-remotes.">http://sf.net/p/lirc-remotes.</a> The <br /># irdb-get(1) and lirc-setup(1) tools can be used to search and download <br /># config files. <br /># <br /># From 0.9.2 config files could just be dropped as-is in the lircd.conf.d <br /># directory and be included by this file. <br /> <br />include "lircd.conf.d/*.conf" <br /><span style="font-weight: bold; color: #54ff54;">dave@nuc1</span>:<span style="font-weight: bold; color: #5454ff;">~</span>$ cat /etc/lirc/lirc_options.conf <br /># These are the default options to lircd, if installed as <br /># /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8) <br /># manpages for info on the different options. <br /># <br /># Some tools including mode2 and irw uses values such as <br /># driver, device, plugindir and loglevel as fallback values <br /># in not defined elsewhere. <br /> <br />[lircd] <br />nodaemon        = False <br />driver          = devinput <br />device          = auto <br />output          = /var/run/lirc/lircd <br />pidfile         = /var/run/lirc/lircd.pid <br />plugindir       = /usr/lib/x86_64-linux-gnu/lirc/plugins <br />permission      = 666 <br />allow-simulate  = No <br />#repeat-max      = 600 <br />repeat-max      = 1200 <br />effective-user = dave <br />#listen         = [address:]port <br />#connect        = host[:port] <br />#loglevel       = 6 <br />#release        = true <br />#release_suffix = _EVUP <br />#logfile        = ... <br />#driver-options = ... <br /> <br />[lircmd] <br />uinput          = False <br />nodaemon        = False <br /> <br /># [modinit] <br /># code = /usr/sbin/modprobe lirc_serial <br /># code1 = /usr/bin/setfacl -m g:<a href="lirc:rw">lirc:rw</a> /dev/uinput <br /># code2 = ... <br /> <br /> <br /># [lircd-uinput] <br /># add-release-events = False <br /># release-timeout    = 200 <br /># release-suffix     = _EVUP <br /><span style="font-weight: bold; color: #54ff54;">dave@nuc1</span>:<span style="font-weight: bold; color: #5454ff;">~</span>$ grep name /etc/lirc/lircd.conf.d/*.conf <br /># Re<span style="font-weight: bold; color: #ff5454;">name</span> to devinput.lircd.dist if not using devinput driver <br />        <span style="font-weight: bold; color: #ff5454;">name</span>            devinput-64 <br />        <span style="font-weight: bold; color: #ff5454;">name</span>            devinput-32 <br /><span style="font-weight: bold; color: #54ff54;">dave@nuc1</span>:<span style="font-weight: bold; color: #5454ff;">~</span>$ cat $HOME/.lircrc <br />include ~/.lirc/mythtv <br /><span style="font-weight: bold; color: #54ff54;">dave@nuc1</span>:<span style="font-weight: bold; color: #5454ff;">~</span>$ grep remote $HOME/.lirc/* | uniq <br />    remote = devinput-32 <br /><span style="font-weight: bold; color: #54ff54;">dave@nuc1</span>:<span style="font-weight: bold; color: #5454ff;">~</span>$ <br /></span></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;"><span style="font-family: monospace;"><br /></span></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;"><span style="font-family: monospace;">I just hope the key to it all is to be found in there somewhere.</span></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;"><span style="font-family: monospace;"><br /></span></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;"><span style="font-family: monospace;">Regards,</span></span></p>
<p style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma, arial, helvetica, sans-serif;"><span style="font-family: monospace;">Dave.</span></span></p>
</body>
</html>