I have a 4G module that requires me to run

echo '03f0 581d' > /sys/bus/usb-serial/drivers/generic/new_id

after every startup/resume to make the modem visible. How should I make this automatic?

  • Add the VID&PID to usb-serial sources and recompile
  • Create script that run on startup/resume that adds them dynamically
  • Some sort of udev rule?

What would be the best approach. I think the udev approach sounds the most reasonable. I assume that would work over suspend/resume too?

The modem is a HP lt4112 LTE/HSPA+ Gobi 4G Modem (Huawei ME906E).

Bonus question: Why does the command need to be re-run after a suspend/resume cycle. Does the kernel module get unloaded or somehow reset when the laptop gets suspended to RAM?

  • @don_crissti I've thought the primary function of usb_modeswitch was to send some kind of payloads to the device to for example switch from storage mode to serial mode. I guess it might handle attaching right modules as well – varesa Nov 7 '15 at 5:04
  • @don_crissti Done. – varesa Nov 8 '15 at 7:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.