10-25-2021, 02:25 PM
(10-25-2021, 09:00 AM)Pixxel Wrote: hi,
the problem will be somewhere other than in the IR remote control settings. I used LIRC + R_attenu earlier (because allo relay attenuator) and everything worked until moode version 7. After the 7 series was released, then it stopped working stably. It was as if moode froze the processes after a moment of inactivity. I spent many tens of hours solving the problem, but nothing helped. It always behaves the same:/
Every time Moode updates I need to do something to get the IR to work again. On in place updates check rc.local and config.txt. On full re install I wrote a script that might help. Istart by putting my files into a sudirectory of home I call PC. The lirc reinstall line became critical around moode 5.0.
Code:
Setup Code:
sudo apt-get update
sudo apt-get install -y lirc
sudo cp /home/pi/PC/home/pi/.lircrc /home/pi/.
sudo cp /home/pi/PC/boot/ssh /boot/.
sudo cp -r /home/pi/PC/etc/lirc/* /etc/lirc/.
# do final change for ir remote and re install
sudo sed -i -e "\$adtoverlay=gpio-ir,gpio_pin=18" /boot/config.txt
sudo apt-get install -y lirc
sudo sed -i -e "\$isudo -u pi irexec -d &" /etc/rc.local
sudo reboot