From owner-freebsd-x11@FreeBSD.ORG Sun Feb 13 16:49:17 2011 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D105C106564A for ; Sun, 13 Feb 2011 16:49:17 +0000 (UTC) (envelope-from dbn.lists@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 624A28FC15 for ; Sun, 13 Feb 2011 16:49:16 +0000 (UTC) Received: by ewy24 with SMTP id 24so2019762ewy.13 for ; Sun, 13 Feb 2011 08:49:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HbVpv7fXjZQdlUVP+60bM408gDFXxQxWMqQI1Fx9JX8=; b=VXqORlLZLCZ+oy+L54HIE1uX2WepsYTVNHBP4S6CYDLnho/4sMBqd+REpeiyabeTnB 5RWs05g8Hv4QPWZZ2uTI3IgxBOnY5wOQaLpY2Ks5R/PVAaB+zKWA0MkJQ4qQGxPCldPq JtFok2uyCP43hyfsNaSDKNBZkOvRvxchVZzHY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=MKe7VdEnhIIMLrJo9Z1EY2ciJ4yduAMuzEiYwc50vDYpzqkd4mWkvQ4GJONMQ0EbjG WVBa4oOqTWfCXOIw6fEYyFroA8im0wB+SaahqtDPQEd0Jn8eTh/QxdkDpMln1CQuWH6Q MLJXWy2gxV5YRkNOiJD9HDfXcwqQIvRg5KitY= MIME-Version: 1.0 Received: by 10.14.47.6 with SMTP id s6mr2821611eeb.15.1297614143629; Sun, 13 Feb 2011 08:22:23 -0800 (PST) Received: by 10.14.51.76 with HTTP; Sun, 13 Feb 2011 08:22:23 -0800 (PST) In-Reply-To: <20110213124019.GH7840@debian.org> References: <20110213124019.GH7840@debian.org> Date: Sun, 13 Feb 2011 08:22:23 -0800 Message-ID: From: Dan Nicholson To: Cyril Brulebois Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-x11@freebsd.org, xorg-devel@lists.x.org, debian-bsd@lists.debian.org Subject: Re: xorg-server/*bsd: moving from hal support to devd support? X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2011 16:49:17 -0000 On Sun, Feb 13, 2011 at 4:40 AM, Cyril Brulebois wrote: > Hi FreeBSD/X11 folks, > > as an occasional GNU/kFreeBSD porter, I've been wondering what's going > to happen with hal going away/being unmaintained. I've been pointed to > a blog post about Xfce on *BSD [1], where it is mentioned that devd > might be used as a udev equivalent. > > =C2=A01. http://gezeiten.org/post/2011/01/Xfce-4.8-on-BSD-flavors > > Are there any plans to add devd support to xorg on your side? I'm > putting the Debian GNU/kFreeBSD users/porters list and the Xorg devel > list in Cc. As someone who's worked on the udev backend for input devices, what needs to be provided is pretty simple. 1. X needs to know about devices that are already plugged in when the server starts 2. X needs to get events for devices when they are inserted or removed 3. X needs a basic level of metadata about the device to allow the user to match to the device. Basically, filling out the InputAttributes struct (see include/input.h): typedef struct _InputAttributes { char *product; char *vendor; char *device; char *pnp_id; char *usb_id; char **tags; /* null-terminated */ uint32_t flags; } InputAttributes; #define ATTR_KEYBOARD (1<<0) #define ATTR_POINTER (1<<1) #define ATTR_JOYSTICK (1<<2) #define ATTR_TABLET (1<<3) #define ATTR_TOUCHPAD (1<<4) #define ATTR_TOUCHSCREEN (1<<5) Where flags is currently just a bitfield for the ATTR_* macros and tags are freeform labels coming from the backend (optional). After that it gets handed off to the DDX. -- Dan