VOGONS

Common searches


First post, by 7F20

User metadata
Rank Member
Rank
Member

I'm having this issue where my screen brightness is super dark in DOSBox.

I use a VGA monitor with DOSBox, and it's so dark as compared to the Windows desktop that I can't even make up for it with the brightness knob on my monitor. I actually have to open up the case and tweak the SCREEN voltage up past the acceptable brightness level for the Windows environment. I tried to turn the brightness down in Windows settings, but it's absolutely no go; even cranking it all the way down in Nvidia control center it still lights up the background to grey.

I saw a couple suggestions out there and I tried them to no avail. They were to:

1) try setting the fullresolution to 0x0 (no change in brightness)

2) try different output methods

-I'm currently using opengl because it's the only output method that "sees" my desktop resolution as 640x400. All other methods seem to output at something higher and the wrong aspect ratio; if I had to guess it would be 1280x720.

So I guess my question is twofold. Is there a way to increase the brightness in DOSBox, and what's going on with the screen resolution being weird with output methods other than opengl/openglnb. Clearly it DOSBox can output the correct resolution, or it wouldn't work with any output method.

Reply 1 of 5, by 7F20

User metadata
Rank Member
Rank
Member

Ok. I think I know what's going on, but I still don't know exactly why it's going on.

It appears to be related to the video timings that DOSBox is sending to the monitor. I created a custom resolution with specific timings in Nvidia control panel for my monitor's 640x400 resolution. I have the service manual, and it specifies that it should be the same as this: http://www.tinyvga.com/vga-timing/640x400@70Hz

When I start DOSBox, it appears that the porches and/or the sync pulse length is slightly off of the standard timings and it results in some lost brightness. If I instead start DOSBox in 640x480, it gets it correct and games are instantly the same brightness as my desktop. Within DOSBox, once it's started, it appears to be displaying VGA games at the correct resolution without scaling. I've only tested a couple games so far, but it currently seems like my best option.

Anybody know why the heck this resolution thing is happening?

Reply 3 of 5, by darry

User metadata
Rank l33t++
Rank
l33t++

Can you try something other than DOSBox at that custom resolution and see if you have the same issue ?

Does your video card actually have VGA output (either directly or through a passive DVI-I to VGA converter) or are you using an active converter with a DAC ?

If you boot the machine baremetal into DOS (if hardware allows it) and launch a 320x200 VGA game (which will get output as 640x400), do you have the same issue ?

Reply 4 of 5, by 7F20

User metadata
Rank Member
Rank
Member
darry wrote on 2022-11-01, 10:47:

Can you try something other than DOSBox at that custom resolution and see if you have the same issue ?

The Windows 10 environment runs fine at 640x400. Some elements don't appear, for example, they delete things like the "expand" icon in the photo app, so you have to press F11 to go full screen.

Retroarch launches into it's GUI just fine, but I haven't set it up to play cores yet.

I plan to try 86Box, but haven't gotten around to it yet.

Does your video card actually have VGA output (either directly or through a passive DVI-I to VGA converter) or are you using an active converter with a DAC ?

Yes, it has a DVI-I output and I'm using a DVI-VGA cable with no circuitry inside. It outputs analog VGA.

If you boot the machine baremetal into DOS (if hardware allows it) and launch a 320x200 VGA game (which will get output as 640x400), do you have the same issue ?

I don't believe I can do so, no. It's too new a PC.

Just to reiterate, I am able to play 640x400 games now, as long as my desktop resolution is 640x480 and I use OpenGL. All I have to do is set DOSBox's fullscreen res to 640x400 and it displays properly on the CRT.

The weird thing that persists is that I can't switch to another output method, and if my desktop resolution is 640x400, everything in DOSBox is super dark.

Reply 5 of 5, by 7F20

User metadata
Rank Member
Rank
Member
jmarsh wrote on 2022-11-01, 08:51:

DOSBox has no control over that, it just tells windows what resolution it wants the display to be. The display driver decides what specific timings will be used.

Thanks. I followed up on this, and it was indeed my Nvidia drivers creating havoc. In order to get things to work properly, I had to download Custom Resolution Utility and create the correct resolutions with their respective timings, and then enable them in the Nvidia control panel. It was not fun. 🤣

But now I can use all output methods with similar results. I'm not sure why OpenGL was working when it somehow shouldn't have been, but I guess maybe SDL talks to OpenGL on a hardware level, idk.