From owner-freebsd-current@FreeBSD.ORG Tue Sep 10 11:42:04 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 99F839D5; Tue, 10 Sep 2013 11:42:04 +0000 (UTC) (envelope-from sergey.dyatko@gmail.com) Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 14D7820D0; Tue, 10 Sep 2013 11:42:03 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id t60so6612606wes.28 for ; Tue, 10 Sep 2013 04:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-transfer-encoding; bh=M/cjNA8W7GtHaSAmf1gfTlD1J6GHh2VqOiU4N/e9ylQ=; b=zKno++wud7/q+jruQuuh6wX//dYlkEhOM2KLuSAvOb5LpM9F/kVar/mbslJM7SEDMy agQjTpUizDDSg5h+UpxYtRNcrYeHUolbPWJ/MocyUws1fit3VHFe2VrRZyGxa+yYtjRZ 7qcPSv36PYTccgAJGhce1satFXiXrnz+3xDRq+xWU+E2HrpfQVvDhaGZ3yYTTK8lgEDr +tf2rb77vYVsh1eFM+AKz0W6lt6OkFMtJy0R3Z/6Y12A7Vdh9OmbPWAazY4CcmmCsYWW w/BWBudqzonT7KHINujXqe0rD1RVwbcLPN1a0DhZKJK+tCpGWx5rHjBZwDN2p8nO1t4y M3KA== X-Received: by 10.180.90.197 with SMTP id by5mr12452565wib.43.1378813322517; Tue, 10 Sep 2013 04:42:02 -0700 (PDT) Received: from laptop.minsk.domain (m-s.agava.net. [195.222.84.203]) by mx.google.com with ESMTPSA id fv10sm2687539wic.0.1969.12.31.16.00.00 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 10 Sep 2013 04:42:02 -0700 (PDT) Date: Tue, 10 Sep 2013 14:42:02 +0300 From: "Sergey V. Dyatko" To: hselasky@freebsd.org Subject: usb mouse and xorg Message-ID: <20130910144202.0e68fbca@laptop.minsk.domain> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Sep 2013 11:42:04 -0000 Hi, after I update my HEAD box from 252xxx (i'm not sure) to r255393 USB mouse(s) stop work for me on X. I run `tail -f /var/log/Xorg.0.log /var/log/messages`: Sep 10 14:27:15 laptop kernel: ugen4.2: at usbus4 Sep 10 14:27:15 laptop devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen4.2 0' Sep 10 14:27:15 laptop kernel: ums0: on usbus4 Sep 10 14:27:15 laptop kernel: ums0: 7 buttons and [XYZ] coordinates ID=0 Sep 10 14:27:15 laptop devd: Executing '/etc/rc.d/moused quietstart ums0' ==> /var/log/Xorg.0.log <== (II) config/hal: Adding input device USB Optical Mouse (**) Option "Device" "/dev/ums0" (==) USB Optical Mouse: Protocol: "Auto" (**) USB Optical Mouse: always reports core events (**) Option "Device" "/dev/ums0" (EE) xf86OpenSerial: Cannot open device /dev/ums0 Device busy. (EE) USB Optical Mouse: cannot open input device (II) UnloadModule: "mouse" (EE) PreInit returned NULL for "USB Optical Mouse" (EE) config/hal: NewInputDeviceRequest failed (8) after comment notify 100 { match "system" "DEVFS"; ... skipped action "/etc/rc.d/moused quietstart $cdev"; }; on devd.conf and restart devd my mouse work again: ==> /var/log/messages <== Sep 10 14:27:49 laptop sudo: tiger : TTY=pts/4 ; PWD=/usr/home/tiger ; USER=root ; COMMAND=/bin/csh Sep 10 14:28:56 laptop kernel: ugen4.2: at usbus4 (disconnected) Sep 10 14:28:56 laptop kernel: ums0: at uhub2, port 2, addr 2 (disconnected) Sep 10 14:28:56 laptop devd: Executing '/etc/rc.d/moused stop ums0' Sep 10 14:29:01 laptop kernel: ugen4.2: at usbus4 Sep 10 14:29:01 laptop kernel: ums0: on usbus4 Sep 10 14:29:01 laptop devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen4.2 0' Sep 10 14:29:01 laptop kernel: ums0: 7 buttons and [XYZ] coordinates ID=0 ==> /var/log/Xorg.0.log <== (II) config/hal: Adding input device USB Optical Mouse (**) Option "Device" "/dev/ums0" (==) USB Optical Mouse: Protocol: "Auto" (**) USB Optical Mouse: always reports core events (**) Option "Device" "/dev/ums0" (==) USB Optical Mouse: Emulate3Buttons, Emulate3Timeout: 50 (**) USB Optical Mouse: ZAxisMapping: buttons 4 and 5 (**) USB Optical Mouse: Buttons: 5 (II) XINPUT: Adding extended input device "USB Optical Mouse" (type: MOUSE) (**) USB Optical Mouse: (accel) keeping acceleration scheme 1 (**) USB Optical Mouse: (accel) acceleration profile 0 (II) USB Optical Mouse: SetupAuto: hw.iftype is 5, hw.model is 0 (II) USB Optical Mouse: SetupAuto: protocol is SysMouse (WW) fcntl(70, F_SETOWN): Inappropriate ioctl for device -- wbr, tiger