stevemarsbar
Posts: 3
Joined: Tue Jun 25, 2019 4:14 pm

Raspbian Buster and LIRC

Tue Jun 25, 2019 4:20 pm

Hi All,

I'm struggling to get LIRC to work on Raspbian Buster. It's a completely new install of Raspbian Buster downloaded today.

I have added the following line to /boot/config.txt and rebooted:

Code: Select all

dtoverlay=gpio-ir,gpio_pin=24
dtoverlay=gpio-ir-tx,gpio_pin=25
and then installed Lirc via command:

Code: Select all

sudo apt install lirc
however when trying to use lircd, I get a segmentation fault.

Any pointers or ideas? I've also tried building lirc from source.

Steve


stevemarsbar
Posts: 3
Joined: Tue Jun 25, 2019 4:14 pm

Re: Raspbian Buster and LIRC

Wed Jun 26, 2019 1:48 pm

Thanks!

The final steps to config LIRC on Buster to send IR commands were:

Add the following line to /boot/config.txt and reboot:

Code: Select all

dtoverlay=gpio-ir-tx,gpio_pin=17

Attempt install of lirc (It wiill fail but will create directory structure etc):

Code: Select all

sudo apt install lirc

Rename the LIRC config file:

Code: Select all

sudo cp /etc/lirc/lirc_options.conf.dist /etc/lirc/lirc_options.conf

Update the following lines in /etc/lirc/lirc_options.conf:

Code: Select all

driver = default
device = /dev/lirc0

Finish installation of LIRC:

Code: Select all

sudo apt install lirc

Install your desired remote and use :)

MallocArray
Posts: 4
Joined: Sat Feb 23, 2019 8:09 pm

Re: Raspbian Buster and LIRC

Thu Jun 27, 2019 6:16 pm

Does anyone know if copying the .conf.dist to .conf is an permanent step or just a bug that will be resolved? The "apt install lirc" fails halfway through but copying two files like this and then trying to install it again does allow it to complete as mentioned in this thread. It was not required in earlier versions

Code: Select all

sudo cp /etc/lirc/lirc_options.conf.dist /etc/lirc/lirc_options.conf
sudo cp /etc/lirc/lircd.conf.dist /etc/lirc/lircd.conf

portafreak
Posts: 6
Joined: Tue Dec 12, 2017 12:29 am

Re: Raspbian Buster and LIRC

Mon Aug 05, 2019 11:54 pm

It seems to be working for transmitting but cannot get it to record new remote with this command:

Code: Select all

irrecord -d /dev/lirc0 out.conf
Warning: Running as root.
Using driver default on device /dev/lirc0
Mode not supported
It was working great with Jessie and Raspberrypi3.

My settings in /boot/config.txt:

Code: Select all

dtoverlay=gpio-ir,gpio_pin=23
dtoverlay=gpio-ir-tx,gpio_pin=22

portafreak
Posts: 6
Joined: Tue Dec 12, 2017 12:29 am

Re: Raspbian Buster and LIRC

Sun Aug 11, 2019 6:43 pm

I have found a way to make it work by following this post on github: https://github.com/raspberrypi/linux/issues/2993

jerihaly
Posts: 1
Joined: Thu Aug 29, 2019 2:39 am

Re: Raspbian Buster and LIRC

Thu Aug 29, 2019 3:05 am

I have noticed that switching "lirc0" with "lirc1" gets mode2 and irrecord to work. I am a total noob and the only reason I tried this is because I noticed both lirc0 and lirc1 files in /dev folder while messing around trying to learn more about the lirc files. Why is this? And why was this changed? It worked using Jesse before and now Buster requires gpio-ir instead of lirc_rpi (I do not have a good understanding of either.) and need to change file names to finish installing? I do not understand why this was changed on such a fundamental level. Also currently having trouble with irsend after irrecord successfully created a file. irrecord created file in /home/pi and I copied to /etc/lirc.
Returns as:
bash: verizon: No such file or directory.

Return to “Troubleshooting”