View Single Post
  #1   (View Single Post)  
Old 21st September 2013
wimwauters wimwauters is offline
Port Guard
 
Join Date: Aug 2008
Posts: 36
Default Multi-monitor, dualhead setup

Hi all,

finally took some time to sort out multi-head setup of X, I had to create following file,
because xrandr complained about he virtual screen size not being big enough:

/usr/X11R6/share/X11/xorg.conf.d/30-virtual.conf

Code:
# to change the virtual buffer/screen:
Section "Screen"
        Identifier "default"
   SubSection "Display"
        Virtual 3200 1200
   EndSubSection
EndSection
The special super-duper passphrase to get this to work is the Identifier line. X will of course not default to default, unless you tell it to... FFS!

I then run the following xrandr commands:
Code:
xrandr --output VGA-0 --primary
xrandr --verbose --fb 3200x1200 --output DVI-0 --right-of VGA-0
I'm using the default 'radeon' driver for OpenBSD 5.3 (the old default used to be 'radeonold')

Now I just need to figure out how to get the display resolutions to the correct setting when my desktop session starts. Feedback on this is most welcome.

==
dmesg | grep vga
Code:
vga1 at pci4 dev 0 function 0 "ATI Mobility Radeon HD 4300" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
radeondrm0 at vga1: apic 4 int 10
xrandr -q
Code:
$ xrandr -q                                                       
Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 3200 x 1200
DVI-0 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0*+   75.0  
   1152x864       75.0  
   1024x768       75.0     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        75.0     72.8     66.7     59.9  
   720x400        70.1  
HDMI-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200      60.0*+
   1600x1200      60.0  
   1680x1050      60.0  
   1280x1024      75.0     60.0  
   1440x900       75.0     59.9  
   1280x800       74.9     59.8  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  
   720x400        70.1

Last edited by wimwauters; 21st September 2013 at 11:48 AM. Reason: code clean-up
Reply With Quote