From owner-freebsd-questions@FreeBSD.ORG Wed Oct 18 06:09:01 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BD0E16A412 for ; Wed, 18 Oct 2006 06:09:01 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7846643D53 for ; Wed, 18 Oct 2006 06:09:00 +0000 (GMT) (envelope-from amistry@am-productions.biz) Received: from [192.168.1.100] (cpe-24-210-75-119.columbus.res.rr.com [24.210.75.119]) (authenticated bits=0) by mail.united-ware.com (8.13.6/8.13.6) with ESMTP id k9I6PMPv058022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Oct 2006 02:25:30 -0400 (EDT) (envelope-from amistry@am-productions.biz) From: Anish Mistry Organization: AM Productions To: freebsd-questions@freebsd.org Date: Wed, 18 Oct 2006 02:08:45 -0400 User-Agent: KMail/1.9.1 References: <200610171801.44321.amistry@am-productions.biz> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1319672.9Zhb6XETQf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200610180209.00047.amistry@am-productions.biz> X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_50,J_CHICKENPOX_55, MYFREEBSD2,RCVD_IN_NJABL_DUL,SPF_SOFTFAIL autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88.4/2040/Tue Oct 17 13:34:55 2006 on mail.united-ware.com X-Virus-Status: Clean Cc: Jonathan Arnold Subject: Re: Problems with USB Palm sync X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2006 06:09:01 -0000 --nextPart1319672.9Zhb6XETQf Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 17 October 2006 23:22, Jonathan Arnold wrote: > Anish Mistry wrote: > > On Tuesday 17 October 2006 16:29, Jonathan Arnold wrote: > >> Has anyone had any luck using pilot-link to sync JPilot to a > >> Palm device via the USB? I'm trying to sync my Handspring Visor > >> and it just doesn't seem to be noticing it. I have the following > >> in my /dev/usbd.conf file: > > > > First you shouldn't be using usbd.conf. You should be using > > devd.conf and devfs.rules. > > > > Disable usbd. > > > > Add to devd.conf: > > attach 0 { > > device-name "ugen[0-9]+"; > > match "vendor" "0x082d"; > > match "product" "0x0100"; > > match "release" "0x0100"; > > action "/usr/local/sbin/pilot-sync-ugen.sh $device-name"; > > }; > > > > Setup devfs.rules if you have yet to do it: > > http://am-productions.biz/docs/devfs.rules.php > > > > Add your user to the operator group or change the mode to 0666 > > below. Add to devfs.rules: > > add path 'ugen*' group operator > > add path 'ugen*' mode 0660 > > > > In /usr/local/sbin/pilot-sync-ugen.sh: > > #!/bin/sh > > # > > JPILOT=3D/usr/X11R6/bin/jpilot-sync > > JPILOT_USER=3Dyour_username_here > > export JPILOT_HOME=3D/home/$JPILOT_USER > > PILOTPORT=3Dusb:/dev/$1 > > COMMAND=3D`echo $JPILOT -p $PILOTPORT -b` > > # run command ie. (sync) > > /usr/bin/su $JPILOT_USER -c "$COMMAND" > > Thanks, this seems to work a little better. Now, when I hit the > Hot Sync button on the cradle, I get the feedback that there's a > connection and it says "Identifying user" on the Visor, but it just > hangs there and eventually gives up. If I comment out the action > and try it from the commandline, pilot-xfer says " Listening for > incoming connection on usb:/dev/ugen0... ". It seems to me that > both are waiting for the other to initiate something. ugen0 doesn't > get created until I hit the HotSync button, but the pilot-link > stuff seems to be waiting for that to happen again? You'll need to install the user: # install pilot-link username COMMAND=3D`echo /usr/local/bin/install-user -p $PILOTPORT -u=20 $JPILOT_USER -i 1001` =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart1319672.9Zhb6XETQf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBFNcT8xqA5ziudZT0RAkuGAKCwuE6+2atJuwaVv9Q5vGAXB8gcUACgxQN0 G/hgcPQcyKodG3Z7z9cSpIg= =oePf -----END PGP SIGNATURE----- --nextPart1319672.9Zhb6XETQf--