You are not logged in.
Hey guys,
I'm trying to get my dual monitors set up using the nouveau drivers. I've read the wiki for nouveau as well as xorg, and some posts on them as well. I've seen some .conf files I could just copy and paste, but I'd like to try to write my own and understand it as well. After reading man xorg.conf, this is what I've come up with -
Section "ServerLayout"
Identifier "Layout0"
Screen "Screen0"
Screen "Screen1" RightOf "Screen0"
EndSection
Section "Device"
Identifier "Card0"
Driver "nouveau"
EndSection
Section "Monitor"
Identifier "DVI-I-1"
EndSection
Section "Monitor"
Identifier "DVI-I-2"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "DVI-I-1"
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card0"
Monitor "DVI-I-2"
EndSection
Which, as far as I can tell, is doing absolutely nothing. Where am I going wrong?
Thanks
Last edited by DanielJackins (2011-05-09 07:48:34)
Offline
Simply use xrandr to set up the screens. You probably do not need a .conf file unless both monitors have a different default resolution - in which case you will need to specify which resolution you want on each monitor.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I thought the numbering started from zero. Anyway, I think the way to make X use xrandr for dualhead automatically is to put the following in the "Device" section of xorg.conf:
Option "Monitor-DVI-I-0" "DVI-I-1"
Option "Monitor-DVI-I-1" "DVI-I-2"
Last edited by ConnorBehan (2011-05-08 20:17:53)
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
Inxsible - How? As it stands when I first start up X I can get the other monitor working by entering "xrandr --output DVI-I-2 --right-of DVI-I-1", do you mean just keep doing it like that or put that in my .bashrc or something?
ConnorBehan - I tried entering that and couldn't see any noticeable changes either.
Thanks for the replies
Offline
Inxsible - How? As it stands when I first start up X I can get the other monitor working by entering "xrandr --output DVI-I-2 --right-of DVI-I-1", do you mean just keep doing it like that or put that in my .bashrc or something?
Indeed. Put it in your ~/.xinitrc (or whatever startup file your window manager/DE uses).
You probably don't need an xorg.conf file at all.
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
Yup. .xinitrc is where I used xrandr to set up my monitors. I had a 10-monitor.conf file, however, simply because the highest resolutions supported on each of my monitors was different. (one was widescreen, the other was a regular monitor) So I just defined what resolution I wanted each of them to be set at in the .conf file.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Yup. .xinitrc is where I used xrandr to set up my monitors. I had a 10-monitor.conf file, however, simply because the highest resolutions supported on each of my monitors was different. (one was widescreen, the other was a regular monitor) So I just defined what resolution I wanted each of them to be set at in the .conf file.
You could use something like...
xrandr --output VGA-0 --auto --output VGA-1 --auto --right-of VGA-0
and it should pick up the best resolution on each monitor. Although, I suppose there are cases where this won't work. (When the monitor doesn't behave and reports bad resolutions masquerading as the best.)
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
Okay so my .xinitrc looks like this, but it's not working.
exec dwm
xrandr --output DVI-I-2 --right-of DVI-I-1
I've also tried putting exec and command in front of the line
EDIT: Nevermind, didn't know exec dwm had to come afterwards. Thanks for the help
Last edited by DanielJackins (2011-05-09 07:45:45)
Offline
@BurntSushi, yeah for some reason, --auto just wouldn't work for me. It just used to set both monitors at 1280x1024 (the highest res of the old monitor). I wanted 1680x1050 on my new monitor.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline