From: Joshua West <jwest@brandeis.edu>
To: John Haxby <john.haxby@ORACLE.COM>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>, xen-devel@lists.xensource.com
Subject: Re: pvfb: Absolute vs relative mouse tracking mystery
Date: Tue, 03 Aug 2010 20:35:41 -0400 [thread overview]
Message-ID: <4C58B5DD.6030003@brandeis.edu> (raw)
In-Reply-To: <768613C6-FA1E-455A-A2EF-183E69AEA517@oracle.com>
On 08/03/2010 12:23 PM, John Haxby wrote:
> On 2 Aug 2010, at 20:40, Jeremy Fitzhardinge wrote:
>
>> On 08/02/2010 12:37 PM, Joshua West wrote:
>>> On 08/02/10 15:00, Jeremy Fitzhardinge wrote:
>>>> On 08/01/2010 12:11 PM, Joshua West wrote:
>>>>> Jeremy,
>>>>>
>>>>> Do you know if this will be fixed in the Xen 3.4.x series as well? In the 3.4.x ioemu-remote qemu code and the 2.6.18.8 xen kernel?
>>>>>
>>>>> I ask because this is an issue for me on RHEL5 domU's which are paravirtualized. Using Xen 3.4.3 w/ Xen kernel 2.6.18.8 and I'm not yet ready to switch production clusters to 4.0.x.
>>>> RHEL/CentOS5 deliberately avoids using the absolute pointer mode for reasons I don't understand, so it is broken as expected.
>>>>
>>>> J
>>> Ahh yes, but thats if you're using the RHEL/CentOS Xen kernel. I'm not using a RHEL kernel... instead I'm using linux-2.6.18-xen.hg, but still the issue persists on RHEL5 domU's.
>> OK, in that case it would be worth looking at backporting the changes to older Xens.
>
> I'm not sure if it will make much difference.
>
> The 2.6.18.x X server uses the PS/2 mouse driver which is strictly relative, in fact that driver basically maps on to the kernel's mousedev driver which carefully converts the absolute pointer events from the xen driver to relative ones and most of the problems with tracking arise from a built-in assumption that the absolute coordinates are on a 1024x768 screen (this is why the local mouse and the guest mouse appear to be connected by a pantograph, albeit a poorly functioning pantograph).
>
> One solution is to use xorg-x11-drv-evdev which _does_ take the absolute pointer events and passes them directly to the X server. Unfortunately while this is possible it is difficult to configure because the 2.6.18.x kernel has a combined xen mouse and keyboard device and the X server wants to distinct devices (if linux-2.6.18-xen.hg has separated the drivers (and you can see distinct keyboard and mouse devices in /proc/bus/input/devices) then just configure a evdev driver as a pointer for X.
>
> For RHEL/CentOS 5 I appear to have a solution: an X input driver that takes only the mouse events from the kernel's evdev driver. I have something that works and that I believe I can publish but I need to check both of those when I get back to work (I'm not quite on the beach at the moment, but not far off it). Of course, for 5.5 you need to re-enable request-abs-pointer on the kernel command line, but that's not too onerous.
>
> jch
Ahh... So then if we get the PVFB going with 1024x768 resolution,
instead of wonderful 1990's 800x600, we're all set ;-)
I've been testing with evdev driver as well (Option "Device"
"/dev/input/event1" for me), but that has not worked. I see what you're
saying though - I can see two entries in /proc/bus/input/devices, and my
mouse handlers are "mouse0 event1 ts0", but both the keyboard and mouse
physical device is the same: "xen/device/vkbd/0". And this is all with
linux-2.6.18-xen.hg.
I'm looking forward to your custom RHEL/CentOS driver to get this going.
One last question -- even if using linux-2.6.18-xen.hg, are you saying
we still need request-abs-pointer kernel argument? Wasn't that just to
enable absolute pointer mode in the RHEL mouse driver if using RHEL 5.5
and their Xen kernel (looked that way from their patch)? Or is RHEL's
Xorg somehow also looking for this directive?
Thanks.
--
Joshua West
Senior Systems Engineer
Brandeis University
http://www.brandeis.edu
next prev parent reply other threads:[~2010-08-04 0:35 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
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 [this message]
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=4C58B5DD.6030003@brandeis.edu \
--to=jwest@brandeis.edu \
--cc=jeremy@goop.org \
--cc=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.