Paul L. Snyder on 10 Apr 2010 20:55:30 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Limit Screen Resolution in X


On Sat, 10 Apr 2010, Casey Bralla wrote:

> So.... How can I get X to limit its resolution to something "normal" (ie: 
> 1024x768)?
> 
> I tried using the "gft" program today and set an explicit modeline in my 
> xorg.conf file, but this didn't seem to work.  (Maybe I made a typo or did it 
> wrong?)   X has changed recently and apparently doesn't really even need a 
> config file when HAL is running, but I'm not knowledgeable of how this works.

I haven't had to use old-style modelines in quite a while.  Try adding a
Monitor section with appropriate HorizSync and VertRefresh parameters (you should
be able to find them somewhere on the 'net:

 Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Samsung"
    ModelName      "Samsung SyncMaster"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
 EndSection
 
And then make sure your Screen section points to the Monitor:

 Section "Screen"
    Identifier          "Screen0"
    Device              "Your Device"
    Monitor             "Monitor0"
    DefaultDepth        24 

    SubSection "Display"
        Depth           24
        Modes           "1024x768" "800x600" "640x480"
    EndSubSection
 End Section

You may need other options and sections, depending on your setup, and
you'll need to specify the section for your graphics card (device) as
well.

Paul
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug