You are not logged in.

#1 2012-03-13 02:02:51

moscar
Member
Registered: 2012-03-12
Posts: 23

X start with wrong resolution

I have a 1920x1080 monitor, but X always start in 1024x768 even though bootup screen runs in 1920x1080 after setting kms.

I'm able to run

xrandr --output HDMI1 --mode 1920x1080

once I'm in my WM (awesome) and that gives me the right resolution. However I would like to have that when X start.

The card I'm using is an onboard intel (i5) with the xf86-video-intel driver.

I have read something about X choosing the wrong resolution if it get the wrong data from the monitor, but I don't know enough about X and Xorg.conf to solve it. Hopefully some of you do ;)

xrandr -q looks like this after I run the xrandr line mentioned above:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0* 
   800x600        60.3     56.2  
   848x480        60.0  
   640x480        59.9  
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 160mm x 90mm
   1920x1080      60.0*+
   1600x1200      60.0  
   1680x1050      60.0  
   1280x1024      75.0     60.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1280x800       59.8  
   1152x864       75.0  
   1280x720       50.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1
DP1 disconnected (normal left inverted right x axis y axis)

My Xorg.0.log looks like this: http://pastebin.com/1nMJ2ZzE (quite long)

I use SLiM as login manager and Awesome as WM, but this also happend when I used gdm and gnome 3, though gnome where able to change to the right resolution once I logged in.

My monitor is a Samsung SyncMaster P2770HD.

I hope you are able to help me with this issue, and thanks for your time.

Offline

#2 2012-03-13 03:32:23

magicalChicken
Member
From: in the sky
Registered: 2012-03-03
Posts: 73
Website

Re: X start with wrong resolution

You can set monitor settings in a file in the /etc/X11/xorg.conf.d directory. Follow these instructions

to set it.

Offline

#3 2012-03-13 06:18:32

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: X start with wrong resolution

[    27.033] (==) Using config directory: "/etc/X11/xorg.conf.d"

I take you don't have a xorg.conf in your /etc/X11 directory, so the resolution isn't specified anywhere. Try specifying them. Info on how to do that can be found here.

EDIT: I somehow overlooked the previous post. What he said basically.

Last edited by Gcool (2012-03-13 06:19:08)


Burninate!

Offline

#4 2012-03-13 14:56:16

moscar
Member
Registered: 2012-03-12
Posts: 23

Re: X start with wrong resolution

I have tried to follow that and so far I have the 10-monitor.conf, which still isn't working:

Section "Monitor"
    Identifier                "Monitor0"
    ModelName          "HDMI1"
    HorizSync		      30.0 - 81.0 # Taken from
    VertRefresh         56.0 - 75.0 # http://www.monitors-catalog.com/samsung-syncmaster-p2770hd-27-inch-computer-lcd-monitor-catalog
EndSection

Section "Device"
    Identifier             "Device0"
    Driver                 "intel" #Choose the driver used for this monitor
    #BusID		   "PCI:0:2:0" # Bus ID of Intelcard
    Option 	           "monitor-HDMI1" "Monitor0"
EndSection

Section "Screen"
    Identifier             "Screen0"  #Collapse Monitor and Device section to Screen section
    Device                 "Device0"
    Monitor                "Monitor0"
    DefaultDepth            24 #Choose the depth (16||24)
    SubSection             "Display"
        Depth               24
        Modes              "1920x1080_60.00" #Choose the resolution
    EndSubSection
EndSection

On thing that seem to be causing problems it that my graphicscard has two outputs? VGA1 and HDMI1.
If I remove

Option 	           "monitor-HDMI1" "Monitor0"

from the device section I get this in the Xorg.0.log.

[    25.753] (II) intel(0): Output VGA1 using monitor section Monitor0
[    25.986] (II) intel(0): Output HDMI1 has no monitor section

If I have it, I get:

[    25.753] (II) intel(0): Output VGA1 using monitor section Monitor0
[    25.986] (II) intel(0): Output HDMI1 using monitor section Monitor0

I don't know what that VGA1 output is doing, my motherboard doesn't even have a physical VGA output. Maybe it is causing some problems. Can I disable it somehow?

If I uncomment the BusID there is no difference since I only have two graphiccards (I assume VGA1 and HDMI1 both refer to 0:2:0
See my lspci | grep -a vga

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Antilles [AMD Radeon HD 6990]

The second card (6950) is disabled in modprobe by blacklisting the radeon driver, so I doubt that is doing anything evil.

Again here is my Xorg.0.log after the changes: http://pastebin.com/2YmCAsUc

Offline

#5 2012-03-13 15:01:31

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: X start with wrong resolution

Have you tried putting that xrandr command in your .xinitrc?  That's what I do, but in my case I'm only re-arranging the displays on a dual-head system.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#6 2012-03-13 15:08:19

moscar
Member
Registered: 2012-03-12
Posts: 23

Re: X start with wrong resolution

alphaniner wrote:

Have you tried putting that xrandr command in your .xinitrc?  That's what I do, but in my case I'm only re-arranging the displays on a dual-head system.

I did try that before posting, but couldn't get it working. Then I just checked again and I had put it after the line where I start awesome. I does work when I put it before that obviously wink

I guess this works fine for now, but I wouldn't mind figuring out this issue hand have 1920x1080 all the way from boot to wm wink

Thanks!

Offline

Board footer

Powered by FluxBB