Bug 112294 - When rotating screen, screen doesnt resize (randr)
Summary: When rotating screen, screen doesnt resize (randr)
Status: RESOLVED FIXED
Alias: None
Product: krandr
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Gustavo Pichorim Boiko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 08:22 UTC by Toni
Modified: 2012-06-20 07:52 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Configuration file for X-Server (9.65 KB, text/plain)
2006-05-18 12:01 UTC, Florian Schuh
Details
My config (9.65 KB, text/plain)
2006-05-18 12:03 UTC, Florian Schuh
Details
randr fix (1.28 KB, patch)
2007-07-19 03:13 UTC, Robert Gerlach
Details
screenshot with patched qt after rotating left (46.68 KB, image/png)
2007-07-21 21:16 UTC, Vlastimil Babka (Caster)
Details
screenshot with patched qt after rotating back to normal (41.58 KB, image/png)
2007-07-21 21:20 UTC, Vlastimil Babka (Caster)
Details
much simpler fix (922 bytes, patch)
2007-07-25 10:48 UTC, Robert Gerlach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toni 2005-09-09 08:22:49 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    SuSE RPMs

When rotating the image 90 degrees does not resize the window.
So if I rotatate the screen left, I get a black border.
The desktop should be resized to fit the whole screen. 

Picture

Normal screen with full screen
 _____
|     |
|     |
 -----

Rotated screen

 -----
|    ||
|    ||
 -----

The right part is black.


This is with dual screen, I havent tried it with a single
screen. I do have xinerama turned off. With xinerama
on you cant rotate at all. But this apparently a limitation
of the xserver.
Comment 1 Toni 2005-09-09 09:26:20 UTC
I forgot to say that I tried rotation in fwmv and in windowmaker
and it works correctly in those. So I am quite sure it is a
KDE specific problem.
Comment 2 Florian Schuh 2006-05-18 12:01:07 UTC
Created attachment 16150 [details]
Configuration file for X-Server
Comment 3 Florian Schuh 2006-05-18 12:03:26 UTC
Created attachment 16151 [details]
My config
Comment 4 Florian Schuh 2006-05-18 12:05:13 UTC
i can confirm this... I'm using kde 3.5.2 with ONE Syncmaster 960BF. Trying to change the rotation with "xrandr -o left" brings a black border at the vertical bottom.

The Problem doesn't occure whe starting kde with 'Option "Rotate" "CCW"' in xorg.conf
Comment 5 Robert Buchholz 2006-06-09 19:32:54 UTC
Can also confirm this bug for 3.4.3 and 3.5.2. Here also, if I save the option and restart kde, it will not fail.
Comment 6 Philipp W 2007-02-20 18:01:16 UTC
I have that problem too. I use KDE 3.5.5
When I use randr -o left (or krandrtray I have a missbehaviour of the kicker. You can see that in
Attachment Id=19761
http://bugs.kde.org/attachment.cgi?id=19761&action=view

When I add 'Option "Rotate" "CCW"' to my xorg.conf, it works but then the xrandr extension "is missing".

Is someone working on that problem? Thanks
Comment 7 Toni 2007-02-20 18:22:58 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Robert Buchholz 2007-06-15 11:21:49 UTC
This works for me now with 3.5.5.
Comment 9 Philipp W 2007-06-16 16:02:58 UTC
Not for me. Can you e-mail what else you have been changing? 
bugs-kde/at/creatu.de
Comment 10 Sascha Lucas 2007-07-18 12:28:27 UTC
Just want to say: this bug seems to be introduced again in 3.5.7. I'm using gentoo and RandR left orientation. At least one other gentoo user can reproduce this bug (https://bugs.gentoo.org/show_bug.cgi?id=183721). This bug does not occur in 3.5.6. Other WMs work as expected.

Any thoughts, patches...?
Comment 11 Robert Gerlach 2007-07-19 03:13:21 UTC
Created attachment 21183 [details]
randr fix

For me, it looks like a xlib or qt problem. DisplayWidth and DisplayHeight
reports wrong (old) values. The attached patch fixed (svn diff).
Comment 12 Robert Gerlach 2007-07-19 03:18:39 UTC
patch is against branches/qt/3.3/qt-copy.
Comment 13 Vlastimil Babka (Caster) 2007-07-21 21:16:52 UTC
Created attachment 21218 [details]
screenshot with patched qt after rotating left

I experience the same problem with KDE 3.5.7, didn't test previous versions,
had CRT that time :)

After applying the patch to qt-3.3.8, restarting X, and rotating left, I get
this - background picture now stretches to the previously black space, but the
panel is still not at the border. But if I hide it, the window will maximize
fully, so panel seems the only problem so far...
Comment 14 Vlastimil Babka (Caster) 2007-07-21 21:20:51 UTC
Created attachment 21219 [details]
screenshot with patched qt after rotating back to normal

see how the panel stays too short... only change of resolution sets it
correctly for that resolution... but then a change back to the original
resolution won't update its position and size (so if you change to smaller
resolution and then back, it's above the bottom and too short). Looks like once
a resolution was rotated, it becomes and stays somehow "tainted"
Comment 15 Robert Gerlach 2007-07-22 20:25:46 UTC
can't reproduce your problem. are you sure kicker used the patched library?
Comment 16 Sascha Lucas 2007-07-22 22:16:34 UTC
Thanks Robert. I've tried your patch and it behaves now the right way. Also can't reproduce Vlastimil's kicker problem.
Comment 17 Robert Gerlach 2007-07-25 10:48:36 UTC
Created attachment 21244 [details]
much simpler fix
Comment 18 Robert Gerlach 2007-07-26 10:56:27 UTC
reopen https://bugs.freedesktop.org/show_bug.cgi?id=2965
Comment 19 Vlastimil Babka (Caster) 2007-07-26 11:29:18 UTC
Does that mean your patch is just a workaround and won't be needed after libXrandr is fixed?
Comment 20 Robert Gerlach 2007-07-26 12:40:04 UTC
Yes, currently using a clean qt-copy and a libxrandr with reverted patch. Work fine. I think this bug can be closed as invalid.
Comment 21 Robert Gerlach 2007-07-26 15:31:26 UTC
Sorry, I messed up with my X-Servers.
This issue is a result of an incorrect behavior of xserver 1.3 and is fixed in git since 03.04.2007. This patch is a workaround until new xserver released.

https://bugs.freedesktop.org/show_bug.cgi?id=2965 closed as invalid.
Comment 22 FiNeX 2008-11-11 22:35:36 UTC
I've not understand if this bug is valid or not.

Please close it if is no more valid.

Thanks!
Comment 23 FiNeX 2008-12-07 18:40:00 UTC
I'm closing this:
1) no feedback since my last comment
2) from the previous comment it seems that the problem has been fixed.

Please reopen if the bug is still valid.

Thanks!