You are not logged in.

#1 2013-04-10 22:36:47

jaredanderson
Member
Registered: 2013-04-06
Posts: 20

[SOLVED] xorg monitor configuration

I have been reading the xrandr entry as well as the Nouveau entry, although i am not using nvidia, in the arch linux wiki and they have been incredibly helpful in this but I am stuck. I have been trying to configure x to connect my monitor at start and it works but the resolution on my external monitor is set at  1152x864 instead of 1680x1050. here is my 10-monitor.conf file located in /etc/x11/xorg.conf.d

 
# the right one
Section "Monitor"
          Identifier   "LVDS1"
          Option "PreferredMode" "1366x768_60.00"
EndSection

# the left one
Section "Monitor"
          Identifier   "VGA1"
          Option "PreferredMode" "1680x1050_60.00"
          Option "LeftOf" "LVDS1"
EndSection

Section "Device"
    Identifier "Device0"
    Driver "intel"
    Option  "Monitor-VGA1" "VGA1"
    Option  "Monitor-LVDS1" "LVDS1"
EndSection

Section "Screen"
    Identifier             "Screen0"  #Collapse Monitor and Device section to Screen section
    Device                 "Device0"
    DefaultDepth            24 #Choose the depth (16||24)
    SubSection             "Display"
        Depth               24
	Virtual  3046 1818
    EndSubSection
EndSection

Last edited by jaredanderson (2013-04-10 23:22:30)

Offline

#2 2013-04-10 22:46:56

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] xorg monitor configuration

Have you tried it simply with the xrandr command in your .xinitrc instead of a .conf file?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-04-10 22:55:27

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] xorg monitor configuration

You're not defining modes named "1366x768_60.00" and "1680x1050_60.00" anywhere, so of course it won't work. Though usually it shouldn't be needed, the display sends the EDID to the machine, informing the system of it's capabilities. Can you try a different VGA cable? Bad cables can sometimes prevent the EDID from being sent.

You also have unneeded stuff in that config. This is all that should be needed:

Section "Monitor"
          Identifier   "LVDS1"
          Option "Primary" "true"
EndSection

Section "Monitor"
          Identifier   "VGA1"
          Option "LeftOf" "LVDS1"
EndSection

If that won't work even with a different VGA cable, you need to define the mode. You do that with cvt:

$ cvt 1680 1050 60
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync

Now you put those numbers into the config:

Section "Monitor"
          Identifier   "LVDS1"
          Option "Primary" "true"
EndSection

Section "Monitor"
          Identifier   "VGA1"
          Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
          Option "PreferredMode" "1680x1050_60.00"
          Option "LeftOf" "LVDS1"
EndSection

Offline

#4 2013-04-10 23:14:43

jaredanderson
Member
Registered: 2013-04-06
Posts: 20

Re: [SOLVED] xorg monitor configuration

Inxsible I was debating going that method when trying to set up this whole thing but the archwiki said this was the preferred method and it seemed to make sense to edit the config rather then having another command being run at startup, though I am sure it makes little difference. Gusar I unfortunatly don't have another vga cable. I took out the uneeded parts of the config file and it now actually makes sense to me. that didn't solve the problem so I ran cvt and added the modeline it gave me to the config file and then it worked like a charm thank you.

Offline

Board footer

Powered by FluxBB