PDA

View Full Version : Full Screen on 2nd Display


paulychamp
2008-02-14, 10:16
Anyone having any luck with fullscreen output to a 2nd display? I'm running XBMC 0.1.1 on a MacBook Pro. My 2nd display is a 32" TV with a resolution of 1360x768.

I have the environment variables set:

SDL_VIDEO_FULLSCREEN_DISPLAY=2
SDL_SINGLEDISPLAY=1

I can see the variables when I run 'env' in a shell.

When I launch XBMC from my Applications folder (or from a shell), it loads (windowed) on my laptop/primary display.

There are 2 displays, requested was 2.
Replacing display ID 69671360 with 1317552129
WARNING: The XBMC_HOME environment variable is not set.
Checking for existence of /Users/paul/Library/Application Support/XBMC/UserData/Keymap.xml
There are 2 displays, requested was 2.
Replacing display ID 69671360 with 1317552129
There are 2 displays, requested was 2.
Replacing display ID 69671360 with 1317552129
QZ_SetVideoWindowed(1280, 720)
Using display 1317552129
Trying: /Applications/XBMC.app/Contents/Resources/XBMC/language/English/strings.xml
++ WARN: could not retrieve file info for `image.nrg': No such file or directory
++ WARN: can't open nrg image file image.nrg for reading
CRITSEC[0xa1b424]: Trying to enter destroyed section.
CritSect[0xa1b424]: Some other thread trying to leave our critical section.


Any ideas? Thanks!

PaecKe
2008-02-15, 09:24
I would love to check this for you, but I am trying to figure out how to set the environment variables (I am running in n00b mode here :sniffle:)

loax
2008-02-15, 18:40
There are a couple ways to set environment variables, and one is much better than the other. The less-good way is to set them in terminal.app, but unfortunately to make use of these variables you must then launch xbmc from that terminal window (using open /Applications/xbmc.app) for it to see those variables. Since it's les good, I'm not going to tell you how to do that.

So the better way is to do this. Create a file called .MacOSX/environment.plist with the following contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SDL_SINGLEDISPLAY</key>
<string>1</string>
<key>SDL_VIDEO_FULLSCREEN_DISPLAY</key>
<string>2</string>
</dict>
</plist>

loax
2008-02-15, 18:43
...

Oh, and then you need to log out and back in. Dunno if this will sort out the OP's issues or not.

PaecKe
2008-02-15, 19:43
Thanks for the hint loax, but unfortunately this feature doesn't work here as well. I get the same console messages as paulychamp.

PaecKe
2008-02-15, 21:40
Oh hang on, after changing the resolution in XBMC to 'desktop' this works like a charm! HTH.