Summary: | All desktops are stacked on first screen with dual-head | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | John Miller <neuromancerx1> |
Component: | multiscreen | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | bjoern, bugs3.gentoo.miguel, gyurco, jan.ives, jirka, kde, kocur666, l.lunak, zajec5 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
screenshot
output from starting plasma plasma-appletsrc ugly square over desktop 2 X sessions Patch to allow KDE to detect real size of multiple X screens |
Description
John Miller
2007-11-22 01:07:24 UTC
Created attachment 22152 [details]
screenshot
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? Build is from SVN Revision 739724. Moving plasma-appletsrc didn't help. Created attachment 22155 [details]
output from starting plasma
Created attachment 22156 [details]
plasma-appletsrc
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? No xinerama or twinview, just 2 separate X screens. 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. 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. Created attachment 22163 [details]
ugly square over desktop
Re-unconfirm (owner changing confirmed the bug). Is this the same as bug #153581 ? No, see comments #7/#8. Hi! Is there any progress on how to get rid of that square? 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! *** Bug 155544 has been marked as a duplicate of this bug. *** *** This bug has been confirmed by popular vote. *** 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. 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 *** 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. Created attachment 23454 [details]
2 X sessions
I have this buf with 4.0.2 too! Two seperate X screens -> two desktops on one screen 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). "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. 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 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. Happens for me as well, in kde 4.1 (4.0.83), using nvidia. me as well, in KDE 4.1.2 and nvidia-settings confirming the bug, as well in KDE 4.1.2 and using nvidia-settings 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.
|