After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 578111 - clicking on a rotated monitor makes it forget half of the rotation options
clicking on a rotated monitor makes it forget half of the rotation options
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Display
2.26.x
Other Linux
: Normal normal
: ---
Assigned To: Soren Sandmann Pedersen
Control-Center Maintainers
: 580754 (view as bug list)
Depends on:
Blocks: randr-tracker
 
 
Reported: 2009-04-06 07:57 UTC by Sebastien Bacher
Modified: 2009-04-29 22:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Sebastien Bacher 2009-04-06 07:57:54 UTC
the bug has been opened on https://bugs.launchpad.net/bugs/355905

"1. Click on a monitor.
2. Enable it.
3. Rotate it left 90 degrees.
4. Click on the monitor again.

What should happen: nothing.

What happens: the monitor rotates back to the normal position, and the rotation dropdown loses the left/right options (keeping only the normal/upside-down).

This is not 100% reproducible: sometimes the rotation dropdown keeps all options, sometimes it has no options and becomes disabled. The contents of the rotations appear to be related to the position of the screen in the virtual desktop space, but maybe I'm mistaken about that.

gnome-control-center 1:2.26.0-0ubuntu1
http://launchpadlibrarian.net/24846858/wtf3.gif
screencast  (1.2 MiB, image/gif) "
Comment 1 Matthias Clasen 2009-04-25 17:44:39 UTC
Rotations get lost in other situations too. E.g rotate a monitor, then revert to the previous configuration. Now the Rotation combobox in the capplet is empty, and the statusicon claims that rotation is not supported. Restarting the capplet fixes the combobox. I haven't found a way to make the statusicon regain the rotation options, short of restarting gsd.
Comment 2 Matthias Clasen 2009-04-25 18:30:24 UTC
toggling the 'mirror screens' checkbox twice brings the rotations back, too.
Comment 3 Federico Mena Quintero 2009-04-28 19:18:50 UTC
I think we need to call gnome_rr_config_sanitize() more often.  I haven't actually debugged this, but odds are that when you rotate/drag a monitor, its offsets become something that doesn't fit in the current Virtual size.  Checking/unchecking "Mirror screens" resets the offsets to being as close as possible to (0, 0), so that's probably why this works as a workaround.
Comment 4 Matthias Clasen 2009-04-28 23:37:30 UTC
commit 3f811a611185a3bdbb6b6d4c19590bd26ae1dc82
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Tue Apr 28 19:34:44 2009 -0400

    Fill out ScreenInfo structs sufficiently without reprobing, too
    
    This fixes the symptoms described in bug 578111 where rotations
    get lost after applying one rotation. Thanks for Federicos help
    in tracking this down.
Comment 5 Federico Mena Quintero 2009-04-29 02:49:05 UTC
Thanks for patching that, Matthias.  However, I think we may still have a problem if you drag the monitors around "too much", so that their offsets end up being outside the Virtual size (even if their arrangement *does* fit in that size).  gnome_rr_config_sanitize() means "normalize the monitors' offsets so that (0, 0) is the upper-left corner of their bounding rectangle", so we should use that before trying to evaluate a configuration with gnome_rr_config_applicable().
Comment 6 Federico Mena Quintero 2009-04-29 22:02:58 UTC
*** Bug 580754 has been marked as a duplicate of this bug. ***