From owner-freebsd-usb@FreeBSD.ORG Thu Jan 3 19:58:23 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 1A1AED3A for ; Thu, 3 Jan 2013 19:58:23 +0000 (UTC) (envelope-from Lowell@Be-Well.Ilk.Org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id E6909F20 for ; Thu, 3 Jan 2013 19:58:22 +0000 (UTC) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.52]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 09C08A71C24 for ; Thu, 3 Jan 2013 14:58:21 -0500 (EST) Received: (qmail 14060 invoked from network); 3 Jan 2013 19:58:21 -0000 Received: by simscan 1.4.0 ppid: 29059, pid: 29249, t: 0.1662s scanners: clamav: 0.88.2/m:52/d:13513 Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 3 Jan 2013 19:58:21 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 8E82933C32; Thu, 3 Jan 2013 14:58:15 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 688BB39855; Thu, 3 Jan 2013 14:58:15 -0500 (EST) From: Lowell Gilbert To: Hans Petter Selasky Subject: Re: Android device problems with MTP ID References: <44d2xmrrfp.fsf@lowell-desk.lan> <201301032039.16448.hselasky@c2i.net> Date: Thu, 03 Jan 2013 14:58:15 -0500 In-Reply-To: <201301032039.16448.hselasky@c2i.net> (Hans Petter Selasky's message of "Thu, 3 Jan 2013 20:39:16 +0100") Message-ID: <448v8arqco.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain 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 19:58:23 -0000 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 -- http://be-well.ilk.org/~lowell/