Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[Deprecated} Using the Flirc USB for remote control with mOde 5.4+
#39
(02-18-2020, 04:32 PM)TheOldPresbyope Wrote:
(02-17-2020, 06:44 AM)rh2018 Wrote: Hi Kent,
I hope this is the more appropriate place for this problem.

The Flirc-CDPlay conflict also occurs with the Python script. Like with Triggerhappy, Flirc stops working after playing CD's.

In your Python script method just restarting the script brings it back. In my case:

Code:
./Flirc-moode-wd.py

Fresh moOde 6.4.2 install, Triggerhappy not enabled.

Strange!

Regards,
Richrd

Hi, Richard.

Thanks to your gentle shove on the other thread I've now switched to using triggerhappy to monitor my Flirc. Works a treat. 

I'm moving to deprecate the Python approach described in this thread. Using triggerhappy is easy peasy in comparison. (My thesis advisor used to warn us that almost every bright idea we were likely to have had already been thought of by someone else.)

In its place, I want to create a HOWTO about using triggerhappy with input devices which emit keycodes. For starters, I'm using the Flirc and a Roku remote control (IR) on one player and an OSMC remote control and its custom adapter (RF) on another, and, of course, the wired Drok volume control discussed in another thread. 

To your question, I have not been able to repro your conflict with CDplay and triggerhappy.

My test environment: moOde 6.4.2, RPi4B, Flirc V2 USB adapter, USB DVD/CD drive

No tweaks other than the addition of CDPlay and configuring triggerhappy for the output from my Flirc V2 (programmed for an old Roku remote control).

All my configured Flirc/Roku actions continue to work with moOde after ejecting a CD. I don't believe the Flirc version is a factor here because triggerhappy scans all input events and not just the ones my Python code chose. Am I misunderstanding the effect you are experiencing?


Regards,
Kent

Hi Kent,

Quote: "All my configured Flirc/Roku actions continue to work with moOde after ejecting a CD"

Using the Python approach Flirc ceases to work on ejecting a CD. I can repeat the problem consistently.

Prior to re-starting the script his might be a clue:

Code:
Traceback (most recent call last):                                                                                    
 File "./Flirc-moode-wd.py", line 16, in <module>                                                                    
   for event in flirc.read_loop():                                                                                  
 File "/usr/lib/python3/dist-packages/evdev/eventio.py", line 46, in read_loop                                      
   for event in self.read():                                                                                        
 File "/usr/lib/python3/dist-packages/evdev/eventio.py", line 71, in read                                            
   events = _input.device_read_many(self.fd)                                                                        
OSError: [Errno 19] No such device

Next I will try a fresh install using Triggerhappy and report.

Regards,
Richard.
Reply


Messages In This Thread
RE: Using the Flirc USB for remote control with mOde 5.4+ - by rh2018 - 02-19-2020, 04:58 AM

Forum Jump: