From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 5 12:00:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 037BFF6C for ; Tue, 5 Feb 2013 12:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id DE62F199 for ; Tue, 5 Feb 2013 12:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r15C007d029674 for ; Tue, 5 Feb 2013 12:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r15C00gX029671; Tue, 5 Feb 2013 12:00:00 GMT (envelope-from gnats) Resent-Date: Tue, 5 Feb 2013 12:00:00 GMT Resent-Message-Id: <201302051200.r15C00gX029671@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E77E6F21 for ; Tue, 5 Feb 2013 11:57:14 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id 9D015178 for ; Tue, 5 Feb 2013 11:57:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1U2h98-000741-LW for FreeBSD-gnats-submit@freebsd.org; Tue, 05 Feb 2013 14:57:07 +0300 Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1U2h6c-000DIM-Js for FreeBSD-gnats-submit@freebsd.org; Tue, 05 Feb 2013 11:54:33 +0000 Message-Id: <1U2h6c-000DIM-Js@internal.tormail.org> Date: Tue, 05 Feb 2013 17:41:02 +0800 From: Jan Beich To: FreeBSD-gnats-submit@freebsd.org Subject: ports/175860: multimedia/webcamd: expose Wacom via HAL for hotplugging X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2013 12:00:01 -0000 >Number: 175860 >Category: ports >Synopsis: multimedia/webcamd: expose Wacom via HAL for hotplugging >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Feb 05 12:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: $ lshal # from ubuntu udi = '/org/freedesktop/Hal/devices/usb_device_56a_de_noserial_if1_logicaldev_input' info.capabilities = {'input', 'input.touchpad'} (string list) info.category = 'input' (string) info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_de_noserial_if1' (string) info.product = 'Wacom Bamboo 16FG 4x5 Finger' (string) info.subsystem = 'input' (string) info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_de_noserial_if1_logicaldev_input' (string) input.device = '/dev/input/event16' (string) input.originating_device = '/org/freedesktop/Hal/devices/usb_device_56a_de_noserial_if1' (string) input.product = 'Wacom Bamboo 16FG 4x5 Finger' (string) linux.device_file = '/dev/input/event16' (string) linux.hotplug_type = 2 (0x2) (int) linux.subsystem = 'input' (string) linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.1/input/input16/event16' (string) udi = '/org/freedesktop/Hal/devices/usb_device_56a_de_noserial_if0_logicaldev_input' info.capabilities = {'input', 'input.tablet'} (string list) info.category = 'input' (string) info.parent = '/org/freedesktop/Hal/devices/usb_device_56a_de_noserial_if0' (string) info.product = 'Wacom Bamboo 16FG 4x5 Pen' (string) info.subsystem = 'input' (string) info.udi = '/org/freedesktop/Hal/devices/usb_device_56a_de_noserial_if0_logicaldev_input' (string) input.device = '/dev/input/event15' (string) input.originating_device = '/org/freedesktop/Hal/devices/usb_device_56a_de_noserial_if0' (string) input.product = 'Wacom Bamboo 16FG 4x5 Pen' (string) linux.device_file = '/dev/input/event15' (string) linux.hotplug_type = 2 (0x2) (int) linux.subsystem = 'input' (string) linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/input/input15/event15' (string) >Description: ports/166012 improved configuration by automatically attaching webcamd to every usb interface a Wacom tablet has. This leads to two issues with static Xserver configuration (xorg.conf). - depending on the order of initialization /dev/input/eventN may be assigned to different interface(s) after re-attaching the tablet - running Xserver prevents webcamd (cuse) from reclaiming old /dev/input/eventN filenames while not picking up new ones when the tablet is re-attached HAL solves both of them by providing enough information to assign the right device type(s) for X11 driver (stylus, cursor, etc) and making Xserver open/close device file(s) on attach/detach. Note, the first issue cannot be worked around with devd symlinks because cuse events are too scarce to distinguish different interfaces on different devices, etc. !system=DEVFS subsystem=CDEV type=CREATE cdev=input/event0 !system=DEVFS subsystem=CDEV type=CREATE cdev=input/event1 >How-To-Repeat: 1. create xorg.conf for a tablet 2. startx, xdm, etc 3. detach the tablet 4. attach the tablet 5. notice input from the tablet no longer works >Fix: >Release-Note: >Audit-Trail: >Unformatted: