[mythtv-users] Raspberry Pi 4 FrontEnd Remote Control Issues

Barry Martin barry3martin at gmail.com
Sun May 17 21:00:51 UTC 2020


Hi Stephen!


A couple/few/several questions, please.


> You have to edit the /etc/lirc/irexec.lircrc file first. In you case, 
> comment out or delete everything in the file, then select one key from 
> the remote to start mythfrontend

I didn’t have one to begin with so figured just create it as you said to 
delete everything inside. after troubleshooting not sure the lack of a 
file isn’t pointing to another problem. What I do have in the file is:

begin

      remote = devinput

      prog = mythtv

      button = KEY_C

      config = “su -l pi -c /home/pi/Load_MythFE.sh &”

      repeat = 0

      delay = 0

end



Without the -c switch it was complaining “cannot execute binary file”. 
Found that little trick on the web. (Found what it was ‘complaining’ 
about when testing at Terminal.)


A sub-problem is the need to enter a password. The insertion of the -c 
switch didn’t change the need. So now need to find out how to do that. 
The good news is we (OK, you!) can be ‘sloppy’ and have a plain text 
display as all the FEs have a common password.


> It is possible that it will need a DISPLAY=:0 environment setting as
> well, in which case you would probably need to run a script from the
> su -l command and put the environment setting in there.

And having problems figuring that one out. The Load_MythFE.sh is:


#!/bin/bash

DISPLAY=:0 <==zero

su -l pi -c /usr/bin/mythfrontend


Just dawned on me: do I need the ‘su -l pi -c’ string as it’s in irexec 
file…… Nope! Now to figure out passing the the password.


Well, made your life a hare simpler! Will continue to try to figure out 
the password thing.


As always, TIA!

Barry


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200517/f512de38/attachment.htm>


More information about the mythtv-users mailing list