udev usb0 control
OK, the only way I've been able to find to automatically bring usb0 up and down with USB insertion, WHILE IN DEVICE MODE, is to trigger off subsystem==power_supply. (with frameworkd, will be able to trigger via dbus signal /org/freesmartphone/Device/Input (dbus.String(u'USB'), dbus.String(u'released') - but will just udev method work for all current FR images?) It seems that udev doesn't register a subsystem net event for unplug when the FR is in device mode. Does anyone have a better idea? I've got it bringing usb0 down on unplug, and on plug-in it tries to bring usb0 back up, waits 5 secs, sees if the peer is reachable, and brings usb0 back down if not. Sub-optimal, IMHO, but it's working. j ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev usb0 control
Joel Newkirk [EMAIL PROTECTED] writes: Does anyone have a better idea? ethernet link should be a better idea. -- Guillaume Pinot http://www.irccyn.ec-nantes.fr/~pinot/ ``Computers are good at following instructions, but not at reading your mind.'' -- Donald E. Knuth, the TeXbook () ASCII ribbon campaign -- Against HTML e-mail /\ http://www.asciiribbon.org -- Against proprietary attachments ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev usb0 control
I'm sorry, I don't follow. Sensing ethernet/RNDIS link /should/ be a better idea, but doesn't work AFAICS with g_ether. The question is if someone knows of a better way to detect that the USB plug has been inserted/removed: when in USB device mode (standard state for Freerunner, at least under 2007.x/2008.x/FDOM/Raster/FSO) udev appears unable to sense the loss of link on usb0, so we need a reliable means of automatically bringing up/down usb0 when plugged/unplugged. j On 18 Oct 2008 14:59:03 +0200, TeXitoi [EMAIL PROTECTED] wrote: Joel Newkirk [EMAIL PROTECTED] writes: Does anyone have a better idea? ethernet link should be a better idea. -- Guillaume Pinot http://www.irccyn.ec-nantes.fr/~pinot/ ``Computers are good at following instructions, but not at reading your mind.'' -- Donald E. Knuth, the TeXbook () ASCII ribbon campaign -- Against HTML e-mail /\ http://www.asciiribbon.org -- Against proprietary attachments ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community