<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 14, 2020 at 10:29 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</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">On Fri, 14 Feb 2020 09:41:00 -0800, you wrote:<br>
<br>
>This is probably an easy question bordering on a dumb question but I have<br>
>been googling and trying things all morning and nothing works.<br>
><br>
>I want to add a command to my programmable learning remote. I first set it<br>
>up 10 years ago so do not remember what I did except that I used an old<br>
>remote, captured the key codes, then used them to set up lircrc and my<br>
>remote. All I want to do is find a key code that is not used and map it to<br>
>"T" so I can toggle CC with a single press of my remote.<br>
><br>
>My problem is that I cannot figure out how to read the key presses of my<br>
>old remote. irw will read the key presses of my learning remote but not the<br>
>old remote. I tried ir-keytable but I get an error "/sys/class/rc/: No such<br>
>file or directory" and googling for solutions there offers suggestions that<br>
>do not work.<br>
><br>
>My question is: how do I read the keycodes of my old remote? If I can do<br>
>that, I can edit lircrc and add my new command.<br>
><br>
>Allen<br>
<br>
Shut down lirc and run:<br>
<br>
sudo ir-keytable -t<br>
<br>
That should show you what each key on your remote is when you press<br>
it.<br>
<br>
You may need to work out which IR receiver you are using if there is<br>
more than one.  Use:<br>
<br>
sudo ir-keytable<br>
<br>
to show all the IR receivers, then add a "-s rc1" option for example<br>
to select the second (rc1) receiver.<br>
<br>
To shut down lirc on systemd based systems (Ubuntu, Debian, ...), do<br>
this:<br>
<br>
sudo systemctl stop lircd<br>
<br>
and to restart it afterwards:<br>
<br>
sudo systemctl start lircd<br>
_______________________________________________<br><br></blockquote><div><br></div>dad@NewMyth:~$ sudo systemctl stop lircd<br>Failed to stop lircd.service: Unit lircd.service not loaded.<br>dad@NewMyth:~$ ps aux | grep lirc<br>root      1081  0.0  0.0   6352   260 ?        Ss   10:39   0:00 lircd -H udp -d 5000<br>dad       2136  0.0  0.0   4688   868 pts/0    S+   10:42   0:00 grep --color=auto lirc<br>dad@NewMyth:~$ sudo kill 1081<br>dad@NewMyth:~$ sudo ir-keytable -t<br>/sys/class/rc/: No such file or directory<br>dad@NewMyth:~$ sudo ir-keytable<br>/sys/class/rc/: No such file or directory<br>dad@NewMyth:~$<br><div><br></div><div>I think this may have something to do with the IR being in an HDHomerun. I really don't know.</div><div><br></div><div>But I found an unused keycode and can use that key on the old remote to program the new one so I think this will work fine.</div><div><br></div><div>Allen </div></div></div>