SDL not detecting all X11 video modes

I’m having a weird problem with a Dell 8300 laptop (Geforce4TI video,
1920x1200 display). It seems that SDL is only detecting the
’1920x1200’ resolution (as determined by testvidinfo), even though
there are many more available in X.

There are at least 10 more modes available in X, both through 'xrandr’
and by using Ctrl-Alt-+ and Ctrl-Alt–, but SDL still only sees the one
resolution.

Also, this is the latest SDL available in Gentoo, and the entire system
was compiled from source.

Thanks for any info,
Steve

Stephen Anthony wrote:

I’m having a weird problem with a Dell 8300 laptop (Geforce4TI video,
1920x1200 display). It seems that SDL is only detecting the
’1920x1200’ resolution (as determined by testvidinfo), even though
there are many more available in X.

There are at least 10 more modes available in X, both through 'xrandr’
and by using Ctrl-Alt-+ and Ctrl-Alt–, but SDL still only sees the one
resolution.

We don’t support xrandr at all…perhaps you don’t have the XVidMode
extension on your system (wild guess here)?

–ryan.

I figured that xrandr wasn’t specifically supported, but that was just
an example of a program that shows all available resolutions. The
’Ctrl-Alt’ keys do work though, so I assumed that all modes that X
can see are also available to SDL. Maybe this assumption isn’t
correct??

SteveOn December 16, 2005 10:50 am, Ryan C. Gordon wrote:

Stephen Anthony wrote:

I’m having a weird problem with a Dell 8300 laptop (Geforce4TI
video, 1920x1200 display). It seems that SDL is only detecting the
’1920x1200’ resolution (as determined by testvidinfo), even though
there are many more available in X.

There are at least 10 more modes available in X, both through
’xrandr’ and by using Ctrl-Alt-+ and Ctrl-Alt–, but SDL still only
sees the one resolution.

We don’t support xrandr at all…perhaps you don’t have the XVidMode
extension on your system (wild guess here)?

I figured that xrandr wasn’t specifically supported, but that was just
an example of a program that shows all available resolutions. The
’Ctrl-Alt’ keys do work though, so I assumed that all modes that X
can see are also available to SDL. Maybe this assumption isn’t
correct??

There’s at least three ways to get/set resolutions with X11, and all
three are optional extensions. :slight_smile:

We support two: XVidMode (which is what XFree86 and x.org generally use)
and XME (which is what the Xi Graphics X servers use). Xrandr is, as far
as I can tell from the docs, a third way, but I’ve never used it, and
neither does SDL at the moment.

Is it possible that SDL, for some reason, doesn’t think you have XVidMode?

–ryan.