1

I have a little problem with my Raspberry Pi. I have installed lirc and then I have done the following.

Added

#added for lirc
dtoverlay=gpio-ir,gpio_pin=23

to my /boot/config.txt and changed the /etc/lirc/lirc_options.conf file:

#driver          = devinput
#device          = auto
driver = default
device = /dev/lirc0

After rebooting i tested it by pressing one button

pi@raspberrypi:/etc/lirc $ mode2 -d /dev/lirc0
Using driver default on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
space 16777215
pulse 9127
space 4474
pulse 620
space 517
pulse 616

and many more numbers, so I thought at least that works. But if I try to generate a config file with irrecord -d /dev/lirc0 ~/lircd.conf only the following file is generated.

begin remote

name cheap_amazon_remote bits 0 flags CONST_LENGTH eps 0 aeps 0

one 0 0 zero 0 0 gap 50000 toggle_bit_mask 0x0 frequency 38000

  begin codes
      KEY_F1                   0x0
      KEY_F2                   0x0
      KEY_F3                   0x0
      KEY_F4                   0x0
  end codes

end remote

And thats the reason the test with irw only shows KEY_F1 no matter what I press. I don't understand what I did wrong an would be gratefull for any help.


Update

Sadly the Answer from the comments didn't help me. I found this (https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=235256) forum and followed the tutorial, because I also realised that with mode2 I also get a second pulse. Sadly it didn't work. I followed the tutorial until I need to install. It failed as told in the tutorial but with the following error message

Reading package lists... Done
E: Unsupported file ./liblirc0_0.10.1-5.2_armhf.deb given on commandline
E: Unsupported file ./liblircclient0_0.10.1-5.2_armhf.deb given on commandline
E: Unsupported file ./lirc_0.10.1-5.2_armhf.deb given on commandline

Then I tried to do the cp commands but my /etc/lirc folder only has the following content

hardware.conf  lircd.conf    lircmd.conf
irexec.lircrc  lircd.conf.d  lirc_options.conf

I don't understand how to fix this or what I did wrong.


Edit

uname -a 
Linux raspberrypi 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux

cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

MatsK
  • 2,882
  • 3
  • 17
  • 22
Dani
  • 11
  • 2

0 Answers0