← Back to team overview

desktop-packages team mailing list archive

[Bug 1376760] Re: after a screen rotation we get a double mouse pointer

 

Launchpad has imported 6 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=81886.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2014-07-29T19:45:22+00:00 Brbrbr-10-toranaga-san wrote:

Created attachment 103655
A screenshot illustrating the problem

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1376760/comments/0

------------------------------------------------------------------------
On 2014-07-29T19:50:27+00:00 Brbrbr-10-toranaga-san wrote:

If you turn the screen by 90 degrees and then turn it back to normal, a
second cursor (rotated by 90 degrees as well) appears.

To reproduce:

xrandr --output <output> --rotate left

# do something, click a few buttons...

xrandr --output <output> --rotate normal

The attached screenshot shows the problem. (Sorry for the quality,
capturing the cursor as well is apparently pretty hard to do , even with
disabled hardware cursor)

Versions:

xorg-xrandr 1.4.2
xorg-server 1.16.0
xf86-video-intel 2.99.914

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1376760/comments/1

------------------------------------------------------------------------
On 2014-07-29T19:52:35+00:00 Brbrbr-10-toranaga-san wrote:

Link to the picture: http://www.image-share.com/ijpg-2643-6.html

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1376760/comments/2

------------------------------------------------------------------------
On 2014-07-29T20:11:05+00:00 Chris Wilson wrote:

Please try (xf86-video-intel):

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 8964e77..eed68d3 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -4294,7 +4294,7 @@ static struct sna_cursor *__sna_get_cursor(struct sna *sna, xf86CrtcPtr crtc)
                image = sna->cursor.scratch;
                cursor->last_width = cursor->last_height = size;
        }
-       if (width < cursor->last_width || height < cursor->last_height)
+       if (width < cursor->last_width || height < cursor->last_height || rotation != cursor->rotation)
                memset(image, 0, 4*size*size);
        if (rotation == RR_Rotate_0) {
                if (argb == NULL) {

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1376760/comments/3

------------------------------------------------------------------------
On 2014-07-29T21:44:31+00:00 Brbrbr-10-toranaga-san wrote:

Well, I (manually) patched sna_display.c and recompiled the driver. As
far as I can see the fix works. Thanks a lot for the quick response, I
have never seen a bug fixed 5 hours after the initial report. Very
impressive :)

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1376760/comments/4

------------------------------------------------------------------------
On 2014-07-30T05:58:18+00:00 Chris Wilson wrote:

commit a88795c64123e4084044451d8861838ea904abd9
Author: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Date:   Tue Jul 29 21:11:09 2014 +0100

    sna: Clear cursor image after rotation
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81886
    Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>

Reply at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-
intel/+bug/1376760/comments/5


** Changed in: xserver-xorg-video-intel
       Status: Unknown => Fix Released

** Changed in: xserver-xorg-video-intel
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-video-intel in Ubuntu.
https://bugs.launchpad.net/bugs/1376760

Title:
  after a screen rotation we get a double mouse pointer

Status in X.org xf86-video-intel:
  Fix Released
Status in “xserver-xorg-video-intel” package in Ubuntu:
  Confirmed

Bug description:
  On ubuntu version 14.10
  after a screen rotation when we come back to normal rotation our mouse pointer is doubled: the old
  rotated one and the actual one.
  This bug was already reported in: https://bugs.freedesktop.org/show_bug.cgi?id=81886
  with a complete solution.
  I checked that code compiled for 14.10 does not contain the fix in file:
  src/sna/sna_display.c

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: xserver-xorg-video-intel 2:2.99.914-1~exp1ubuntu3
  Uname: Linux 3.17.0-031700rc7-generic x86_64
  .tmp.unity.support.test.0:
   
  ApportVersion: 2.14.7-0ubuntu2
  Architecture: amd64
  CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
  CompositorRunning: compiz
  CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
  CompositorUnredirectFSW: true
  CurrentDesktop: Unity
  Date: Thu Oct  2 16:35:59 2014
  DistUpgraded: 2014-09-23 12:09:08,269 DEBUG disabling apt cron job (0o755)
  DistroCodename: utopic
  DistroVariant: ubuntu
  ExtraDebuggingInterest: Yes
  GraphicsCard:
   Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
     Subsystem: Lenovo Device [17aa:3977]
  InstallationDate: Installed on 2013-11-14 (322 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
  MachineType: LENOVO 2191
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.17.0-031700rc7-generic root=UUID=42f32e25-c311-4811-9c71-19fd8ef53c6d ro quiet acpi_backlight=vendor
  SourcePackage: xserver-xorg-video-intel
  UpgradeStatus: Upgraded to utopic on 2014-09-23 (9 days ago)
  dmi.bios.date: 01/21/2013
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 66CN54WW
  dmi.board.asset.tag: No Asset Tag
  dmi.board.name: INVALID
  dmi.board.vendor: LENOVO
  dmi.board.version: 31900003WIN8 STD MLT
  dmi.chassis.asset.tag: No Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Lenovo IdeaPad Yoga 13
  dmi.modalias: dmi:bvnLENOVO:bvr66CN54WW:bd01/21/2013:svnLENOVO:pn2191:pvrLenovoIdeaPadYoga13:rvnLENOVO:rnINVALID:rvr31900003WIN8STDMLT:cvnLENOVO:ct10:cvrLenovoIdeaPadYoga13:
  dmi.product.name: 2191
  dmi.product.version: Lenovo IdeaPad Yoga 13
  dmi.sys.vendor: LENOVO
  version.compiz: compiz 1:0.9.12+14.10.20140918-0ubuntu1
  version.ia32-libs: ia32-libs N/A
  version.libdrm2: libdrm2 2.4.56-1
  version.libgl1-mesa-dri: libgl1-mesa-dri 10.3.0-0ubuntu2
  version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
  version.libgl1-mesa-glx: libgl1-mesa-glx 10.3.0-0ubuntu2
  version.xserver-xorg-core: xserver-xorg-core 2:1.16.0-1ubuntu1
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.9.0-1ubuntu2
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.4.0-2ubuntu2
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.914-1~exp1ubuntu3
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.11-1ubuntu2
  xserver.bootTime: Thu Oct  2 12:37:20 2014
  xserver.configfile: default
  xserver.errors:
   
  xserver.logfile: /var/log/Xorg.0.log
  xserver.outputs:
   product id                                 864 
   vendor                                     LGD
  xserver.version: 2:1.16.0-1ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/1376760/+subscriptions


References