Comment 21 for bug 992639

Revision history for this message
Josua Dietze (digidietze) wrote : Re: Regression: 12.04 update breaks support for Internet Sticks (3G modems): Nokia CS-15, Nokia cs-17 and perhaps many others

It would be good to know what the default 'delay_use' is on 12.04 and what it was on *previous* Ubuntu versions.

Originally, this was set to 5 seconds in the storage driver, with SCSI hard disks in mind. This may have been changed in the kernel as the main users of the driver nowadays are flash drives.
There may be modems around that need to be ready for use before the "eject" command (no matter if coming from usb_modeswitch or from the command line tool) can actually trigger the mode switch. Others are less critical in that respect.

Owners of this device:
Can you play around with the storage module option, from delay_use=1 to delay_use=5 ?

There is a small delay implemented in the usb_modeswitch wrapper which could be skipped. There is also a config option "WaitBefore=<seconds>" that can be set per device config.

So a longer delay of usb_modeswitch's actions will *not* be a problem if that helps. On the other hand, removing any delay will gain just half a second and probably break other devices.

In a nutshell:
If the default delay_use is too *short* for the Nokia devices, there is very little (500 ms) that can be done.
If the default delay_use is too *long*, just play around with the "WaitBefore" value.

Josh