streamzap remote gives double key presses in kodi

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

streamzap remote gives double key presses in kodi

Postby graysky » Tue Mar 31, 2015 7:30 pm

I am using a streamzap remote on a raspberry pi running 'kodi-standalone -l /run/lirc/lircd'. I have lircd setup and running with my /etc/lirc/lircd.conf.d/streamzap.conf and the remote gives a double key press in Kodi (I hit right arrow and it responds with two right arrows for example). To fix this on x86_64, I simply added the following to /etc/X11/xorg.conf.d/90-streamzap.conf which causes Xorg to ignore the remote as a keyboard device, but since kodi-standalone on the Raspberry Pi does not use Xorg (it uses xinit), I don't think this file is sources as it is on my x86_64 box. Any thoughts to fix the doubling of key presses on the Pi?

$this->bbcode_second_pass_code('', 'Section "InputClass"
Identifier "Ignore Streamzap IR"
MatchProduct "Streamzap"
MatchIsKeyboard "true"
Option "Ignore" "true"
EndSection
')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: streamzap remote gives double key presses in kodi

Postby WarheadsSE » Tue Mar 31, 2015 7:55 pm

xinit still should be using xorg.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: streamzap remote gives double key presses in kodi

Postby graysky » Tue Mar 31, 2015 8:14 pm

I placed the file in the same location but it doesn't seem to be honored.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: streamzap remote gives double key presses in kodi

Postby graysky » Wed Apr 01, 2015 7:56 pm

I am not seeing a /var/log/Xorg.*.log when kodi starts nor do I see anything in journalctl relating to ignoring the IR receiver (though I do see the lines as the kernel and lircd see and initialize it). Love to fix this :)
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: streamzap remote gives double key presses in kodi

Postby moonman » Wed Apr 01, 2015 8:44 pm

Is there a usb receiver module or you are using gpio homemade receiver. If homemade, i had to play with repeat filter in lirc to get rid of double presses.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: streamzap remote gives double key presses in kodi

Postby graysky » Wed Apr 01, 2015 9:13 pm

Nothing homemade here. In my first post I linked the product from amazon. It is a basic USB IR receiver. It works fine with that 90-streamzap.conf I pasted on the x86_64 box using full blown Xorg so I'm thinking it must be something about how our service is calling the executable.

Arch ARM:
$this->bbcode_second_pass_code('', '/usr/bin/kodi-standalone -l /run/lirc/lircd')

Arch
$this->bbcode_second_pass_code('', '/usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: streamzap remote gives double key presses in kodi

Postby moonman » Wed Apr 01, 2015 10:29 pm

I only saw the remote on the picture at amazon without scrolling thrpugh the. It shouldn't be that. Upstream they use xinit because it doesn't work without it. It does on rpi. I didn't dig into that to find out why.
When you are in terminal (or anything where you can type) when you press a key on the remote does it show up on the screen? If not then lirc is not emulating uinput. Launch lirc with different repeat filter args, it might help.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: streamzap remote gives double key presses in kodi

Postby graysky » Sun Apr 05, 2015 11:35 am

Another user with this problem and no practical solution: https://lkml.org/lkml/2013/11/13/315

Any thoughts based on his experience are welcomed.

EDIT: The solution was to blacklist the modules jacking up the input:
$this->bbcode_second_pass_code('', '% cat /etc/modprobe.d/streamzap.conf
install ir_sharp_decoder /bin/false
install ir_xmp_decoder /bin/false
install ir_rc5_decoder /bin/false
install ir_nec_decoder /bin/false
install ir_sony_decoder /bin/false
install ir_mce_kbd_decoder /bin/false
install ir_jvc_decoder /bin/false
install ir_rc6_decoder /bin/false
install ir_sanyo_decoder /bin/false')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 29 guests