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?