Fullscreen XBMC on one monitor, usable mouse/keyboard on another.
#1
Lightbulb 
I posted this over at boxee.tv, and thought it might have some value here, too.
This is entirely my own hack, but it's fairly obvious. Please accept my apology in advance, if it's been posted.
----------------------------------------------------------------------------------------------------------------------------
*THIS IS A COMPLETE HACK*

in fullscreen mode, XBMC locks the mouse/keyboard to it's window.
as a result, you can not launch XBMC fullscreen on one monitor, and still use your mouse/keyboard on another. Sad

this is an issue with the sdl frameword that boxee/xbmc are based on, and not something that is easily fixed the those teams.

so here's what you can do:

1. install wmctrl.
click here on ubuntu.

2. configure boxee to launch in windowed mode.
in boxee: Settings > Appearance > Screen > Resolution.
set it to anything that ends in: "(Window)"

3. use wmctrl to make boxee fullscreen.
wmctrl -x -r xbmc.bin.xbmc.bin -b toggle,fullscreen

BAM! fullscreen XBMC, completely usable mouse/keyboard.

now, this is all fine and good, but I want to launch XBMC like this.

here is a simple shell script:
Code:
#! /bin/bash

STATUS=0
WINCLASS=xbmc.bin.xbmc.bin
DISPLAY=:0.1
SLEEPDELAY=1


/usr/bin/xbmc "$@" &

while [ $STATUS -eq 0 ]
do
  sleep $SLEEPDELAY
  STATUS=`wmctrl -x -l | grep $WINCLASS | wc -l | awk '{print $1}'`
done

wmctrl -x -r $WINCLASS -b toggle,fullscreen
save this as ~/bin/launch-xbmc

then run this command:
chmod +x ~/bin/launch-xbmc
-------------------------------------------------------------------------------------------------------------------

note: set "DISPLAY" to whichever display you want XBMC to run on.

note: you may need to adjust "SLEEPDELAY" to be longer or shorter, depending on your system.

confession: i suck at scripting, so if i did something dumb, lemme know.
Reply


Messages In This Thread
Fullscreen XBMC on one monitor, usable mouse/keyboard on another. - by agentlame - 2008-08-24, 18:51
[No subject] - by althekiller - 2008-08-24, 19:52
Wow, talk about timing... - by jkrellner - 2008-08-25, 16:18
[No subject] - by jkrellner - 2008-08-25, 16:19
[No subject] - by agentlame - 2008-08-25, 17:36
[No subject] - by agentlame - 2008-08-25, 17:38
[No subject] - by jkrellner - 2008-08-25, 17:39
[No subject] - by jkrellner - 2008-08-25, 17:48
[No subject] - by agentlame - 2008-08-25, 18:37
[No subject] - by jkrellner - 2008-08-26, 05:04
[No subject] - by jkrellner - 2008-08-26, 05:06
[No subject] - by agentlame - 2008-08-27, 03:35
[No subject] - by jkrellner - 2008-08-27, 04:33
[No subject] - by agentlame - 2008-08-27, 20:04
[No subject] - by bdallen - 2008-09-19, 04:48
[No subject] - by Gamester17 - 2008-09-19, 19:05
[No subject] - by kamistukai - 2008-09-19, 21:57
[No subject] - by bdallen - 2008-09-19, 22:20
simple fix - by bdallen - 2008-09-21, 07:33
[No subject] - by jkrellner - 2008-09-21, 17:47
[No subject] - by bdallen - 2008-09-21, 18:10
[No subject] - by jkrellner - 2008-09-21, 18:36
[No subject] - by dgege - 2008-09-22, 20:18
[No subject] - by jkrellner - 2008-09-23, 01:07
[No subject] - by gbyte - 2008-09-23, 15:48
[No subject] - by dgege - 2008-09-23, 18:11
[No subject] - by jkrellner - 2008-09-23, 18:14
[No subject] - by dgege - 2008-09-23, 18:16
[No subject] - by jkrellner - 2008-09-23, 21:40
wmctrl not working in Jaunty - by havel - 2009-04-30, 13:49
[No subject] - by bdallen - 2009-04-30, 14:28
[No subject] - by rockerduck - 2009-04-30, 15:30
[No subject] - by havel - 2009-04-30, 16:39
[No subject] - by havel - 2009-04-30, 17:53
[No subject] - by havel - 2009-04-30, 18:01
[No subject] - by havel - 2009-05-02, 05:16
Separate keyboard input - by cornbread - 2009-05-02, 22:08
[No subject] - by havel - 2009-05-02, 22:31
[No subject] - by bdallen - 2009-05-03, 05:02
[No subject] - by bdallen - 2009-05-03, 05:25
2 keyboards - by cornbread - 2009-05-05, 20:17
[No subject] - by jkrellner - 2009-05-05, 20:42
[No subject] - by aroby - 2009-05-05, 22:09
[No subject] - by jkrellner - 2009-05-05, 22:33
[No subject] - by matthewbpt - 2009-05-22, 19:22
[No subject] - by havel - 2009-05-28, 21:09
[No subject] - by VitaminJ - 2009-11-15, 20:20
[No subject] - by jrstravino - 2012-02-10, 06:23
Logout Mark Read Team Forum Stats Members Help
Fullscreen XBMC on one monitor, usable mouse/keyboard on another.1