Bug 188207 - Change Resolution Breaks auto hide
Summary: Change Resolution Breaks auto hide
Status: RESOLVED FIXED
Alias: None
Product: kephal
Classification: Unmaintained
Component: General (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Aike J Sommer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 23:04 UTC by Adam Burton
Modified: 2011-07-06 22:41 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Burton 2009-03-26 23:04:29 UTC
Version:           unknown (using 4.2.1 (KDE 4.2.1), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.28-11-generic

I have dual monitors set up with twinview. I have 3 meta modes set up, one that uses both monitors at their maximum resolutions and another 2 that both use one or the other at their maximum resolutions. I switch between these using KRandRTray, or sometimes the display option inside System Settings. I have my panel on the right hand side of the very right screen set to auto hide (and expand as system tray icons accumulate if that's of any help).

To fix the panel between resolution changes I simply kill and relaunch plasma via krunner as a workaround (also bare in mind I will have killed and relaunched between resolution changes in the paragraph below).

When I switch between the meta modes the panel stops from appearing when my mouse goes near it. It looks to me like the panel doesn't move with the resolution change. I have noticed when switching from 2 monitors to the left hand monitor I can not make the panel glow appear when my mouse goes in its general direction. When returning from just the left monitor to both monitors (killing and relaunching plasma before doing so, so that normal operation is resumed while just in the left monitor before returning) the glow is not in the right hand side of the right monitor. However, when I put my mouse to the right hand side of the left monitors screen I notice the glow is there, sometimes this eventually makes the panel then pop out on the right hand side of the right screen and normal operation is resumed. Usually I need to kill plasma and relaunch to continue normal operation.

I don't know if this is a panel/plasma related bug or if it is a KWin bug (I assume the panel is another windows or something managed by KWin to a point), as when changing resolutions I loose my desktop affects till to I go into System Settings and disable then re-enable them. I will post the bug report url for the KWin bug report as a comment as soon as I post it, or find an existing instance of the same bug, :-).
Comment 1 Adam Burton 2009-03-26 23:11:42 UTC
Potentially related KWin issue when changing between twinview meta modes.
https://bugs.kde.org/show_bug.cgi?id=188208
Comment 2 Aaron J. Seigo 2009-03-26 23:19:57 UTC
i fixed this bug though .. i ... don't remember exactly what release or branch. :/ i'm pretty sure it made it into 4.2.0, though. 

however it relies on getting notified of the screen resolution changed by kephal. perhaps kephal isn't getting notified of the changes? i'm going to reassign this to kephal for now because i know that this does work with regular screen res changes via xrandr
Comment 3 Adam Burton 2009-03-26 23:44:53 UTC
After your mention of xrandr I tried switching with xrandr using the below list, it has the same results. However it made me notice that when I switched to just the right hand monitor the panel auto hide seems to work correctly consistently. However the case of just left or both it doesn't work till I workaround.

xrandr -s 0 (switching from single to dual monitors). Doesn't work.
xrandr -s 1 (Only the right hand monitor). Works.
xrandr -s 2 (Only left hand monitor). Doesn't work.

In all cases the desktop effects issue still exists.

I tried multiple combinations of switching from one meta mode, its consistently "1" that works and rest not.
Comment 4 Aike J Sommer 2009-03-27 08:50:55 UTC
In kdebase/workspace/libs/kephal/kephalapp you can find a little helper-app, could you please install that and post the output of "kephalapp --listen" while you switch modes?
Use the version in trunk, it should compile and run fine on 4.2 too.
Comment 5 Adam Burton 2009-11-01 22:31:43 UTC
Well better late than never :-).
I am now using KDE 4.3.2 (good work by the way guys *thumbs up*) on Kubuntu 9.10.

I just tried kephalapp but it wouldn't compile now. Either way, new news that I think will help :-).

I still have the same problem, however over the past few months I have observed a pattern. It appears the panel is not moving when hidden. If the panel is still active when changing meta mode it moves as required or it moves later when activated. So for the former case if I right click on the KrandRTray and select a new mode fast enough, while the panel is _returning_ to a hidden state, it will move as appropriate (I tested this with a panel that doesn't hide itself and the same happens, in fact I noticed when moving from left monitor to both you can for an instant see it on the left monitor before it moves to the right (couldn't in other combinations because when flicking between resolutions the right monitor shuts off the screen for a good second but for the left it's pretty much a flicker, but I am guessing it is the same)). For the latter case I let the panel hide itself (so wait say 5 seconds, just to be sure) and select a new meta mode and the panel does not move. You can find it by moving your mouse till you find the blue glow, then when you move your mouse over it the panel will jump out from where it is supposed to be. Below are 3 screenshots of example cases, followed by potential explanations for the alternative cases where a screenshot is pointless.

1.From left (small) monitor to both monitors.
http://myweb.tiscali.co.uk/adz21c/panel1.png
As you can see the glow is where you would expect it to be for just the left monitor. On activating the panel it jumps out from the very right of the screenshot.
2.From left (small) monitor to right (larger) monitor.
http://myweb.tiscali.co.uk/adz21c/panel2.png
3.From right (larger) monitor to both monitors.
http://myweb.tiscali.co.uk/adz21c/panel3.png
4.From both monitors to either monitor, I am guessing the panel is now so far off to the right my mouse cannot reach it to activate it.
5.From right (larger) monitor to left (small) monitor, same as 4.

Hope that helps guys :-)
Comment 6 Adam Burton 2010-01-11 23:44:29 UTC
I can confirm I also have this in KDE 4.4 (4.3.90-0ubuntu1~karmic PPA)
Comment 7 Adam Burton 2011-07-06 22:41:31 UTC
Problem no-longer exists.

(I ended up changing my desktop layout due to this, forgot I opened this so just checked it now, works fine)