You are not logged in.

#1 2010-12-08 02:47:50

Sean-Der
Member
Registered: 2007-09-30
Posts: 88

Force a monitor resolution

Right now I am trying to display a resolution on a monitor that is not displaying correctly. So far I am able to allow it with randr and then set it, but thats only temporary. Here is my xorg.conf so far

Section "Device"

        Identifier      "Intel 945G "

        Driver         "intel"

 

        # Using the name of the output defined by the video driver plus the identifier of a

        #     monitor section, one associates a monitor section with an output by adding an

        #     option to the Device section in the following format:

        #     Option "Monitor-outputname" "monitor ID"

        Option          "monitor-VGA1" "External"

        Option          "monitor-LVDS1" "Internal"

        #Option         "monitor-TMDS-1" "dvi"

EndSection

 

Section "Monitor"

        Identifier      "External"

#    Modeline     "1280x1024" 60

        # specifies a mode to be marked as the preferred initial mode of the monitor

        Option "PreferredMode"  "1280x1024"

        # This optional entry specifies the position of the monitor within the X screen.

        #Option        "Position" "1024 0"

        #This optional entry specifies that the monitor should be ignored

        #     entirely, and not reported through RandR.  This is useful if the

        #     hardware reports  the  presence  of  outputs  that do not exist.

        #Option "Ignore"  "true"

EndSection

 

Section "Monitor"

        Identifier      "Internal"

 

        #Options LeftOf, RightOf, Above, Below specify monitors' relative position

        Option "RightOf"  "External"

        # This optional entry specifies  whether  the  monitor  should  be

        #     turned  on  at  startup.  By default, the server will attempt to

        #     enable all connected monitors.

        #Option "Enable"  "true"       

        #This optional entry specifies the initial rotation of the given monitor.

        #     Valid values for rotation are "normal", "left", "right", and "inverted".

        # Option "Rotate"  "left"

EndSection

 

Section "Screen"

        Identifier      "Default Screen"

        Device        "Intel Corporation 945G Integrated Graphics Controller"

        Monitor       "Internal"

        DefaultDepth  24

        SubSection "Display"

                Depth          24

                Modes         "1680x1050" "1280x1024"  "1024x768"   "640x480"

        EndSubSection

EndSection

I really want to force a 1280x1024 resolution on VGA1. How would I go about this?

Offline

#2 2010-12-08 04:02:37

CountDuckula
Member
Registered: 2010-02-28
Posts: 151

Re: Force a monitor resolution

You could try removing the the other display mode settings leaving just the 1280x1024 setting assuming you just want the one display resolution

Offline

#3 2010-12-08 11:38:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Force a monitor resolution

Why is it temporary? Try putting it in your ~/.xinitrc:

xrandr --fb 1280x1024

Offline

#4 2010-12-08 16:33:55

Leviathan1
Member
Registered: 2010-11-24
Posts: 19

Re: Force a monitor resolution

The traditional way to do it, without xrandr is the change the Modes line in the display section of section screen.
Just comment out the old entry and change it to just:
Modes "1280x1024"

Offline

#5 2010-12-08 16:42:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Force a monitor resolution

Leviathan1 wrote:

The traditional way to do it, without xrandr is the change the Modes line in the display section of section screen.
Just comment out the old entry and change it to just:
Modes "1280x1024"

That's what IIRC

Option "PreferredMode"  "1280x1024"

should do. But it seems it doesn't.

I'm not using xorg.conf anymore - maybe try running xorg w/o one too.

Offline

Board footer

Powered by FluxBB