ok, so I used this guide IR Remote Control » Raspberry Pi Geek to make a IR LED to control my TV using my rpi3.
I didn’t really pay attention when I did ‘sudo apt-get install lirc’ and pressed yes to this:
The following extra packages will be installed: libftdi1 liblircclient0 Suggested packages: lirc-x setserial ir-keytable The following packages will be REMOVED: armv7-eventlircd-osmc armv7-lirc-osmc armv7-remote-osmc rbp2-device-osmc The following NEW packages will be installed: libftdi1 liblircclient0 lirc 0 upgraded, 3 newly installed, 4 to remove and 11 not upgraded. Need to get 0 B/398 kB of archives. After this operation, 373 kB disk space will be freed. Do you want to continue? [Y/n]
After realizing that I probably messed something up, I did a ‘sudo apt-get -f install’ and I think that OSMC original lirc configuration is back to normal, but I’m not sure.
using ‘irsend’ command always seems to result in ‘timeout’
my /etc/lirc/lircd.conf file looks like this:
I have the led connected to GPIO 4
my /etc/lirc/hardware.conf looks like this:
LIRCD_ARGS="--uinput" LOAD_MODULES=true DRIVER="default" DEVICE="/dev/lirc0" MODULES="lirc_rpi" LIRCD_CONF="" LIRCMD_CONF=""
I have added the following two lines to the end of /etc/modules
lirc_dev lirc_rpi gpio_out_pin=4
Not sure what to try to get this to work
Edit: Since I’m not really planning on using any other remote functionalities I’m thinking that disabling the lirc integration on OSMC might be the way to go?
Not sure how to do this thought. I have tried disabling lirc in myOSMC before I did the ‘sudo apt-get -f install’ command above to try and repair the damage.
At this moment, lirc option is enabled again, and I have changed the GPIO OUT option to use GPIO 4 instead of the default pin