Created attachment 78483
Xorg-valgrind.till-twist.gz

Finally I succeeded to make X crashing again, I opened several programs
(Firefox, Chromium, Thunderbird, Calculator, digikam), did some clicks
in them, and closed them again. Then I opened LibreOffice Writer via the
Launcher and got a window asking to recover a previous document which
was not correctly closed. I rejected and when I answered the question
whether I really want to reject with "Yes", X crashed.

Valgrind log attached.

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

Title:
  Inconsistent mouse events for Acer T231H multitouch monitor

Status in HWE Next Project:
  New
Status in X.Org X server:
  In Progress
Status in “xorg-server” package in Ubuntu:
  In Progress

Bug description:
  I already submitted this at http://askubuntu.com/questions/153043/ but
  decided to update to the latest development snapshot in order to give
  that a try and write a proper bug report if the issue persists. It
  does persist.

  My setup is a quantal alpha 1, just upgraded from precise, with an
  Acer T231H multitouch monitor connected to it, as well as an ordinary
  mouse for testing. The mouse events as X sends them to the
  applications are inconsitent. This can be debugged using xev.

  The first touch of the screen is preceeded by a MotionNotify event
  which already has state 0x100, i.e. left mouse button pressed. After
  that comes a ButtonPress event, again with state 0x100 although that
  value should indicate the state of the buttons before the event
  occurred. The subsequent drag is all right, and the ButtonRelease as
  well, but the 0x100 bit in the state value will never become zero
  again.

  Even if I've got an ordinary mouse connected as well, it will
  henceforth report every movement as if I were keeping the left mouse
  button down. The only cure that I could find was restarting the X
  server. Together with the ButtonPress and ButtonRelease events, this
  constant bit for left mouse button amounts to an inconsistent
  reporting of button state.

  Java applications e.g. will report every move as a drag due to this
  issue, with severe implications for focus management. This makes using
  differenent parts of the application almost impossible, as mouse
  movement will only be reported to the component where the mouse
  entered the application window.

  Since reporting at askubuntu, I've run some tests with evtest. The
  data coming from the event device looks sane enough: BTN_TOUCH events
  for the first finger, with value 1 for pressed and 0 for released.
  ABS_MT_TRACKING_ID for all fingers, with a non-negative value for
  pressed and -1 for released. The grouping into syn groups looks sane
  as well. So I'd say the kernel driver works as intended, and somewhere
  from there to the xevent layer, some internal state gets messed up.

  I'm willing to try out any patches you might propose, be it in an
  attempt to fix this, or only to gather more information.

  Expected behaviour:

      MotionNotify with state 0x000 when dragging the ordinary mouse
      MotionNotify with state 0x000 for move prior to touch, or no event at all
      ButtonPress with state 0x000 when touching the screen
      MotionNotify with state 0x100 while dragging the finger
      ButtonRelease with state 0x100 when lifting the finger
      MotionNotify with state 0x000 when dragging the ordinary mouse afterwards

  Actual behaviour:

      MotionNotify with state 0x000 when dragging the ordinary mouse before the 
first touch
      MotionNotify with state 0x100 for prior to ButtonPress event
      ButtonPress with state 0x100 when touching the screen
      MotionNotify with state 0x100 while dragging the finger
      ButtonRelease with state 0x100 when lifting the finger
      MotionNotify with state 0x100 when dragging the ordinary mouse afterwards

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: xserver-xorg-input-evdev 1:2.7.0-0ubuntu2
  ProcVersionSignature: Ubuntu 3.4.0-5.11-generic 3.4.0
  Uname: Linux 3.4.0-5-generic x86_64
  ApportVersion: 2.2.3-0ubuntu5
  Architecture: amd64
  CurrentDmesg: [    7.381404] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
  Date: Tue Jun 19 17:56:46 2012
  DistUpgraded: 2012-06-19 17:51:23,756 DEBUG enabling apt cron job
  DistroCodename: quantal
  DistroVariant: ubuntu
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 
(20120425)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.4.0-5-generic 
root=UUID=88133c52-550c-4c43-9da5-15f180bdb767 ro quiet splash vt.handoff=7
  SourcePackage: xserver-xorg-input-evdev
  UpgradeStatus: Upgraded to quantal on 2012-06-19 (0 days ago)
  dmi.bios.date: 09/22/2011
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 4.6.4
  dmi.board.name: AMD HUDSON-M1
  dmi.board.vendor: ZOTAC
  dmi.chassis.type: 3
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr4.6.4:bd09/22/2011:svn:pn:pvr:rvnZOTAC:rnAMDHUDSON-M1:rvr:cvn:ct3:cvr:
  version.compiz: compiz 1:0.9.7.8-0ubuntu3
  version.ia32-libs: ia32-libs N/A
  version.libdrm2: libdrm2 2.4.33-1
  version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.3-0ubuntu1
  version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
  version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.3-0ubuntu1
  version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu11
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu2
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 
1:6.14.99~git20111219.aacbd629-0ubuntu2
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.19.0-1ubuntu1
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 
1:0.0.16+git20120614+36d3f8c-1

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1015183/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to