Dear Members,
For the past two days I have been struggling with setting my laptop's monitor as the primary in a dual monitor setup on my Lenovo T61 running Ubuntu 12.04 LTS.
So what happens is this. I have some screenlets on my desktop and when only using my laptop all is well. But when I connect an external display my screenlets jump to that display if it is set as being left of my laptop. If setting it to the right the screenlets are again on my laptop. Opening a new terminal with the Ctrl+Alt+T for example shows the same behaviour as the screenlets. If external monitor is on the left side terminal opens on that monitor. If it is to the right it opens on my laptop. On the other hand the panel and launcher icons are present on both monitors and the program always openes on the monitor from which it was launched.
What I want is to keep this last feature (starting an application from the launcher should place it on the monitor from which it was launched). But I want my screenlets to always stay on my laptop. Ctrl+Alt+T should always open a terminal on my laptop as well.
I tried in System Settings -> Displays. No success. I then tried with xrandr. Also to no avail. What is happening to me is something many have noticed but after reading through dozens of posts I could not get around it. The problem is, that my primary monitor always seems to be the one on the far left (the one with coordinates 0,0). My last attempt at this is to try and add an xorg configuration file but am not really sure how to do that.
I created a file named 10-monitor.conf in /usr/share/X11/xorg.conf.d but am not quite sure what to put in it. So far I have this, but it isn't working (seems to make no difference when booting with it):
Code:
##################
#MONITORS SECTION#
##################
Section "Monitor"
Identifier "LVDS1"
VendorName "LEN"
Modeline "1280x800_60.00" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
Option "Primary" "true"
EndSection
Section "Monitor"
Identifier "VGA1"
VendorName "NEC"
Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
Option "Primary" "false"
Option "LeftOf" "LVDS1"
EndSection
################
#DEVICE SECTION#
################
Section "Device"
Identifier "Device0"
Driver "intel"
BusID "PCI:0:2:0"
VendorName "Intel"
BoardName "7661W4H"
EndSection
Section "Device"
Identifier "Device1"
Driver "vesa"
BusID "PCI:0:2:1"
VendorName "Intel"
BoardName "7661W4H"
EndSection
################
#SCREEN SECTION#
################
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "LVDS1"
Monitor "VGA1"
DefaultDepth 24
SubSection "Display"
Virtual 2560 1200
EndSubSection
EndSection
Any idea what is wrong? I imagine a lot, this being my first xorg config file.
I have no xorg.conf as I read somewhere that it has been deprecated in favour of seperate configuration files inside /usr/share/X11/xorg.conf.d directory.
lspci gives me this:
Code:
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (secondary) (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
00:1a.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M-E) LPC Interface Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [IDE mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
And xrandr outputs the following:
Code:
Screen 0: minimum 320 x 200, current 2560 x 1212, maximum 8192 x 8192
LVDS1 connected 1280x800+1280+412 (normal left inverted right x axis y axis) 304mm x 190mm
1280x800 60.0*+ 50.0
1280x800_60.00 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
1280x1024 60.0*+ 75.0
1280x1024_60.00 60.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
DVI1 disconnected (normal left inverted right x axis y axis)
I am also attaching two X0rg.0.log files. Xorg_0_log-old.txt was produced before I created the 10-monitor.conf and Xorg_0_log.txt is the one created after booting with 10-monitor.comf.
While on the subject ... I noticed a difference between a screen, display and monitor. A screen is usually the size of two monitors if using a two-monitor setup. I was wondering, can one make two independent screens, one for each monitor? And if so, what is the benefit? Does my hardware even support this? If I am interpreting lspci's output correctly it should, correct?
Thank you all for all your help.
Cheers!