Bug 233972 - Dual head: Desktop (Plasmoids, Panel etc...) is on secondary screen
Summary: Dual head: Desktop (Plasmoids, Panel etc...) is on secondary screen
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasma4
Classification: Plasma
Component: multiscreen (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-10 19:31 UTC by shiBB
Modified: 2010-05-21 22:42 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shiBB 2010-04-10 19:31:21 UTC
Version:            (using KDE 4.3.5)
OS:                Linux
Installed from:    openSUSE RPMs

I got a Notebook and want to plug in an external monitor. Clonemode works perfectly as well as an extended monitor setup. The only problem with extended monitor is, that the main screen switches to the external screen so all the plasmoids, desktopbackground, panel etc is on the external screen and there is no way of changing that.

I was wondering about that, because the external monitor is detected as the secondary screen and kdm shows up the loginscreen on my notebook's screen correctly.

hardware:
dell studio 1555 notebook
gpu: ati mobility radeon hd 4570
driver: fglrx 8.712-1 (latest)
arch: x86_64

xrandr output:
Screen 0: minimum 320 x 200, current 3280 x 1080, maximum 3520 x 3520              
LVDS connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm  
   1920x1080      59.9*+                                                           
   1680x1050      59.9 +                                                           
   1400x1050      59.9 +                                                           
   1280x1024      59.9 +
   1440x900       59.9 +
   1280x960       59.9 +
   1360x768       59.9 +
   1280x800       59.9 +
   1152x864       59.9 +
   1280x768       59.9 +
   1280x720       59.9 +
   1024x768       59.9 +
   1024x600       59.9 +
   800x600        59.9 +
   800x480        59.9 +
   720x480        59.9 +
   640x480        59.9 +
DFP2 disconnected (normal left inverted right x axis y axis)
CRT1 connected 1360x768+1920+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1360x768       60.0*+
   1280x768       59.9 +
   1280x720       60.0 +
   1024x768       75.0     70.1     60.0
   1024x600       60.0
   800x600        72.2     75.0     70.0     60.3
   800x480        60.0
   720x480        60.0
   640x480        75.0     72.8     60.0


xorg.conf:


# /.../
# SaX generated X11 config file
# Created on: 2009-06-27T15:32:17+0200.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "ServerLayout"

	#Option	    "Clone" "off"
	Identifier     "Layout[all]"
	Screen      0  "aticonfig-Screen[0]-0" 0 0
	InputDevice    "Keyboard[0]" "CoreKeyboard"
	InputDevice    "Mouse[1]" "CorePointer"
	InputDevice    "Mouse[3]" "SendCoreEvents"
	Option	    "Xinerama" "off"
	#Option	    "RandR" "off"
EndSection

Section "Files"
	InputDevices   "/dev/gpmdata"
	InputDevices   "/dev/input/mice"
	FontPath     "/usr/share/fonts/misc:unscaled"
	FontPath     "/usr/share/fonts/local"
	FontPath     "/usr/share/fonts/75dpi:unscaled"
	FontPath     "/usr/share/fonts/100dpi:unscaled"
	FontPath     "/usr/share/fonts/Type1"
	FontPath     "/usr/share/fonts/URW"
	FontPath     "/usr/share/fonts/Speedo"
	FontPath     "/usr/share/fonts/PEX"
	FontPath     "/usr/share/fonts/cyrillic"
	FontPath     "/usr/share/fonts/latin2/misc:unscaled"
	FontPath     "/usr/share/fonts/latin2/75dpi:unscaled"
	FontPath     "/usr/share/fonts/latin2/100dpi:unscaled"
	FontPath     "/usr/share/fonts/latin2/Type1"
	FontPath     "/usr/share/fonts/latin7/75dpi:unscaled"
	FontPath     "/usr/share/fonts/baekmuk:unscaled"
	FontPath     "/usr/share/fonts/japanese:unscaled"
	FontPath     "/usr/share/fonts/kwintv"
	FontPath     "/usr/share/fonts/truetype"
	FontPath     "/usr/share/fonts/uni:unscaled"
	FontPath     "/usr/share/fonts/CID"
	FontPath     "/usr/share/fonts/ucs/misc:unscaled"
	FontPath     "/usr/share/fonts/ucs/75dpi:unscaled"
	FontPath     "/usr/share/fonts/ucs/100dpi:unscaled"
	FontPath     "/usr/share/fonts/hellas/misc:unscaled"
	FontPath     "/usr/share/fonts/hellas/75dpi:unscaled"
	FontPath     "/usr/share/fonts/hellas/100dpi:unscaled"
	FontPath     "/usr/share/fonts/hellas/Type1"
	FontPath     "/usr/share/fonts/misc/sgi:unscaled"
	FontPath     "/usr/share/fonts/xtest"
	FontPath     "/opt/kde3/share/fonts"
EndSection

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

Section "ServerFlags"
	Option	    "AllowMouseOpenFail" "on"
	Option	    "ZapWarning" "off"
	Option	    "Xinerama" "off"
	Option	    "AIGLX" "off"
	#Option	    "RandR" "off"
EndSection

Section "InputDevice"
	Identifier  "Keyboard[0]"
	Driver      "kbd"
	Option	    "Protocol" "Standard"
	Option	    "XkbLayout" "de"
	Option	    "XkbModel" "microsoftpro"
	Option	    "XkbRules" "xfree86"
	Option	    "XkbVariant" "nodeadkeys"
	#Option	    "XkbOptions" ""
EndSection

Section "InputDevice"
	Identifier  "Mouse[1]"
	Driver      "mouse"
	Option	    "Buttons" "5"
	Option	    "Device" "/dev/input/mice"
	Option	    "Name" "Dell USB Mouse"
	Option	    "Protocol" "explorerps/2"
	Option	    "Vendor" "Sysp"
	Option	    "SHMConfig" "on"
	Option	    "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

	#Option	    "VertScrollDelta" "10"
	Identifier  "Mouse[3]"
	Driver      "synaptics"
	Option	    "Buttons" "5"
	Option	    "Device" "/dev/input/mice"
	Option	    "Emulate3Buttons" "on"
	#Option	    "HorizScrollDelta" "10"
	Option	    "InputFashion" "Mouse"
	Option	    "Name" "Synaptics;Touchpad"
	Option	    "Protocol" "explorerps/2"
	Option	    "SHMConfig" "on"
	Option	    "Vendor" "Sysp"
	Option	    "ZAxisMapping" "4 5"
EndSection

Section "Modes"
	Identifier     "Modes[0]"
EndSection

Section "Monitor"
	Identifier   "aticonfig-Monitor[0]-0"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection

Section "Monitor"
	Identifier   "0-LVDS"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
	Option	    "PreferredMode" "1920x1080"
	Option	    "TargetRefresh" "60"
	Option	    "Position" "0 0"
	Option	    "Rotate" "normal"
	Option	    "Disable" "false"
EndSection

Section "Monitor"
	Identifier   "0-CRT1"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
	Option	    "Disable" "false"
	Option	    "0-CRT1" "true"
	Option	    "Position" "1920 11"
	Option	    "Rotate" "normal"
	Option	    "" "true"
	Option	    "0-CRT1" "true"
	Option	    "PreferredMode" "1360x768"
	Option	    "TargetRefresh" "60"
EndSection

Section "Device"

	#Option	    "Mode" "1920x1080"
	Identifier  "aticonfig-Device[0]-0"
	Driver      "fglrx"
	Option	    "TexturedVideo" "on"
	Option	    "OpenGLOverlay" "off"
	Option	    "VideoOverlay" "off"
	Option	    "Textured2D" "on"
	Option	    "TexturedVideoSync" "on"
	Option	    "UseFastTLS" "1"
	Option	    "TexturedXRender" "off"
	#Option      "XAANoOffscreenPixmaps" "on"
	Option	    "DesktopSetup" "horizontal"
	Option	    "EnableRandR12" "true"
	Option	    "UseInternalAGPGART" "on"
	Option	    "OverlayOnCRTC2" "1"
	Option	    "ForceMonitors" "lvds,auto"
	Option	    "Monitor-CRT1" "0-CRT1"
	Option	    "Monitor-LVDS" "0-LVDS"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "aticonfig-Screen[0]-0"
	Device     "aticonfig-Device[0]-0"
	Monitor    "0-LVDS"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Virtual   3520 3520
		Depth     24
	EndSubSection
EndSection

Section "DRI"
	Group        "video"
	Mode         0666
EndSection

Section "Extensions"
	Option	    "DAMAGE" "on"
	Option	    "Composite" "on"
	Option	    "RENDER" "on"
EndSection
Comment 1 maciekmal 2010-04-30 21:28:40 UTC
Exactly same issue with KDE 4.4 on Kubuntu 10.04. My secondary screen is pivoted and have lower resolution than my laptop screen. It's perfect for web browsing but not for plasma applets and taskbar.
Comment 2 Oldřich Jedlička 2010-05-06 07:26:16 UTC
It looks I have the same problem, but reversed.

When I go to Display Settings/Multiple Monitors and click Identify All Displays, it always shows "1" on my notebook's LVDS and "2" on LCD (when attached).

Now my problem: I'm running priparily with LCD attached, so my panel is configured on display "1" (=notebook's LVDS). When I go out and take only notebook with me, the panel isn't visible at all after start-up, but it is up and running according to running plasmoids (but completely unreachable). So I have to configure new panel for notebook's LVDS (on display "1"). But then (this is what is described in this bug report I think), when I return back and boot with LCD attached, I see two panels - the LVDS has the original one, LCD has the newly configured one.

Please note that my KDM start-up scripts contain automatic xrandr configuration of the LCD screen to be "right-of" LVDS - the KDE starts into prepared multi-monitor set-up.
Comment 3 Aaron J. Seigo 2010-05-21 19:07:57 UTC
"the main screen switches to the external screen so all the
plasmoids, desktopbackground, panel etc is on the external screen and there is
no way of changing that."

because x.org changes the #'ing of the screens and the elements are attached to screen #. it would make a lot more sense if x.org didn't do this if the primary screen isn't changing.

as there is absolutely no concept in plasma of a "primary screen layout" it listens to the screen numbering.

"When I go out and take only
notebook with me, the panel isn't visible at all after start-up, but it is up
and running according to running plasmoids "

this is fixed in 4.5
Comment 4 Oldřich Jedlička 2010-05-21 22:42:44 UTC
(In reply to comment #3)
> because x.org changes the #'ing of the screens and the elements are attached to
> screen #. it would make a lot more sense if x.org didn't do this if the primary
> screen isn't changing.

I don't understand this. Whenever I select Display/Multiple Monitors/Identify All Displays, I always see "1" on my LVDS - with and without the DVI-D connected. This doesn't change.

How can I check that the numbering has changed?