MultiHead

I’ve got 3 screens on my computer (xinerama) they are 15", 19" and 15"
(in that order, left to right)
when I try to play a game or whatever that uses SDL and runs fullscreen
it allways goes fullscreen on the leftmost monitor.
I’d like it to run on the middle (biggest) monitor.

is this possible ?

Sincerely, Aaargh!–

Just because you’re paranoid
doesn’t mean THEY are not out to get you.

PGPkey: http://130.89.230.143/pgp/pgpkey.txt

“Aaargh!” wrote:

I’ve got 3 screens on my computer (xinerama) they are 15", 19" and 15"
(in that order, left to right)
when I try to play a game or whatever that uses SDL and runs fullscreen
it allways goes fullscreen on the leftmost monitor.
I’d like it to run on the middle (biggest) monitor.

is this possible ?

Have you tried changing the value of the DISPLAY environment variable?

I’ve got 3 screens on my computer (xinerama) they are 15", 19" and 15"
(in that order, left to right)
when I try to play a game or whatever that uses SDL and runs fullscreen
it allways goes fullscreen on the leftmost monitor.
I’d like it to run on the middle (biggest) monitor.

Have you tried changing the value of the DISPLAY environment variable?

As far as I know Xinerama creates a single screen out of several
physical screens, so changing the screen number of $DISPLAY shouldn’t
matter (otherwise SDL should honour it), but give it a try.

I can imagine it’s DGA or vidmode getting confused by xinerama so they
just pick the first screen and stick to it. When you find the problem,
please post your patches (and send them to Sam)

“Mattias Engdeg?rd” wrote

I’ve got 3 screens on my computer (xinerama) they are 15", 19" and 15"
(in that order, left to right)
when I try to play a game or whatever that uses SDL and runs fullscreen
it allways goes fullscreen on the leftmost monitor.
I’d like it to run on the middle (biggest) monitor.

Have you tried changing the value of the DISPLAY environment variable?

As far as I know Xinerama creates a single screen out of several
physical screens, so changing the screen number of $DISPLAY shouldn’t
matter (otherwise SDL should honour it), but give it a try.

sorry if this doesn’t help at all.
i’m not framiliar with xinerama, but when IRIX is running multiple
monitors linked as one display, you can still set the DISPLAY
environment to pick between monitors…

the format is :monitor.screen, so to force something to the second
monitor, setenv DISPLAY :0.1

“Mattias Engdeg?rd” wrote

I’ve got 3 screens on my computer (xinerama) they are 15", 19" and 15"
(in that order, left to right)
when I try to play a game or whatever that uses SDL and runs fullscreen
it allways goes fullscreen on the leftmost monitor.
I’d like it to run on the middle (biggest) monitor.

Have you tried changing the value of the DISPLAY environment variable?

As far as I know Xinerama creates a single screen out of several
physical screens, so changing the screen number of $DISPLAY shouldn’t
matter (otherwise SDL should honour it), but give it a try.

sorry if this doesn’t help at all.
i’m not framiliar with xinerama, but when IRIX is running multiple
monitors linked as one display, you can still set the DISPLAY
environment to pick between monitors…

the format is :monitor.screen, so to force something to the second
monitor, setenv DISPLAY :0.1

the format is :monitor.screen, so to force something to the second
monitor, setenv DISPLAY :0.1

Does this work correctly with SDL?

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

the format is :monitor.screen, so to force something to the second
monitor, setenv DISPLAY :0.1

Does this work correctly with SDL?

I don’t have a multihead system (although I’ve got VNC installed at
work for no useful reason), but I did just do this:

% setenv DISPLAY 0.1
% defendguin

Error: I could not initialize video!
The Simple DirectMedia error that occured was:
No available video device

%

So, it at least pays attention to $DISPLAY.

And sheesh, shouldn’t you, of all people, know, Sam? :slight_smile:

-bill!

So, it at least pays attention to $DISPLAY.

I knew that, I just don’t have a real multi-screen X server to test with.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I said:

I don’t have a multihead system (although I’ve got VNC installed at
work for no useful reason)

But forgot to state my point for mentioning this:

I guess I could use it to test out using different DISPLAYs with SDL… :slight_smile:

-bill!

William Kendrick :
And sheesh, shouldn’t you, of all people, know, Sam? :slight_smile:

Why do you think the main developer of an app or a lib should know how
it behave on all platforms?

Sure that if you send Sam a MultiHead system he could be able to add
it to SDL, you will be happy and Sam too.

It is as easy as sound.

Other option is to develop it yourself as SDL is an open source lib
for that reason.

Regards,
Miguel

http://www.arianne.cx

% setenv DISPLAY 0.1

I believe that should be :0.1

So, it at least pays attention to $DISPLAY.

And sheesh, shouldn’t you, of all people, know, Sam? :slight_smile:

I think I’m responsible for that part. SDL has no real multihead support
at all right now (unless you are using hacks like Xinerama); all the
$DISPLAY value does is directing it to use a particular screen.
True multihead (code-named “Zaphod”) is something I’d like to have at
some point in the future. This will necessarily imply multi-window
support too, as it is useful when debugging