You are not logged in.

#1 2011-05-29 18:15:07

Hazzy
Member
Registered: 2011-05-25
Posts: 6

[SOLVED] Misaligned Monitor - Black Margins Along Top and Left Sides

I currently have a dual monitor setup using Xfce4. The resolutions and location of the screens is fine, but there's a slight problem: The left screen is 'shifted' down and right by a small margin. This means There are black bars along the top and left of the monitor, and the bottom / right of it is off screen.

Currently using an HD 4800 series card with the open source driver.

My .xinitrc file

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice


xrandr --newmode "1280x1024"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync

#DVI-1 is on the left
#DVI-0 on the right

xrandr --addmode DVI-0 1280x1024
xrandr --addmode DVI-1 1280x1024

xrandr --output DVI-0 --mode 1280x1024
xrandr --output DVI-1 --mode 1280x1024

xrandr --output DVI-0 --right-of DVI-1

exec ck-launch-session dbus-launch --exit-with-session startxfce4

I've played around with both my monitor settings and xrandr commands, but I am unable to fix it. What am I missing?

Last edited by Hazzy (2011-05-29 23:29:13)

Offline

#2 2011-05-29 18:37:05

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Misaligned Monitor - Black Margins Along Top and Left Sides

Switch to dvi if you can. If you can't check the org log for edid errors, and do a calibration of your screen.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2011-05-29 21:01:10

Hazzy
Member
Registered: 2011-05-25
Posts: 6

Re: [SOLVED] Misaligned Monitor - Black Margins Along Top and Left Sides

I'm afraid I don't know what you mean. sad

Offline

#4 2011-05-29 22:37:26

BurntSushi
Member
From: Massachusetts
Registered: 2009-06-28
Posts: 362
Website

Re: [SOLVED] Misaligned Monitor - Black Margins Along Top and Left Sides

What is the output of `xrandr`?


Education is favorable to liberty. Freedom can exist only in a society of knowledge. Without learning, men are incapable of knowing their rights, and where learning is confined to a few people, liberty can be neither equal nor universal.

Tu ne cede malis sed contra audentior ito

Offline

#5 2011-05-29 22:39:34

Hazzy
Member
Registered: 2011-05-25
Posts: 6

Re: [SOLVED] Misaligned Monitor - Black Margins Along Top and Left Sides

BurntSushi wrote:

What is the output of `xrandr`?

Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 8192 x 8192
DVI-0 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0*+   75.0  
   1280x960       60.0  
   1152x864       75.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  
DIN disconnected (normal left inverted right x axis y axis)
DVI-1 connected 1280x1024+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  
   1280x1024      60.0* 

Offline

#6 2011-05-29 23:13:02

BurntSushi
Member
From: Massachusetts
Registered: 2009-06-28
Posts: 362
Website

Re: [SOLVED] Misaligned Monitor - Black Margins Along Top and Left Sides

Are you absolutely sure that DVI-1 supports a 1280x1024 mode? In your xinitrc, it looks like you're forcing the issue---but if it doesn't support that mode, then you're in trouble.

Can you get DVI-1 on 1280x1024 with another operating system/video driver?


Education is favorable to liberty. Freedom can exist only in a society of knowledge. Without learning, men are incapable of knowing their rights, and where learning is confined to a few people, liberty can be neither equal nor universal.

Tu ne cede malis sed contra audentior ito

Offline

#7 2011-05-29 23:20:46

Hazzy
Member
Registered: 2011-05-25
Posts: 6

Re: [SOLVED] Misaligned Monitor - Black Margins Along Top and Left Sides

I have never had an issue running that resolution on Window 7, Vista, or Ubuntu (10 and 11). :s

I booted into Windows today and saw the monitor problem persist, which is a first. Toyed with the monitor settings and it seems to have resolved itself, booting into Arch now to see if it carries over.

Edit: It did carry over. That's so weird....

I assume Windows used the proprietary driver, and I remember setting the resolutions via Catalyst in Ubuntu. This is, as far as I know, the first time I've tried using the open source driver. Maybe that's it?

Nonetheless, the issue seems to have resolved itself... for now. Thanks. smile

Last edited by Hazzy (2011-05-29 23:28:55)

Offline

#8 2011-05-30 09:24:13

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

Re: [SOLVED] Misaligned Monitor - Black Margins Along Top and Left Sides

Next time you can start by pushing some buttons on the monitor itself - I have one labeled 'Auto' which nicely aligns the picture if it become shifted for some reason. If it doesn't work the first time, hit it again or go through the OSD menus and try to manually adjust horizontal and vertical position.

Offline

Board footer

Powered by FluxBB