Bug 152676 - All desktops are stacked on first screen with dual-head
Summary: All desktops are stacked on first screen with dual-head
Status: RESOLVED DUPLICATE of bug 153581
Alias: None
Product: plasma4
Classification: Unmaintained
Component: multiscreen (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 155544 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-22 01:07 UTC by John Miller
Modified: 2009-03-08 15:53 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (129.89 KB, image/jpeg)
2007-11-22 01:08 UTC, John Miller
Details
output from starting plasma (3.55 KB, text/plain)
2007-11-22 03:26 UTC, John Miller
Details
plasma-appletsrc (552 bytes, text/plain)
2007-11-22 03:26 UTC, John Miller
Details
ugly square over desktop (95.03 KB, image/jpeg)
2007-11-23 01:03 UTC, John Miller
Details
2 X sessions (119.17 KB, image/jpeg)
2008-02-07 08:06 UTC, Marriouss
Details
Patch to allow KDE to detect real size of multiple X screens (14.92 KB, patch)
2009-01-04 21:31 UTC, Cameron Maxwell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Miller 2007-11-22 01:07:24 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.2 
OS:                Linux

I have 2 X screens configured. Screen 0 is a dfp running at 1680x1050 resolution, Screen 1 is a television running at 1024x768. 

Instead of getting a desktop on each screen, I get both desktops stacked on top of each other on Screen 0 and a blank white screen on Screen 1.
Comment 1 John Miller 2007-11-22 01:08:10 UTC
Created attachment 22152 [details]
screenshot
Comment 2 Aaron J. Seigo 2007-11-22 01:41:53 UTC
that looks like a very broken build. when is your build from? if you move ~/.kde/share/config/plasma-appletsrc out of the way and start plasma are things good again?
Comment 3 John Miller 2007-11-22 03:25:16 UTC
Build is from SVN Revision 739724.

Moving plasma-appletsrc didn't help.
Comment 4 John Miller 2007-11-22 03:26:06 UTC
Created attachment 22155 [details]
output from starting plasma
Comment 5 John Miller 2007-11-22 03:26:48 UTC
Created attachment 22156 [details]
plasma-appletsrc
Comment 6 Aaron J. Seigo 2007-11-22 05:45:37 UTC
ok, so the problem is pretty obvious (thanks for the console output and the rc file =) .. makes debugging this so much easier)...

plasma(13513) Plasma::Corona::loadDefaultSetup: number of screens is 2
plasma(13513) Plasma::Corona::loadDefaultSetup:      screen  0 geometry is QRect(0,0 1680x1050)
plasma(13513) Plasma::Corona::loadDefaultSetup:      screen  1 geometry is QRect(0,0 1024x768)

uh oh! it sees you have two screens (good!) but the geometry of both is at the origin. not good.

are you using xinerama or dual head?
Comment 7 John Miller 2007-11-22 15:17:39 UTC
No xinerama or twinview, just 2 separate X screens.

Comment 8 Aaron J. Seigo 2007-11-22 19:47:46 UTC
ah, dual head. the bane of my existence. while i understand the reason for it, i personally believe that dual head is a bad, bad, bad idea; a kludge around brokenness in x.org, if you will.

anyways, dual head will not be supported in 4.0 unless someone steps up and does the necessary work. i'd prefer to avoid doing what we did in kde3 with kicker and kdesktop as that was too brittle for my tastes.

i'll do my best to get to it for 4.1, however. sorry, but resources are limited and dual head users are a minority of users =(

in the meantime, you can edit your plasma-appletsrc, remove the reference to the screen 1 containment and you just won't get a plasma desktop containment on the t.v.
Comment 9 John Miller 2007-11-23 01:02:21 UTC
I  got rid of the screen 1 containment, but there is still a large, ugly square over the desktop.

I don't really need a desktop on the second screen anyway, it's for running mythtv, but I would really like to get rid of that square.


Comment 10 John Miller 2007-11-23 01:03:33 UTC
Created attachment 22163 [details]
ugly square over desktop
Comment 11 Pino Toscano 2007-12-05 11:10:40 UTC
Re-unconfirm (owner changing confirmed the bug).
Comment 12 Jason Stubbs 2007-12-08 15:55:07 UTC
Is this the same as bug #153581 ?
Comment 13 Lubos Lunak 2007-12-08 18:16:47 UTC
No, see comments #7/#8.
Comment 14 Viesturs Zarins 2007-12-24 13:25:13 UTC
Hi!

Is there any progress on how to get rid of that square?
Comment 15 Robert 2008-01-10 18:58:27 UTC
I have the same problem too with todays build which seems to be KDE4 final. It's pretty useless to watch such screen :-(

I really hope this will be fixed before 4.1!
Comment 16 Szombathelyi György 2008-01-13 02:20:32 UTC
*** Bug 155544 has been marked as a duplicate of this bug. ***
Comment 17 kde 2008-01-21 03:52:04 UTC
*** This bug has been confirmed by popular vote. ***
Comment 18 Bas 2008-01-21 20:03:33 UTC
As said in another comment, no need for a full blown plasma on the second head for me. Just using it for mplayer / mythtv and other programs. And xinerama is no solution.
Comment 19 Aaron J. Seigo 2008-01-23 17:50:26 UTC
the reporter seems a bit confused; he is indeed running a single x session with multiple screens. whether that mergefb, xinerama, twinview, yadda yadda, this is the same bug as in 153581

*** This bug has been marked as a duplicate of 153581 ***
Comment 20 Marriouss 2008-02-07 08:06:14 UTC
I am using 2 screens on 2 X sessions with KDE 4.0.1 and the taskbar is displayed close to the middle of the screen 1. The second screen is black although I can move the mouse to it. See the screenshot.
Comment 21 Marriouss 2008-02-07 08:06:58 UTC
Created attachment 23454 [details]
2 X sessions
Comment 22 Oliver Becker 2008-03-16 15:25:30 UTC
I have this buf with 4.0.2 too!
Two seperate X screens -> two desktops on one screen
Comment 23 Brandon Silver 2008-04-01 06:51:14 UTC
I am having this problem as well. However, it used to not happen to me. A while after upgrading to KDE 4.0.1, this bug (or whatever it may be) started occurring on my computer too. I am using the intel driver (i915 GM chipset) with my laptop display (1280x800) plus an additional display attached to the VGA port (1680x1050).
Comment 24 Nick Wilbanks 2008-04-20 16:52:37 UTC
"I am using 2 screens on 2 X sessions with KDE 4.0.1 and the taskbar is displayed close to the middle of the screen 1. The second screen is black although I can move the mouse to it. See the screenshot. "

This is exactly what happens for me in KDE 4.0.3 with dual head setup and nvidia card.
Comment 25 Magnus 2008-07-03 16:55:45 UTC
NVidia Settings - choosing seperate X only shows on one display, the second display only has that empty desktop with the thick-X mouse cursor; not sure what its called
Comment 26 Fox074 2008-07-09 11:27:33 UTC
2 screens in one like Comment #1.
Like all other people I disabled xinerama in my xorg.conf.
xinerama is not an option in my case.
Comment 27 KarenA 2008-07-12 13:06:52 UTC
Happens for me as well, in kde 4.1 (4.0.83), using nvidia.
Comment 28 Jirka Kotlin 2008-10-10 10:25:24 UTC
me as well, in KDE 4.1.2 and nvidia-settings
Comment 29 DarkElven 2008-10-28 17:02:21 UTC
confirming the bug, as well in KDE 4.1.2 and using nvidia-settings
Comment 30 Cameron Maxwell 2009-01-04 21:31:09 UTC
Created attachment 29903 [details]
Patch to allow KDE to detect real size of multiple X screens

For those people still tracking this bug and interested in running two separate X screens under KDE this very ugly patch is a first step in that direction.  Whilst it is still a bit buggy (see below) I have found it useful enough and thought others may as well. The patch has been made against 4.1.85 (kde4.2 beta 2).

With this patch if you set the environment variable KDE_PURE_MULTIHEAD the kephal library will use X11 library calls directly to determine the number of screens present and their resolutions.  

It is essentially a work around the fact that when you have two screens connected and running at different resolutions Qt returns the size of the largest display.  This means that the scaling and positioning of all the KDE/Plasma elements on the first display are incorrect if the size of the second display is larger than that of the first.

This patch does not add support for plasma on the second screen.  If you want to run apps on that screen you will need to launch them manually with the DISPLAY set.

Known patch issues:
  - Whilst kwin already supports running on multiple displays I have found that it believes the resolution of the second display is that of the first display.  Meaning if you try to maximise a window it can take up less (or more) space than the full screen resolution.  Interesting you can actually drag windows to be larger than this size.
  - Most shortcuts do not work on anything but the first screen.
  - Switching desktops on one screen switches desktops on the second screen as well.
  - Sometimes when you first launch an app on the first screen it will load and appear off screen.  If you right-click the app in the task manager and select move it will re-appear on the screen.
  - Some parts of plasma, as well as other kde apps rely directly on the Qt desktop size, rather than querying through kephal.  In these instances you might notice that some elements/windows may appear slightly off center on the display.