Dual-head OpenBSD 4.5 and NVIDIA GeForce 7300 GT

Previous thread: REQUEST OF INFORMATION by Cedric on Friday, March 27, 2009 - 4:26 am. (1 message)

Next thread: 4.5 on MSI NetTop by Jan Stary on Friday, March 27, 2009 - 7:27 am. (2 messages)
To: <misc@...>
Date: Friday, March 27, 2009 - 6:38 am

Hi folks.
I have 4.5 GENERIC.MP on my machine and I'd like to have it dual-head.
My dmesg is at the bottom, if you want more information or output, I'll give that.
I tried to setup new xorg.conf with two screens but without any luck.
I also googled for any idea, but it also fails.
It works on linux with modified config, but I don't want it on my machines.
Every idea or question is welcome. Thanks.

OpenBSD 4.5-beta (GENERIC.MP) #63: Tue Feb 10 07:57:12 MST 2009
todd@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Pentium(R) D CPU 2.80GHz ("GenuineIntel" 686-class) 2.80 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,
SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR
real mem = 2146988032 (2047MB)
avail mem = 2067771392 (1971MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/08/05, BIOS32 rev. 0 @ 0xfac20, SMBIOS rev. 2.3 @ 0xf0100 (39 entries)
bios0: vendor Award Software International, Inc. version "F6" date 11/08/2005
bios0: Gigabyte Technology Co., Ltd. 8I945GMF
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP MCFG APIC
acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5) PEX5(S5) HUB0(S5) USB0(S1) USB1(S1) USB2(S1) USB3(S1) USBE
(S1) AC97(S5) MC97(S5) AZAL(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) D CPU 2.80GHz ("GenuineIntel" 686-class) 2.80 GHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,
SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus 3 (PEX1)
acpiprt3 at acpi0: bus -1 (PEX2)
...

To: Kamil Monticolo <k.monticolo@...>
Cc: <misc@...>
Date: Friday, March 27, 2009 - 8:09 am

have you tried xrandr(1)?

HTH

Fred

To: Kamil Monticolo <k.monticolo@...>
Cc: <misc@...>
Date: Monday, March 30, 2009 - 3:22 am

Hi Kamil,

maybe I missed the point but the option "DualHead" works fine if using
the "nv" driver. If I remember correctly it is necessary to have the
same resolution on both monitors when working with DualHead.

42 Section "Monitor"
43 #DisplaySize 380 300 # mm
44 Identifier "Monitor0"
45 VendorName "HSD"
46 ModelName "Hanns.G HQ191"
47 HorizSync 30.0 - 80.0
48 VertRefresh 56.0 - 75.0
49 Option "DPMS"
50 EndSection
51
52 Section "Device"
53 ### Available Driver options are:-
54 ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
55 ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
56 ### [arg]: arg optional
57 #Option "SWcursor" # [<bool>]
58 Option "HWcursor" "true" # [<bool>]
59 Option "NoAccel" "false" # [<bool>]
60 #Option "ShadowFB" # [<bool>]
61 #Option "UseFBDev" # [<bool>]
62 #Option "Rotate" # [<str>]
63 #Option "VideoKey" # <i>
64 #Option "FlatPanel" # [<bool>]
65 #Option "FPDither" # [<bool>]
66 #Option "CrtcNumber" # <i>
67 #Option "FPScale" # [<bool>]
68 #Option "FPTweak" # <i>
69 Option "DualHead" "true" # [<bool>]
70 Option "XaaNoOffscreenPixmaps" "true"
71 Identifier "Card0"
72 Driver "nv"
73 VendorName "NVIDIA"
74 BoardName "GeForce 7300 GS"
75 BusID "PCI:1:0:0"
76 EndSection

--
Tobias Sarnowski / software developmen...

To: Openbsd Misc (E-mail) <misc@...>
Cc: Kamil Monticolo <k.monticolo@...>
Date: Monday, March 30, 2009 - 6:57 am

This is my xorg.conf which works on the 4.4 snapshot I was running.
Unfortunately I can't get three screens going, and the 4.5 snapshot I
tried to upgrade to on Friday is currently crashing on startup, so I
can't tell if it's any better yet. This may well be a factor, as my
xorg.conf is pretty straightforward :

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" LeftOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/OTF"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "freetype"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "wsmouse"
Option "Device" "/dev/wsmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f...

To: Peter <syllopsium@...>
Cc: Kamil Monticolo <k.monticolo@...>, Openbsd Misc (E-mail) <misc@...>
Date: Tuesday, March 31, 2009 - 12:31 pm

Unfortunately I have to inform you that months and months ago X.org
broke multi-card X for everyone, and they have not fixed it yet.

Until they fix that, you can only use one video card.

They have shown strong reluctance to fix the damage.

Go to their mailing lists and complain.

To: Tobias Sarnowski <sarnowski@...>
Cc: <misc@...>
Date: Tuesday, March 31, 2009 - 7:21 am

On Mon, 30 Mar 2009 09:22:52 +0200
Thanks Tobias,
this is exactly what I need, I tried to set DualHead option to true option, but I still get one working screen, maybe I did it without quotes. Thanks all you guys for help.
--
Kamil Monticolo

To: <misc@...>
Date: Monday, March 30, 2009 - 4:51 am

Hi,

Well, I use an ATI card, so it is for the archive ... may be it is of any help
for the nvidia users?!

1) See my xorg.conf below, the only line I had to change here to use dual head
resolution, is in the screen section, I added: "Virtual 3840 1200"

2) I added this line in my .xinitrc:
xrandr --fb 1920x1200 --output DVI-0 --left-of DVI-1 &

Now I have multihead working great, no need to add more monitor, device and
screen section anymore etc .... isn't that easy? ;-)

My Xorg.conf:

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
#RgbPath "/usr/X11R6/share/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/OTF"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
Load "GLcore"
Load "dbe"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "dri"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "wsmouse"
Option "Device" "/dev/wsmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
#DisplaySize 520 320 # mm
Identifier "Monitor0"
VendorName "BNQ"
ModelName "BenQ G2400W"
### Comment all HorizSync and VertRefresh values to use DDC:
HorizSync 31.0 - 94.0
VertRefresh 50.0 - 85...

To: Kamil Monticolo <k.monticolo@...>
Cc: <misc@...>
Date: Friday, March 27, 2009 - 10:00 am

On Fri, Mar 27, 2009 at 5:38 AM, Kamil Monticolo

Someone already mentioned xrandr . . .

Well, I just finished setting up a dual head set-up using xrandr. Below is
my xorg.conf (which was a slight variation of the generic one provided by *X
-configure*). I also consulted
http://www.thinkwiki.org/wiki/Xorg_RandR_1.2and it's manpage for basic
commands.

I'm still practicing moving around in such an environment, but it works and,
given this is my first dual head set-up/configuration, it was quite
painless.

Good Luck!

1 Section "ServerLayout"
2 Identifier "X.org Configured"
3 Screen 0 "Screen0" 0 0
4 InputDevice "Mouse0" "CorePointer"
5 InputDevice "Keyboard0" "CoreKeyboard"
6 EndSection
7
8 Section "Files"
9 ModulePath "/usr/X11R6/lib/modules"
10 FontPath "/usr/X11R6/lib/X11/fonts/misc/"
11 FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
12 FontPath "/usr/X11R6/lib/X11/fonts/OTF"
13 FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
14 FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
15 FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
16 EndSection
17
18 Section "Module"
19 Load "GLcore"
20 Load "dbe"
21 Load "dri"
22 Load "extmod"
23 Load "glx"
24 Load "record"
25 Load "xtrap"
26 Load "freetype"
27 Load "type1"
28 EndSection
29
30 Section "InputDevice"
31 Identifier "Keyboard0"
32 Driver "kbd"
33 EndSection
34
35 Section "InputDevice"
36 Identifier "Mouse0"
37 Driver "mouse"
38 Option "Protocol" "wsmouse"
39 Option "Device" "/dev/wsmouse"
40 Option "ZAxisMapping" "4 5 6 7"
41 EndSection
42
43 Section "Monitor"
44 Identifier "Monitor0"
45 VendorName "Lenove"
46 ModelName "T400"
47 EndSection
48
49 S...

To: Neal Hogan <nealhogan@...>
Cc: <misc@...>
Date: Friday, March 27, 2009 - 11:27 am

On Fri, 27 Mar 2009 09:00:21 -0500

Neil, I just rewrited your config a little bit to fit my hardware.
Now I see, that I can scroll left screen from left to right by mouse, but right monitor remains black (on earlier configs, I get an colour ASCII or blinks on it).
Here is new version of that config:

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/OTF"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "freetype"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "wsmouse"
Option "Device" "/dev/wsmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "IVM"
ModelName "PLE430/431"
HorizSync 24.0 - 83.0
VertRefresh 55.0 - 76.0
Option "DPMS"
EndSection

--
Kamil Monticolo

To: Kamil Monticolo <k.monticolo@...>
Cc: <misc@...>
Date: Friday, March 27, 2009 - 11:44 am

On Fri, Mar 27, 2009 at 10:27 AM, Kamil Monticolo

Just to be clear . . . your set-up is not working? I can't comment too
deeply on the matter, since this is rather new to me as well. But here's
what comes to mind.

With my config I just typed

xrandr --output VGA --auto --left-of LVDS

and both screens work and I can move freely back and forth. Perhaps, try
shutting off the left screen

xrandr --output "your-leftscreen" --off

and then turn it back on using the first script above.

--
www.nealhogan.net www.lambdaserver.com

Cc: <misc@...>
Date: Friday, March 27, 2009 - 10:13 am

If anyone goes further and sets up multi-seat, it would be interesting
to read about.

Regards
-Lars

Previous thread: REQUEST OF INFORMATION by Cedric on Friday, March 27, 2009 - 4:26 am. (1 message)

Next thread: 4.5 on MSI NetTop by Jan Stary on Friday, March 27, 2009 - 7:27 am. (2 messages)