From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 08:29:38 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8992D106566C; Mon, 14 Mar 2011 08:29:38 +0000 (UTC) (envelope-from ftp51246-2575596@sh4-5.1blu.de) Received: from sh4-5.1blu.de (sh4-5.1blu.de [213.83.63.54]) by mx1.freebsd.org (Postfix) with ESMTP id 138248FC16; Mon, 14 Mar 2011 08:29:37 +0000 (UTC) Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.50) id 1Pz2Tj-0000r2-Ud; Mon, 14 Mar 2011 08:46:14 +0100 Date: Mon, 14 Mar 2011 08:46:11 +0100 From: Matthias Apitz To: freebsd-multimedia@freebsd.org, freebsd-usb@freebsd.org Message-ID: <20110314074606.GA983@sh4-5.1blu.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 7.0-RELEASE (i386) User-Agent: Mutt/1.5.9i Cc: Subject: 9-CURRENT r214444 / webcamd / vendor 0x0c45 product 0x62c0: pwcview says Failed to set palette to YUV420P X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 08:29:38 -0000 Hello, My kernel is 9-CURRENT r214444 (as of October 2010) and I've updated the ports multimedia/webcamd and multimedia/cuse4bsd to the latest versions: # pkg_info | fgrep webcamd webcamd-0.1.20_1 A port of Linux USB webcam and DVB drivers into userspace # webcamd ... USB Video Class driver (v0.1.0) IR JVC protocol handler initialized IR LIRC bridge handler initialized IR NEC protocol handler initialized IR RC5(x) protocol handler initialized IR RC6 protocol handler initialized IR Sony protocol handler initialized lirc_dev: IR Remote Control driver registered, major 13 Attached ugen4.2[0] to cuse unit 0 uvcvideo: Found UVC 1.00 device (0c45:62c0) Creating /dev/video0 # pwcview Failed to set palette to YUV420P: Invalid argument When I plug in another USB cam and restart webcamd it gives a hard lock of the system. Thanks for any idea concerning the cam 0c45:62c0, the build in one. matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 10:49:45 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EED47106567E; Mon, 14 Mar 2011 10:49:45 +0000 (UTC) (envelope-from ftp51246-2575596@sh4-5.1blu.de) Received: from sh4-5.1blu.de (sh4-5.1blu.de [213.83.63.54]) by mx1.freebsd.org (Postfix) with ESMTP id B519B8FC08; Mon, 14 Mar 2011 10:49:45 +0000 (UTC) Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.50) id 1Pz5LI-0008Sd-Gz; Mon, 14 Mar 2011 11:49:40 +0100 Date: Mon, 14 Mar 2011 11:49:40 +0100 From: Matthias Apitz To: freebsd-multimedia@freebsd.org, freebsd-usb@freebsd.org Message-ID: <20110314104939.GA30450@sh4-5.1blu.de> References: <20110314074606.GA983@sh4-5.1blu.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110314074606.GA983@sh4-5.1blu.de> X-Operating-System: FreeBSD 7.0-RELEASE (i386) User-Agent: Mutt/1.5.9i Cc: Subject: Re: 9-CURRENT r214444 / webcamd / vendor 0x0c45 product 0x62c0: pwcview says Failed to set palette to YUV420P X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 10:49:46 -0000 El día Monday, March 14, 2011 a las 08:46:11AM +0100, Matthias Apitz escribió: > > Hello, > > My kernel is 9-CURRENT r214444 (as of October 2010) and I've updated > the ports multimedia/webcamd and multimedia/cuse4bsd to the latest versions: > > # pkg_info | fgrep webcamd > webcamd-0.1.20_1 A port of Linux USB webcam and DVB drivers into userspace > > # webcamd > ... > USB Video Class driver (v0.1.0) > IR JVC protocol handler initialized > IR LIRC bridge handler initialized > IR NEC protocol handler initialized > IR RC5(x) protocol handler initialized > IR RC6 protocol handler initialized > IR Sony protocol handler initialized > lirc_dev: IR Remote Control driver registered, major 13 > Attached ugen4.2[0] to cuse unit 0 > uvcvideo: Found UVC 1.00 device (0c45:62c0) > Creating /dev/video0 > > # pwcview > Failed to set palette to YUV420P: Invalid argument The message comes out of pwcview.c: ... if(ioctl(fd,VIDIOCGPICT,&vp) == -1) { perror("Failed to get current picture info"); exit(1); } vp.palette = VIDEO_PALETTE_YUV420P; if(ioctl(fd,VIDIOCSPICT,&vp) == -1) { perror("Failed to set palette to YUV420P"); exit(1); } ... # fgrep VIDEO_PALETTE_YUV420P *.h videodev.h:#define VIDEO_PALETTE_YUV420P 15 /* YUV 4:2:0 Planar */ Does it make sense to just comment out this ioctl(2) in pwcview.c? matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 10:54:29 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47CA21065677; Mon, 14 Mar 2011 10:54:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id A32C68FC1E; Mon, 14 Mar 2011 10:54:28 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=O4luLtK3s/BI/ZI2MixGyL7hJC8Dk2jKRuc55HZ6Kk0= c=1 sm=1 a=rlDcq8RS704A:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=f6tFs1fFTBoxSqFtPQwA:9 a=SqMoT1T2ncCELEwElO_LNM5MBj4A:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 98746182; Mon, 14 Mar 2011 11:54:26 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, Matthias Apitz Date: Mon, 14 Mar 2011 11:53:56 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <20110314074606.GA983@sh4-5.1blu.de> <20110314104939.GA30450@sh4-5.1blu.de> In-Reply-To: <20110314104939.GA30450@sh4-5.1blu.de> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-1?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-1?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103141153.56784.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: 9-CURRENT r214444 / webcamd / vendor 0x0c45 product 0x62c0: pwcview says Failed to set palette to YUV420P X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 10:54:29 -0000 You could try with kopete from ports. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 11:04:08 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73F961065675; Mon, 14 Mar 2011 11:04:08 +0000 (UTC) (envelope-from ftp51246-2575596@sh4-5.1blu.de) Received: from sh4-5.1blu.de (sh4-5.1blu.de [213.83.63.54]) by mx1.freebsd.org (Postfix) with ESMTP id 398828FC0C; Mon, 14 Mar 2011 11:04:08 +0000 (UTC) Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.50) id 1Pz5ZE-00013q-W9; Mon, 14 Mar 2011 12:04:05 +0100 Date: Mon, 14 Mar 2011 12:04:04 +0100 From: Matthias Apitz To: Hans Petter Selasky Message-ID: <20110314110404.GA2466@sh4-5.1blu.de> References: <20110314074606.GA983@sh4-5.1blu.de> <20110314104939.GA30450@sh4-5.1blu.de> <201103141153.56784.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201103141153.56784.hselasky@c2i.net> X-Operating-System: FreeBSD 7.0-RELEASE (i386) User-Agent: Mutt/1.5.9i Cc: freebsd-multimedia@freebsd.org, freebsd-usb@freebsd.org Subject: Re: 9-CURRENT r214444 / webcamd / vendor 0x0c45 product 0x62c0: pwcview says Failed to set palette to YUV420P X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 11:04:08 -0000 El día Monday, March 14, 2011 a las 11:53:56AM +0100, Hans Petter Selasky escribió: > You could try with kopete from ports. > > --HPS I could not build kopete from the ports in my KDE3 environment (and KDE4 is no option for me); I will check if Pidgin 2.7.11 has support for cam; but mostly I would need it in Skype where it only gives a black picture at the moment while testing the cam in the Skype options dialog. matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 11:07:11 2011 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E376E106564A for ; Mon, 14 Mar 2011 11:07:11 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D0F4B8FC18 for ; Mon, 14 Mar 2011 11:07:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2EB7BRA002716 for ; Mon, 14 Mar 2011 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2EB7BKY002714 for freebsd-usb@FreeBSD.org; Mon, 14 Mar 2011 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Mar 2011 11:07:11 GMT Message-Id: <201103141107.p2EB7BKY002714@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 11:07:12 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/155496 usb [usb][patch] support BUFFALO WLI-U2-SG54HG wireless o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora o usb/154710 usb [ugen] Conexant USB Modem is not working in 8.x. In 7. o usb/154593 usb [umass] Input/output error writing to external USB dri o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while o usb/153599 usb [usbdevs] [patch] Feiya Elango USB MicroSD reader sync o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150401 usb [umass] [usb8] [patch] Errors from USB drives mixed be o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149934 usb [patch] [usb8] Transcend JetFlash V85 poor performance p usb/149900 usb [uftdi] [patch] FreeBSD 8.1 uftdi patch to support usb p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149528 usb [zyd] Wireless USB stick not detected - vendor id 0x08 o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o usb/147516 usb [umass] [usb67] kernel unable to deal with Olympus USB o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E p usb/146871 usb [usbdevs] [usb8] [patch] provide descriprive string fo o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack o usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb p usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system p usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J o usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P o usb/141777 usb [usb8] [usbdevs] [rum] [patch] Support usbdevs / rum(4 f usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT s usb/138570 usb [usb67] [panic] USB mass device panics current 7.2-STA o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is o usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c p usb/131123 usb [patch] [usb67] re-add UQ_ASSUME_CM_OVER_DATA USB quir o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130230 usb [patch] [quirk] [usb67] [usb] [cam] [umass] Samsung El o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb67] [patch] uaudio is not full duplex p usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/127222 usb [ohci] Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach f usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa s usb/122819 usb [usb67] [patch] Patch to provide dynamic additions to o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s f usb/121232 usb [usb67] [panic] USB CardBus card removal causes reboot o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS f usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [usb67] [umass] [patch] quirk to support ASUS P535 as o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a p usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th p usb/116699 usb [usb] [usb67] USB HID devices do not initialize at sys o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele p usb/101775 usb [usb67] [libusbhid] [patch] possible error in report d o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [usb67] SMP-Kernel crashes reliably when Bluetooth con o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg f usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. f usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure f usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device f usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn f usb/75797 usb [sound] [regression] 5.3-STABLE(2005 1/4) detect USB h o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for f usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) f usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 312 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 16:53:19 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D71131065675 for ; Mon, 14 Mar 2011 16:53:19 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 8E71F8FC0C for ; Mon, 14 Mar 2011 16:53:19 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PzB1C-0005hO-3X for freebsd-usb@freebsd.org; Mon, 14 Mar 2011 17:53:18 +0100 Received: from 200.41.broadband11.iol.cz ([90.178.41.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2011 17:53:18 +0100 Received: from gamato by 200.41.broadband11.iol.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2011 17:53:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: martinko Date: Mon, 14 Mar 2011 17:53:06 +0100 Lines: 20 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 200.41.broadband11.iol.cz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.16) Gecko/20110124 SeaMonkey/2.0.11 Cc: freebsd-bluetooth@freebsd.org Subject: no modules / services needed for BT mouse support (?) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 16:53:19 -0000 Hallo, I had a Logitech bluetooth mouse connected via USB BT dongle. In the past I used to load ng_ubt and bthidd and hcsecd to make the mouse work. The same I did for a friend on old PC-BSD. But it appears that since moving to the version 8.x we no longer need to load any of the above and the mouse works out-of-box. Unfortunately it does not respond to wheel movement (pressing it does generate middle click). Now this all is a bit surprising for me. And I'm not sure which part of the system is responsible for the behaviour -- kernel, USB stack, HAL, X11, .. ? Also, I'd like to know how to make wheel working again. Any ideas pls ? Cheers, M. PS: It's also possible that it has to do with change of computer.. (?) From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 18:55:35 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29A95106566B for ; Mon, 14 Mar 2011 18:55:35 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id E0D578FC1D for ; Mon, 14 Mar 2011 18:55:34 +0000 (UTC) Received: by iyj12 with SMTP id 12so6213228iyj.13 for ; Mon, 14 Mar 2011 11:55:34 -0700 (PDT) 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; bh=XQTZXAdbSEVyUEIFaLW3JeUxybF3phzFGruh0pzUXHo=; b=Eu7AoNT5XFefQdzAEU8bQwT37rUn5EHtzdDUW0sE/oW05mO0kFKOJzXVA6WyOHar0k U0cHsTui1c/zaKGvq7gUze6Ik1ovgTI74VmE0xtQaMAXPBhKQGXmV0KWZTmx59BHMNmC QL7hUo91vtcd1jKrRloaOMpTNMAkZ4h8VhqaM= 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; b=Rf2f4MAd1++FNEhy7bbTkWaU1Kp1hWWgMPyNx6ZayhwMX4mTWA42v61Ab78tGE7q51 t0gYB4JS8ywnnYkcgu7HgcRXlTFu3IlT/ozy3BbYGxjYoSyNoDCgaOKTDHeF25vDatAG M8M9chOUwF8OuFJbVrCwWounfomd8TpDYwHig= MIME-Version: 1.0 Received: by 10.42.156.131 with SMTP id z3mr5081143icw.305.1300127054913; Mon, 14 Mar 2011 11:24:14 -0700 (PDT) Received: by 10.43.60.201 with HTTP; Mon, 14 Mar 2011 11:24:14 -0700 (PDT) In-Reply-To: References: Date: Mon, 14 Mar 2011 11:24:14 -0700 Message-ID: From: Maksim Yevmenkin To: martinko Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-bluetooth@freebsd.org, freebsd-usb@freebsd.org Subject: Re: no modules / services needed for BT mouse support (?) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 18:55:35 -0000 2011/3/14 martinko : > Hallo, > > I had a Logitech bluetooth mouse connected via USB BT dongle. In the past I > used to load ng_ubt and bthidd and hcsecd to make the mouse work. The same > I did for a friend on old PC-BSD. But it appears that since moving to the > version 8.x we no longer need to load any of the above and the mouse works > out-of-box. Unfortunately it does not respond to wheel movement (pressing > it does generate middle click). are we talking about freebsd or pc-bsd here? i'm confused :) there were no changes in this area in freebsd. you still need to load ng_ubt(4) to recognize local bluetooth device (i.e. bluetooth dongle connected to your computer). usually its done via loader.conf, i.e. put something like ng_ubt_load="YES" into /boot/loader.conf. devd(8) will start/stop bluetooth stack as soon as it detects ng_ubt(4) device arrival/departure. bthidd(8), hcsecd(8) etc. are bluetooth service daemons, and, those needs to be started. usually one puts something like hcsecd_enable="YES" bthidd_enable="YES" into /etc/rc.conf to start bluetooth services. assuming all of the above is in place, and, mouse was paired previously, then it will work "out-of-the-box" > Now this all is a bit surprising for me. And I'm not sure which part of the > system is responsible for the behaviour -- kernel, USB stack, HAL, X11, .. ? ng_ubt(4) driver for usb bluetooth devices devd(8) responds to events and starts/stops bluetooth stack > Also, I'd like to know how to make wheel working again. can you please provide hid descriptor? thanks max From owner-freebsd-usb@FreeBSD.ORG Tue Mar 15 13:56:20 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 732E3106566C; Tue, 15 Mar 2011 13:56:20 +0000 (UTC) (envelope-from gamato@users.sf.net) Received: from smtp-out4.iol.cz (smtp-out4.iol.cz [194.228.2.92]) by mx1.freebsd.org (Postfix) with ESMTP id EF2348FC0C; Tue, 15 Mar 2011 13:56:19 +0000 (UTC) Received: from antivir6.iol.cz (unknown [192.168.30.215]) by smtp-out4.iol.cz (Postfix) with ESMTP id AB00BCE46A2; Tue, 15 Mar 2011 13:34:29 +0000 (UTC) Received: from localhost (antivir6.iol.cz [127.0.0.1]) by antivir6.iol.cz (Postfix) with ESMTP id 2CF98720036; Tue, 15 Mar 2011 14:34:29 +0100 (CET) X-Virus-Scanned: amavisd-new at iol.cz Received: from antivir6.iol.cz ([127.0.0.1]) by localhost (antivir6.iol.cz [127.0.0.1]) (amavisd-new, port 10224) with LMTP id pYB1nI5V6lv4; Tue, 15 Mar 2011 14:34:29 +0100 (CET) Received: from port8.iol.cz (unknown [192.168.30.98]) by antivir6.iol.cz (Postfix) with ESMTP id 07992720032; Tue, 15 Mar 2011 14:34:29 +0100 (CET) X-SBRS: None X-SBRS-none: None X-RECVLIST: MTA-OUT-IOL X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AngHAC8Hf01asinI/2dsb2JhbAAMhSvkHIViBIxd Received: from 200.41.broadband11.iol.cz (HELO [192.168.11.3]) ([90.178.41.200]) by port8.iol.cz with ESMTP; 15 Mar 2011 14:34:28 +0100 Message-ID: <4D7F6AE3.1060503@users.sf.net> Date: Tue, 15 Mar 2011 14:34:27 +0100 From: mato User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.16) Gecko/20110124 SeaMonkey/2.0.11 MIME-Version: 1.0 To: Maksim Yevmenkin References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-usb@freebsd.org Subject: Re: no modules / services needed for BT mouse support (?) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2011 13:56:20 -0000 Maksim Yevmenkin wrote: > 2011/3/14 martinko: > >> Hallo, >> >> I had a Logitech bluetooth mouse connected via USB BT dongle. In the past I >> used to load ng_ubt and bthidd and hcsecd to make the mouse work. The same >> I did for a friend on old PC-BSD. But it appears that since moving to the >> version 8.x we no longer need to load any of the above and the mouse works >> out-of-box. Unfortunately it does not respond to wheel movement (pressing >> it does generate middle click). >> > are we talking about freebsd or pc-bsd here? i'm confused :) > > there were no changes in this area in freebsd. you still need to load > ng_ubt(4) to recognize local bluetooth device (i.e. bluetooth dongle > connected to your computer). usually its done via loader.conf, i.e. > put something like > > ng_ubt_load="YES" > > into /boot/loader.conf. > > devd(8) will start/stop bluetooth stack as soon as it detects > ng_ubt(4) device arrival/departure. > > bthidd(8), hcsecd(8) etc. are bluetooth service daemons, and, those > needs to be started. usually one puts something like > > hcsecd_enable="YES" > bthidd_enable="YES" > > into /etc/rc.conf to start bluetooth services. > > assuming all of the above is in place, and, mouse was paired > previously, then it will work "out-of-the-box" > > >> Now this all is a bit surprising for me. And I'm not sure which part of the >> system is responsible for the behaviour -- kernel, USB stack, HAL, X11, .. ? >> > ng_ubt(4) driver for usb bluetooth devices > devd(8) responds to events and starts/stops bluetooth stack > > >> Also, I'd like to know how to make wheel working again. >> > can you please provide hid descriptor? > > thanks > max > Hi Max, Thank you for your reply. Probably I wasn't clear. I am aware of how to enable BT mouse in FreeBSD, I used it for several years. I did the same for PC-BSD and it worked as expected. But now, with the same mouse on a friend's computer running (latest) PC-BSD, I do no need to do anything and it works. There is no ng_ubt loaded, yet I see /dev/ums0 and mouse works both in console and X11. The issue is that its wheel does not work. So I was confused as to how it can work out-of-box and why wheel is dead. One idea that occured to me is that BIOS recognises and emulates it (dongle + mouse), though that sounds strange. Btw, when I tried to set it up as usual (and as you wrote above), it stopped working (on that PC-BSD machine). Hm.. M. From owner-freebsd-usb@FreeBSD.ORG Tue Mar 15 23:20:13 2011 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87C791065670 for ; Tue, 15 Mar 2011 23:20:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 75CBA8FC0A for ; Tue, 15 Mar 2011 23:20:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2FNKDQl029618 for ; Tue, 15 Mar 2011 23:20:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2FNKDQx029617; Tue, 15 Mar 2011 23:20:13 GMT (envelope-from gnats) Date: Tue, 15 Mar 2011 23:20:13 GMT Message-Id: <201103152320.p2FNKDQx029617@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Antonio Huete Jimenez Cc: Subject: Re: usb/115400: [ehci] Problem with EHCI on ASUS M2N4-SLI X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Antonio Huete Jimenez List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2011 23:20:13 -0000 The following reply was made to PR usb/115400; it has been noted by GNATS. From: Antonio Huete Jimenez To: bug-followup@FreeBSD.org, bacon@smithers.neuro.mcw.edu Cc: Subject: Re: usb/115400: [ehci] Problem with EHCI on ASUS M2N4-SLI Date: Tue, 15 Mar 2011 23:47:02 +0100 Hi, I got a M2N4-SLI mobo. I've been able to use a logitech USB mouse/keyboard as well as a Kinston USB stick. Both were attached to OHCI, not EHCI. Find below more information about it: FreeBSD 7.4-RC1 FreeBSD 7.4-RC1 #0: Wed Dec 22 18:45:47 UTC 2010 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 addr 2: full speed, self powered, config 1, product 0x8021(0x8021), vendor 0x0557(0x0557), rev 1.00 port 1 addr 3: low speed, power 100 mA, config 1, product 0x1400(0x1400), vendor 0x04d9(0x04d9), rev 1.43 port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered port 9 powered port 10 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered port 9 powered port 10 powered uhub2: on uhub0 uhub2: 4 ports with 4 removable, self powered ukbd0: on uhub2 kbd2 at ukbd0 ums0: on uhub2 ums0: 5 buttons and Z dir. ums1: on uhub2 ums1: 5 buttons and Z dir. Cheers, Antonio Huete From owner-freebsd-usb@FreeBSD.ORG Wed Mar 16 08:16:54 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 573DE106566C for ; Wed, 16 Mar 2011 08:16:54 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 0E95B8FC08 for ; Wed, 16 Mar 2011 08:16:53 +0000 (UTC) Received: from [93.104.69.1] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PzkQ6-0005NA-7C; Wed, 16 Mar 2011 07:41:22 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id p2G6fKFa047636; Wed, 16 Mar 2011 07:41:20 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id p2G6fJUn047635; Wed, 16 Mar 2011 07:41:19 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 16 Mar 2011 07:41:19 +0100 From: Matthias Apitz To: Hans Petter Selasky , freebsd-multimedia@freebsd.org, freebsd-usb@freebsd.org Message-ID: <20110316064119.GA47604@tinyCurrent> References: <20110314074606.GA983@sh4-5.1blu.de> <20110314104939.GA30450@sh4-5.1blu.de> <201103141153.56784.hselasky@c2i.net> <20110314110404.GA2466@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110314110404.GA2466@sh4-5.1blu.de> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Originating-IP: 93.104.69.1 Cc: Subject: Re: 9-CURRENT r214444 / webcamd / vendor 0x0c45 product 0x62c0: pwcview says Failed to set palette to YUV420P X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2011 08:16:54 -0000 El día Monday, March 14, 2011 a las 12:04:04PM +0100, Matthias Apitz escribió: > El día Monday, March 14, 2011 a las 11:53:56AM +0100, Hans Petter Selasky escribió: > > > You could try with kopete from ports. > > > > --HPS > > I could not build kopete from the ports in my KDE3 environment (and KDE4 > is no option for me); Last night I could build ports/net-im/kopete successfull and the cam works fine in the local view using the webcamd, i.e. is supported by the webcamd. How could I use it in skype-2.0.0.72,1? The /dev/video0 is there in the options menue of Skype, but a local probing only gives a dark area. Any idea? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 16:33:51 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15D9D1065672 for ; Thu, 17 Mar 2011 16:33:51 +0000 (UTC) (envelope-from barry@kominik.net) Received: from kominik.net (kominik.net [IPv6:2607:f2f8:a580::2]) by mx1.freebsd.org (Postfix) with ESMTP id E146B8FC19 for ; Thu, 17 Mar 2011 16:33:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by kominik.net (Postfix) with ESMTP id ADC9C9F032 for ; Thu, 17 Mar 2011 12:33:50 -0400 (EDT) X-Virus-Scanned: amavisd-new at kominik.net Received: from localhost ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id Z84WvFXoRnOX for ; Thu, 17 Mar 2011 12:33:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kominik.net; h= content-type:content-type:content-transfer-encoding:user-agent :message-id:organization:subject:subject:from:from:date:date :mime-version:received; s=mail; t=1300379629; x=1302194029; bh=z HNrl8DvwjFYt662KVNcGa5HuMlFuOe4HDAJdNAgwww=; b=qfMvkGobJTDoLym01 ajAsjCOa1DqJ9z0ovoybTS7jP3/1MvwUS3dEoFJwdR+SByKXkm71OGW66JAbwNQl PVLHktyKiSCQjSziGObTq3A/C88ZMPVPIFnzGkOEwHphyESrBr8TRkpZM1nnJIYc oKNoDAbRs6Csz/CYMotPRqfnsU= X-Virus-Scanned: amavisd-new at kominik.net Received: from mail.kominik.net ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dP1yGYCHkLuQ for ; Thu, 17 Mar 2011 12:33:49 -0400 (EDT) MIME-Version: 1.0 Date: Thu, 17 Mar 2011 12:33:49 -0400 From: Barry Kominik To: Organization: Kominik.Net Message-ID: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> X-Sender: barry@kominik.net User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 16:33:51 -0000 Greetings, I'm running PC-BSD 8.2 64bit. My mouse is recognized by the system but does not work unless I unplug/replug. I have tried two different mice. This is not an X issue as it happens on text consoles as well. There are no messages that I can see in the logs. Below is the relevant (I think) log entry from /var/log/messages. The mouse was re-plugged at 12:00. Does anyone have any ideas? Thanks, Barry ---log--- Mar 17 08:13:27 durga kernel: uhci0: port 0xe000-0xe01f irq 16 at device 26.0 on pci0 Mar 17 08:13:27 durga kernel: uhci0: [ITHREAD] Mar 17 08:13:27 durga kernel: uhci0: LegSup = 0x2f00 Mar 17 08:13:27 durga kernel: usbus0: on uhci0 Mar 17 08:13:27 durga kernel: uhci1: port 0xe100-0xe11f irq 21 at device 26.1 on pci0 Mar 17 08:13:27 durga kernel: uhci1: [ITHREAD] Mar 17 08:13:27 durga kernel: uhci1: LegSup = 0x2f00 Mar 17 08:13:27 durga kernel: usbus1: on uhci1 Mar 17 08:13:27 durga kernel: uhci2: port 0xe200-0xe21f irq 18 at device 26.2 on pci0 Mar 17 08:13:27 durga kernel: uhci2: [ITHREAD] Mar 17 08:13:27 durga kernel: uhci2: LegSup = 0x2f00 Mar 17 08:13:27 durga kernel: usbus2: on uhci2 Mar 17 08:13:27 durga kernel: ehci0: mem 0xea405000-0xea4053ff irq 18 at device 26.7 on pci0 Mar 17 08:13:27 durga kernel: ehci0: [ITHREAD] Mar 17 08:13:27 durga kernel: usbus3: EHCI version 1.0 Mar 17 08:13:27 durga kernel: usbus3: on ehci0 Mar 17 08:13:27 durga kernel: uhci3: port 0xe300-0xe31f irq 23 at device 29.0 on pci0 Mar 17 08:13:27 durga kernel: uhci3: [ITHREAD] Mar 17 08:13:27 durga kernel: usbus4: on uhci3 Mar 17 08:13:27 durga kernel: uhci4: port 0xe400-0xe41f irq 19 at device 29.1 on pci0 Mar 17 08:13:27 durga kernel: uhci4: [ITHREAD] Mar 17 08:13:27 durga kernel: usbus5: on uhci4 Mar 17 08:13:27 durga kernel: uhci5: port 0xe500-0xe51f irq 18 at device 29.2 on pci0 Mar 17 08:13:27 durga kernel: uhci5: [ITHREAD] Mar 17 08:13:27 durga kernel: usbus6: on uhci5 Mar 17 08:13:27 durga kernel: ehci1: mem 0xea404000-0xea4043ff irq 23 at device 29.7 on pci0 Mar 17 08:13:27 durga kernel: ehci1: [ITHREAD] Mar 17 08:13:27 durga kernel: usbus7: EHCI version 1.0 Mar 17 08:13:27 durga kernel: usbus7: on ehci1 Mar 17 08:13:27 durga kernel: usbus0: 12Mbps Full Speed USB v1.0 Mar 17 08:13:27 durga kernel: usbus1: 12Mbps Full Speed USB v1.0 Mar 17 08:13:27 durga kernel: usbus2: 12Mbps Full Speed USB v1.0 Mar 17 08:13:27 durga kernel: usbus3: 480Mbps High Speed USB v2.0 Mar 17 08:13:27 durga kernel: usbus4: 12Mbps Full Speed USB v1.0 Mar 17 08:13:27 durga kernel: usbus5: 12Mbps Full Speed USB v1.0 Mar 17 08:13:27 durga kernel: usbus6: 12Mbps Full Speed USB v1.0 Mar 17 08:13:27 durga kernel: usbus7: 480Mbps High Speed USB v2.0 Mar 17 08:13:27 durga kernel: ugen0.1: at usbus0 Mar 17 08:13:27 durga kernel: uhub0: on usbus0 Mar 17 08:13:27 durga kernel: ugen1.1: at usbus1 Mar 17 08:13:27 durga kernel: uhub1: on usbus1 Mar 17 08:13:27 durga kernel: ugen2.1: at usbus2 Mar 17 08:13:27 durga kernel: uhub2: on usbus2 Mar 17 08:13:27 durga kernel: ugen3.1: at usbus3 Mar 17 08:13:27 durga kernel: uhub3: on usbus3 Mar 17 08:13:27 durga kernel: ugen4.1: at usbus4 Mar 17 08:13:27 durga kernel: uhub4: on usbus4 Mar 17 08:13:27 durga kernel: ugen5.1: at usbus5 Mar 17 08:13:27 durga kernel: uhub5: on usbus5 Mar 17 08:13:27 durga kernel: ugen6.1: at usbus6 Mar 17 08:13:27 durga kernel: uhub6: on usbus6 Mar 17 08:13:27 durga kernel: ugen7.1: at usbus7 Mar 17 08:13:27 durga kernel: uhub7: on usbus7 Mar 17 08:13:27 durga kernel: ugen4.2: at usbus4 Mar 17 08:13:27 durga kernel: ums0: on usbus4 Mar 17 12:00:19 durga kernel: ugen4.2: at usbus4 (disconnected) Mar 17 12:00:21 durga kernel: ugen4.2: at usbus4 Mar 17 12:00:21 durga kernel: ums0: on usbus4 From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 16:36:12 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEBC6106567F for ; Thu, 17 Mar 2011 16:36:12 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 42CBF8FC19 for ; Thu, 17 Mar 2011 16:36:11 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=NvrFngl24Vvwb7eBef0tfsytOWEnP/WlkqxQrRnklhk= c=1 sm=1 a=IpexOA1D-pIA:10 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=GDv2o60emBxLBm-_VPsA:9 a=dVatZxDoetKYRhIAdLQA:7 a=Se_0gRsz4BXFUi4_XqcqyxDPknEA:4 a=QEXdDO2ut3YA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 101083249; Thu, 17 Mar 2011 17:36:09 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 17 Mar 2011 17:35:35 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> In-Reply-To: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201103171735.35630.hselasky@c2i.net> Cc: Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 16:36:12 -0000 On Thursday 17 March 2011 17:33:49 Barry Kominik wrote: > Greetings, > > I'm running PC-BSD 8.2 64bit. My mouse is recognized by the system but > does not work unless I unplug/replug. I have tried two different mice. This > is not an X issue as it happens on text consoles as well. There are no > messages that I can see in the logs. Below is the relevant (I think) log > entry from /var/log/messages. The mouse was re-plugged at 12:00. Does > anyone have any ideas? Do you see ums0 after boot? Or only after re-plug? --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 17:32:54 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 732D21065670 for ; Thu, 17 Mar 2011 17:32:54 +0000 (UTC) (envelope-from barry@kominik.net) Received: from kominik.net (kominik.net [IPv6:2607:f2f8:a580::2]) by mx1.freebsd.org (Postfix) with ESMTP id 50D208FC0A for ; Thu, 17 Mar 2011 17:32:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by kominik.net (Postfix) with ESMTP id 3DA4F9F032 for ; Thu, 17 Mar 2011 13:32:54 -0400 (EDT) X-Virus-Scanned: amavisd-new at kominik.net Received: from localhost ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id H-YDlpzo5PQe for ; Thu, 17 Mar 2011 13:32:53 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kominik.net; h= content-type:content-type:content-transfer-encoding:user-agent :message-id:references:in-reply-to:organization:subject:subject :from:from:date:date:mime-version:received; s=mail; t= 1300383172; x=1302197572; bh=5X0FnLUGrMLSKoBsn0trR/1vJRkKRoWC9v4 hiZwZHSM=; b=Db9/euoPHPGA+ZuiY3Gvt5eru2CAZmxy2+4xXh/tqFp4ehGsy0z QY7q7nTzdo9PhFOhZS8hPfWAWs3KcmxhHzfHV+s3C3AvwTWDDQenOjPrA8xQxcLg EsMi3BWrnOmt45e2kBIdzOSTX17zezMFDGyF94gT84VJ1yAlnz1oUwDY= X-Virus-Scanned: amavisd-new at kominik.net Received: from mail.kominik.net ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id a3h8HEehBH1A for ; Thu, 17 Mar 2011 13:32:52 -0400 (EDT) MIME-Version: 1.0 Date: Thu, 17 Mar 2011 13:32:52 -0400 From: Barry Kominik To: Organization: Kominik.Net In-Reply-To: <201103171735.35630.hselasky@c2i.net> References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103171735.35630.hselasky@c2i.net> Message-ID: X-Sender: barry@kominik.net User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 17:32:54 -0000 Looks Like I get it on boot: Mar 17 08:13:27 durga kernel: ums0: on usbus4 Mar 17 08:13:27 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 Mar 17 12:00:19 durga kernel: ums0: at uhub4, port 2, addr 2 (disconnected) Mar 17 12:00:21 durga kernel: ums0: on usbus4 Mar 17 12:00:21 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 -=B On Thu, 17 Mar 2011 17:35:35 +0100, Hans Petter Selasky wrote: > On Thursday 17 March 2011 17:33:49 Barry Kominik wrote: >> Greetings, >> >> I'm running PC-BSD 8.2 64bit. My mouse is recognized by the system but >> does not work unless I unplug/replug. I have tried two different mice. >> This >> is not an X issue as it happens on text consoles as well. There are no >> messages that I can see in the logs. Below is the relevant (I think) log >> entry from /var/log/messages. The mouse was re-plugged at 12:00. Does >> anyone have any ideas? > > Do you see ums0 after boot? Or only after re-plug? > > --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 17:36:34 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4F8E1065701 for ; Thu, 17 Mar 2011 17:36:34 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 675138FC1D for ; Thu, 17 Mar 2011 17:36:33 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=6QwXiDozn7Gnsf2tGidwH+ndAwLlGixx7JAIKZICKmI= c=1 sm=1 a=IpexOA1D-pIA:10 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=7nTD4OqSMSYcfjdeLx4A:9 a=vfFRXy-1CT6klmsG64MA:7 a=03gcrvzXySimHG3h1cejbWkZ5UAA:4 a=QEXdDO2ut3YA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 101736740; Thu, 17 Mar 2011 18:36:32 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 17 Mar 2011 18:35:58 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103171735.35630.hselasky@c2i.net> In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201103171835.58060.hselasky@c2i.net> Cc: Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 17:36:34 -0000 On Thursday 17 March 2011 18:32:52 Barry Kominik wrote: > Looks Like I get it on boot: > Mar 17 08:13:27 durga kernel: ums0: rev 1.10/14.00, addr 2> on usbus4 > Mar 17 08:13:27 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 > Mar 17 12:00:19 durga kernel: ums0: at uhub4, port 2, addr 2 > (disconnected) > Mar 17 12:00:21 durga kernel: ums0: rev 1.10/14.00, addr 2> on usbus4 > Mar 17 12:00:21 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 Could you try to use this trick? CTRL+ALT+F1, then CTRL+ALT+F9. Does the mouse work? Most likely it is a hald issue. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 17:42:31 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C0331065676 for ; Thu, 17 Mar 2011 17:42:31 +0000 (UTC) (envelope-from barry@kominik.net) Received: from kominik.net (kominik.net [IPv6:2607:f2f8:a580::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1B1848FC0A for ; Thu, 17 Mar 2011 17:42:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by kominik.net (Postfix) with ESMTP id 0E7089F032 for ; Thu, 17 Mar 2011 13:42:31 -0400 (EDT) X-Virus-Scanned: amavisd-new at kominik.net Received: from localhost ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id AlReyfa4GQHb for ; Thu, 17 Mar 2011 13:42:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kominik.net; h= content-type:content-type:content-transfer-encoding:user-agent :message-id:references:in-reply-to:organization:subject:subject :from:from:date:date:mime-version:received; s=mail; t= 1300383749; x=1302198149; bh=/ozLwVsO9Mjgxls70Pme/i4QFcI6F7ot++/ 2fmoL64A=; b=g1mgkxp4D2sGvU+mIKVC10bamVUMuHLNKllAwbwI/ZeK3q4Hma2 P5OoQQlndj7w7/nBKAl37Psa1Q12RNI2W3foDCKTwrZ+0MAAPAf2Zybg5+JwcIH4 fZG7CCvjZdXX/htWNa2j+AtIUSiK/MJ/1PelvnC5ElDWIqhLWMiG8F+U= X-Virus-Scanned: amavisd-new at kominik.net Received: from mail.kominik.net ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7IidARmPUC1z for ; Thu, 17 Mar 2011 13:42:29 -0400 (EDT) MIME-Version: 1.0 Date: Thu, 17 Mar 2011 13:42:29 -0400 From: Barry Kominik To: Organization: Kominik.Net In-Reply-To: <201103171835.58060.hselasky@c2i.net> References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103171735.35630.hselasky@c2i.net> <201103171835.58060.hselasky@c2i.net> Message-ID: <499034b921fa63ed2cd879063a0760e3@kominik.net> X-Sender: barry@kominik.net User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 17:42:31 -0000 On Thu, 17 Mar 2011 18:35:58 +0100, Hans Petter Selasky wrote: > On Thursday 17 March 2011 18:32:52 Barry Kominik wrote: >> Looks Like I get it on boot: >> Mar 17 08:13:27 durga kernel: ums0: > rev 1.10/14.00, addr 2> on usbus4 >> Mar 17 08:13:27 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 >> Mar 17 12:00:19 durga kernel: ums0: at uhub4, port 2, addr 2 >> (disconnected) >> Mar 17 12:00:21 durga kernel: ums0: > rev 1.10/14.00, addr 2> on usbus4 >> Mar 17 12:00:21 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 > > Could you try to use this trick? CTRL+ALT+F1, then CTRL+ALT+F9. Does the > mouse > work? > > > Most likely it is a hald issue. > > --HPS I can try tonight, I'm not in front of the machine at the moment. I'm fairly sure it will not work. That's one of the first things I tried and how I realized the mouse is unresponsive in text consoles. -=B From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 17:45:25 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1B0C10656F5 for ; Thu, 17 Mar 2011 17:45:25 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 383BA8FC15 for ; Thu, 17 Mar 2011 17:45:24 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=6QwXiDozn7Gnsf2tGidwH+ndAwLlGixx7JAIKZICKmI= c=1 sm=1 a=IpexOA1D-pIA:10 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=8kQB0OdkAAAA:8 a=Fte1tc37qkOQ7ThpCN8A:9 a=-4udLjBr26YwAvtf_LwA:7 a=NmCydmj1SQUUD2xE_QneRv1EZ9MA:4 a=QEXdDO2ut3YA:10 a=9aOQ2cSd83gA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 101740436; Thu, 17 Mar 2011 18:45:23 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 17 Mar 2011 18:44:49 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103171835.58060.hselasky@c2i.net> <499034b921fa63ed2cd879063a0760e3@kominik.net> In-Reply-To: <499034b921fa63ed2cd879063a0760e3@kominik.net> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201103171844.49751.hselasky@c2i.net> Cc: Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 17:45:25 -0000 On Thursday 17 March 2011 18:42:29 Barry Kominik wrote: > On Thu, 17 Mar 2011 18:35:58 +0100, Hans Petter Selasky > > wrote: > > On Thursday 17 March 2011 18:32:52 Barry Kominik wrote: > >> Looks Like I get it on boot: > >> Mar 17 08:13:27 durga kernel: ums0: >> rev 1.10/14.00, addr 2> on usbus4 > >> Mar 17 08:13:27 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 > >> Mar 17 12:00:19 durga kernel: ums0: at uhub4, port 2, addr 2 > >> (disconnected) > >> Mar 17 12:00:21 durga kernel: ums0: >> rev 1.10/14.00, addr 2> on usbus4 > >> Mar 17 12:00:21 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 > > > > Could you try to use this trick? CTRL+ALT+F1, then CTRL+ALT+F9. Does the > > mouse > > work? Check also: 1) ps auxw | grep -i moused 2) usbconfig -d X.Y reset --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 22:10:31 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 926A01065677; Thu, 17 Mar 2011 22:10:31 +0000 (UTC) Date: Thu, 17 Mar 2011 22:10:31 +0000 From: Alexander Best To: Attilio Rao Message-ID: <20110317221031.GA11751@freebsd.org> References: <20110121182340.GA80488@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 22:10:31 -0000 On Fri Jan 21 11, Attilio Rao wrote: > 2011/1/21 Alexander Best : > > hi there, > > > > i've reported this issue quite a while ago [1], but back then nobody was able > > to help me. i have an issue with my usb mouse. when there's a high CPU load it > > produces random mouse clicks. this doesn't happen on other OSes. i've attached > > a different usb mouse to my freebsd box and i could't observe the same > > behavior. so it seems this problem is only related to specific mice. > > I can experience the same problem. i've captured the iostat ouput during the random mouse clicks: tty ada0 ada1 cd0 cpu tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id 36 227 31.97 2 0.05 31.47 16 0.50 59.61 0 0.02 9 0 3 0 88 7 232 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 5 0 2 1 92 9 82 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 94 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 3 1 91 16 676 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 4 0 89 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 90 2 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 16 0 3 0 80 4 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 6 0 2 1 91 121 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 1 0 96 290 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 4 0 3 1 92 998 78 0.00 0 0.00 32.00 1 0.03 0.00 0 0.00 6 0 5 0 89 3231 30024 7.20 5 0.03 13.23 1583 20.45 0.00 0 0.00 25 0 28 3 44 2437 18319 4.00 2 0.01 13.04 916 11.66 0.00 0 0.00 16 0 17 0 67 1291 8441 0.00 0 0.00 13.08 1085 13.86 0.00 0 0.00 15 0 14 3 68 737 243 0.00 0 0.00 13.13 359 4.61 0.00 0 0.00 7 0 4 0 88 396 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 5 1 87 124 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 5 0 1 0 94 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 3 1 89 12 169 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 8 0 2 0 89 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 91 4 78 16.00 6 0.09 0.00 0 0.00 0.00 0 0.00 4 0 2 0 94 24 77 36.00 16 0.56 24.34 35 0.82 0.00 0 0.00 16 0 6 1 77 8 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 92 8 77 0.00 0 0.00 14.62 16 0.23 0.00 0 0.00 7 0 2 0 91 4 77 0.00 0 0.00 18.24 17 0.30 0.00 0 0.00 5 0 5 0 90 6 77 0.00 0 0.00 32.00 2 0.06 0.00 0 0.00 16 0 3 1 81 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 7 0 2 0 91 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 2 1 93 5 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 4 0 91 1 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 0 1 96 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 2 0 1 0 97 ...in fact if i move the mouse fast enough i'm able to reproduce the issue without any high CPU activity. the following iostat output was taken during high CPU load. now also slow mouse movements can cause random mouse events (i.e. clicks) to happen: tty ada0 ada1 cd0 cpu tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id 36 230 31.80 2 0.05 31.39 16 0.49 59.61 0 0.02 9 0 3 0 88 1 233 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 467 78 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 96 0 3 1 0 451 78 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 325 83 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 93 0 6 1 0 7 86 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 97 0 3 0 0 21 684 4.00 1 0.00 0.00 0 0.00 0.00 0 0.00 95 0 4 1 0 540 625 0.00 0 0.00 13.60 98 1.30 0.00 0 0.00 95 0 5 0 0 676 1222 0.00 0 0.00 13.43 307 4.03 0.00 0 0.00 91 0 7 2 0 411 76 0.00 0 0.00 14.48 312 4.42 0.00 0 0.00 95 0 5 0 0 388 77 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 94 0 5 1 0 206 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 98 0 2 0 0 17 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 97 0 3 0 0 0 78 0.00 0 0.00 16.00 32 0.49 0.00 0 0.00 98 0 2 0 0 i'm still under the impression this is a scheduler problem, but who knows... cheers. alex > > Attilio > > > -- > Peace can only be achieved by understanding - A. Einstein -- a13x From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 22:32:23 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id ECDEC1065679; Thu, 17 Mar 2011 22:32:23 +0000 (UTC) Date: Thu, 17 Mar 2011 22:32:23 +0000 From: Alexander Best To: Attilio Rao Message-ID: <20110317223223.GA15811@freebsd.org> References: <20110121182340.GA80488@freebsd.org> <20110317221031.GA11751@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110317221031.GA11751@freebsd.org> Cc: freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 22:32:24 -0000 On Thu Mar 17 11, Alexander Best wrote: > On Fri Jan 21 11, Attilio Rao wrote: > > 2011/1/21 Alexander Best : > > > hi there, > > > > > > i've reported this issue quite a while ago [1], but back then nobody was able > > > to help me. i have an issue with my usb mouse. when there's a high CPU load it > > > produces random mouse clicks. this doesn't happen on other OSes. i've attached > > > a different usb mouse to my freebsd box and i could't observe the same > > > behavior. so it seems this problem is only related to specific mice. > > > > I can experience the same problem. also i did a few i/o tests using dd in combination with high CPU load: == low CPU load == otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.433087 secs (23653404 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.414529 secs (23752841 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.433871 secs (23649222 bytes/sec) == high CPU load on cores 1 and 2 == otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 39.220969 secs (2673509 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 41.791827 secs (2509046 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 58.067697 secs (1805782 bytes/sec) == high CPU load on core 1 == otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.552803 secs (23031438 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.593116 secs (22829295 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.588891 secs (22850314 bytes/sec) = high CPU load on core 0 == otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 13.381070 secs (7836264 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 12.810288 secs (8185421 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 13.519533 secs (7756008 bytes/sec) cheers. alex > > i've captured the iostat ouput during the random mouse clicks: > > tty ada0 ada1 cd0 cpu > tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id > 36 227 31.97 2 0.05 31.47 16 0.50 59.61 0 0.02 9 0 3 0 88 > 7 232 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 5 0 2 1 92 > 9 82 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 94 > 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 3 1 91 > 16 676 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 4 0 89 > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 90 > 2 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 16 0 3 0 80 > 4 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 6 0 2 1 91 > 121 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 1 0 96 > 290 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 4 0 3 1 92 > 998 78 0.00 0 0.00 32.00 1 0.03 0.00 0 0.00 6 0 5 0 89 > 3231 30024 7.20 5 0.03 13.23 1583 20.45 0.00 0 0.00 25 0 28 3 44 > 2437 18319 4.00 2 0.01 13.04 916 11.66 0.00 0 0.00 16 0 17 0 67 > 1291 8441 0.00 0 0.00 13.08 1085 13.86 0.00 0 0.00 15 0 14 3 68 > 737 243 0.00 0 0.00 13.13 359 4.61 0.00 0 0.00 7 0 4 0 88 > 396 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 5 1 87 > 124 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 5 0 1 0 94 > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 3 1 89 > 12 169 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 8 0 2 0 89 > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 91 > 4 78 16.00 6 0.09 0.00 0 0.00 0.00 0 0.00 4 0 2 0 94 > 24 77 36.00 16 0.56 24.34 35 0.82 0.00 0 0.00 16 0 6 1 77 > 8 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 92 > 8 77 0.00 0 0.00 14.62 16 0.23 0.00 0 0.00 7 0 2 0 91 > 4 77 0.00 0 0.00 18.24 17 0.30 0.00 0 0.00 5 0 5 0 90 > 6 77 0.00 0 0.00 32.00 2 0.06 0.00 0 0.00 16 0 3 1 81 > 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 7 0 2 0 91 > 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 2 1 93 > 5 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 4 0 91 > 1 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 0 1 96 > 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 2 0 1 0 97 > > ...in fact if i move the mouse fast enough i'm able to reproduce the issue > without any high CPU activity. > > the following iostat output was taken during high CPU load. now also slow mouse > movements can cause random mouse events (i.e. clicks) to happen: > > tty ada0 ada1 cd0 cpu > tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id > 36 230 31.80 2 0.05 31.39 16 0.49 59.61 0 0.02 9 0 3 0 88 > 1 233 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 > 467 78 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 96 0 3 1 0 > 451 78 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 > 325 83 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 93 0 6 1 0 > 7 86 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 97 0 3 0 0 > 21 684 4.00 1 0.00 0.00 0 0.00 0.00 0 0.00 95 0 4 1 0 > 540 625 0.00 0 0.00 13.60 98 1.30 0.00 0 0.00 95 0 5 0 0 > 676 1222 0.00 0 0.00 13.43 307 4.03 0.00 0 0.00 91 0 7 2 0 > 411 76 0.00 0 0.00 14.48 312 4.42 0.00 0 0.00 95 0 5 0 0 > 388 77 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 94 0 5 1 0 > 206 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 98 0 2 0 0 > 17 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 97 0 3 0 0 > 0 78 0.00 0 0.00 16.00 32 0.49 0.00 0 0.00 98 0 2 0 0 > > i'm still under the impression this is a scheduler problem, but who knows... > > cheers. > alex > > > > > Attilio > > > > > > -- > > Peace can only be achieved by understanding - A. Einstein > > -- > a13x -- a13x From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 01:18:33 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95347106566B for ; Fri, 18 Mar 2011 01:18:33 +0000 (UTC) (envelope-from barry@kominik.net) Received: from kominik.net (kominik.net [IPv6:2607:f2f8:a580::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6D3308FC0C for ; Fri, 18 Mar 2011 01:18:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by kominik.net (Postfix) with ESMTP id 09659A0751 for ; Thu, 17 Mar 2011 21:18:33 -0400 (EDT) X-Virus-Scanned: amavisd-new at kominik.net Received: from localhost ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id x5COviUevJ0a for ; Thu, 17 Mar 2011 21:18:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kominik.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:organization :from:from:date:date:message-id:received:received; s=mail; t= 1300411111; x=1302225511; bh=/luVt5oAzi7MA/8PMikL59ZEEoCesz0TCTJ y203HwTU=; b=o5+TdyaE6bopDAQGBaYmFVOZk19x85vz/4Gbm7MQIcvWA38mKHC S5OJVnPHrUX+R2wA4qZKkD1Raj+/VRVQO02aPFeNbiqisCX3btUWj+sOI7gXeYgL zOvdmEt++fRJvEnG8Dnt+tOFeaJ9NsflPCi7UVkh1Py6toYur0szer3w= X-Virus-Scanned: amavisd-new at kominik.net Received: from kominik.net ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10026) with LMTP id 7uanF66hhuuQ for ; Thu, 17 Mar 2011 21:18:31 -0400 (EDT) Received: from durga.kominik.net (durga.kominik.net [IPv6:2001:470:1f07:db0:224:1dff:fed7:24be]) by kominik.net (Postfix) with ESMTPSA id 416DDA075C for ; Thu, 17 Mar 2011 21:18:31 -0400 (EDT) Message-ID: <4D82B2E6.3050808@kominik.net> Date: Thu, 17 Mar 2011 21:18:30 -0400 From: Barry Kominik Organization: Kominik.Net User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110307 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103171835.58060.hselasky@c2i.net> <499034b921fa63ed2cd879063a0760e3@kominik.net> <201103171844.49751.hselasky@c2i.net> In-Reply-To: <201103171844.49751.hselasky@c2i.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 01:18:33 -0000 On 03/17/2011 13:44, Hans Petter Selasky wrote: > On Thursday 17 March 2011 18:42:29 Barry Kominik wrote: >> On Thu, 17 Mar 2011 18:35:58 +0100, Hans Petter Selasky >> >> wrote: >>> On Thursday 17 March 2011 18:32:52 Barry Kominik wrote: >>>> Looks Like I get it on boot: >>>> Mar 17 08:13:27 durga kernel: ums0:>>> rev 1.10/14.00, addr 2> on usbus4 >>>> Mar 17 08:13:27 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 >>>> Mar 17 12:00:19 durga kernel: ums0: at uhub4, port 2, addr 2 >>>> (disconnected) >>>> Mar 17 12:00:21 durga kernel: ums0:>>> rev 1.10/14.00, addr 2> on usbus4 >>>> Mar 17 12:00:21 durga kernel: ums0: 5 buttons and [XY] coordinates ID=0 >>> Could you try to use this trick? CTRL+ALT+F1, then CTRL+ALT+F9. Does the >>> mouse >>> work? > Check also: > > 1) ps auxw | grep -i moused > > 2) usbconfig -d X.Y reset > > --HPS Hi, the usbconfig reset fixes the issue. Is there a way I can make this happen on boot? #ps auxw|grep -i moused root 2743 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep -i moused #usbconfig -d 4.2 reset #ps auxw|grep -i moused root 2843 0.6 0.0 8072 1076 ?? Ss 9:10PM 0:00.13 /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pi root 2895 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep -i moused Thanks, -=B From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 07:54:42 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C349A106566B for ; Fri, 18 Mar 2011 07:54:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 56A218FC08 for ; Fri, 18 Mar 2011 07:54:40 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=upTJuTb3ngPPUUVVSPoyO7jwIWz3rzPtkQxI490l6Ks= c=1 sm=1 a=IU0TiZmyZPMA:10 a=IpexOA1D-pIA:10 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=K-TutmVaGgv6KgT5QH8A:9 a=GXISeLxDu0lnY1-rUwGIAQtrYAoA:4 a=QEXdDO2ut3YA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 100759315; Fri, 18 Mar 2011 08:54:39 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 18 Mar 2011 08:54:03 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103171844.49751.hselasky@c2i.net> <4D82B2E6.3050808@kominik.net> In-Reply-To: <4D82B2E6.3050808@kominik.net> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201103180854.03062.hselasky@c2i.net> Cc: Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 07:54:42 -0000 > Hi, > the usbconfig reset fixes the issue. Is there a way I can make this > happen on boot? > > #ps auxw|grep -i moused > root 2743 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep > -i moused > #usbconfig -d 4.2 reset > #ps auxw|grep -i moused > root 2843 0.6 0.0 8072 1076 ?? Ss 9:10PM 0:00.13 > /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pi > root 2895 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep > -i moused Do you have moused_enable="YES" in your /etc/rc.conf The moused should be started by devd. Could you dump the descriptors using commands "dump_curr_config_desc dump_device_desc" before the device is reset? Try to run: /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid Before device reset. Maybe there is an error code. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 10:58:33 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 6C4561065676; Fri, 18 Mar 2011 10:58:33 +0000 (UTC) Date: Fri, 18 Mar 2011 10:58:33 +0000 From: Alexander Best To: Attilio Rao Message-ID: <20110318105833.GA8288@freebsd.org> References: <20110121182340.GA80488@freebsd.org> <20110317221031.GA11751@freebsd.org> <20110317223223.GA15811@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110317223223.GA15811@freebsd.org> Cc: freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 10:58:33 -0000 On Thu Mar 17 11, Alexander Best wrote: > On Thu Mar 17 11, Alexander Best wrote: > > On Fri Jan 21 11, Attilio Rao wrote: > > > 2011/1/21 Alexander Best : > > > > hi there, > > > > > > > > i've reported this issue quite a while ago [1], but back then nobody was able > > > > to help me. i have an issue with my usb mouse. when there's a high CPU load it > > > > produces random mouse clicks. this doesn't happen on other OSes. i've attached > > > > a different usb mouse to my freebsd box and i could't observe the same > > > > behavior. so it seems this problem is only related to specific mice. > > > > > > I can experience the same problem. switching to sched_4bsd and turning on preemption improves the situation a lot: == low CPU load == otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.382537 secs (23926233 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.379637 secs (23942076 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.380993 secs (23934666 bytes/sec) == high CPU load on cores 1 and 2 == otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.364027 secs (24027716 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.364638 secs (24024353 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 4.366761 secs (24012672 bytes/sec) ...i'll check whether sched_ule and preemption enabled also returns such nice results. cheers. alex > > also i did a few i/o tests using dd in combination with high CPU load: > > == low CPU load == > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.433087 secs (23653404 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.414529 secs (23752841 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.433871 secs (23649222 bytes/sec) > > == high CPU load on cores 1 and 2 == > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 39.220969 secs (2673509 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 41.791827 secs (2509046 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 58.067697 secs (1805782 bytes/sec) > > == high CPU load on core 1 == > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.552803 secs (23031438 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.593116 secs (22829295 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.588891 secs (22850314 bytes/sec) > > = high CPU load on core 0 == > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 13.381070 secs (7836264 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 12.810288 secs (8185421 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 13.519533 secs (7756008 bytes/sec) > > cheers. > alex > > > > > i've captured the iostat ouput during the random mouse clicks: > > > > tty ada0 ada1 cd0 cpu > > tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id > > 36 227 31.97 2 0.05 31.47 16 0.50 59.61 0 0.02 9 0 3 0 88 > > 7 232 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 5 0 2 1 92 > > 9 82 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 94 > > 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 3 1 91 > > 16 676 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 4 0 89 > > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 90 > > 2 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 16 0 3 0 80 > > 4 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 6 0 2 1 91 > > 121 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 1 0 96 > > 290 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 4 0 3 1 92 > > 998 78 0.00 0 0.00 32.00 1 0.03 0.00 0 0.00 6 0 5 0 89 > > 3231 30024 7.20 5 0.03 13.23 1583 20.45 0.00 0 0.00 25 0 28 3 44 > > 2437 18319 4.00 2 0.01 13.04 916 11.66 0.00 0 0.00 16 0 17 0 67 > > 1291 8441 0.00 0 0.00 13.08 1085 13.86 0.00 0 0.00 15 0 14 3 68 > > 737 243 0.00 0 0.00 13.13 359 4.61 0.00 0 0.00 7 0 4 0 88 > > 396 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 5 1 87 > > 124 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 5 0 1 0 94 > > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 3 1 89 > > 12 169 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 8 0 2 0 89 > > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 91 > > 4 78 16.00 6 0.09 0.00 0 0.00 0.00 0 0.00 4 0 2 0 94 > > 24 77 36.00 16 0.56 24.34 35 0.82 0.00 0 0.00 16 0 6 1 77 > > 8 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 92 > > 8 77 0.00 0 0.00 14.62 16 0.23 0.00 0 0.00 7 0 2 0 91 > > 4 77 0.00 0 0.00 18.24 17 0.30 0.00 0 0.00 5 0 5 0 90 > > 6 77 0.00 0 0.00 32.00 2 0.06 0.00 0 0.00 16 0 3 1 81 > > 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 7 0 2 0 91 > > 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 2 1 93 > > 5 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 4 0 91 > > 1 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 0 1 96 > > 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 2 0 1 0 97 > > > > ...in fact if i move the mouse fast enough i'm able to reproduce the issue > > without any high CPU activity. > > > > the following iostat output was taken during high CPU load. now also slow mouse > > movements can cause random mouse events (i.e. clicks) to happen: > > > > tty ada0 ada1 cd0 cpu > > tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id > > 36 230 31.80 2 0.05 31.39 16 0.49 59.61 0 0.02 9 0 3 0 88 > > 1 233 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 > > 467 78 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 96 0 3 1 0 > > 451 78 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 > > 325 83 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 93 0 6 1 0 > > 7 86 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 97 0 3 0 0 > > 21 684 4.00 1 0.00 0.00 0 0.00 0.00 0 0.00 95 0 4 1 0 > > 540 625 0.00 0 0.00 13.60 98 1.30 0.00 0 0.00 95 0 5 0 0 > > 676 1222 0.00 0 0.00 13.43 307 4.03 0.00 0 0.00 91 0 7 2 0 > > 411 76 0.00 0 0.00 14.48 312 4.42 0.00 0 0.00 95 0 5 0 0 > > 388 77 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 94 0 5 1 0 > > 206 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 98 0 2 0 0 > > 17 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 97 0 3 0 0 > > 0 78 0.00 0 0.00 16.00 32 0.49 0.00 0 0.00 98 0 2 0 0 > > > > i'm still under the impression this is a scheduler problem, but who knows... > > > > cheers. > > alex > > > > > > > > Attilio > > > > > > > > > -- > > > Peace can only be achieved by understanding - A. Einstein > > > > -- > > a13x > > -- > a13x -- a13x From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 11:14:49 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 046AD106566C; Fri, 18 Mar 2011 11:14:49 +0000 (UTC) Date: Fri, 18 Mar 2011 11:14:49 +0000 From: Alexander Best To: Attilio Rao Message-ID: <20110318111448.GA10462@freebsd.org> References: <20110121182340.GA80488@freebsd.org> <20110317221031.GA11751@freebsd.org> <20110317223223.GA15811@freebsd.org> <20110318105833.GA8288@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110318105833.GA8288@freebsd.org> Cc: freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 11:14:49 -0000 On Fri Mar 18 11, Alexander Best wrote: > On Thu Mar 17 11, Alexander Best wrote: > > On Thu Mar 17 11, Alexander Best wrote: > > > On Fri Jan 21 11, Attilio Rao wrote: > > > > 2011/1/21 Alexander Best : > > > > > hi there, > > > > > > > > > > i've reported this issue quite a while ago [1], but back then nobody was able > > > > > to help me. i have an issue with my usb mouse. when there's a high CPU load it > > > > > produces random mouse clicks. this doesn't happen on other OSes. i've attached > > > > > a different usb mouse to my freebsd box and i could't observe the same > > > > > behavior. so it seems this problem is only related to specific mice. > > > > > > > > I can experience the same problem. > > switching to sched_4bsd and turning on preemption improves the situation a lot: > > == low CPU load == > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.382537 secs (23926233 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.379637 secs (23942076 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.380993 secs (23934666 bytes/sec) > > == high CPU load on cores 1 and 2 == > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.364027 secs (24027716 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.364638 secs (24024353 bytes/sec) > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.366761 secs (24012672 bytes/sec) > > ...i'll check whether sched_ule and preemption enabled also returns such nice > results. same results with sched_ule and preemption enabled. :) so enabling preemption seems to get rid of the issue. i suspect sched_4bsd with preemption disabled will also produce the issue and slow usb transfers during high CPU load. > > cheers. > alex > > > > > also i did a few i/o tests using dd in combination with high CPU load: > > > > == low CPU load == > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.433087 secs (23653404 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.414529 secs (23752841 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.433871 secs (23649222 bytes/sec) > > > > == high CPU load on cores 1 and 2 == > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 39.220969 secs (2673509 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 41.791827 secs (2509046 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 58.067697 secs (1805782 bytes/sec) > > > > == high CPU load on core 1 == > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.552803 secs (23031438 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.593116 secs (22829295 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.588891 secs (22850314 bytes/sec) > > > > = high CPU load on core 0 == > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 13.381070 secs (7836264 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 12.810288 secs (8185421 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 13.519533 secs (7756008 bytes/sec) > > > > cheers. > > alex > > > > > > > > i've captured the iostat ouput during the random mouse clicks: > > > > > > tty ada0 ada1 cd0 cpu > > > tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id > > > 36 227 31.97 2 0.05 31.47 16 0.50 59.61 0 0.02 9 0 3 0 88 > > > 7 232 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 5 0 2 1 92 > > > 9 82 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 94 > > > 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 3 1 91 > > > 16 676 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 4 0 89 > > > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 90 > > > 2 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 16 0 3 0 80 > > > 4 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 6 0 2 1 91 > > > 121 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 1 0 96 > > > 290 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 4 0 3 1 92 > > > 998 78 0.00 0 0.00 32.00 1 0.03 0.00 0 0.00 6 0 5 0 89 > > > 3231 30024 7.20 5 0.03 13.23 1583 20.45 0.00 0 0.00 25 0 28 3 44 > > > 2437 18319 4.00 2 0.01 13.04 916 11.66 0.00 0 0.00 16 0 17 0 67 > > > 1291 8441 0.00 0 0.00 13.08 1085 13.86 0.00 0 0.00 15 0 14 3 68 > > > 737 243 0.00 0 0.00 13.13 359 4.61 0.00 0 0.00 7 0 4 0 88 > > > 396 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 5 1 87 > > > 124 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 5 0 1 0 94 > > > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 3 1 89 > > > 12 169 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 8 0 2 0 89 > > > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 91 > > > 4 78 16.00 6 0.09 0.00 0 0.00 0.00 0 0.00 4 0 2 0 94 > > > 24 77 36.00 16 0.56 24.34 35 0.82 0.00 0 0.00 16 0 6 1 77 > > > 8 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 92 > > > 8 77 0.00 0 0.00 14.62 16 0.23 0.00 0 0.00 7 0 2 0 91 > > > 4 77 0.00 0 0.00 18.24 17 0.30 0.00 0 0.00 5 0 5 0 90 > > > 6 77 0.00 0 0.00 32.00 2 0.06 0.00 0 0.00 16 0 3 1 81 > > > 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 7 0 2 0 91 > > > 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 2 1 93 > > > 5 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 4 0 91 > > > 1 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 0 1 96 > > > 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 2 0 1 0 97 > > > > > > ...in fact if i move the mouse fast enough i'm able to reproduce the issue > > > without any high CPU activity. > > > > > > the following iostat output was taken during high CPU load. now also slow mouse > > > movements can cause random mouse events (i.e. clicks) to happen: > > > > > > tty ada0 ada1 cd0 cpu > > > tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id > > > 36 230 31.80 2 0.05 31.39 16 0.49 59.61 0 0.02 9 0 3 0 88 > > > 1 233 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 > > > 467 78 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 96 0 3 1 0 > > > 451 78 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 > > > 325 83 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 93 0 6 1 0 > > > 7 86 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 97 0 3 0 0 > > > 21 684 4.00 1 0.00 0.00 0 0.00 0.00 0 0.00 95 0 4 1 0 > > > 540 625 0.00 0 0.00 13.60 98 1.30 0.00 0 0.00 95 0 5 0 0 > > > 676 1222 0.00 0 0.00 13.43 307 4.03 0.00 0 0.00 91 0 7 2 0 > > > 411 76 0.00 0 0.00 14.48 312 4.42 0.00 0 0.00 95 0 5 0 0 > > > 388 77 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 94 0 5 1 0 > > > 206 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 98 0 2 0 0 > > > 17 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 97 0 3 0 0 > > > 0 78 0.00 0 0.00 16.00 32 0.49 0.00 0 0.00 98 0 2 0 0 > > > > > > i'm still under the impression this is a scheduler problem, but who knows... > > > > > > cheers. > > > alex > > > > > > > > > > > Attilio > > > > > > > > > > > > -- > > > > Peace can only be achieved by understanding - A. Einstein > > > > > > -- > > > a13x > > > > -- > > a13x > > -- > a13x -- a13x From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 11:36:03 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 541A21065672; Fri, 18 Mar 2011 11:36:03 +0000 (UTC) Date: Fri, 18 Mar 2011 11:36:03 +0000 From: Alexander Best To: Attilio Rao Message-ID: <20110318113603.GA13664@freebsd.org> References: <20110121182340.GA80488@freebsd.org> <20110317221031.GA11751@freebsd.org> <20110317223223.GA15811@freebsd.org> <20110318105833.GA8288@freebsd.org> <20110318111448.GA10462@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110318111448.GA10462@freebsd.org> Cc: freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 11:36:03 -0000 On Fri Mar 18 11, Alexander Best wrote: > On Fri Mar 18 11, Alexander Best wrote: > > On Thu Mar 17 11, Alexander Best wrote: > > > On Thu Mar 17 11, Alexander Best wrote: > > > > On Fri Jan 21 11, Attilio Rao wrote: > > > > > 2011/1/21 Alexander Best : > > > > > > hi there, > > > > > > > > > > > > i've reported this issue quite a while ago [1], but back then nobody was able > > > > > > to help me. i have an issue with my usb mouse. when there's a high CPU load it > > > > > > produces random mouse clicks. this doesn't happen on other OSes. i've attached > > > > > > a different usb mouse to my freebsd box and i could't observe the same > > > > > > behavior. so it seems this problem is only related to specific mice. > > > > > > > > > > I can experience the same problem. > > > > switching to sched_4bsd and turning on preemption improves the situation a lot: > > > > == low CPU load == > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.382537 secs (23926233 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.379637 secs (23942076 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.380993 secs (23934666 bytes/sec) > > > > == high CPU load on cores 1 and 2 == > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.364027 secs (24027716 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.364638 secs (24024353 bytes/sec) > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > 100+0 records in > > 100+0 records out > > 104857600 bytes transferred in 4.366761 secs (24012672 bytes/sec) > > > > ...i'll check whether sched_ule and preemption enabled also returns such nice > > results. > > same results with sched_ule and preemption enabled. :) so enabling preemption > seems to get rid of the issue. i suspect sched_4bsd with preemption disabled > will also produce the issue and slow usb transfers during high CPU load. hmm...no actually. the complete results are: SCHED | PREEMPTION | RESULTS ------|------------|-------- ULE | enabled | OK ULE | disabled | SLOW 4BSD | enabled | OK 4BSD | disabled | OK cheers. alex > > > > > cheers. > > alex > > > > > > > > also i did a few i/o tests using dd in combination with high CPU load: > > > > > > == low CPU load == > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 4.433087 secs (23653404 bytes/sec) > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 4.414529 secs (23752841 bytes/sec) > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 4.433871 secs (23649222 bytes/sec) > > > > > > == high CPU load on cores 1 and 2 == > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 39.220969 secs (2673509 bytes/sec) > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 41.791827 secs (2509046 bytes/sec) > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 58.067697 secs (1805782 bytes/sec) > > > > > > == high CPU load on core 1 == > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 4.552803 secs (23031438 bytes/sec) > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 4.593116 secs (22829295 bytes/sec) > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 4.588891 secs (22850314 bytes/sec) > > > > > > = high CPU load on core 0 == > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 13.381070 secs (7836264 bytes/sec) > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 12.810288 secs (8185421 bytes/sec) > > > otaku% dd if=/dev/da0 of=/dev/null bs=1m count=100 > > > 100+0 records in > > > 100+0 records out > > > 104857600 bytes transferred in 13.519533 secs (7756008 bytes/sec) > > > > > > cheers. > > > alex > > > > > > > > > > > i've captured the iostat ouput during the random mouse clicks: > > > > > > > > tty ada0 ada1 cd0 cpu > > > > tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id > > > > 36 227 31.97 2 0.05 31.47 16 0.50 59.61 0 0.02 9 0 3 0 88 > > > > 7 232 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 5 0 2 1 92 > > > > 9 82 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 94 > > > > 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 3 1 91 > > > > 16 676 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 6 0 4 0 89 > > > > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 90 > > > > 2 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 16 0 3 0 80 > > > > 4 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 6 0 2 1 91 > > > > 121 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 1 0 96 > > > > 290 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 4 0 3 1 92 > > > > 998 78 0.00 0 0.00 32.00 1 0.03 0.00 0 0.00 6 0 5 0 89 > > > > 3231 30024 7.20 5 0.03 13.23 1583 20.45 0.00 0 0.00 25 0 28 3 44 > > > > 2437 18319 4.00 2 0.01 13.04 916 11.66 0.00 0 0.00 16 0 17 0 67 > > > > 1291 8441 0.00 0 0.00 13.08 1085 13.86 0.00 0 0.00 15 0 14 3 68 > > > > 737 243 0.00 0 0.00 13.13 359 4.61 0.00 0 0.00 7 0 4 0 88 > > > > 396 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 5 1 87 > > > > 124 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 5 0 1 0 94 > > > > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 3 1 89 > > > > 12 169 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 8 0 2 0 89 > > > > 8 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 7 0 2 1 91 > > > > 4 78 16.00 6 0.09 0.00 0 0.00 0.00 0 0.00 4 0 2 0 94 > > > > 24 77 36.00 16 0.56 24.34 35 0.82 0.00 0 0.00 16 0 6 1 77 > > > > 8 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 3 0 92 > > > > 8 77 0.00 0 0.00 14.62 16 0.23 0.00 0 0.00 7 0 2 0 91 > > > > 4 77 0.00 0 0.00 18.24 17 0.30 0.00 0 0.00 5 0 5 0 90 > > > > 6 77 0.00 0 0.00 32.00 2 0.06 0.00 0 0.00 16 0 3 1 81 > > > > 6 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 7 0 2 0 91 > > > > 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 2 1 93 > > > > 5 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 4 0 4 0 91 > > > > 1 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 3 0 0 1 96 > > > > 0 77 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 2 0 1 0 97 > > > > > > > > ...in fact if i move the mouse fast enough i'm able to reproduce the issue > > > > without any high CPU activity. > > > > > > > > the following iostat output was taken during high CPU load. now also slow mouse > > > > movements can cause random mouse events (i.e. clicks) to happen: > > > > > > > > tty ada0 ada1 cd0 cpu > > > > tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id > > > > 36 230 31.80 2 0.05 31.39 16 0.49 59.61 0 0.02 9 0 3 0 88 > > > > 1 233 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 > > > > 467 78 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 96 0 3 1 0 > > > > 451 78 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 96 0 4 0 0 > > > > 325 83 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 93 0 6 1 0 > > > > 7 86 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 97 0 3 0 0 > > > > 21 684 4.00 1 0.00 0.00 0 0.00 0.00 0 0.00 95 0 4 1 0 > > > > 540 625 0.00 0 0.00 13.60 98 1.30 0.00 0 0.00 95 0 5 0 0 > > > > 676 1222 0.00 0 0.00 13.43 307 4.03 0.00 0 0.00 91 0 7 2 0 > > > > 411 76 0.00 0 0.00 14.48 312 4.42 0.00 0 0.00 95 0 5 0 0 > > > > 388 77 0.00 0 0.00 128.00 4 0.50 0.00 0 0.00 94 0 5 1 0 > > > > 206 78 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 98 0 2 0 0 > > > > 17 77 0.00 0 0.00 128.00 1 0.12 0.00 0 0.00 97 0 3 0 0 > > > > 0 78 0.00 0 0.00 16.00 32 0.49 0.00 0 0.00 98 0 2 0 0 > > > > > > > > i'm still under the impression this is a scheduler problem, but who knows... > > > > > > > > cheers. > > > > alex > > > > > > > > > > > > > > Attilio > > > > > > > > > > > > > > > -- > > > > > Peace can only be achieved by understanding - A. Einstein > > > > > > > > -- > > > > a13x > > > > > > -- > > > a13x > > > > -- > > a13x > > -- > a13x -- a13x From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 11:47:08 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CD54106564A for ; Fri, 18 Mar 2011 11:47:08 +0000 (UTC) (envelope-from yehorov@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id B3C798FC16 for ; Fri, 18 Mar 2011 11:47:07 +0000 (UTC) Received: by qyk35 with SMTP id 35so667847qyk.13 for ; Fri, 18 Mar 2011 04:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=kEOeDff7MOAvXIfkKz3LQd97Z3pu45/epVb2bH55uy8=; b=pdf8Kl2QzWEeMDf4lRAJJGCacOqOLMQu9q1k0C/PxXDYL9Oz1lzctsdyrrQXrsI2HF XGagElBYnRVWZs91mUKHv+CyxrdvhlayetNP7H3RqJEh4TvvxsKCxG0XV957/B+9nGc+ Pikr9IqyDoqjd7/q9KWuvZBJUIPBPSPa2X7oA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kzUww4szmM12GZIMRq3p5OFaix+CfufAzgODBJh6HVAt7pva90Vza4afgITPbPwJ1U 5fbL3WAxm4oBCIfc7sec1waMYF/WbfhRQ6MXmTsUZQ1yWDmtyes0JNqBGpPFuiSyjpY9 fb943XlpqKr8vKrdkgoimBJkOPbQ4UI6G8Sxc= MIME-Version: 1.0 Received: by 10.229.44.134 with SMTP id a6mr724461qcf.221.1300447393599; Fri, 18 Mar 2011 04:23:13 -0700 (PDT) Received: by 10.229.242.5 with HTTP; Fri, 18 Mar 2011 04:23:13 -0700 (PDT) Date: Fri, 18 Mar 2011 13:23:13 +0200 Message-ID: From: Mykhaylo Yehorov To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: [umass] Noname "ChipsBnk" USB card reader X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 11:47:08 -0000 Hi, I've got a noname USB card reader which behaves incorrectly. Sometimes I manage to mount file system on a flash and read some files. But I always fail to write something to a flash. Is it possible to fix device behavior with some usb quirk? The following are outputs of usbconfig and dmesg. begin 644 usbconfig.txt M=6=E;C0N,CH@/$9L87-H($1I#`P,3(@"B`@8D1E7!E(#T@,'@P,#`Q(`H@(&)C M9%530B`](#!X,#(P,"`*("!B1&5V:6-E0VQA#`P,#`@"B`@8D1E M=FEC95-U8D-L87-S(#T@,'@P,#`P(`H@(&)$979I8V50#`P-#`@"B`@:61696YD;W(@ M/2`P>#%E,V0@"B`@:610#`P,#(@(#Q&;&%S:"!$:7-K/@H@(&E397)I86Q. M=6UB97(@/2`P>#`P,#,@(#PP,3,R-#0W,#0P.#$^"B`@8DYU;4-O;F9I9W5R M871I;VYS(#T@,'@P,#`Q(`H*"B!#;VYF:6=U7!E(#T@,'@P M,#`R(`H@("`@=U1O=&%L3&5N9W1H(#T@,'@P,#(P(`H@("`@8DYU;4EN=&5R M9F%C97,@/2`P>#`P,#$@"B`@("!B0V]N9FEG=7)A=&EO;E9A;'5E(#T@,'@P M,#`Q(`H@("`@:4-O;F9I9W5R871I;VX@/2`P>#`P,#`@(#QN;R!S=')I;F<^ M"B`@("!B;4%T=')I8G5T97,@/2`P>#`P.#`@"B`@("!B36%X4&]W97(@/2`P M>#`P,S(@"@H@("`@26YT97)F86-E(#`*("`@("`@8DQE;F=T:"`](#!X,#`P M.2`*("`@("`@8D1E7!E(#T@,'@P,#`T(`H@("`@("!B26YT M97)F86-E3G5M8F5R(#T@,'@P,#`P(`H@("`@("!B06QT97)N871E4V5T=&EN M9R`](#!X,#`P,"`*("`@("`@8DYU;45N9'!O:6YT#`P,#8@"B`@("`@(&));G1E#`P,#<@ M"B`@("`@("`@8D1E7!E(#T@,'@P,#`U(`H@("`@("`@(&)% M;F1P;VEN=$%D9')E#`P,#$@(#Q/550^"B`@("`@("`@8FU!='1R M:6)U=&5S(#T@,'@P,#`R("`\0E5,2SX*("`@("`@("!W36%X4&%C:V5T4VEZ M92`](#!X,#(P,"`*("`@("`@("!B26YT97)V86P@/2`P>#`P,#`@"B`@("`@ M("`@8E)E9G)E#`P,#`@"B`@("`@("`@8E-Y;F-H061D#`P,#<@"B`@("`@("`@8D1E7!E(#T@,'@P,#`U(`H@("`@ M("`@(&)%;F1P;VEN=$%D9')E#`P.#$@(#Q)3CX*("`@("`@("!B M;4%T=')I8G5T97,@/2`P>#`P,#(@(#Q"54Q+/@H@("`@("`@('=-87A086-K M9713:7IE(#T@,'@P,C`P(`H@("`@("`@(&));G1E#`P,#`*=6UA2!H879E(&-H86YG960I"D=%3TTZ(&1A,#H@<&%R=&ET:6]N(#$@9&]E M2X*1T5/33H@9&$P.B!P M87)T:71I;VX@,2!D;V5S(&YO="!E;F0@;VX@82!T2X* M;7-D;W-F6YC.B!G:79I;F<@=7`@;VX@9&ER='D*,'AC.3%C M9F,Y,#H@=&%G(&1E=F9S+"!T>7!E(%9#2%(*("`@('5S96-O=6YT(#$L('=R M:71E8V]U;G0@,"P@&,Y9&$V,#@X(')E9B`P M('!A9V5S(#0Y.`H@("`@;&]C:R!T>7!E(&1E=F9S.B!%6$-,(&)Y('1H&,X.6-B,#`P("AP:60@-S,W,#4I"@ED978@9&$P&,X M8V1F,3`P"B`@("!F;&%G2!T M:')E860@,'AC-S(V.3@W,"`H<&ED(# Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43B1A106564A for ; Fri, 18 Mar 2011 12:16:53 +0000 (UTC) (envelope-from barry@kominik.net) Received: from kominik.net (kominik.net [IPv6:2607:f2f8:a580::2]) by mx1.freebsd.org (Postfix) with ESMTP id 17CBC8FC13 for ; Fri, 18 Mar 2011 12:16:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by kominik.net (Postfix) with ESMTP id BE2029F1A1 for ; Fri, 18 Mar 2011 08:16:52 -0400 (EDT) X-Virus-Scanned: amavisd-new at kominik.net Received: from localhost ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id fONljBRHsRI6 for ; Fri, 18 Mar 2011 08:16:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kominik.net; h= x-mailer:references:message-id:content-transfer-encoding:date :date:in-reply-to:from:from:subject:subject:mime-version :content-type:content-type:received:received; s=mail; t= 1300450610; x=1302265010; bh=/MBwIxpfsk56ZJrtprk2soUTI63gNudMgsU TgB8WoII=; b=g2Ha9++3pTjFjSt7hhG+nthuc7vcBJ0HrzMuvGfE3sEBej1jztV 7YCotQSKLXfeXsOw4e6RaZY1vyYN8M3LM7/nO2jpO09hUsUnwuWAZtYyuHvOPbf/ qgoWJ7GsvEpbwXoPNw+gQmeNEpx0CVOaZg3EU1ALpPQiNZ5p5FcVzgyo= X-Virus-Scanned: amavisd-new at kominik.net Received: from kominik.net ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10026) with LMTP id fP2H3GFslOcG for ; Fri, 18 Mar 2011 08:16:50 -0400 (EDT) Received: from mbp.slope.home (unknown [74.72.51.100]) by kominik.net (Postfix) with ESMTPSA id 767529EEE1 for ; Fri, 18 Mar 2011 08:16:49 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) From: Barry Kominik In-Reply-To: <201103180854.03062.hselasky@c2i.net> Date: Fri, 18 Mar 2011 08:16:45 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <60BF8D78-783F-4A63-92DA-899BE2E62CF7@kominik.net> References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103171844.49751.hselasky@c2i.net> <4D82B2E6.3050808@kominik.net> <201103180854.03062.hselasky@c2i.net> To: freebsd-usb@freebsd.org X-Mailer: Apple Mail (2.1082) Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 12:16:53 -0000 On Mar 18, 2011, at 3:54 AM, Hans Petter Selasky wrote: >> Hi, >> the usbconfig reset fixes the issue. Is there a way I can make this >> happen on boot? >>=20 >> #ps auxw|grep -i moused >> root 2743 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 = grep >> -i moused >> #usbconfig -d 4.2 reset >> #ps auxw|grep -i moused >> root 2843 0.6 0.0 8072 1076 ?? Ss 9:10PM 0:00.13 >> /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pi >> root 2895 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 = grep >> -i moused >=20 > Do you have moused_enable=3D"YES" in your /etc/rc.conf >=20 Yes..=20 > The moused should be started by devd. Could you dump the descriptors = using=20 > commands "dump_curr_config_desc dump_device_desc" before the device is = reset? >=20 > Try to run: >=20 > /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid >=20 > Before device reset. Maybe there is an error code. >=20 > --HPS At one point I did get an error, I'm not sure at what step, as the kids = were bouncing all over me ;) Mar 18 07:39:01 durga moused: unable to get status of mouse fd: = Inappropriate ioctl for device So I rebooted and started over and there were no errors, here's the = output:=20 [root@durga ~]# usbconfig dump_curr_config_desc dump_device_desc ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen2.1: at usbus2, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen3.1: at usbus3, cfg=3D0 md=3DHOST spd=3DHIGH = (480Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0200=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0001=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen4.1: at usbus4, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen5.1: at usbus5, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen6.1: at usbus6, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen7.1: at usbus7, cfg=3D0 md=3DHOST spd=3DHIGH = (480Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0200=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0001=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen4.2: at usbus4, cfg=3D0 md=3DHOST spd=3DLOW = (1.5Mbps) pwr=3DON bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0110=20 bDeviceClass =3D 0x0000=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0008=20 idVendor =3D 0x046d=20 idProduct =3D 0xc408=20 bcdDevice =3D 0x1400=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0022=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x00a0=20 bMaxPower =3D 0x0019=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0003=20 bInterfaceSubClass =3D 0x0001=20 bInterfaceProtocol =3D 0x0002=20 iInterface =3D 0x0000 Additional Descriptor bLength =3D 0x09 bDescriptorType =3D 0x21 bDescriptorSubType =3D 0x10 RAW dump:=20 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x42,=20 0x08 | 0x00 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x000a=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 [root@durga ~]# /usr/sbin/moused -p /dev/ums0 -t auto -I = /var/run/moused.ums0.pi d [root@durga ~]# exit From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 12:36:46 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FC36106566B for ; Fri, 18 Mar 2011 12:36:46 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 1EE478FC13 for ; Fri, 18 Mar 2011 12:36:45 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=wd7fLirDSts22yawIUsTeMUS9lsm8Llc0grT6RvpTjU= c=1 sm=1 a=IU0TiZmyZPMA:10 a=IpexOA1D-pIA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=BHcQoIbRF-vDWGTtfI0A:9 a=bMPEmdMvt30SFaX3gLbixEbU4NsA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 101612444; Fri, 18 Mar 2011 13:36:43 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 18 Mar 2011 13:36:08 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103180854.03062.hselasky@c2i.net> <60BF8D78-783F-4A63-92DA-899BE2E62CF7@kominik.net> In-Reply-To: <60BF8D78-783F-4A63-92DA-899BE2E62CF7@kominik.net> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103181336.08086.hselasky@c2i.net> Cc: Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 12:36:46 -0000 On Friday 18 March 2011 13:16:45 Barry Kominik wrote: > On Mar 18, 2011, at 3:54 AM, Hans Petter Selasky wrote: > >> Hi, > >> the usbconfig reset fixes the issue. Is there a way I can make this > >> happen on boot? > >> > >> #ps auxw|grep -i moused > >> root 2743 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep > >> -i moused > >> #usbconfig -d 4.2 reset > >> #ps auxw|grep -i moused > >> root 2843 0.6 0.0 8072 1076 ?? Ss 9:10PM 0:00.13 > >> /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pi > >> root 2895 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep > >> -i moused > > > > Do you have moused_enable="YES" in your /etc/rc.conf > > Yes.. > > > The moused should be started by devd. Could you dump the descriptors > > using commands "dump_curr_config_desc dump_device_desc" before the > > device is reset? > > > > Try to run: > > > > /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid > > > > Before device reset. Maybe there is an error code. > > > > --HPS The USB descriptors look OK. Try to add: hw.usb.ums.debug="15" Into the end of /boot/loader.conf Also try: hw.usb.ugen.debug="15" Then reboot and send any errors you see in dmesg. Try: Edit /etc/rc.d/moused: Add "sleep 1" in the moused_start() function. Maybe your system is too quick to search for the character device? --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 14:57:52 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4180E1065673; Fri, 18 Mar 2011 14:57:52 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A4E788FC12; Fri, 18 Mar 2011 14:57:51 +0000 (UTC) Received: by fxm11 with SMTP id 11so4368008fxm.13 for ; Fri, 18 Mar 2011 07:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=owd3KyCpeDNRAkyfidXgfsjNT6h8O2TtYakuz1X/ICQ=; b=cTE9VC1BWvI4Werq+vHeqCj4TCrfWR9DuLcdOcCxPsKYDT+Mkhmp8KhuV7Y8ATU6wZ 1wfWPvXObXDM4j1m8sca979TNMz8HivVU2Wg3d/DMldqrNWhj5EuoR//e6jBQw7J4Bz9 yj2SHByDIlI4X0y8cRxxa31RluS+4wCTOOspw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=HCri3YM/mbXqtWzWPp4jSQT3ojX7sJM1q82Kv06vMEjUdsZZVOrZ6BBrzVSEF5kHxu N0soADHJD8wgU9F814d+yw/NF1f3Ckt7MAm9/Uw0aQBEMpCVsx72r0xSIawndxSGbVK3 ESgcpe1R17sDG2QpE3cotSTsJmIQNwT7WSfvo= Received: by 10.223.97.1 with SMTP id j1mr1360322fan.86.1300458898932; Fri, 18 Mar 2011 07:34:58 -0700 (PDT) Received: from localhost ([95.211.9.22]) by mx.google.com with ESMTPS id n26sm1412188fam.13.2011.03.18.07.34.56 (version=SSLv3 cipher=OTHER); Fri, 18 Mar 2011 07:34:58 -0700 (PDT) From: Anonymous To: Alexander Best References: <20110121182340.GA80488@freebsd.org> Date: Fri, 18 Mar 2011 17:34:49 +0300 In-Reply-To: <20110121182340.GA80488@freebsd.org> (Alexander Best's message of "Fri, 21 Jan 2011 18:23:40 +0000") Message-ID: <86vczgts3a.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 14:57:52 -0000 Alexander Best writes: > i've reported this issue quite a while ago [1], but back then nobody was able > to help me. i have an issue with my usb mouse. when there's a high CPU load it > produces random mouse clicks. this doesn't happen on other OSes. i've attached > a different usb mouse to my freebsd box and i could't observe the same > behavior. so it seems this problem is only related to specific mice. I'm curious, can you reproduce it without moused(8), i.e. specifying /dev/umsN in xorg.conf rather than /dev/sysmouse. This may be unrelated but my mx518 mouse produces random clicks when I move it very quickly and using moused(8), no clicks when not. > > back then hps@ guessed that my mouse requires a certain polling rate from the > host. during high cpu load the host couldn't keep up the polling rate and thus > the mouse starts producing wrong output. From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 15:42:03 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id B37931065670; Fri, 18 Mar 2011 15:42:03 +0000 (UTC) Date: Fri, 18 Mar 2011 15:42:03 +0000 From: Alexander Best To: Anonymous Message-ID: <20110318154203.GA48923@freebsd.org> References: <20110121182340.GA80488@freebsd.org> <86vczgts3a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86vczgts3a.fsf@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 15:42:03 -0000 On Fri Mar 18 11, Anonymous wrote: > Alexander Best writes: > > > i've reported this issue quite a while ago [1], but back then nobody was able > > to help me. i have an issue with my usb mouse. when there's a high CPU load it > > produces random mouse clicks. this doesn't happen on other OSes. i've attached > > a different usb mouse to my freebsd box and i could't observe the same > > behavior. so it seems this problem is only related to specific mice. > > I'm curious, can you reproduce it without moused(8), i.e. specifying > /dev/umsN in xorg.conf rather than /dev/sysmouse. wow that worked. :) i've set my mouse to /dev/ums0 and set Option "AllowEmptyInput" "off", because without that line i couldn't use the mouse. even with very fast movements i don't get any random clicks anymore. although this a solution works for X, for the console the only way to use a mouse is moused(8). cheers. alex > > This may be unrelated but my mx518 mouse produces random clicks when I > move it very quickly and using moused(8), no clicks when not. > > > > > back then hps@ guessed that my mouse requires a certain polling rate from the > > host. during high cpu load the host couldn't keep up the polling rate and thus > > the mouse starts producing wrong output. -- a13x From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 16:13:55 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 6B7001065677; Fri, 18 Mar 2011 16:13:55 +0000 (UTC) Date: Fri, 18 Mar 2011 16:13:55 +0000 From: Alexander Best To: Anonymous Message-ID: <20110318161355.GA53253@freebsd.org> References: <20110121182340.GA80488@freebsd.org> <86vczgts3a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86vczgts3a.fsf@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 16:13:55 -0000 On Fri Mar 18 11, Anonymous wrote: > Alexander Best writes: > > > i've reported this issue quite a while ago [1], but back then nobody was able > > to help me. i have an issue with my usb mouse. when there's a high CPU load it > > produces random mouse clicks. this doesn't happen on other OSes. i've attached > > a different usb mouse to my freebsd box and i could't observe the same > > behavior. so it seems this problem is only related to specific mice. > > I'm curious, can you reproduce it without moused(8), i.e. specifying > /dev/umsN in xorg.conf rather than /dev/sysmouse. after restarting hald and removing all input sections from my xorg.conf i'm now able to use both mouse and keyboard via hald in X. so it seems moused(8) is clearly to blame for the random clicks during high CPU load and/or fast mouse movements. thanks again for the pointer. :) cheers. alex > > This may be unrelated but my mx518 mouse produces random clicks when I > move it very quickly and using moused(8), no clicks when not. > > > > > back then hps@ guessed that my mouse requires a certain polling rate from the > > host. during high cpu load the host couldn't keep up the polling rate and thus > > the mouse starts producing wrong output. -- a13x From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 16:57:09 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 985CC106564A; Fri, 18 Mar 2011 16:57:09 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 426A58FC18; Fri, 18 Mar 2011 16:57:08 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p2IGkwNk041869; Fri, 18 Mar 2011 10:46:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p2IGkwYK041866; Fri, 18 Mar 2011 10:46:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 18 Mar 2011 10:46:58 -0600 (MDT) From: Warren Block To: Alexander Best In-Reply-To: <20110318154203.GA48923@freebsd.org> Message-ID: References: <20110121182340.GA80488@freebsd.org> <86vczgts3a.fsf@gmail.com> <20110318154203.GA48923@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Fri, 18 Mar 2011 10:46:58 -0600 (MDT) Cc: Anonymous , freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 16:57:09 -0000 On Fri, 18 Mar 2011, Alexander Best wrote: > On Fri Mar 18 11, Anonymous wrote: >> Alexander Best writes: >> >>> i've reported this issue quite a while ago [1], but back then nobody was able >>> to help me. i have an issue with my usb mouse. when there's a high CPU load it >>> produces random mouse clicks. this doesn't happen on other OSes. i've attached >>> a different usb mouse to my freebsd box and i could't observe the same >>> behavior. so it seems this problem is only related to specific mice. >> >> I'm curious, can you reproduce it without moused(8), i.e. specifying >> /dev/umsN in xorg.conf rather than /dev/sysmouse. > > wow that worked. :) > > i've set my mouse to /dev/ums0 and set Option "AllowEmptyInput" "off", because > without that line i couldn't use the mouse. Please use Option "AutoAddDevices" "Off" if you want to disable hal hotplugging in xorg.conf: http://www.wonkity.com/~wblock/docs/html/aei.html > even with very fast movements i don't get any random clicks anymore. although > this a solution works for X, for the console the only way to use a mouse is > moused(8). Yes, but moused is autostarted for USB mice by moused_nondefault_enable="YES" in /etc/defaults/rc.conf. From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 18:36:40 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 716D5106566B; Fri, 18 Mar 2011 18:36:40 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2DA5D8FC08; Fri, 18 Mar 2011 18:36:39 +0000 (UTC) Received: by iyj12 with SMTP id 12so5063145iyj.13 for ; Fri, 18 Mar 2011 11:36:39 -0700 (PDT) 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; bh=5BSvaHiSuiHzCbtYKkqzI+IcHnuaGpwfJxJXQ6EUT48=; b=nw3nvoFI0KSrMPBfDhg0dj3CNU62HaV36x9iI68rkox13owCMp0Tf6vpUUSMFL3IK+ 7EoYmakJBVeF8MNVGe5BJ/l65R1nC9Th/qw/D4xz40E83ezPz3xi97RBwt4l17J2Lrp9 njXPs46Xk1cPvonAJOTsLFIavnhJKL4ffzUSc= 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; b=Ds/Zfvz5UqNvwLA6J8+OPj/sAjGRxThEV3bJ35BCArk2TrWvHTy59moLkfiUY/gVTg bMbGVyr/otUusTD23Q3E9bewHIAS9o4iZwjYkw/5Yj0/ttyv8CZ4ELoiLVQOtb5/DaEn NY9eQWLnTsr8QmcPnMDT9/oB5pwEhjb5JD0hw= MIME-Version: 1.0 Received: by 10.42.145.72 with SMTP id e8mr1918667icv.506.1300473399285; Fri, 18 Mar 2011 11:36:39 -0700 (PDT) Received: by 10.43.60.201 with HTTP; Fri, 18 Mar 2011 11:36:39 -0700 (PDT) In-Reply-To: <4D7F6AE3.1060503@users.sf.net> References: <4D7F6AE3.1060503@users.sf.net> Date: Fri, 18 Mar 2011 11:36:39 -0700 Message-ID: From: Maksim Yevmenkin To: mato Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-bluetooth@freebsd.org, freebsd-usb@freebsd.org Subject: Re: no modules / services needed for BT mouse support (?) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 18:36:40 -0000 Hello, sorry for the delay > Probably I wasn't clear. I am aware of how to enable BT mouse in FreeBSD, I > used it for several years. I did the same for PC-BSD and it worked as > expected. ok > But now, with the same mouse on a friend's computer running (latest) PC-BSD, > I do no need to do anything and it works. There is no ng_ubt loaded, yet I > see /dev/ums0 and mouse works both in console and X11. The issue is that > its wheel does not work. well, i would guess that the mouse is recognized as usb mouse. this could happen when bluetooth usb dongle connected to the computer is operating in so called "hid mode". in this mode, bluetooth dongle is NOT appearing as bluetooth device but rather than usb mouse, and, possibly, as keyboard as well. > So I was confused as to how it can work out-of-box and why wheel is dead. if my guess above is correct, then it works out-of-the-box because ums(4) (usb mouse) drivers attaches to it, and, moused(8) picks it up as usb mouse. i'm guessing the wheel does not work because moused(8) needs to be told about it. > One idea that occured to me is that BIOS recognises and emulates it (dongle > + mouse), though that sounds strange. sorry, i'm not sure i understand what do you mean. if bluetooth dongle is in fact in hid mode then it will look like usb mouse. > Btw, when I tried to set it up as usual (and as you wrote above), it stopped > working (on that PC-BSD machine). can you please check if you even have bluetooth device in this case? what does # ngctl li shows? thanks max From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 21:20:11 2011 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81618106567C for ; Fri, 18 Mar 2011 21:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 357928FC13 for ; Fri, 18 Mar 2011 21:20:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2ILK9TN082007 for ; Fri, 18 Mar 2011 21:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2ILK9w0082006; Fri, 18 Mar 2011 21:20:09 GMT (envelope-from gnats) Date: Fri, 18 Mar 2011 21:20:09 GMT Message-Id: <201103182120.p2ILK9w0082006@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: saper@saper.info (Originator) Cc: Subject: Re: usb/121755: [ohci] [patch] Fix panic after ohci/uhub cardbus device eject X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Originator List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 21:20:11 -0000 The following reply was made to PR usb/121755; it has been noted by GNATS. From: saper@saper.info (Originator) To: bug-followup@FreeBSD.org, saper@SYSTEM.PL Cc: Subject: Re: usb/121755: [ohci] [patch] Fix panic after ohci/uhub cardbus device eject Date: Fri, 18 Mar 2011 21:58:00 +0100 (CET) I think it can be closed. A whole USB stack got rewritten since then. From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 01:04:59 2011 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E4BF106564A; Sat, 19 Mar 2011 01:04:59 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 76ACF8FC14; Sat, 19 Mar 2011 01:04:59 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2J14xno088345; Sat, 19 Mar 2011 01:04:59 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2J14xsK088341; Sat, 19 Mar 2011 01:04:59 GMT (envelope-from linimon) Date: Sat, 19 Mar 2011 01:04:59 GMT Message-Id: <201103190104.p2J14xsK088341@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/155663: [usbdevs] [patch] Add support for Supertop Nano 1GB USB stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2011 01:04:59 -0000 Old Synopsis: [PATCH] Add support for Supertop Nano 1GB USB stick New Synopsis: [usbdevs] [patch] Add support for Supertop Nano 1GB USB stick Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Sat Mar 19 01:04:05 UTC 2011 Responsible-Changed-Why: Reclassify and reassign. http://www.freebsd.org/cgi/query-pr.cgi?pr=155663 From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 02:24:47 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9454106566B for ; Sat, 19 Mar 2011 02:24:47 +0000 (UTC) (envelope-from barry@kominik.net) Received: from kominik.net (kominik.net [IPv6:2607:f2f8:a580::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9FE158FC18 for ; Sat, 19 Mar 2011 02:24:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by kominik.net (Postfix) with ESMTP id 549969F31F for ; Fri, 18 Mar 2011 22:24:47 -0400 (EDT) X-Virus-Scanned: amavisd-new at kominik.net Received: from localhost ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id brrRPueXxCYt for ; Fri, 18 Mar 2011 22:24:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kominik.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:organization :from:from:date:date:message-id:received:received; s=mail; t= 1300501485; x=1302315885; bh=XVkiuF1OKmrMw15MiCBf8GXHuclntYWaePx g7itqJaM=; b=BjtzXKgX+e+f/rg43vF1KhiFkL9vbohSwhqOdeSYD7TtG1OijBP M470E4RokdkkeSipyadFec+EVcS1eADpscLuxdwn3dMhjYzij6J7H+KAvzDg3/Ms 7xae/YaZpM9m4eM9FZT+Yn6JJAaoi28IE6S3GlnngFQutA0kJ90FWdqQ= X-Virus-Scanned: amavisd-new at kominik.net Received: from kominik.net ([127.0.0.1]) by localhost (vishnu.kominik.net [127.0.0.1]) (amavisd-new, port 10026) with LMTP id 4TzzFStIG5z0 for ; Fri, 18 Mar 2011 22:24:45 -0400 (EDT) Received: from durga.kominik.net (durga.kominik.net [IPv6:2001:470:1f07:db0:224:1dff:fed7:24be]) by kominik.net (Postfix) with ESMTPSA id 389F59ECB6 for ; Fri, 18 Mar 2011 22:24:45 -0400 (EDT) Message-ID: <4D8413EB.2040903@kominik.net> Date: Fri, 18 Mar 2011 22:24:43 -0400 From: Barry Kominik Organization: Kominik.Net User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110307 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103180854.03062.hselasky@c2i.net> <60BF8D78-783F-4A63-92DA-899BE2E62CF7@kominik.net> <201103181336.08086.hselasky@c2i.net> In-Reply-To: <201103181336.08086.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2011 02:24:48 -0000 On 03/18/2011 08:36, Hans Petter Selasky wrote: > On Friday 18 March 2011 13:16:45 Barry Kominik wrote: >> On Mar 18, 2011, at 3:54 AM, Hans Petter Selasky wrote: >>>> Hi, >>>> the usbconfig reset fixes the issue. Is there a way I can make this >>>> happen on boot? >>>> >>>> #ps auxw|grep -i moused >>>> root 2743 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep >>>> -i moused >>>> #usbconfig -d 4.2 reset >>>> #ps auxw|grep -i moused >>>> root 2843 0.6 0.0 8072 1076 ?? Ss 9:10PM 0:00.13 >>>> /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pi >>>> root 2895 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep >>>> -i moused >>> Do you have moused_enable="YES" in your /etc/rc.conf >> Yes.. >> >>> The moused should be started by devd. Could you dump the descriptors >>> using commands "dump_curr_config_desc dump_device_desc" before the >>> device is reset? >>> >>> Try to run: >>> >>> /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid >>> >>> Before device reset. Maybe there is an error code. >>> >>> --HPS > The USB descriptors look OK. > > Try to add: > > hw.usb.ums.debug="15" > > Into the end of /boot/loader.conf > > Also try: > > hw.usb.ugen.debug="15" > > Then reboot and send any errors you see in dmesg. > > Try: > > Edit /etc/rc.d/moused: > > Add "sleep 1" in the moused_start() function. Maybe your system is too quick > to search for the character device? > > --HPS Hi, I solved the issue. There were no errors. I set moused_port="/dev/ums0" in rc.conf. Sorry for the noise. This is my first PC-BSD install, I do not recall being asked if I was using a usb mouse. I am coming from and OpenBSD and OpenSolaris background and didn't grok /etc/default/rc.conf. Once I looked inside it was obvious what to do. I do appreciate your attention and support, Barry From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 03:45:03 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 875921065678 for ; Sat, 19 Mar 2011 03:45:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 3AE5E8FC0A for ; Sat, 19 Mar 2011 03:45:03 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p2J3j2Gb044178; Fri, 18 Mar 2011 21:45:02 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p2J3j14Y044175; Fri, 18 Mar 2011 21:45:02 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 18 Mar 2011 21:45:01 -0600 (MDT) From: Warren Block To: Barry Kominik In-Reply-To: <4D8413EB.2040903@kominik.net> Message-ID: References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103180854.03062.hselasky@c2i.net> <60BF8D78-783F-4A63-92DA-899BE2E62CF7@kominik.net> <201103181336.08086.hselasky@c2i.net> <4D8413EB.2040903@kominik.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Fri, 18 Mar 2011 21:45:02 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2011 03:45:03 -0000 On Fri, 18 Mar 2011, Barry Kominik wrote: > I solved the issue. There were no errors. I set moused_port="/dev/ums0" in > rc.conf. Sorry for the noise. This is my first PC-BSD install, I do not > recall being asked if I was using a usb mouse. I am coming from and OpenBSD > and OpenSolaris background and didn't grok /etc/default/rc.conf. Once I > looked inside it was obvious what to do. Thinking about it, it really doesn't seem that obvious. The Handbook kind of skips over it instead of saying "If you have a USB mouse, it will be detected and moused started automatically." From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 05:00:24 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1CFC106567C for ; Sat, 19 Mar 2011 05:00:24 +0000 (UTC) (envelope-from erichfreebsdlist@ovitrap.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.226.44]) by mx1.freebsd.org (Postfix) with ESMTP id 976898FC08 for ; Sat, 19 Mar 2011 05:00:15 +0000 (UTC) Received: from amd620.ovitrap.com ([49.128.188.2]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id p2J4lv8p015580; Fri, 18 Mar 2011 22:48:00 -0600 From: Erich Dollansky To: freebsd-usb@freebsd.org Date: Sat, 19 Mar 2011 11:48:01 +0700 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.5.4; amd64; ; ) References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <4D8413EB.2040903@kominik.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103191148.02048.erichfreebsdlist@ovitrap.com> Cc: Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2011 05:00:25 -0000 Hi, On Saturday 19 March 2011 10:45:01 Warren Block wrote: > On Fri, 18 Mar 2011, Barry Kominik wrote: > > > I solved the issue. There were no errors. I set moused_port="/dev/ums0" in > > rc.conf. Sorry for the noise. This is my first PC-BSD install, I do not > > recall being asked if I was using a usb mouse. I am coming from and OpenBSD > > and OpenSolaris background and didn't grok /etc/default/rc.conf. Once I > > looked inside it was obvious what to do. > > Thinking about it, it really doesn't seem that obvious. The Handbook > kind of skips over it instead of saying "If you have a USB mouse, it > will be detected and moused started automatically." not really. At least not at my machine. If I do not have a moused_enable="NO" in my rc.conf, I do not get X to work later. But I still have the mouse available. Enabling moused in rc.conf leads to a frozen mouse on at least two of my machines. Erich From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 18:05:54 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBB8F106564A for ; Sat, 19 Mar 2011 18:05:53 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 90B218FC08 for ; Sat, 19 Mar 2011 18:05:53 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p2JI5qDp046814; Sat, 19 Mar 2011 12:05:52 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p2JI5qoQ046811; Sat, 19 Mar 2011 12:05:52 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 19 Mar 2011 12:05:52 -0600 (MDT) From: Warren Block To: Erich Dollansky In-Reply-To: <201103191148.02048.erichfreebsdlist@ovitrap.com> Message-ID: References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <4D8413EB.2040903@kominik.net> <201103191148.02048.erichfreebsdlist@ovitrap.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Sat, 19 Mar 2011 12:05:52 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: USB Mouse - only works after being replugged in X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2011 18:05:54 -0000 On Sat, 19 Mar 2011, Erich Dollansky wrote: > Hi, > > On Saturday 19 March 2011 10:45:01 Warren Block wrote: >> On Fri, 18 Mar 2011, Barry Kominik wrote: >> >>> I solved the issue. There were no errors. I set moused_port="/dev/ums0" in >>> rc.conf. Sorry for the noise. This is my first PC-BSD install, I do not >>> recall being asked if I was using a usb mouse. I am coming from and OpenBSD >>> and OpenSolaris background and didn't grok /etc/default/rc.conf. Once I >>> looked inside it was obvious what to do. >> >> Thinking about it, it really doesn't seem that obvious. The Handbook >> kind of skips over it instead of saying "If you have a USB mouse, it >> will be detected and moused started automatically." > > not really. At least not at my machine. If I do not have a > > moused_enable="NO" > > in my rc.conf, I do not get X to work later. But I still have the mouse available. Enabling moused in rc.conf leads to a frozen mouse on at least two of my machines. USB mice cause moused to run even with moused_enable="NO" (the default), because moused_nondefault_enable="YES" is in /etc/defaults/rc.conf. With the default settings, a USB mouse should provide a mouse pointer in the console. It should still work with moused_enable="YES". In xorg, there are other things that can come into play, including xorg.conf settings like InputDevice sections, mouse device and protocol, AllowEmptyInput (which should be avoided), AutoAddDevices which can be used to disable hal device hotplugging, whether hal is running, and whether xorg-server was built with or without hal support. Probably others.