From owner-freebsd-current@FreeBSD.ORG Mon Feb 16 14:25:48 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B91D106566B for ; Mon, 16 Feb 2009 14:25:48 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id A69058FC13 for ; Mon, 16 Feb 2009 14:25:47 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl109-226.kln.forthnet.gr [77.49.228.226]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id n1GEPe2j015790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 16 Feb 2009 16:25:45 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n1GEPdLN002876; Mon, 16 Feb 2009 16:25:39 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n1GEPd4F002875; Mon, 16 Feb 2009 16:25:39 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: freebsd-current@freebsd.org Date: Mon, 16 Feb 2009 16:25:39 +0200 Message-ID: <87mycme9wc.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: n1GEPe2j015790 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.874, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.53, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Hans Petter Selasky , Andrew Thompson Subject: usb2 moused issue X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 16 Feb 2009 14:25:48 -0000 I just rebuild my kernel after flipping the switch to usb2 in my kernel config file: diff -r 657f71f9e39c -r 82c23c5ef94e sys/i386/conf/KOBE --- a/sys/i386/conf/KOBE Mon Feb 16 02:52:01 2009 +0200 +++ b/sys/i386/conf/KOBE Mon Feb 16 03:01:42 2009 +0200 @@ -179,17 +179,18 @@ #options ALTQ_NOPCC # Required if the TSC is unusable #options ALTQ_DEBUG -# USB support -device uhci # UHCI PCI->USB interface -device ohci # OHCI PCI->USB interface -device ehci # EHCI PCI->USB interface (USB 2.0) -device usb # USB Bus (required) -#device udbp # USB Double Bulk Pipe devices -device ugen # Generic -device uhid # "Human Interface Devices" -device ukbd # Keyboard -device umass # Disks/Mass storage - Requires scbus and da -device ums # Mouse -# USB Serial devices -device ucom # Generic com ttys -device u3g # USB-based 3G modems (Option, Huawei, Sierra) +# USB core support +device usb2_core +# USB controller support +device usb2_controller +device usb2_controller_ehci +device usb2_controller_ohci +device usb2_controller_uhci +# USB mass storage support +device usb2_storage +device usb2_storage_mass +# USB input device support +device usb2_input +device usb2_input_hid +device usb2_input_kbd +device usb2_input_ms The external USB mouse seems to be recognized file: [ dmesg output with hw.usb2.ums.debug=1 ] Feb 16 16:19:00 kobe kernel: ugen4.2: at usbus4 Feb 16 16:19:00 kobe kernel: ums0: on usbus4 Feb 16 16:19:00 kobe kernel: ums0: 5 buttons and [XYZ] coordinates Feb 16 16:19:00 kobe kernel: ums_attach:582: sc=0xc63c7000 Feb 16 16:19:00 kobe kernel: ums_attach:583: X 48/8 Feb 16 16:19:00 kobe kernel: ums_attach:584: Y 56/8 Feb 16 16:19:00 kobe kernel: ums_attach:585: Z 64/8 Feb 16 16:19:00 kobe kernel: ums_attach:586: T 0/0 Feb 16 16:19:00 kobe kernel: ums_attach:587: W 0/0 Feb 16 16:19:00 kobe kernel: ums_attach:591: B1 40/1 Feb 16 16:19:00 kobe kernel: ums_attach:591: B2 41/1 Feb 16 16:19:00 kobe kernel: ums_attach:591: B3 42/1 Feb 16 16:19:00 kobe kernel: ums_attach:591: B4 43/1 Feb 16 16:19:00 kobe kernel: ums_attach:591: B5 44/1 Feb 16 16:19:00 kobe kernel: ums_attach:593: size=2, id=19 Feb 16 16:19:00 kobe kernel: Symlink: ums0 -> usb4.2.0.16 I have enabled `moused_nondefault_enable' in my rc.conf too, and I see that moused is launched for the external usb mouse: [rc.conf] moused_nondefault_enable="YES" moused_enable="YES" moused_flags="-3" moused_ums0_flags="" moused_port="/dev/psm0" moused_type="auto" [processes running] # ps xauww | sed -n -e 1p -e '/ sed/d' -e /moused/p USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 1309 0.0 0.0 3376 1484 ?? Ss 3:54PM 0:05.01 /usr/sbin/moused -3 -p /dev/psm0 -t auto root 1773 0.0 0.0 3376 1492 ?? Is 3:59PM 0:00.00 /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid But moving the usb mouse doesn't result in any pointer movement, either in a console tty or under X11. Is this a known bug of usb2 mouse support, or just a local config error?