You are not logged in.

#1 2012-01-25 17:28:50

Ron74
Member
Registered: 2010-01-24
Posts: 31

Xorg Dual Monitors

I appologize if I put this post into the wrong section.

I first used dual monitors several years ago with FreeBSD.  But with the later versions of Xorg, I ran into trouble and so switched to debian Lenny for my two monitor computer where I have done X-configure and put the xorg.conf file into /etc/X11.  I have no trouble installing Arch with single monitor, but after reading the FMs, searching the forums, much Googling and experimentation, I'm absolutely confused about dual monitors with Arch, or more likely, the newer X-org.

At this point, I have done a fresh install.  The computer has an AGP and a PCI card, both old nVidias.  I have no need for fancy graphics, so I installed vesa. I have followed the Guide explicitly, and have installed the JWM window manager which now displays on the left monitor.  The right monitor is blank, black. If I ever get both monitors running, I'll be using ratpoison for a window manager. I have made no attempt, here, to do anything with dual monitors.

I don't know whether to continue trying to use xorg.conf or the 10-monitor.d thing.  The Xorg WIKI is, at least to me, total confusion.  Maybe I shouldn't be using the nvidia cards; I could pick up a couple old ATI cards.  I don't expect to be spoon fed, but would just like to see some clearly worded instructions on using using  10-monitor.d which I don't understand.

Any suggestions are greatly appreciated.

Offline

#2 2012-01-25 17:37:12

JuseBox
Member
Registered: 2009-11-27
Posts: 260

Re: Xorg Dual Monitors

Have you tried looking into xrandr? Here is something that I use for my setup. This auto runs on my setup once I log in.

--------------------------------------------------------------------------------
$ @Archlinux 12:34 PM ~
--------------------------------------------------------------------------------
 > cat .config/start-it/dual-it-up 
#!/bin/bash
# Script for dual monitors on openbox

LVDS="LVDS1"
VGA="VGA1"
HDMI="HDMI1"

CHK_VGA=$(xrandr |grep $VGA | awk ' { print $2 } ')
CHK_HDMI=$(xrandr |grep $HDMI | awk ' { print $2 } ')

CHK_VGA_G=$(xrandr |grep $VGA | grep "+")
CHK_HDMI_G=$(xrandr |grep $HDMI | grep "+")

function dual_it_up(){
xrandr --output $LVDS --off --output $VGA --auto --output $HDMI --auto
xrandr --output $VGA --right-of $HDMI
}

if [ "$CHK_VGA" == "connected" ] || [ "$CHK_HDMI" == "connected" ]; then
    dual_it_up
elif [ "$CHK_VGA_G" ] || [ "$CHK_HDMI_G" ]; then
    dual_it_up
else
    xrandr --output $LVDS --auto
fi

feh --bg-scale $HOME/.wallpaper.jpg

exit 0

Of course my devices are going to be different then yours. I don't really mess with the xorg settings much because this has always worked fine for me. In case you were wondering, this script checks the connected devices on my laptop. If it detects my two monitors, one being hdmi and the other vga, then it connects becasue its on a dock. If it doesn't then it configures x for my laptops display all with --auto which will assign the best resolution automatically.

Last edited by JuseBox (2012-01-25 17:37:29)


Linux ArchLinux 3.2.8-1-ARCH
#1 SMP PREEMPT Mon Feb 27 21:51:46 CET 2012 x86_64 AMD FX(tm)-8120 Eight-Core Processor AuthenticAMD GNU/Linux
8192MB DDR3 1300MHz | Asus m5a97 | GeForce GTX 550 Ti | 120 GB SSD

Offline

#3 2012-01-25 17:56:55

Ron74
Member
Registered: 2010-01-24
Posts: 31

Re: Xorg Dual Monitors

JuseBox wrote:

Have you tried looking into xrandr? Here is something that I use for my setup. This auto runs on my setup once I log in.

I'll try this and get back.

==>  xrandr does not regognize the second monitor.  I'm giving up on trying to install dual monitors with Arch.   Thanks for your efforts.

Last edited by Ron74 (2012-01-26 18:36:36)

Offline

#4 2012-07-12 15:28:22

cmorin
Member
Registered: 2012-02-16
Posts: 1

Re: Xorg Dual Monitors

JuseBox wrote:

Have you tried looking into xrandr? Here is something that I use for my setup. This auto runs on my setup once I log in.

--------------------------------------------------------------------------------
$ @Archlinux 12:34 PM ~
--------------------------------------------------------------------------------
 > cat .config/start-it/dual-it-up 
#!/bin/bash
# Script for dual monitors on openbox

LVDS="LVDS1"
VGA="VGA1"
HDMI="HDMI1"

CHK_VGA=$(xrandr |grep $VGA | awk ' { print $2 } ')
CHK_HDMI=$(xrandr |grep $HDMI | awk ' { print $2 } ')

CHK_VGA_G=$(xrandr |grep $VGA | grep "+")
CHK_HDMI_G=$(xrandr |grep $HDMI | grep "+")

function dual_it_up(){
xrandr --output $LVDS --off --output $VGA --auto --output $HDMI --auto
xrandr --output $VGA --right-of $HDMI
}

if [ "$CHK_VGA" == "connected" ] || [ "$CHK_HDMI" == "connected" ]; then
    dual_it_up
elif [ "$CHK_VGA_G" ] || [ "$CHK_HDMI_G" ]; then
    dual_it_up
else
    xrandr --output $LVDS --auto
fi

feh --bg-scale $HOME/.wallpaper.jpg

exit 0

Of course my devices are going to be different then yours. I don't really mess with the xorg settings much because this has always worked fine for me. In case you were wondering, this script checks the connected devices on my laptop. If it detects my two monitors, one being hdmi and the other vga, then it connects becasue its on a dock. If it doesn't then it configures x for my laptops display all with --auto which will assign the best resolution automatically.

Sorry to bring this up, but this is exactly what I have been looking for. Do you mind me asking where you saved this script and how you get it to run at login?

Offline

#5 2012-07-12 15:54:08

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

Re: Xorg Dual Monitors

@Ron74 - It sounds like you have two video cards. If this is true, xrandr will be useless to you. You'll need to configure your monitors the old school way with Xinerama in an xorg.conf.

cmorin wrote:

Sorry to bring this up, but this is exactly what I have been looking for. Do you mind me asking where you saved this script and how you get it to run at login?

You have to tell us how you're starting X. If you're using 'startx', then you could call the script in your ~/.xinitrc. If you're using openbox, you could call it in your ~/.config/openbox/autostart. If you're using KDE or GNOME, you'll have to figure out where they want startup scripts. (With KDE, it might be in your ~/.kde4/env, but don't take my word for it. It's been a while since I've used KDE.)

Also, in the future, please prefer posting a new thread over bumping an old one. (If necessary, quote or link to an old post in your new thread.)


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

Board footer

Powered by FluxBB