Jump to content

Can't get 640x480 resolution [SOLVED]


Dustpuppy
 Share

Recommended Posts

I've looked and looked online but can't see anything on this, so here you go!

 

I can't get 640x480 resolution. At all. I've tried editing my xorg.conf file and I've tried changing resolution using KDE, but I just get a blank screen when I restart X. Now, this normally wouldn't be a problem except that Quake 3 runs under 640x480 and so I can't play it :angry: The weird thing is that Quake is loading fine, I can hear the noises and move down the menu using the keys, I just can't see anything but a blank screen!

 

I have the latest Nvidia drivers and they installed fine, and the latest version of xorg (from my updates source). My xorg.conf file is

 

Section "Files"

    # Multiple FontPath entries are allowed (they are concatenated together)

    # By default, Mandrake 6.0 and later now use a font server independent of

    # the X server to render fonts.

    FontPath "unix/:-1"

EndSection

 

Section "ServerFlags"

    #DontZap # disable <Crtl><Alt><BS> (server abort)

    #DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)

    AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work

EndSection

 

Section "Module"

    Load "dbe" # Double-Buffering Extension

    Load "v4l" # Video for Linux

    Load "extmod"

    Load "type1"

    Load "freetype"

    Load "glx" # 3D layer

EndSection

 

Section "InputDevice"

    Identifier "Keyboard1"

    Driver "keyboard"

    Option "XkbModel" "pc105"

    Option "XkbLayout" "gb"

    Option "XkbOptions" ""

EndSection

 

Section "InputDevice"

    Identifier "Mouse1"

    Driver "mouse"

    Option "Protocol" "ExplorerPS/2"

    Option "Device" "/dev/mouse"

    Option "ZAxisMapping" "6 7"

EndSection

 

Section "Monitor"

    Identifier "monitor1"

    VendorName "Plug'n Play"

    HorizSync 30-70

    VertRefresh 50-160

   

    # Sony Vaio C1(X,XS,VE,VN)?

    # 1024x480 @ 85.6 Hz, 48 kHz hsync

    ModeLine "1024x480"    65.00 1024 1032 1176 1344  480  488  494  563 -hsync -vsync

   

    # Dell D800 and few Inspiron (16/10) 1280x800

    ModeLine "1280x800"  147.89  1280 1376 1512 1744  800 801 804 848

   

    # Dell D800 and few Inspiron (16/10) 1680x1050

    ModeLine "1680x1050"  214.51  1680 1800 1984 2288  1050 1051 1054 1103

   

    # Dell D800 and few Inspiron (16/10) 1920x1200

    ModeLine "1920x1200" 230 1920 1936 2096 2528 1200 1201 1204 1250 +HSync +VSync

   

    # TV fullscreen mode or DVD fullscreen output.

    # 768x576 @ 79 Hz, 50 kHz hsync

    ModeLine "768x576"    50.00  768  832  846 1000  576  590  595  630

   

    # 768x576 @ 100 Hz, 61.6 kHz hsync

    ModeLine "768x576"    63.07  768  800  960 1024  576  578  590  616

EndSection

 

Section "Device"

    Identifier "device1"

    VendorName "nVidia Corp."

    BoardName "NVIDIA GeForce4 (generic)"

    Driver "nvidia"

    Option "DPMS"

    Option "NvAgp" "3"

EndSection

 

Section "Screen"

    Identifier "screen1"

    Device "device1"

    Monitor "monitor1"

    DefaultColorDepth 16

   

    Subsection "Display"

        Depth 8

        Virtual 1024 768

    EndSubsection

   

    Subsection "Display"

        Depth 15

        Virtual 1024 768

    EndSubsection

   

    Subsection "Display"

        Depth 16

        Virtual 1024 768

    EndSubsection

   

    Subsection "Display"

        Depth 24

        Virtual 1024 768

    EndSubsection

 

    Subsection "Display"

        Depth 16

        Virtual 640 480

    EndSubsection

EndSection

 

Section "ServerLayout"

    Identifier "layout1"

    InputDevice "Keyboard1" "CoreKeyboard"

    InputDevice "Mouse1" "CorePointer"

    Screen "screen1"

EndSection

 

[moved from Software by spinynorman]

Edited by Dustpuppy
Link to comment
Share on other sites

This is what /var/log/Xorg.0.log says when I run and then exit Quake:

SwitchToMode - scrn: 0 clock: 36000

              hdsp: 640 hbeg: 696 hend: 752 httl: 832

              vdsp: 480 vbeg: 481 vend: 484 vttl: 509 flags: 10

Checking against clock: 94500 (94500)

                hdsp: 1024 hbeg: 1072 hend: 1168 httl: 1376

                vdsp: 768 vbeg: 769 vend: 772 vttl: 808 flags: 5

Checking against clock: 78800 (78800)

                hdsp: 1024 hbeg: 1040 hend: 1136 httl: 1312

                vdsp: 768 vbeg: 769 vend: 772 vttl: 800 flags: 5

Checking against clock: 75000 (75000)

                hdsp: 1024 hbeg: 1048 hend: 1184 httl: 1328

                vdsp: 768 vbeg: 771 vend: 777 vttl: 806 flags: 10

Checking against clock: 65000 (65000)

                hdsp: 1024 hbeg: 1048 hend: 1184 httl: 1344

                vdsp: 768 vbeg: 771 vend: 777 vttl: 806 flags: 10

Checking against clock: 44900 (44900)

                hdsp: 1024 hbeg: 1032 hend: 1208 httl: 1264

                vdsp: 768 vbeg: 768 vend: 776 vttl: 817 flags: 21

Checking against clock: 57284 (57284)

                hdsp: 832 hbeg: 864 hend: 928 httl: 1152

                vdsp: 624 vbeg: 625 vend: 628 vttl: 667 flags: 10

Checking against clock: 65000 (65000)

                hdsp: 1024 hbeg: 1032 hend: 1176 httl: 1344

                vdsp: 480 vbeg: 488 vend: 494 vttl: 563 flags: 10

Checking against clock: 56300 (56300)

                hdsp: 800 hbeg: 832 hend: 896 httl: 1048

                vdsp: 600 vbeg: 601 vend: 604 vttl: 631 flags: 5

Checking against clock: 49500 (49500)

                hdsp: 800 hbeg: 816 hend: 896 httl: 1056

                vdsp: 600 vbeg: 601 vend: 604 vttl: 625 flags: 5

Checking against clock: 50000 (50000)

                hdsp: 800 hbeg: 856 hend: 976 httl: 1040

                vdsp: 600 vbeg: 637 vend: 643 vttl: 666 flags: 5

Checking against clock: 40000 (40000)

                hdsp: 800 hbeg: 840 hend: 968 httl: 1056

                vdsp: 600 vbeg: 601 vend: 605 vttl: 628 flags: 5

Checking against clock: 36000 (36000)

                hdsp: 800 hbeg: 824 hend: 896 httl: 1024

                vdsp: 600 vbeg: 601 vend: 603 vttl: 625 flags: 5

Checking against clock: 63070 (63070)

                hdsp: 768 hbeg: 800 hend: 960 httl: 1024

                vdsp: 576 vbeg: 578 vend: 590 vttl: 616 flags: 0

Checking against clock: 54000 (54000)

                hdsp: 640 hbeg: 664 hend: 720 httl: 844

                vdsp: 512 vbeg: 512 vend: 514 vttl: 533 flags: 37

Checking against clock: 36000 (36000)

                hdsp: 640 hbeg: 696 hend: 752 httl: 832

                vdsp: 480 vbeg: 481 vend: 484 vttl: 509 flags: 10

(II) NVIDIA(0): Setting mode "640x480"

SwitchToMode - Succeeded

SwitchToMode - scrn: 0 clock: 94500

              hdsp: 1024 hbeg: 1072 hend: 1168 httl: 1376

              vdsp: 768 vbeg: 769 vend: 772 vttl: 808 flags: 5

Checking against clock: 94500 (94500)

                hdsp: 1024 hbeg: 1072 hend: 1168 httl: 1376

                vdsp: 768 vbeg: 769 vend: 772 vttl: 808 flags: 5

(II) NVIDIA(0): Setting mode "1024x768"

SwitchToMode - Succeeded

Link to comment
Share on other sites

Cheers people. I've set seta r_mode to 6, and I now have something other than a blank screen.

 

However... it's not rendering properly. The menu and setup screens are fine, but when I go into an arena it's distorted, like the blocks aren't being rendered well. When I escape to the menu it's unreadable, like blocks of red rather than letters.

 

Not sure if this has anything to do with it, but the initialising of the graphics bit goes like this:

 

...loading libGL.so.1: Initializing OpenGL display

...setting mode 6: 1024 768

Using XFree86-VidModeExtension Version 2.2

XF86DGA Mouse (Version 2.0) initialized

XFree86-VidModeExtension Activated at 1024x768

Using 4/4/4 Color bits, 16 depth, 0 stencil display.

GL_RENDERER: GeForce4 MX 440/AGP/SSE2

Initializing OpenGL extensions

...GL_S3_s3tc not found

...GL_EXT_texture_env_add not found

...using GL_ARB_multitexture

...GL_EXT_compiled_vertex_array not found

XF86 Gamma extension initialized

 

GL_VENDOR: NVIDIA Corporation

GL_RENDERER: GeForce4 MX 440/AGP/SSE2

GL_VERSION: 1.2 (1.5.2 NVIDIA 66.29)

GL_EXTENSIONS: GL_EXT_draw_range_elements GL_EXT_vertex_array GL_ARB_multitexture GL_ARB_window_pos GL_EXT_blend_color GL_EXT_texture_object GL_EXT_secondary_color GL_EXT_multi_draw_arrays GL_EXT_blend_minmax GL_ARB_imaging GL_EXT_fog_coord GL_ARB_point_parameters

GL_MAX_TEXTURE_SIZE: 2048

GL_MAX_ACTIVE_TEXTURES_ARB: 2

 

PIXELFORMAT: color(16-bits) Z(16-bit) stencil(0-bits)

MODE: 6, 1024 x 768 fullscreen hz:N/A

GAMMA: hardware w/ 0 overbright bits

CPU:

rendering primitives: multiple glArrayElement

texturemode: GL_LINEAR_MIPMAP_LINEAR

picmip: 1

texture bits: 16

multitexture: enabled

compiled vertex arrays: disabled

texenv add: disabled

compressed textures: disabled

Link to comment
Share on other sites

Yesssssssss!!!!!!!!! It's working!!

 

I had my simlinks all mixed up and so direct rendering was off (as glxinfo would've told me, sheesh). So I did

ln -fs /usr/lib/libGL.so.6106 /usr/X11R6/lib/libGL.so

ln -fs /usr/lib/libGL.so.6106 /usr/X11R6/lib/libGL.so.1

ln -fs libGL.so.6106 /usr/lib/libGL.so.1.2

and I can frag things again! Woo-hoo! :ph34r:

Link to comment
Share on other sites

running through the nvidia installer again usually does the trick, too :)

I'm not usual :D It kept on saying it couldn't restore (or something) the links. How I wish nvidia would release their source to the community and save us all this hassle... Maybe I'll get hold of the CEO's address and send him (unfortunately probably not her) a copy of the Cathedral and the Bazaar for Christmas :mr-green:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...