bash: echo: write error: Invalid argument

11,937

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
Share:
11,937

Related videos on Youtube

sridhar pandurangiah
Author by

sridhar pandurangiah

avid blogger, Bibliophile, change agent, computer software architect, designer, entrepreneur, foodie, idea generator, investor, project director, usability design enthusiast

Updated on September 18, 2022

Comments

  • sridhar pandurangiah
    sridhar pandurangiah over 1 year

    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.

  • sridhar pandurangiah
    sridhar pandurangiah about 7 years
    Removing the colon writes to the new_id file.
  • sridhar pandurangiah
    sridhar pandurangiah about 7 years
    After reboot the usb-serial/drivers/generic/new_id has disappeared. Funny
  • Yaron
    Yaron about 7 years
    Did you create all scripts mentioned in the answer? I think that during boot, the scripts should create/configure the device.
  • sridhar pandurangiah
    sridhar pandurangiah about 7 years
    I did create all the scripts. Flummoxed how the directories just disappeared.