[mythtv-users] remote will not work after upgrading Fedora 17 system

Peter Mitchell peterpf_mitchell at yahoo.co.uk
Mon Oct 28 00:39:31 UTC 2013









On Sunday, 27 October 2013, 1:59, Gabe Rubin <gaberubin at gmail.com> wrote:


>
>
>
>
>On Sat, Oct 26, 2013 at 5:22 PM, Gabe Rubin <gaberubin at gmail.com> wrote:
>
>
>>
>>
>>
>>
>>On Sat, Oct 26, 2013 at 3:37 PM, Gabe Rubin <gaberubin at gmail.com> wrote:
>>
>>Hi list,
>>>
>>>I upgraded my mythbox, first from fedora17 to 18 and now to 19 using fed up.  After the first upgrade, the remote stopped working properly.  I used a harmony with a pvr-350 receiver (RC5).
>>>
>>>The system is definitely recognizing keystrokes as verified by dmesg when I start the ir-kbd-i2c module in debug mode.  I have verified that the keymap I am loading is fine and running ir-keytable -r shows keystrokes.  I just no output when I run irw.  I have stopped and restarted lirc plenty of of times, I have tried different lirc.conf files from the lirc-remotes package.  I am just stumped here.
>>>
>>>As an aside, some of the keys appear to be recognized as keyboard keystrokes if I use different keymaps than the custom one I have created (I can verify this by opening a text editor and inputting text with the remote).  I would be fine just getting rid of lirc and using my harmony remote and receiver as a keyboard, but unsure how to do that.
>>>
>>
>>
>>I figured out what may be the problem but unsure how to fix it.  If I run the following command as root (after stopping lirc and removing the lircd lock file)
>>lircd --device=/dev/input/remote --driver=devinput
>>
>>I can then restart myth and have lirc work perfectly.
>>
>>I thought it was an issue with my lirc config file, but this is what that file is:
>>[root at localhost ~]# more /etc/sysconfig/lirc
>>LIRC_DRIVER="devinput"
>>LIRC_DEVICE="/dev/input/remote"
>>
>>
>>
>>So I can use the remote, but I can't just restart the computer and have it work.  I need to run this command first.  I suppose I could not automatically start lirc and then call it from a startup script in rc.local, but it seems like I have my configuration done correctly, so I don't know why this is happening.
>>
>
>
>Continuing to follow-up on this, it looks like it is a bug with the latest stable version of lirc where it won't read arguments from the /etc/sysconfig/lirc.  I already have a script that takes care of some lirc related tasks on startup.  I know have to add this command to the script:
>/usr/sbin/lircd --device=/dev/input/remote --driver=devinput
>
>
>The bug report says that there is a new version that fixes this problem, but it was not working for me and I have already spent all day on this and don't want to diagnose further when I have a solution (albeit, very kludy).  I did find another user reporting on this after spending a full day at it, but I am surprised no others are really having this issue.  Kind of a big deal for lirc so I am also surprised there is not a stable version that fixes the problem.
>
>
>
>_______________________________________________
>mythtv-users mailing list
>mythtv-users at mythtv.org
>http://www.mythtv.org/mailman/listinfo/mythtv-users
>

I had a simmilar issue with lirc and Fedora 18. Basically it is now started by systemd and your old configuration in /etc/sysconfig/lirc is no longer used. What you need to do is modify  /usr/lib/systemd/system/lirc.service to correctly start lirc on boot.
This is an example from one of my machines (It's using an old Compro PVR card). You will need to set the appropriate device name for your system.
-------------------------
[Unit]
Description=LIRC Infrared Signal Decoder
After=network.target

[Service]
Type=forking
PIDFile=/run/lirc/lircd.pid
ExecStart=/usr/sbin/lircd --driver=devinput --device=name=saa7134?IR?(Compro?Videomate?DV

[Install]
WantedBy=multi-user.target
-----------------------

To enable lirc use:
systemctl enable lirc
systemctl start lirc

Regards

Peter



More information about the mythtv-users mailing list