skerit / romcollectionbrowser

Automatically exported from code.google.com/p/romcollectionbrowser
GNU General Public License v2.0
0 stars 0 forks source link

XBMC does not get focus back after running snes9x-gtk #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure SNES games to launch with snes9x-gtk
2. Launch Game and then quit/close snes9x

What is the expected output? What do you see instead?
XBMC stays windowed in the background without focus.

What version of the product are you using? On what operating system?
RCB 0.8.4 XBMC 10 Dharma

Please provide any additional information below.
I've got also Kega Fusion working ok for Megadrive roms, this does not happen 
with it.

Original issue reported on code.google.com by alcides....@gmail.com on 2 May 2011 at 1:10

GoogleCodeExporter commented 9 years ago
Nevermind, I rebooted and it doesn't happen anymore. 

Original comment by alcides....@gmail.com on 2 May 2011 at 1:19

GoogleCodeExporter commented 9 years ago
OK I found out what's going on. I'm not disabling XBMC as a LIRC client when 
switching to the emulator.
Since my joystick has only six buttons, I've mapped Start and Select to my 
remote. When I press them XBMC also reacts to the remote and that makes it lose 
focus somehow.

Original comment by alcides....@gmail.com on 2 May 2011 at 5:57

GoogleCodeExporter commented 9 years ago
Did you find a work around for this issue (I guess disabling LIRC is not 
possible)? Or do you have to switch back to XBMC manually (with keyboard/mouse)?

Original comment by maloep on 3 May 2011 at 6:47

GoogleCodeExporter commented 9 years ago
You can make XBMC stop & start listening to LIRC with the commands:

xbmc-send -a "LIRC.Stop"
xbmc-send -a "LIRC.Start"

I've put these in a shell script before & after launching the emulator. Like 
this:

#Stop XBMC from listening to LIRC 
xbmc-send -a "LIRC.Stop"

#Change LIRC mode
lirc_mode ~/.lircrc set emus

#Start emulator
snex9x-gtk "$1"

#Change LIRC mode back
lirc_mode ~/.lircrc set default

#resume LIRC on XBMC
xbmc-send -a "LIRC.Start"

Original comment by alcides....@gmail.com on 3 May 2011 at 6:02

GoogleCodeExporter commented 9 years ago
Ok. Thanks a lot. I can use this as a reference if anyone has a similar problem.

I will close this issue in some days as I can't really support this in code. 
(There is another issue on my TODO list to support before- and after-launch 
commands. Maybe this could help you to inject the lirc commands instead of 
using the shell script. But it will need some time until I can start to work on 
this.)

Original comment by maloep on 4 May 2011 at 6:24

GoogleCodeExporter commented 9 years ago
The before and after launch commands sounds a good feature.

The LIRC functions I mentioned are built-in XBMC functions that you can call 
from within python plugins. Maybe you could have a setting like "Disable LIRC 
while emulator is running".

Original comment by alcides....@gmail.com on 4 May 2011 at 5:01

GoogleCodeExporter commented 9 years ago

Original comment by maloep on 9 May 2011 at 5:18

GoogleCodeExporter commented 9 years ago

Original comment by maloep on 21 Nov 2013 at 7:03