From owner-freebsd-usb@FreeBSD.ORG Thu Jan 3 20:03:27 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CA676B6 for ; Thu, 3 Jan 2013 20:03:27 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 609A8F7F for ; Thu, 3 Jan 2013 20:03:26 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 364994727; Thu, 03 Jan 2013 21:03:18 +0100 From: Hans Petter Selasky To: Lowell Gilbert Subject: Re: Android device problems with MTP ID Date: Thu, 3 Jan 2013 21:04:54 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <44d2xmrrfp.fsf@lowell-desk.lan> <201301032039.16448.hselasky@c2i.net> <448v8arqco.fsf@lowell-desk.lan> In-Reply-To: <448v8arqco.fsf@lowell-desk.lan> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 20:03:27 -0000 On Thursday 03 January 2013 20:58:15 Lowell Gilbert wrote: > Hans Petter Selasky writes: > > On Thursday 03 January 2013 20:34:50 Lowell Gilbert wrote: > >> On my (updated to Android 4.1.1) phone, MTP only works if the phone's > >> USB debugging option is enabled. If it is, usbconfig(8) sees a ugen(4) > >> interface of MTP type; but otherwise it just shows up as a CD device. > > > > Try to use cdcontrol to eject the CD. > > Thanks! That works! [And I can see the logic behind it, even, from a > firmware point of view.] > > I should be able to automate the eject command through devd, I think. > It would be nice to put something in the tree that would do that, but > being sure not to catch cases you'd want such a feature would be > error-prone. > > I'll move forward on making MTP more convenient on FreeBSD. A lot of > devices are starting to force it on us, and it keeps the device usable > while the computer is accessing its files. > > Thanks again! > > Be well. > Lowell There might be a quirk for that. See usbconfig, and send a patch for that if you figure it out :-) --HPS