did some further investigation and it would appear that the latest stable proprietary nvidia drivers don't support xrandr. the latest beta does but only xrandr 1.2. i've used their nvidia-settings tool and while i can use this to enable the hdmi out successfully, if i save the config to xorg.conf it messes up gnome following a x server restart. xorg.conf contains :
Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 295.53 (mockbuild@builder1.ovh.rpmfusion.lan) Tue May 22 21:10:13 CEST 2012
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 1920 0
Screen 1 "Screen1" LeftOf "Screen0"
Option "Xinerama" "0"
EndSection
Section "Files"
FontPath "/usr/share/fonts/default/Type1"
ModulePath "/usr/lib64/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib64/xorg/modules"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "ViewSonic VP2650wb"
HorizSync 31.0 - 92.0
VertRefresh 50.0 - 85.0
Option "DPMS"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "CYP HDMI-DA"
HorizSync 13.0 - 46.0
VertRefresh 23.0 - 61.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 430"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 430"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-1: 1920x1080 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
this is, as created by the nvidia-settings tool, with the two :
Code:
ModulePath "/usr/lib64/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib64/xorg/modules"
lines added to ensure the correct glx module is loaded.
having thought about this some more, i'm not sure what i'm trying to achieve is even possible. basically, when the desktop boots i want the primary display to be used as a standard desktop logging into gnome via gdm, etc. but i also want a service to start that will run an application as a specific app user and output it's display via the hdmi out. as a simple test, if i export DISPLAY to be :0.1 and run xterm it works fine as root but as the app user i get :
xterm: Xt error: Can't open display: :0.1