Again fullscreen problem

After trying in different ways, I still can’t get a decent fullscreen
mode. The better I got was finnally start painting from upper corner and
not in the middle of screen.–
Roger D. Vargas | "Humans have so many emotions, Artoo. And most
VQt Development Team | seem to cause them pain. I do not understand,
http://vqt.sourceforge.net | but I’m glad I have none. And yet – I can’t help
wondering sometimes… what it would be like."
C-3PO, Protocol Droid. Star Wars 2: World of Fire.

After trying in different ways, I still can’t get a decent fullscreen
mode. The better I got was finnally start painting from upper corner and
not in the middle of screen.

As people have said, you probably need to define the mode you want in your
X config file. If you can post more information on your platform and video
configuration, as well as post a link to code and a screenshot, maybe we
can help figure out what’s going on.

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

This is my Screen section:

The accelerated servers (S3, Mach32, Mach8, 8514, P9000, AGX, W32,

Mach64

I128, and S3V)

Section "Screen"
Driver "accel"
Device "S3 Inc.|86c764/765 [Trio32/64/64V+]"
Monitor "My Monitor"
Subsection "Display"
Depth 8
Modes “1024x768” “800x600” "640x480"
ViewPort 0 0
EndSubsection
EndSection

This only allows a 640x480x8bpp. I have a S3 Trio with only 1Mb video RAM.
Is simply a problem of configuration, I don’t know how to tell X server to
enable 640x480x16 and 800x600x16.On Mon, 29 Jan 2001, Sam Lantinga wrote:

As people have said, you probably need to define the mode you want in your
X config file. If you can post more information on your platform and video
configuration, as well as post a link to code and a screenshot, maybe we
can help figure out what’s going on.

Roger D. Vargas | "Humans have so many emotions, Artoo. And most
VQt Development Team | seem to cause them pain. I do not understand,
http://vqt.sourceforge.net | but I’m glad I have none. And yet – I can’t help
wondering sometimes… what it would be like."
C-3PO, Protocol Droid. Star Wars 2: World of Fire.

[snip]

This only allows a 640x480x8bpp. I have a S3 Trio with only
1Mb video RAM.
Is simply a problem of configuration, I don’t know how to
tell X server to
enable 640x480x16 and 800x600x16.

Well I’m just a linux newbie, so my solution may not be the only/correct
one, but :

I had this problem (with RH7), so I just quit X, logged on as root, ran
Xconfigurator & marked all the video modes that I wanted X to support. After
that I manually edited the X config file to put my prefered default
resolution in front of the list (the ‘Modes’ line).

That did the job for me.> -----Original Message-----

From: Roger D. Vargas [mailto:mad at pesca.esisc.colombus.cu]


Roger D. Vargas | "Humans have so many emotions,
[snipped big sig]

The accelerated servers (S3, Mach32, Mach8, 8514, P9000, AGX, W32,

Mach64

I128, and S3V)

Section "Screen"
Driver "accel"
Device "S3 Inc.|86c764/765 [Trio32/64/64V+]"
Monitor "My Monitor"
Subsection "Display"
Depth 8
Modes “1024x768” “800x600” "640x480"
ViewPort 0 0
EndSubsection
EndSection

This only allows a 640x480x8bpp. I have a S3 Trio with only 1Mb video RAM.
Is simply a problem of configuration, I don’t know how to tell X server to
enable 640x480x16 and 800x600x16.

Your Screen section should read like this:

Section "Screen"
Driver "accel"
Device "S3 Inc.|86c764/765 [Trio32/64/64V+]"
Monitor "My Monitor"
Subsection "Display"
Depth 8
Modes “1024x768” “800x600” "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes “800x600” "640x480"
ViewPort 0 0
EndSubsection
EndSection

Then you need to start the X server in the depth you want to use.
You can’t switch depth on the fly.
e.g. startx – -bpp 16
(the command may vary depending on your version of X)

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

Your Screen section should read like this:

Section "Screen"
Driver "accel"
Device "S3 Inc.|86c764/765 [Trio32/64/64V+]"
Monitor "My Monitor"
Subsection "Display"
Depth 8
Modes “1024x768” “800x600” "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes “800x600” "640x480"
ViewPort 0 0
EndSubsection
EndSection

Then you need to start the X server in the depth you want to use.
You can’t switch depth on the fly.
e.g. startx – -bpp 16
(the command may vary depending on your version of X)

I just wanted to reiterate (and hopefully clarify) what Sam
just said:

First: The video modes (such as “1024x768”) only specify
video timing… That’s where the electron beam in the
monitor will be when… This has ABSOLUTELY NOTHING to do
with colors or color depth…

Secondly: The video mode name (i.e. “1024x768”) is only an
identifyer… By convention it usually includes the video
resolution, but it also may include a refresh rate,
interlaced indicator, or any other info. “pi_squared” for,
perhaps, a 314x314 video mode may be perfectly legal
(provided that 314 is a multiple of 8)… Also you can have
more than one video mode with the same name… the last
legal video mode (for your monitor) is used… (This is used
to automatically give you the best refresh rate for a given
mode… assuming that your monitor is configured
correctly…) If you’re looking at a video-mode definition
(called either a Mode or a Modeline) THE IMPORTANT PART is
the SECOND and SIXTH numbers… they indicate the
RESOLUTION. (Yes it’s legal to have a 640x480 mode called
"1024x768"… Don’t do it… It induces troubleshooting
nightmares…)

LASTLY: (to reiterate what Sam said) The X server MUST be
started in the desired color-depth… No X server that I’ve
seen has the capacity to switch color depths on the fly…
This would require a specialized video-card that allows
different color-depths in different regions of the screen…
Especially since full-screen in X is emulated.

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

Best Regards to you, Sam, and the whole Loki gang…

-Loren


Great news! Get free KNXmail here!
http://www.knx1070.com

Thanks, I fixed it…On Tue, 30 Jan 2001, Sam Lantinga wrote:

Then you need to start the X server in the depth you want to use.
You can’t switch depth on the fly.
e.g. startx – -bpp 16

Roger D. Vargas | "Humans have so many emotions, Artoo. And most
VQt Development Team | seem to cause them pain. I do not understand,
http://vqt.sourceforge.net | but I’m glad I have none. And yet – I can’t help
wondering sometimes… what it would be like."
C-3PO, Protocol Droid. Star Wars 2: World of Fire.

Thanks a lot to you and Sam, that was my problem, I was trying to change
depth on the fly. Now I know that is an X problem.On Tue, 30 Jan 2001 sondheim at knxmail.com wrote:

LASTLY: (to reiterate what Sam said) The X server MUST be
started in the desired color-depth… No X server that I’ve
seen has the capacity to switch color depths on the fly…
This would require a specialized video-card that allows
different color-depths in different regions of the screen…
Especially since full-screen in X is emulated.

Roger D. Vargas | "Humans have so many emotions, Artoo. And most
VQt Development Team | seem to cause them pain. I do not understand,
http://vqt.sourceforge.net | but I’m glad I have none. And yet – I can’t help
wondering sometimes… what it would be like."
C-3PO, Protocol Droid. Star Wars 2: World of Fire.

Actually, with some cards and XFree86 4.0, this is exactly what happens,
allowing both 8-bpp and 24-bpp on the same screen using different visuals.
SDL supports this just fine. Many SGI workstations also have this capability,
and are supported by SDL.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software> On Tue, 30 Jan 2001 sondheim at knxmail.com wrote:

LASTLY: (to reiterate what Sam said) The X server MUST be
started in the desired color-depth… No X server that I’ve
seen has the capacity to switch color depths on the fly…
This would require a specialized video-card that allows
different color-depths in different regions of the screen…

Actually, with some cards and XFree86 4.0, this is exactly what happens,
allowing both 8-bpp and 24-bpp on the same screen using different visuals.
SDL supports this just fine. Many SGI workstations also have this capability,
and are supported by SDL.

I was aware of at least one “superset” visual (that allowed
for tri-palleted color axis on a 24-bit surface, where you
could define per-window palettes), but this is the first
I’ve heard of multiple visuals of different non-emulated
depths on the screen at the same time, but this sounds
pretty cool…

Thanks again Sam,

-Loren


Great news! Get free KNXmail here!
http://www.knx1070.com