<div dir="ltr">On Thu, Oct 4, 2018 at 12:36 PM Dave Pearson (Lists) <<a href="mailto:lists@the-pearsons.co.uk">lists@the-pearsons.co.uk</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi Greg,<div><br></div><div>Sadly that doesn’t seem to be it.</div><div><br></div><div>Regards,</div><div>Dave<br><br></div></div></blockquote><div><br></div><div><div style="font-family:monospace,monospace" class="gmail_default">Not sure then - that is where all of my lirc mapping files go.  I am not sure how Ubuntu does it nowadays.  That was from the home directory of the mythtv user btw.  So more than likely /home/mythtv/.lirc/mythtv<br></div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div id="m_7057445924262086AppleMailSignature" dir="ltr">Sent from my iPad</div><div dir="ltr"><br>On 4 Oct 2018, at 18:14, Greg Oliver <<a href="mailto:oliver.greg@gmail.com" target="_blank">oliver.greg@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Oct 4, 2018 at 12:04 PM Dave Pearson (Lists) <<a href="mailto:lists@the-pearsons.co.uk" target="_blank">lists@the-pearsons.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You, sir, are an absolute genius! I am, finally almost there with my MCE remote on Ubuntu 18.10.<br>
<br>
I can see all of the correct key presses when I monitor my remote with irw, so that’s good.<br>
<br>
The final piece is to get it to work in mythfrontend - I’ve put my lircrc file in ~/.mythtv, but nothing happens in the front end when I use the control. I can only assume I’ve named the file wrong or it needs to be in a different location - any ideas?<br>
<br>
Regards,<br>
Dave<br>
<br></blockquote><div><br></div><div><div style="font-family:monospace,monospace">.lirc/mythtv</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Sent from my iPad<br>
<br>
> On 4 Oct 2018, at 15:07, Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>> wrote:<br>
> <br>
>> On Thu, 4 Oct 2018 20:10:59 +1000, you wrote:<br>
>> <br>
>> I know lots of people have been having remote control problems after<br>
>> upgrading to 18.04 and I'm yet another one. But I think I'm very close.<br>
>> <br>
>> I use a Harmony universal remote which worked fine on my 16.04 Ubuntu<br>
>> frontend. I had it set up with devinput so I didn't need to run lirc .<br>
>> After upgrading to Ubuntu 18.04 the only buttons that generate a response<br>
>> in MythTV are up, down, left, and right.<br>
>> <br>
>> When I run ir-keytable I get a list of mappings as per below, and when I<br>
>> run ir-keytable -t in a terminal window I get key responses.<br>
>> <br>
>> ~$ sudo ir-keytable --read --device=/dev/input/event4<br>
>> scancode 0x800f0400 = KEY_NUMERIC_0 (0x200)<br>
>> scancode 0x800f0401 = KEY_NUMERIC_1 (0x201)<br>
>> scancode 0x800f0402 = KEY_NUMERIC_2 (0x202)<br>
>> scancode 0x800f0403 = KEY_NUMERIC_3 (0x203)<br>
>> scancode 0x800f0404 = KEY_NUMERIC_4 (0x204)<br>
>> scancode 0x800f0405 = KEY_NUMERIC_5 (0x205)<br>
>> scancode 0x800f0406 = KEY_NUMERIC_6 (0x206)<br>
>> scancode 0x800f0407 = KEY_NUMERIC_7 (0x207)<br>
>> scancode 0x800f0408 = KEY_NUMERIC_8 (0x208)<br>
>> scancode 0x800f0409 = KEY_NUMERIC_9 (0x209)<br>
>> scancode 0x800f040a = KEY_DELETE (0x6f)<br>
>> scancode 0x800f040b = KEY_ENTER (0x1c)<br>
>> scancode 0x800f040c = KEY_SLEEP (0x8e)<br>
>> scancode 0x800f040d = KEY_MEDIA (0xe2)<br>
>> scancode 0x800f040e = KEY_MUTE (0x71)<br>
>> scancode 0x800f040f = KEY_INFO (0x166)<br>
>> scancode 0x800f0410 = KEY_VOLUMEUP (0x73)<br>
>> scancode 0x800f0411 = KEY_VOLUMEDOWN (0x72)<br>
>> scancode 0x800f0412 = KEY_CHANNELUP (0x192)<br>
>> scancode 0x800f0413 = KEY_CHANNELDOWN (0x193)<br>
>> scancode 0x800f0414 = KEY_FASTFORWARD (0xd0)<br>
>> scancode 0x800f0415 = KEY_REWIND (0xa8)<br>
>> scancode 0x800f0416 = KEY_PLAY (0xcf)<br>
>> scancode 0x800f0417 = KEY_RECORD (0xa7)<br>
>> scancode 0x800f0418 = KEY_PAUSE (0x77)<br>
>> <br>
>> And my $HOME/.mythtv/lircrc looks like this:<br>
>> ...<br>
>> begin<br>
>>   remote = devinput<br>
>>   prog = mythtv<br>
>>   button = KEY_NUMERIC_1<br>
>>   config = 1<br>
>>   repeat = 0<br>
>>   delay = 10<br>
>> end<br>
>> <br>
>> begin<br>
>>   remote = devinput<br>
>>   prog = mythtv<br>
>>   button = KEY_NUMERIC_0<br>
>>   config = 0<br>
>>   repeat = 0<br>
>>   delay = 10<br>
>> end<br>
>> ...etc...<br>
>> <br>
>> So devinput is getting the button presses and they're being mapped to keys<br>
>> like KEY_NUMERIC_0, KEY_PAUSE etc but MythTv frontend doesn't seem to be<br>
>> registering these button presses. So what have I omitted that will fill in<br>
>> the final piece of the jigsaw and get MythTV to respond? Is there another<br>
>> config file somewhere I have to modify?<br>
>> <br>
>> Regards,<br>
>> Phill<br>
> <br>
> What you are seeing is what happens when lirc is not working and you<br>
> are getting keystrokes directly from the devinput driver, but the<br>
> devinput driver is using the standard key table.  If you were<br>
> configuring things in the $HOME/.lircrc files, and that changing that<br>
> configuration affected mythtv, then you were in fact using lirc.  So<br>
> you will need to get it working again.  If you were using a custom<br>
> keytable at the ir-keytable level and had lirc disabled, you will need<br>
> to reinstall and use it.  There is not enough information in your post<br>
> to tell me which way it used to work for you.<br>
> <br>
> I have been through the process of getting lirc to work in 18.04, and<br>
> it was a complete pain.  The basic problem is that the Python tools<br>
> used by lirc for configuration (and also, I think, at startup of the<br>
> lirc daemon, but I have not verified that) were completely broken as<br>
> installed from the lirc package.  The package maintainer must have<br>
> been testing the packages on his build system that had copies of<br>
> various files already installed on accessible paths, because they were<br>
> not installed correctly by the package.  To fix all of the mess, I<br>
> have written a script, which works for me on my test 18.04.1 virtual<br>
> machine and on my laptop after I upgraded it from 16.04 to 18.04.1. It<br>
> is available for download from my web server:<br>
> <br>
> <a href="http://www.jsw.gen.nz/mythtv/lirc-ubuntu-18.04-install.sh" rel="noreferrer" target="_blank">http://www.jsw.gen.nz/mythtv/lirc-ubuntu-18.04-install.sh</a><br>
> <br>
> To use it, download it, do a "chmod a+x" on it, and then run it as<br>
> root.  It has to download the source code for the lirc package,<br>
> compile it and then use the source code directories as the source of<br>
> missing headers and libraries so that a pip3 install of part of the<br>
> package will work.  To do all that, it may have to install several<br>
> packages other than the lirc package, if they are not already<br>
> installed, including a lot of other packages that are required for<br>
> those packages.  It cleans up after itself, but will leave behind some<br>
> newly installed packages.<br>
> <br>
> Apart from fixing the lirc package installation, the script also<br>
> disables the lircmd and lircd-uinput daemons, which are automatically<br>
> enabled by the package.  Until I disabled them, although lirc was<br>
> working, on autorepeating keys there were extra keystrokes leaking<br>
> through from another path than lirc, but only some of the time.<br>
> Disabling those two deamons fixes that.  The problem with those<br>
> daemons is that as I was not using them, I had not configured them,<br>
> and their default configurations as installed by the lirc package were<br>
> causing the problem.<br>
> <br>
> Once you have run my script, you should be able to run lirc-setup and<br>
> use its GUI to configure your remote.  You may need to reboot first.<br>
> <br>
> I use an MCE remote and three Hauppague HVR-900 and Win-TV Nova-T<br>
> remotes (they are identical), using the kernel devinput driver.  In<br>
> 16.04 that required some custom files in the /usr/share/lirc path that<br>
> had the keystrokes in them fixed to exactly match my remotes.  Those<br>
> files were not necessary in 18.04.1 as the standard lirc files now<br>
> seem to have those fixes.  But the devinput config files that are<br>
> loaded now have slightly different names for the devices.  After I<br>
> configured lirc using the Python tools, I found that my remotes were<br>
> coming up with the name "devinput-32", which did not match all the<br>
> "devinput" names in my $HOME/.lircrc files.  I had to go into<br>
> /etc/lirc/lircd.conf.d and edit the devinput.lircd.conf file there to<br>
> change the "devinput-32" name to "devinput" to get them to match.  It<br>
> would also be possible to change all the "devinput" names in the<br>
> $HOME/.lircrc files to "devinput-32", but that would be a lot more<br>
> work.<br>
> <br>
> WARNING: If you upgrade a working lirc setup from 16.04 or before,<br>
> where you have customised config files referenced in<br>
> /etc/lirc/hardware.conf and stored under /usr/share/lirc, make sure<br>
> you take copies of the customised files and put them somewhere safe<br>
> before doing the upgrade to 18.04.  Somewhere under /root or<br>
> /home/<username> is safe.  The 18.04 upgrade will delete all files<br>
> under /usr/share/lirc!!!<br>
> _______________________________________________<br>
> mythtv-users mailing list<br>
> <a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
> <a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
> <a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
> MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div></div>
<pre>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
</pre></div></blockquote></div></div>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div>