2010-10-22, 22:46
I'm using XBMC on Ubuntu 10.04 with Compiz. I have a plasma with 1280x720 resolution and a good old projector with 800x600. Using Nvidia & twinview with HDMI to the plasma and component to the projector.
To start XBMC in fullscreen and still be able to use the second screen I'm using this script:
The problem
I want to be able to control on which display (plasma/projector) XBMC is launched. Changing DISPLAY to 0.1 has no effect (since I'm using twinview I guess). XBMC is always launched on my primary display (the plasma).
I can work around this by dragging a terminal window on the secondary display and run the launch script from there. Not very pretty...
Ideally, I want to start the projector and the htpc and have XBMC launch on the projector since the plasma is turned off. And vice versa. But I'll be happy with two separate script for the two displays.
Thankful for any clues that'll point me in the right direction!
To start XBMC in fullscreen and still be able to use the second screen I'm using this script:
Code:
#! /bin/bash
STATUS=0
WINCLASS=xbmc.bin.xbmc.bin
DISPLAY=:0.0
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
I want to be able to control on which display (plasma/projector) XBMC is launched. Changing DISPLAY to 0.1 has no effect (since I'm using twinview I guess). XBMC is always launched on my primary display (the plasma).
I can work around this by dragging a terminal window on the secondary display and run the launch script from there. Not very pretty...
Ideally, I want to start the projector and the htpc and have XBMC launch on the projector since the plasma is turned off. And vice versa. But I'll be happy with two separate script for the two displays.
Thankful for any clues that'll point me in the right direction!