Sample Header Ad - 728x90

How to automatically load a new VID&PID to module usb_serial

3 votes
1 answer
2408 views
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?
Asked by varesa (2446 rep)
Nov 6, 2015, 07:48 PM
Last activity: May 25, 2020, 10:33 AM