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] Re: Problems with guest mouse Was: More issues with xl o

To: M A Young <m.a.young@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Problems with guest mouse Was: More issues with xl on 4.1.0-rc
From: John Haxby <john.haxby@xxxxxxxxxx>
Date: Wed, 09 Mar 2011 09:31:08 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Delivery-date: Wed, 09 Mar 2011 01:32:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.LFD.2.02.1103082149300.10391@xxxxxxxxxxxxxxx>
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: <alpine.LFD.2.02.1102032048510.14219@xxxxxxxxxxxxxxx> <alpine.DEB.2.00.1102041443230.7277@kaball-desktop> <alpine.GSO.2.00.1102041506530.29161@xxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1102041531440.7277@kaball-desktop> <alpine.LFD.2.02.1102041539210.12366@xxxxxxxxxxxxxxxxxx> <alpine.LFD.2.02.1102041550450.12366@xxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1102041603380.7277@kaball-desktop> <alpine.LFD.2.02.1103062130590.25360@xxxxxxxxxxxxxxx> <alpine.DEB.2.00.1103071810000.2968@kaball-desktop> <alpine.LFD.2.02.1103082149300.10391@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.7
On 08/03/11 22:03, M A Young wrote:
> On Mon, 7 Mar 2011, Stefano Stabellini wrote:
>
>> On Sun, 6 Mar 2011, M A Young wrote:
>>
>> Is there any difference in the VMs between the system that works and the
>> one that does not? In particular I am think about kernel or xorg
>> versions.
>
> I think this could be it. The mouse doesn't work on newer VMs but does
> work on older ones (I am not sure my earlier test results quite fitted
> that pattern but I could be mis-remembering or have been mis-testing).


I thought this sounded familiar.  In the bad log you have

(==) Using system config directory "/usr/share/X11/xorg.conf.d"
...
(II) config/udev: Adding input device Xen Virtual Pointer
(/dev/input/event1)
(**) Xen Virtual Pointer: Applying InputClass "evdev pointer catchall"
(II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
(**) Xen Virtual Pointer: always reports core events
(**) Xen Virtual Pointer: Device: "/dev/input/event1"
(--) Xen Virtual Pointer: Found 12 mouse buttons
(--) Xen Virtual Pointer: Found scroll wheel(s)
(--) Xen Virtual Pointer: Found relative axes
(--) Xen Virtual Pointer: Found x and y relative axes
(--) Xen Virtual Pointer: Found absolute axes
(--) Xen Virtual Pointer: Found x and y absolute axes
(II) Xen Virtual Pointer: Configuring as mouse
(II) Xen Virtual Pointer: Adding scrollwheel support
(**) Xen Virtual Pointer: YAxisMapping: buttons 4 and 5
(**) Xen Virtual Pointer: EmulateWheelButton: 4, EmulateWheelInertia:
10, EmulateWheelTimeout: 200
(**) Option "config_info" "udev:/sys/devices/virtual/input/input1/event1"
(II) XINPUT: Adding extended input device "Xen Virtual Pointer" (type:
MOUSE)
(II) Xen Virtual Pointer: initialized for relative axes.
(WW) Xen Virtual Pointer: ignoring absolute axes.
(**) Xen Virtual Pointer: (accel) keeping acceleration scheme 1
(**) Xen Virtual Pointer: (accel) acceleration profile 0
(**) Xen Virtual Pointer: (accel) acceleration factor: 2.000
(**) Xen Virtual Pointer: (accel) acceleration threshold: 4


The critical bit it "ignoring absolute axes".   If you look at the evdev
man page it says

                                                                  The X
              server cannot deal with devices that have  both  relative
              and  absolute  axes.  Evdev  tries  to guess wich axes to
              ignore given the device type and disables  absolute  axes
              for  mice and relative axes for tablets, touchscreens and
              touchpad.

Your "good" log file indicates that something was done about this in the
configuration, but the easiest thing to do is to put this in
/usr/share/X11/xorg.conf.d/xen.conf (that file doesn't exist):

Section "InputClass"
    Identifier "Xen Virtual Pointer"
    MatchProduct "Xen Virtual Pointer"
    Option "IgnoreRelativeAxes" "True"
EndSection

When you start up the X server the log file will show that this option
has been taken and all will be sweetness and light.

The underlying problem seems to be that the xen virtual mouse driver is
advertising both relative and absolute axes (duh) but the back end is
only supplying absolute axes.

I haven't had the time to look since I discovered this a week ago -- but
I think that the front end shouldn't be advertising relative axes if the
back end is supplying absolute ones.   Perhaps now I should actually
look ...

jch

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