LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-01-2003, 08:01 PM   #1
[PQ3]RogeR
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
Can't Set Resolution to 1280x1024...


I'm trying to set my resolution to 1280x1024, but when I do and restart X the resolution always gets set to 1280x960. Also the color depth won't go above 16 either. Here is my XF86Config-4: (distro mandrake 9.2)

# **********************************************************************
# DRI Section
# **********************************************************************

Section "dri"
# Access to OpenGL ICD is allowed for all users:
Mode 0666
# Access to OpenGL ICD is restricted to a specific user group:
# Group 100 # users
# Mode 0660
EndSection
# **********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#

Section "Module"
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.

Subsection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubsection

# This loads the DBE extension module.

Load "dbe" # Double buffer extension

# This loads the Type1 and FreeType font modules
Load "type1"
Load "freetype"

# This loads the GLX module
Load "glx" # libglx.a
Load "dri" # libdri.a
EndSection
# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"
# FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"

# The module search path. The default path is shown here.

# ModulePath "/usr/X11R6/lib/modules"

# The location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

RgbPath "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#
# If you don't have a floating point coprocessor and emacs, Mosaic or other
# programs take long to start up, try moving the Type1 and Speedo directory
# to the end of this list (or comment them out).
#

# FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"

# FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection
# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"
EndSection
# Uncomment this to cause a core dump at the spot where a signal is
# received. This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

# Option "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

# Option "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences. This allows clients to receive these key events.

# Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

# Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client.

# Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.

# Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

# Option "AllowNonLocalModInDev"
# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"

# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.

# Option "Protocol" "Xqueue"

Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"

# Option "LeftAlt" "Meta"
# Option "RightAlt" "ModeShift"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"

# These are the default XKB settings for XFree86
# Option "XkbRules" "xfree86"
# Option "XkbModel" "pc101"
# Option "XkbLayout" "us"
# Option "XkbVariant" ""
# Option "XkbOptions" ""

# Option "XkbDisable"

Option "XkbRules" "xfree86"
EndSection
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"
# Identifier and driver

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "Device" "/dev/mouse"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

# Option "Protocol" "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

# Option "BaudRate" "9600"
# Option "SampleRate" "150"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

Option "Emulate3Buttons"
Option "Emulate3Timeout" "0"

# ChordMiddle is an option for some 3-button Logitech mice

# Option "ChordMiddle"
Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Generic"
ModelName "1280x1024 @ 60 Hz"
HorizSync 31.5-80
VertRefresh 56-75

# 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

# 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
# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"

# The chipset line is optional in most cases. It can be used to override
# the driver's chipset detection, and should not normally be specified.

# Chipset "generic"

# The Driver line must be present. When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module. Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.

Driver "vga"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for. When this line isn't present, a device
# section can only match up with the primary video device. For PCI
# devices a line like the following could be used. This line should not
# normally be included unless there is more than one video device
# installed.

# BusID "PCI:0:10:0"

# VideoRam 256

# Clocks 25.2 28.3
EndSection
# === ATI device section ===

Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
Screen 0
BusID "PCI:2:0:0" # vendor=1002, device=4e48
Option "FSAADisableGamma" "no"

# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"

# === disable PnP Monitor ===
#Option "NoDDC"
Option "FSAAMSPosX0" "0.000000"

# === OpenGL specific profiles/settings ===
Option "Capabilities" "0x00000000"
Option "FSAAMSPosX1" "0.000000"
Option "StereoSyncEnable" "1"

# === disable/enable XAA/DRI ===
Option "no_accel" "no"
Option "HSync2" "unspecified"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY5" "0.000000"

# === TV-out Management ===
Option "NoTV" "yes"
Option "GammaCorrectionII" "0x00000000"
Option "IgnoreEDID" "off"
Option "FSAAMSPosY4" "0.000000"
Option "FSAACustomizeMSPos" "no"
Option "TVStandard" "NTSC-M"
Option "ForceGenericCPU" "no"
Option "TVHPosAdj" "0"

# === QBS Management ===
Option "Stereo" "off"
Option "FSAAMSPosY1" "0.000000"

# === Pseudo Color Visuals (8-bit visuals) ===
Option "PseudoColorVisuals" "off"
Option "FSAAMSPosX3" "0.000000"

# === FireGL DDX driver module specific settings ===
# === Screen Management ===
Option "DesktopSetup" "0x00000000"
Option "TVVPosAdj" "0"
Option "FSAAMSPosX2" "0.000000"
Option "TVVSizeAdj" "0"
Option "MonitorLayout" "AUTO, AUTO"
Option "TVHStartAdj" "0"
Option "BlockSignalsOnLock" "on"
Option "FSAAMSPosY3" "0.000000"
Option "ScreenOverlap" "0"
Option "FSAAMSPosY0" "0.000000"
Option "GammaCorrectionI" "0x00000000"
Option "FSAAMSPosX4" "0.000000"

# === Misc Options ===
Option "UseFastTLS" "0"

# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
Option "TVColorAdj" "0"

# === FSAA Management ===
Option "FSAAScale" "1"
Option "no_dri" "no"

# === Center Mode (Laptops only) ===
Option "CenterMode" "off"
Option "TVHSizeAdj" "0"
Option "VRefresh2" "unspecified"
Option "UseInternalAGPGART" "no"
Option "FSAAMSPosY2" "0.000000"
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.

Section "Screen"
Identifier "Screen0"
Device "ATI Graphics Adapter"
Monitor "Monitor0"
DefaultColorDepth 16
DefaultDepth 24

Subsection "Display"
Depth 8
Virtual 1280 1024
EndSubsection

Subsection "Display"
Depth 15
Virtual 1280 1024
EndSubsection

Subsection "Display"
Depth 16
Virtual 1280 1024
EndSubsection

Subsection "Display"
Depth 24
Virtual 1280 1024
EndSubsection
#Option "backingstore"
EndSection
# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present. Each describes
# the way multiple screens are organised. A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option. In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"
# The Identifier line must be present
Identifier "Server Layout"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used. Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens. The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.

Screen "Screen0"
EndSection

-----
Any help is appreciated

Last edited by [PQ3]RogeR; 12-01-2003 at 08:05 PM.
 
Old 12-01-2003, 08:32 PM   #2
sandman
Member
 
Registered: Sep 2002
Distribution: arch
Posts: 232

Rep: Reputation: 30
This is snipped from my XF86Config-4 and my resolution is 1280x1024
Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 8
Virtual 1280 1024
EndSubsection

Subsection "Display"
Depth 15
Virtual 1280 1024
EndSubsection

Subsection "Display"
Depth 16
Virtual 1280 1024
EndSubsection

Subsection "Display"
Depth 24
Virtual 1280 1024
EndSubsection
EndSection

if you want to run it at "depth 24" then in this section...

Section "Screen"
Identifier "Screen0"
Device "ATI Graphics Adapter"
Monitor "Monitor0"
DefaultColorDepth 16
DefaultDepth 24

make it like this....

Section "Screen"
Identifier "Screen0"
Device "ATI Graphics Adapter"
Monitor "Monitor0"
DefaultColorDepth 24

you had DefaultColorDepth set to 16 and the next line
DefualtDepth 24 does nothing as it needs to be DefaultColorDepth

hope that fix's you up. Also, make sure edit that file as root, sure you know that .
 
Old 12-01-2003, 08:37 PM   #3
sandman
Member
 
Registered: Sep 2002
Distribution: arch
Posts: 232

Rep: Reputation: 30
sorry, forgot...
make sure your vertical and horizontal sync's are correct in this section closer to the top

Section "Monitor"
Identifier "Monitor0"
VendorName "Generic"
ModelName "1280x1024 @ 60 Hz"
HorizSync 31.5-80
VertRefresh 56-75
 
Old 12-02-2003, 02:40 AM   #4
notix
LQ Newbie
 
Registered: Dec 2003
Distribution: Linux-Mandrake
Posts: 3

Rep: Reputation: 0
I'm having the same problems, here's my file:

http://www.notix.net/XF86Config-4

And...

http://www.notix.net/XFree86.0.log


I think it has to do with the ModeLine or something, hmm...

P.S. [PQ3]RogeR and I both found each other in #mandrake on freenode in IRC asking questions to this same problem...
 
Old 12-05-2003, 09:47 PM   #5
[PQ3]RogeR
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
setting the HorizSync and VertRefresh didn't fix the problem... any other ideas guys?
 
Old 12-06-2003, 04:34 PM   #6
sandman
Member
 
Registered: Sep 2002
Distribution: arch
Posts: 232

Rep: Reputation: 30
did you make the changes here like i suggested?

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.

Section "Screen"
Identifier "Screen0"
Device "ATI Graphics Adapter"
Monitor "Monitor0"
DefaultColorDepth 16
DefaultDepth 24


change to.....

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.

Section "Screen"
Identifier "Screen0"
Device "ATI Graphics Adapter"
Monitor "Monitor0"
DefaultColorDepth 24
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[10.2]ATI resolution is 1400x1050 but looks like 1280x1024 Harkov Slackware 3 10-27-2005 08:48 PM
1280x1024 screen resolution fafis Linux - Newbie 2 10-08-2005 11:22 AM
cannot get a resolution to 1280x1024 chadypu Slackware 8 06-07-2005 12:53 AM
cant set 1280x1024 a2ps Fedora 11 01-25-2004 11:50 PM
Can't get my resolution set to 1280x1024 Blurp Linux - Hardware 4 12-02-2003 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration