LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   X server Resolution Problem (https://www.linuxquestions.org/questions/linux-newbie-8/x-server-resolution-problem-48966/)

KeithKessler 03-09-2003 11:26 AM

X server Resolution Problem
 
Hello Everyone,

Sorry to trouble you with such a seeming simple question. I've tried to resolve the issue through my own research but haven't had any real luck thus far. Whenever I startx the default resolution is 640x480 and I can't seem to change it with ctl alt + or -

Below is my XF86Config file - I've added "modes" lines after the depth but the X server seeming ignores them.

Thanks in advance for you help.

Keith Kessler

-----------------------------------------------------------

Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "speedo"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/mouse"
EndSection

Section "Monitor"
#DisplaySize 280 210 # mm
Identifier "Monitor0"
VendorName "NEC"
ModelName "NEC A500"
Option "DPMS"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "HWCursor" # [<bool>]
#Option "SWCursor" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "Rotate" # [<str>]
#Option "UseBIOS" # [<bool>]
#Option "LCDClock" # <freq>
#Option "ShadowStatus" # [<bool>]
#Option "VideoRAM" # <i>
Identifier "Card0"
Driver "savage"
VendorName "S3"
BoardName "Savage4"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16

SubSection "Display"
Depth 1
Modes "1024x768" "800x600"
EndSubSection

SubSection "Display"
Depth 4
Modes "1024x768" "800x600"
EndSubSection

SubSection "Display"
Depth 8
Modes "1024x768" "800x600"
EndSubSection

SubSection "Display"
Depth 15
Modes "1024x768" "800x600"
EndSubSection

SubSection "Display"
Depth 16
Modes "1024x768" "800x600"
EndSubSection

SubSection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubSection
EndSection

Mara 03-09-2003 11:32 AM

What happens when you run startx? Could you copy the messages?

KeithKessler 03-09-2003 11:35 AM

X starts just fine and runs at the 16 bit color depth it just ignores the resolution modes.

Mara 03-09-2003 12:13 PM

Which version of XFree are you using? It's 4.x, the right file is XF86Config-4 (if there's no such one, XF86Config is used).

KeithKessler 03-09-2003 12:22 PM

Whichever version of XFree that comes with slack 8.1

Below is an excerpt from the XFree86.0.log

---------------------------------------------

(II) SAVAGE(0): Not using default mode "800x512" (hsync out of range)

--- Lots of lines similar to the one above (hsync out of range)

(II) SAVAGE(0): Not using mode "1024x768" (no mode of this name)
(II) SAVAGE(0): Not using mode "800x600" (no mode of this name)

--- Above are the modes I have specified right?

(--) SAVAGE(0): Found 14 modes at this depth:
[10e] 320 x 200, 70Hz
[133] 320 x 240, 72Hz
[143] 400 x 300, 72Hz
[153] 512 x 384, 70Hz
[11d] 640 x 400, 70Hz
[111] 640 x 480, 160Hz, 85Hz, 75Hz, 72Hz, 60Hz
[173] 720 x 480, 75Hz
[17e] 720 x 576, 75Hz
[114] 800 x 600, 160Hz, 85Hz, 75Hz, 72Hz, 60Hz, 56Hz
[117] 1024 x 768, 130Hz, 85Hz, 75Hz, 70Hz, 60Hz
[163] 1152 x 864, 100Hz, 85Hz, 75Hz, 70Hz, 60Hz
[11a] 1280 x 1024, 100Hz, 85Hz, 75Hz, 60Hz
[122] 1600 x 1200, 85Hz, 75Hz, 60Hz
[138] 1920 x 1440, 60Hz
(--) SAVAGE(0): Virtual size is 640x480 (pitch 640)
(**) SAVAGE(0): Default mode "640x480": 25.2 MHz, 31.5 kHz, 60.0 Hz
(II) SAVAGE(0): Modeline "640x480" 25.20 640 656 752 800 480 490 492 525 -hsync -vsync
(**) SAVAGE(0): Default mode "320x240": 12.6 MHz, 31.5 kHz, 60.1 Hz (D)
(II) SAVAGE(0): Modeline "320x240" 12.60 320 328 376 400 240 245 246 262 doublescan -hsync -vsync
(==) SAVAGE(0): DPI set to (75, 75)
(II) Loading sub module "fb"

Hope that helps!

Thanks for your help on this!

cuckoopint 03-09-2003 12:37 PM

ok, lets try a couple of things. first run
X -version
and figure out the version of XFree86

Second, add to the monitor section your vertical and horizontal refresh rate (your monitor manual or look online for your specific model)

Code:

Section "Monitor"
        .....
        HorizSync    30.0 - 95.0
        VertRefresh  50.0 - 180.0

see if that helps.

KeithKessler 03-09-2003 12:52 PM

XFree Version 4.2.0

I added:

HorizSync 31.0 - 65.0
VertRefresh 55.0 - 120.0

to XFree86Config and now I'm up and running in 1024x768!!

Thanks so much for all your help!

cuckoopint 03-09-2003 01:24 PM

last thing you may want to do is run 'xvidtune' from an xterm - this way you can tune your screen very well. Then when you get a nice setup, use 'show' to display a line of info to the xterm something like

"1024x768" 94.50 1024 1036 1132 1260 768 769 772 796 +hsync +vsync

Then what you do is paste this into your monitor section undr your refresh rates:
Code:

        HorizSync    30.0 - 95.0
        VertRefresh  50.0 - 180.0
        ModeLine "1024x768" 94.50 1024 1036 1132 1260 768 769 772 796 +HSync +VS
ync

Don't know if this will help you, but it helped me get a nice refresh rate.

KeithKessler 03-09-2003 01:25 PM

Great, will do!

Thanks for your help.

I'm off to tackle my sound and mouse problem now... yeah!

Thanks,

Keith

loran 03-11-2003 11:32 PM

Hey can you do me a favor, keith? Paste your file here...I assume its the XF86Config, right?


All times are GMT -5. The time now is 09:54 PM.