udev usb0 control

2008-10-18 Thread Joel Newkirk
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'),

Re: udev usb0 control

2008-10-18 Thread TeXitoi
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

Re: udev usb0 control

2008-10-18 Thread Joel Newkirk
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