Irrecord segmentation fault

Hey y’all, i followed the how to do a support post so i’m hoping this is a solveable problem.

I’m trying to add an additional universal remote so that i can do all the home theater things using just one. This new ir remote learned my tv and soundsystem codes really easily, but the osmc remote uses fr (i think?). So it can’t learn ir codes from the osmc remote.

I have a vero 4k+, a tcl/roku tv, and a denon avr sound system.

I found these semi-helpful other resources which got me to where i am at right now;

So. The setup. I borrowed some ir codes from a spare vcr remote and mapped those to the directional control and other side buttons i wanted to use in my universal remote. Then, i ran irrecord to try and record those codes. (I still have no plan other than trial and error to figure out which lirc code name corresponds with what button on the vero 4k remote, so if you have a list or a map that would be awesome).

However, irrecord has been giving me a segmentation fault error. First, it does successfully check for (and fail to find) any ir interference. Then it also manages to accept me pressing a random ir button. However, every time i try to record a named code (btn_left was my go to) the program tells me ‘segmentation fault’ and then crashes. I have attached a screenshot of it in case the logs aren’t good enough.

My log pastebin is here; https://paste.osmc.tv/hilorisine

The only other thread that mentions an irrecord segfault says to downgrade or wait for an update to the software as a fix, which alright, but is there an alternative for learning the directional buttons on an ir remote? Surely it’s not that hard to do on a media center device, and im just looking in the wrong spot.

Skip the irrecord thing and just setup your universal remote to something that already has a configuration available in OSMC. If you go into the My OSMC add-on there is a remotes section which you can select which ir remote it will respond to. An Xbox or MCE would be a good choice. If there is anything that isn’t mapped the way you want by default just use the keymap editor add-on to change how the buttons act.

None of the samsung or xbox codes in my universal remote match any of the samsung or xbox remotes already set up in osmc. I have no idea what the osmc rc6 remote is listed under for my universal remote.

Having seen the list of remotes i am now quite sure that i could use irrecord to get my stolen ir codes to work if irrecord stopped segfaulting.

I don’t see how it could possibly be true that a universal remote exists with xbox codes that don’t match up to one of the three in OSMC. The rc6-mce-lirc one may be listed in the universal remote as Microsoft Media Center or Windows PC. MCE remotes have been in most universal remotes for several decades now.

The universal remote i have is this one; Streamer Remote | One For All

Turns out it does have a couple codes for microsoft remotes listed. None of them worked either.

I sorted out the irrecord segfault issue. Removing the -f (force) from the command made it run. I used the browse function to add/enable the custom .lircd.conf file and it didn’t work either. Also, leaving the remotes app menu reset the selected remote and removed my custom remote from the list altogether. Is there a way to make my custom remote stay on the menu? Its currently stored in the ~ folder.

So now i’m very seriously wondering if it isn’t the universal remote that isn’t sending ir signals, but rather, osmc that isn’t accepting them for some reason.

There is a check box labeled ‘disable RC6’ in the osmc remotes menu, but changing it appears to do nothing. I have no idea what other options i would need to look through to see if osmc is accepting ir input or not.

When you highlight a different remote type and click on the select button on your remote there should be a popup that asks you to confirm your new selection. Are you seeing something different? The selection is sticking for me. The checkbox for RC6 is to make those remotes use RC5 instead which I think is suppose to work better for some.

Only the custom option i created with irrecord is unable to be selected and is removed from the list once i leave the remotes menu for other menus. Defaults that are already there are able to be confirmed and selected just fine.

I figured out why my universal remote wasn’t working with anything; it turns out that specifically learned ir codes have priority over the quick setup from its memory. A hard reset and now osmc can see my ir buttons. I ended up choosing the rc6 remote in the osmc menu (since it was the first one to work), but two of the buttons on that have the same ir code as two other buttons, so i can have a home button or an info button, but not both. Most everything else is working though, so i’ll call this a partial win.

I would love to be able to use custom ir codes (which i very much cannot right now due to the impermanence of custom config files) but i’ll save that for another afternoon. Thanks for helping me out with this.

If you turn on debug logging do both keys show the exact same handlekey event in Kodi’s log (or alternatively the same keyid in keymap editor)? Kodi default keymaps the same actions to a number of keys but if it is seeing them as different keys you can change what they do easy enough.

Where is your custom file located? All that selection is doing is changing a symlink (and probably reloading something). I suppose you could manually change the symlink if you wanted…

osmc@VeroV:~$ ls -la /etc/lirc/
total 1508
drwxr-xr-x  2 root root   4096 Aug  7 19:27 .
drwxr-xr-x 74 root root   4096 Aug  6 18:50 ..
-rw-r--r--  1 root root   1089 May 26  2022 apple-silver-A1294-lircd.conf
-rw-r--r--  1 root root  26870 May 26  2022 apple-silver-A1294-lircd.png
-rw-r--r--  1 root root   1038 May 26  2022 apple-white-A1156-lircd.conf
-rw-r--r--  1 root root  39796 May 26  2022 apple-white-A1156-lircd.png
-rw-r--r--  1 root root  23092 May 26  2022 atilibusb-lircd.conf
-rw-r--r--  1 root root 169574 May 26  2022 atilibusb-lircd.png
-rw-r--r--  1 root root   1586 May 26  2022 dell-travel-remote-nu851.lircd.conf
-rw-r--r--  1 root root 157000 May 26  2022 dell-travel-remote-nu851.lircd.png
-rw-r--r--  1 root root      0 May 26  2022 dvicoo-lircd.conf
-rw-r--r--  1 root root  42554 May 26  2022 dvicoo-lircd.png
-rw-r--r--  1 root root   4394 May 26  2022 hauppage45-pvr350-lircd.conf
-rw-r--r--  1 root root  39180 May 26  2022 hauppage45-pvr350-lircd.png
-rw-r--r--  1 root root   2013 May 26  2022 kls-1.6-lircd.conf
-rw-r--r--  1 root root  54790 May 26  2022 lircd-full.conf
lrwxrwxrwx  1 root root     28 Aug  7 19:27 lircd.conf -> /etc/lirc/xbox360-lircd.conf
-rw-r--r--  1 root root   1175 May 26  2022 osmc-remote-lircd.conf
-rw-r--r--  1 root root 142537 May 26  2022 osmc-remote-lircd.png
-rw-r--r--  1 root root   2717 May 26  2022 philips-srm-7500-lircd.conf
-rw-r--r--  1 root root  59276 May 26  2022 philips-srm-7500-lircd.png
-rw-r--r--  1 root root  11197 May 26  2022 rc6-mce-lircd.conf
-rw-r--r--  1 root root  29164 May 26  2022 rc6-mce-lircd.png
-rw-r--r--  1 root root   5450 May 26  2022 samsung-lircd.conf
-rw-r--r--  1 root root 131181 May 26  2022 samsung-lircd.png
-rw-r--r--  1 root root  10146 May 26  2022 ttusbir-lircd.conf
-rw-r--r--  1 root root   1470 May 26  2022 wdtvlive-remote-lircd.conf
-rw-r--r--  1 root root 113255 May 26  2022 wdtvlive-remote-lircd.png
-rw-r--r--  1 root root    992 May 26  2022 xbox-lircd.conf
-rw-r--r--  1 root root 157549 May 26  2022 xbox-lircd.png
-rw-r--r--  1 root root   1670 May 26  2022 xbox-one-lircd.conf
-rw-r--r--  1 root root 120143 May 26  2022 xbox-one-lircd.png
-rw-r--r--  1 root root   2698 May 26  2022 xbox360-lircd.conf
-rw-r--r--  1 root root 109895 May 26  2022 xbox360-lircd.png
-rw-r--r--  1 root root   1045 May 26  2022 yausbirv2_frontswitch.conf
osmc@VeroV:~$

EDIT: I just checked adding a custom conf file and what I found was if you place the file in /etc/lirc/ it shows up every time you open the remote screen but if it is located somewhere else the conf file is still active but just not displayed in that screen anymore. I’m not sure if @anxdpanic wants to tweak the behavior of My OSMC for this or not. I don’t remember it getting brought up as an issue previously.