disable xbmc remote events while subprocess popen is active - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +--- Thread: disable xbmc remote events while subprocess popen is active (/showthread.php?tid=203055) |
disable xbmc remote events while subprocess popen is active - JasonPell - 2014-08-27 I am working on a feature in youtube plugin to open chrome full screen for DRM. I have irxevent sending keyboard events to browser. However the play button is still being captured and acted on by xbmc. This results in multiple browser tabs open. I tried call LIRC.Stop but does not make difference. I removed the play event from my irxevent script so its not that. I am on Ubuntu 14.04 with a MCE remote using lirc not kernel module Any advice appreciated including pointers for debugging further https://github.com/pellcorp/youtube-xbmc-plugin/blob/issue71_purchase_support/plugin/YouTubeBrowser.py RE: disable xbmc remote events while subprocess popen is active - JasonPell - 2014-08-28 I managed to resolve this myself. LIRC.Stop was indeed doing what it was supposed to. Unfortunately XOrg was registering my remote as a keyboard / mouse as well, so regardless of the LIRC support being turned off, Xorg was still generating equivalent keyboard events. Thanks to this post: http://ubuntuforums.org/showthread.php?t=1683015 I now have a well behaved feature which does not trigger the IR I added the following to /usr/share/X11/xorg.conf.d/90-mce_usb.conf and restarted X Windows. I then added the LIRC.Stop and LIRC.Start to my browser python script and all is well. Section "InputClass" Identifier "Ignore MCE_USB as Keyboard input" MatchProduct "Media Center Ed. eHome Infrared Remote Transceiver (0609:0334)" MatchIsKeyboard "true" Option "Ignore" "true" EndSection Section "InputClass" Identifier "Ignore Second MCE_USB as Keyboard input" MatchProduct "MCE IR Keyboard/Mouse (mceusb)" MatchIsKeyboard "true" Option "Ignore" "true" EndSection |