n0bel / PiClock

A Fancy Clock built around a monitor and a Raspberry Pi
MIT License
567 stars 183 forks source link

The remote control works incorrectly. #238

Closed xenon462 closed 1 year ago

xenon462 commented 2 years ago

When you press the button, it is an endless turning of pages on the clock. All other commands of the remote control correctly. https://drive.google.com/file/d/1w3wbx3bP2eGtwj77UM_yU2t1ldVy__4O/view?usp=sharing For example, if you set the commands to execute Python files into the /etc/lirc/irexec.lircrc file, everything works fine. Switching the mouse and keyboard normal. irexec lircrc I use the remote HX1838 HX1838 Here are my settings: lircd.conf.txt lirc_options.conf.txt changes in /etc/lirc/lirc_options.conf device = /dev/lirc0 uinput = False Do not help.

Python version Python 2.7.13 The clock page switches infinitely. What could be the problem?

xenon462 commented 2 years ago

Added imitation of keystrokes install xautomation

sudo apt-get install xautomation

Edit file irexec.lircrc

sudo nano /etc/lirc/irexec.lircrc

Change strings config

begin prog = irexec button = KEY_LEFT config = sudo -u pi DISPLAY=:0 xte 'key Left' end

begin prog = irexec button = KEY_RIGHT config = sudo -u pi DISPLAY=:0 xte 'key Right' end