xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: John Haxby <john.haxby@oracle.com>
To: xen-devel@lists.xensource.com
Subject: Re: pvfb: Absolute vs relative mouse tracking mystery
Date: Fri, 23 Jul 2010 12:33:21 +0100	[thread overview]
Message-ID: <4C497E01.5010003@oracle.com> (raw)
In-Reply-To: <4C489867.1030301@goop.org>

  On 22/07/10 20:13, Jeremy Fitzhardinge wrote:
> On 07/22/2010 12:04 PM, John Haxby wrote:
>> CentOS 5.5 (and RHEL5.5) deliberately turns off request-abs-pointer in
>> favour of relative pointers.
>>
>> The excuse given is that the RHEL5 X server isn't up to the job of
>> dealing with absolute pointers.  The claim is that you get better
>> responsiveness with relative pointers and a gtk-vnc-based viewers.
> Er, what?  How do they get it to work properly then?  Is there any way
> to make it use abs?
>

The bug for this is https://bugzilla.redhat.com/show_bug.cgi?id=492866

That doesn't explain much, but the corresponding patch to the RHEL 
kernel has this to say:

>     The Xen para-virtual frame buffer protocol supports absolute and
>     relative pointer events.  The backend sends absolute pointer 
> events only
>     if the frontend has agreed to that feature.
>
>     For reasons that seemed sensible at the time, the RHEL-5 frontend 
> always
>     agrees, even though RHEL-5 user-space is incapable of actually running
>     the mouse in absolute mode without manual configuration.  So, out 
> of the
>     box, the guest kernel is doing abs -> rel coordinate conversion.  This
>     in turn causes problems for anyone connecting to the guest using 
> the VNC
>     server in the host, because their mouse pointer is prone to hit an
>     "invisible wall".
>
>     The out-of-the-box experience is much better with relative pointer
>     events.  It is better still with user-space correctly set up for
>     absolute pointer events.
>
>     This patch makes the xenkbd driver reject absolute pointers, 
> unless they
>     This patch makes the xenkbd driver reject absolute pointers, 
> unless they
>     are enabled with kernel parameter xenkbd.abs_pointer=1.  Improves the
>     out-of-the box user experience, and still allows those who care for an
>     even better experience to manually set that up.


The "out-of-the-box experience" relies on you using a gtk-vnc-based VNC 
viewer that grabs the mouse and turns off the visible local mouse 
pointer so it can work properly.  When I tried it it didn't seem that 
great and, of course, it doesn't work at all when you're using a 
java-plugin VNC viewer from Windows where you can't turn off the local 
mouse pointer.

It is possible to fix RHEL5 so that you can configure the Xen mouse 
properly -- I did it.  However, the way I did it involved fixing the X11 
evdev driver since evdev interface provides both mouse and keyboard but 
the evdev driver doesn't do XKB.   Configuring all that took some doing, 
but it can be done automatically and I even retrofitted the changes into 
anaconda so that it all worked properly at installation time as well.

Is there a better way to talk to the xen mouse?  One that means that we 
can get the absolute events and give them to the X server?   A new mouse 
driver is likely to be less painful than the far-reaching attempt I 
tried before.

jch

  reply	other threads:[~2010-07-23 11:33 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-07 22:32 pvfb: Absolute vs relative mouse tracking mystery Jeremy Fitzhardinge
2010-05-10 14:41 ` Stefano Stabellini
2010-05-10 17:45   ` Jeremy Fitzhardinge
2010-05-10 20:15   ` Jeremy Fitzhardinge
2010-05-11 10:56     ` Stefano Stabellini
2010-06-19 15:41       ` Pasi Kärkkäinen
2010-06-19 15:48         ` Jeremy Fitzhardinge
2010-06-19 16:22           ` Pasi Kärkkäinen
2010-06-19 17:40             ` Jeremy Fitzhardinge
2010-06-19 17:50               ` Pasi Kärkkäinen
2010-07-22  1:01                 ` Jeremy Fitzhardinge
2010-07-22  8:52                   ` Pasi Kärkkäinen
2010-07-22 19:04                     ` John Haxby
2010-07-22 19:13                       ` Jeremy Fitzhardinge
2010-07-23 11:33                         ` John Haxby [this message]
2010-07-22 11:58                   ` Stefano Stabellini
2010-07-22 16:51                     ` Jeremy Fitzhardinge
2010-07-22 16:58                       ` Jeremy Fitzhardinge
2010-07-23 11:55                         ` Stefano Stabellini
2010-06-21 14:57           ` John Haxby
2010-06-21 14:59             ` Jeremy Fitzhardinge
2010-07-21 11:52               ` Pasi Kärkkäinen
2010-08-01 19:11               ` Joshua West
2010-08-02 19:00                 ` Jeremy Fitzhardinge
2010-08-02 19:37                   ` Joshua West
2010-08-02 19:40                     ` Jeremy Fitzhardinge
2010-08-03 16:23                       ` John Haxby
2010-08-04  0:35                         ` Joshua West
2010-08-10 16:20                           ` John Haxby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C497E01.5010003@oracle.com \
    --to=john.haxby@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).