LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   X Screen Resolution (https://www.linuxquestions.org/questions/slackware-14/x-screen-resolution-525578/)

CrEsPo 02-04-2007 04:18 PM

X Screen Resolution
 
I just installed the ATI drivers successfully. DRI works perfectly, but I'm having problems with the monitor resolution. I've set the resolution to 1440x900 in the /etc/X11/xorg.conf file, but the resolution continues to stay at 1024x768. The monitor can handle the 1440x900 resolution because that's what I had it set to using the vesa drivers. Also, the native resolution of the laptop is 1440x900.

Here's my xorg.conf:

Code:

Section "Screen"
        Identifier "aticonfig-Screen[0]"
        Device    "aticonfig-Device[0]"
        Monitor    "aticonfig-Monitor[0]"
        DefaultDepth    24
        SubSection "Display"
                Depth    8
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth    16
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth    24
                Modes    "1440x900"
        EndSubSection
        SubSection "Display"
                Depth    32
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

As you can see I've set the DefaultDepth to 24 and in the Depth 24 section I've set the resolution to 1440x960. If you need any more sections from the xorg.conf please let me know. I didn't post the whole thing so as to not clutter the topic with useless information.

GrapefruiTgirl 02-04-2007 04:33 PM

Try running xorgconfig or xorgsetup from a root console, whichever one it is that is NOT the automatic one, use the fully manual one, and set it up in there. Also, not sure but perhaps you ought to put a couple other modes/sizes in there too, maybe it wants to see 3 modes available.
Also, set that resolution in the other depth sections too, and see if you can use any of them.
Check the X log and the var/log/syslog and var/log/messages for any clues too.
SV
also, if your monitor needs a specific refresh-rate in order to run at that mode (check the manual) you may need to set it like this:

HorizSync 30-86

VertRefresh 50-160

ONLY EXAMPLES!!! These are for my monitor -- CHECK the MANUAL to avoid damage or weird stuff happening.

Also I have a VIEWPORT setting in my xorg.conf in each monitor resolution area:

ViewPort 0 0

Maybe you need one??

CrEsPo 02-04-2007 05:03 PM

Thanks for the reply, but I think I realized my mistake. I think the resolution is actually 1440x900, but the fonts in most applications increased to make them look huge and bulky. After changing the fonts to ~8pt everything seems to look normal.

One question though, is there a command to show you what resolution you are on? From my window manager I think it's 1440x900 after looking at the Window size, but it would be nice to confirm this assumption.

Oh, and does anyone know why the drivers affected the font so much? Going from the vesa drivers to the ati drivers has a huge change in the font size. I had to go down 4pts to get things to look normal.

Eternal_Newbie 02-04-2007 05:51 PM

Try running
Code:

xdpyinfo | grep dimension
and
Code:

xdpyinfo | grep resolution
in an xterm to find your overall resolution and dpi.

CrEsPo 02-04-2007 05:58 PM

Thanks for the reply :)

Code:

xdpyinfo | grep dimension
  dimensions:    1440x900 pixels (370x230 millimeters)
xdpyinfo | grep resolution
  resolution:    99x99 dots per inch

Seems the dimensions are correct, but is the resolution correct? I thought 72dpi was standard on most monitors. That could explain why everything was so big, is there anyway to change the dpi in the xorg.conf? Thanks :).

Eternal_Newbie 02-05-2007 05:33 AM

Not necessarily, XWindows usually defaults to 72 or 75 dpi so the default fonts sizes are set to look good at those dpi's. Assuming 370x230mm is the dimension of your screen X managed to read your monitors specs from its ESSID.

If not then you need to set your dpi manually, this can be labourious and confusing. It may be easier to adjust the font sizes to look good on your monitor, but having to adjust them down to 4 points strongly suggests that X has your screen dimensions wrong.

If you are willing to delve further, than get out the manual for your monitor, and this thread (scroll down a bit) at the Dropline forums and this article at HumanReadable may be of help. There will also be threads on this topic here at LinuxQuestions. Good luck!

CrEsPo 02-05-2007 07:31 AM

Thank-you, will try looking at the DisplaySize option :).


All times are GMT -5. The time now is 03:24 PM.