WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] RFC: drop frontend support for relative pointer

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] RFC: drop frontend support for relative pointer
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Wed, 7 Oct 2009 21:01:24 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Markus Armbruster <armbru@xxxxxxxxxx>
Delivery-date: Wed, 07 Oct 2009 13:02:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.0910071829490.25583@kaball-desktop>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <87vdirw2d8.fsf@xxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.0910071829490.25583@kaball-desktop>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Wed, Oct 07, 2009 at 06:39:04PM +0100, Stefano Stabellini wrote:
> On Wed, 7 Oct 2009, Markus Armbruster wrote:
> > The protocol between PVFB frontend and backend supports relative and
> > absolute pointer.
> > 
> > In theory, support for absolute pointer in the backend is optional.  In
> > practice, our backend has always supported it.
> > 
> > Absolute pointers provide a superior user experience, and our frontend
> > always enabled them.
> > 
> > However, because the backend could theoretically not offer the absolute
> > pointer option, the frontend still supports both.  This has worked fine
> > so far, but it's starting to cause trouble now.
> > 
> > We support both relative and absolute pointer by setting both EV_REL and
> > EV_ABS in input device, then use whatever the backend sends us.  The
> > backend either sends only relative or only absolute events.
> > 
> > Nothing in the kernel suggests setting both EV_REL and EV_ABS is bad.
> > In fact, drivers/hid/hid-wacom.c and drivers/input/tablet/aiptek.c seem
> > to do the same.
> > 
> > Unfortunately, X is having difficulties with it.  It worked only because
> > of a bug in evdev.  This bug was fixed recently, and the fix broke the
> > Xen PV pointer.  Impact: pointer doesn't work at all with Fedora Rawhide
> > guests.  See [*] for the gory details.
> > 
> > X will eventually be fixed, but waiting for that isn't practical.  We
> > need to work around the problem in xen-kbdfront, or possibly evdev.
> > 
> > My preferred solution is dropping support for relative pointer in the
> > frontend, then set only EV_ABS.  It's easy, safe, and sends user space
> > down well-trodden paths.  Requires a backend supporting absolute
> > pointers, but as mentioned above, they all do.
> > 
> > Opinions?
> > 
> 
> I think that it is fair to assume that the backend supports absolute
> coordinates, in fact the stubdom frontend does that already.

That's good to know - stubdom was one area I was concerned about. To the
best of my knowledge the only backend that ever sent relative mouse events
was the old PVFB we had in Fedora 6 which was the original code before 
the eventual merge into official xen-devel trees. So official repos have
always defaulted to absolute mode.  Hopefully no one out there has gone
and re-implemented the PVFB backend in any other fork of Xen and dropped
ABS mode or made REL the default ???

IMHO if ABS mode is able to work correctly, then there's absolutely no
benefit in having a REL mode at all, so its best deleted / removed. 

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel