From: Bengt M. <bu...@be...> - 2021-04-25 12:08:07
|
On 4/22/21 8:30 PM, Mary Strimel wrote: > > > On Thu, Apr 22, 2021 at 12:39 PM Mary Strimel <mar...@gm... > <mailto:mar...@gm...>> wrote: > > > > On Thu, Apr 22, 2021 at 12:02 PM Bengt Martensson > <bu...@be... <mailto:bu...@be...>> wrote: > > On 4/22/21 4:57 PM, Mary Strimel wrote: > > > > > > Try > > > > $ sudo mode2 --driver=uirt2_raw --device=/dev/ttyUSB0 > --keep-root > > --loglevel=10 > > > > Thanks - mode2 stops after giving the message at the end: > > > > mary@mythbox:~$ sudo mode2 --driver=uirt2_raw > --device=/dev/ttyUSB1 > > --keep-root --loglevel=10 > > Using driver uirt2_raw on device /dev/ttyUSB1 > > Trying device: /dev/ttyUSB1 > > Using device: /dev/ttyUSB1 > > Warning: Running as root. > > (Note that the previous error does not occur.) Stops?? Ends or > waits for > input? Assuming the latter, you send a (preferably well known) > IR signal > to the device. > > Of course it was the latter - how soon I forgot. Yes, the error has > gone. On pressing one button one time, I get a ton of output that > ends with "readdata() failed". > Here is an example of the output: > pulse 550 > space 1650 > pulse 550 > space 1600 > pulse 550 > space 1650 > pulse 550 > space 1600 > pulse 550 > space 1600 > pulse 550 > readdata() failed > > > Update: after some more fussing around, I was able to get irsend to > work!! irw doesn’t work but no worries, it’s only irsend that I need. I > will have to spend some time on a udev rule, which I did not have on my > old computer but whatever, I’m just delighted to have something working. > Thanks so much Bengt for your sage assistance! Happy to hear that it is working for you!! Welcome to Lirc, the project that in almost 25 years never reached version 1.0... There are a number of guides available for setting up udev rules. Please try Lirconian (https://github.com/bengtmartensson/Lirconian, also available at pypi) as an alternative to Lirc's quirky irsend. Greetz, Bengt |