This is the source repository for usb_moded. This is a daemon which can hanlde setting different usb profiles with gadget drivers. It can start extra services needed through dbus, upstart or systemd. Moreover it can configure networking and USB tethering. Detailed information and documentation is in the docs folder.
I have noticed this while testing the latest changes for USB Switch:
After switching from developer_mode to another mode and then back to developer_mode, I can no longer connect to the device, neither via SSH nor to deploy an RPM package from the SailfishOS IDE. I need to replug the USB connector to be able to connect again. This happens with dbus-send as well as with usb_moded_util.
Is there something I can/should do to "clean up" when switching away from developer_mode?
Steps to reproduce:
Connect USB to device, choose "PC Suite"
Switch mode: usb_moded_util -s developer_mode
Try to SSH-connect to device -> works as expected
Switch mode: usb_moded_util -s pc_suite
Switch back: usb_moded_util -s developer_mode
Try to SSH-connect to device -> Connection refused
The result is the same when step 3 is omitted. Same goes for intially choosing "Developer Mode" in the SailfishOS UI and then proceeding with step 4.
Environment:
SailfishOS 1.1.1.27 (Vaarainjärvi) on Jolla
USB moded 0.80.7 with usb-moded-connection-sharing-android-config installed