Ubuntu – Bash: echo: write error: Invalid argument

echo

I am trying to setup a USB dongle on my device by following the post here. I wasn't successful in setting it up and while tracing my steps discovered that

echo "1c9e:9ba1" > /sys/bus/usb-serial/drivers/generic/new_id

was resulting in an error. I ran this statement from the terminal and got the following response

bash: echo: write error: Invalid argument

according to the post here it means that the device doesn't implement a WRITE method.

Wondering if there is a way to get the echo command to work so that I can get my USB modem working.

Best Answer

What happened when you remove the ":" as appear in the link you provided?

Original Answer:

echo 1c9e 6061 > /sys/bus/usb-serial/drivers/option1/new_id

Your case:

Instead of:

echo "1c9e:9ba1" > /sys/bus/usb-serial/drivers/generic/new_id

Try running:

echo "1c9e 9ba1" > /sys/bus/usb-serial/drivers/generic/new_id
Related Question