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: [patch] pvfb: Split mouse and keyboard into separate

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [patch] pvfb: Split mouse and keyboard into separate devices.
From: Gerd Hoffmann <kraxel@xxxxxxx>
Date: Fri, 02 Feb 2007 09:39:12 +0100
Cc: Xen devel list <xen-devel@xxxxxxxxxxxxxxxxxxx>, Markus Armbruster <armbru@xxxxxxxxxx>
Delivery-date: Fri, 02 Feb 2007 00:38:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070201180508.GD25856@xxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <45C1C7FC.8080208@xxxxxxx> <87r6t97p9z.fsf@xxxxxxxxxxxxxxxxx> <20070201180508.GD25856@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20060911)
Daniel P. Berrange wrote:
> Is there some way we can keep the original device supplying both keyboard
> and mouse events as before, and just have this second device as an opt-in
> 'absolute pointer' event device. That way existing Xorg setups will still
> work correctly without needing any config changes, while providing the 
> ability to opt-in to getting absolute events by adding the extra config.

Should be possible.  Some linux input layer background:

You'll get one /dev/input/event<nr> file per input device.

Applications can open it, they can ask for exclusive access to it (what
usually is a good idea), and if they do so nobody else gets events from
that device.

Input events which are not grabbed that way go the usual route through
the linux input layer and end up as normal key presses in the keyboard
driver or as mouse events in the ps/2 mouse emulation (aka /dev/input/mice).

Splitting keyboard and mouse into two devices makes it possible to
handle the mouse events via /dev/input/event<nr> and let the keyboard
events still go the usual route.

> Ideally Xorg hardware probing could then be modified, so that future Xorg
> releases would automatically utilize the extra device (if present) for 
> absolute co-ords without needing the extra config at all.

Xorg 7.2 comes with a manpage for evdev ;)

Have played only with sles10 guests so far, which unfortunaly has an
older Xorg version, where the evdev driver has much less features, thus
the stuff below is untested ...

Xorg 7.2 evdev can match input devices by name and by id, so you can add
a sections like this:

  Section "InputDevice"
    Driver       "evdev"
    Identifier   "Mouse[1]"
    Option       "Name" "Xen Virtual Pointer"
  EndSection

and be done with it.  The /dev/input/mice section can stay.  It doesn't
hurt, there are no mouse events coming due to evdev asking for exclusive
access.

cheers,
  Gerd

-- 
Gerd Hoffmann <kraxel@xxxxxxx>

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

<Prev in Thread] Current Thread [Next in Thread>