Skip to content

wabwino/dymodes

Repository files navigation

dymodes - dynamic [usb] mode switch

Sometimes a USB modem isn't recognized by a Linux machine because it is in storage-mode, not modem-mode. Installing USB_ModeSwitch usually solves the issue, but sometimes, USB_ModeSwitch doesn't know the right mode-switching command for a given modem. And that's where dymodes comes in: it tries to dynamically find the command.

usage

Plug a modem into your machine and run the program. It will ask for a device to work on, then it will get to work. The process should take a few seconds.

sudo ./dymodes

The preferred way to run dymodes though is to pass it an --edit-rules argument, which instructs dymodes to edit USB_ModeSwitch rules (and to create a custom config for the modem) so that switching for that modem must henceforth be automatic. Otherwise, you'll have to rerun dymodes every time you plug that modem in.

sudo ./dymodes --edit-rules

When --edit-rules is given, dymodes backs up the original rules file in '~/.dymodes/'.

NOTE: Plug in only one modem when running dymodes.

requirements

  • Python >= 3.6
  • USB_ModeSwitch