How to exchange primary and secondary display?

after nine afternine at email.si
Fri Jun 6 08:09:12 UTC 2008


Hi!

I'm running Kubuntu gutsy (7.10) 64bit on DELL optiplex 755 with onboard intel 
graphics. Since it has a dual head capability, I succesfully enabled the 
desktop across 2 monitors by editing xorg.conf and using xrandr:

- a 21" Samsung 213T working at 1600x1200, placed in centre (in front of user)

- a 15" Dell working at 1024x786, placed on the right of the other bigger 
monitor

My desktop is of combined virutal size of 2624x1200 and is correctly stretched 
across both monitors. 

To make this happen I have to do this in a konsole:

xrandr --output TMDS-1 --mode "1600x1200"

xrandr --output TMDS-1 --left-of VGA

However, the primary display is set on the smaller monitor (placed on the 
side) , and the bigger in front (centre) is considered secondary. 

The taskbar panel is put on the primary display (on the righthand side) , the 
destop icons are placed on the bigger monitor.

Is there a way the change which monitor is considered primary and which is 
secondary, so the taskbar panel is put on the central (bigger) monitor and the 
"K" (start) button comes to lower left corner, as everyone would expect it to 
be there. It is a real PITA, since we are all used to have the taskbar panel on 
the central monitor and not finding it there is really stressfull. The taskbar 
on the smaller monitor is also much shorter, so less tasks fit on it.

Is there a way to swhitch the primary and secondary display?

Below are the outputs from lspci, xrandr and my xorg.conf file.

Thanx in advance

p.s. If my explanation is not clear enough I can attach a screenshot, which 
will make it clear at first look.

#xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
 #
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
 # package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
 EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
     Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "si"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
     Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ImPS/2"
     Option        "ZAxisMapping"        "4 5"
EndSection


Section "Device"
    Identifier    "Intel Corporation Integrated Graphics Controller"
    Driver        "intel"
     BusID        "PCI:0:2:0"
EndSection

Section "Device"
    Identifier    "Intel DVI"
    Driver        "intel"
    BusID        "PCI:0:2:1"
EndSection


Section "Monitor"
    Identifier    "Dell E151FPp"
    Option        "DPMS"
EndSection


Section "Monitor"
    Identifier    "SyncMaster"
     Modelname    "Custom 1"
     Option        "DPMS"
  modeline  "640x480 at 60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
  modeline  "800x600 at 56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
  modeline  "800x600 at 60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
   modeline  "1024x768 at 60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -
hsync
  modeline  "1280x960 at 60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync 
+vsync
  modeline  "1280x1024 at 60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync 
+vsync
   modeline  "1400x1050 at 60" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -
hsync +vsync
  modeline  "1600x1200 at 60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync 
+vsync
    Gamma    1.0
 EndSection


Section "Screen"
    Identifier    "Default Screen"
    Device        "Intel Corporation Integrated Graphics Controller"
    Monitor        "Dell E151FPp"
     DefaultDepth    24
    SubSection "Display"
        Modes        "1024x768" "800x600" "640x480"
        Virtual    2624 1200
    EndSubSection
EndSection


 Section "Screen"
    Identifier    "ScreenSamsung"
    Device        "Intel DVI"
    Monitor        "SyncMaster"
    DefaultDepth    24
    SubSection "Display"
         Modes        "1600x1200 at 60"
        Virtual    2624 1200
    EndSubSection
EndSection


Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "ScreenSamsung"
     Screen        "Default Screen"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"

EndSection




This is what xrandr says:

alex at alex:~$ xrandr
 Screen 0: minimum 320 x 200, current 2624 x 1200, maximum 2624 x 1200
VGA connected 1024x768+1600+0 (normal left inverted right) 304mm x 228mm
   1024x768       60.0*+   75.1     60.0*
   800x600        75.0     60.3
    640x480        75.0     60.0
   720x400        70.1
TMDS-1 connected 1600x1200+0+0 (normal left inverted right) 432mm x 324mm
   1600x1200      60.0*+   59.9
   1280x1024      75.0     59.9
   1152x864       75.0
    1024x768       75.1     70.1     60.0
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   640x480        75.0     72.8     66.7     60.0
   720x400        70.1
alex at alex:~$                 




This is what my lspci says:

alex at alex:~$ lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated 
Graphics Controller (rev 02)
 00:02.1 Display controller: Intel Corporation 82Q35 Express Integrated 
Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI 
Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 
02)
 00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT 
Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network 
Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #4 (rev 02)
 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI 
Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio 
Controller (rev 02)
 00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 
(rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #2 (rev 02)
 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI 
Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI 
Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
 00:1f.0 ISA bridge: Intel Corporation LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port 
SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE 
Controller (rev 02)
alex at alex:~$                




____________________
http://www.email.si/





More information about the kubuntu-users mailing list