OSMC and irrecord

Next issue, long time ago i did this successfully.

I own a Samsung TV and a remote that can handle Samsung TV and Samsung BDm now i wanna record the bd for the raspberry pi.

Pin for the Ir sensor should be set.

What i tried:

osmc@osmc:/etc/lirc$ osmc@osmc:~$ cd /etc/lirc
osmc@osmc:/etc/lirc$ systemctl stop mediacenter
osmc@osmc:/etc/lirc$ systemctl stop eventlircd
osmc@osmc:/etc/lirc$ systemctl stop system-lircd_helper.slice
osmc@osmc:/etc/lirc$ irrecord -f -d /dev/lirc0 samsung2.conf
Using raw access on device /dev/lirc0
Could not open new config file samsung2.conf
Could not init hardware (lircd running ? → close it, check permissions)
osmc@osmc:/etc/lirc$

Any ideas ?

Try run as root and stop LIRC first

Ok that worked, but at the point where i named the first key, i got this:

Now hold down button “KEY_1”.
Segmentation fault

BEFORE i had any chance to press a button on the remote…strange, did this many times, but never had an error like that

Tried different remotes, same problem.

Update, did a reboot, tried stop lirc, what worked before, and again…not working

Maybe try rebooting and then just…

systemctl stop eventlircd
irrecord -d /dev/lirc0 --driver default

while you are sitting in your home folder. If that works you can rename and move the conf after the fact. There is no need to stop mediacenter.

Now we are going to nice holidays in italy, when i have wifi, i gonna try it there, else when we r back.
My old bookmarks of the howtos, that i used before are not working anymore.
Right now i set it up to samsung standard remote.