[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

eject modem



Hi all,

I have a sagem fast 800 (ueagle-atm) module on my gateway. I have difficulties to synchronize because i'm far (very far) from the dslam. So, when it loses synchronisation, the modem can take hours before re-sync. Sometimes, it can't sync and I get error messages like these ones :

Oct 6 11:49:20 localhost kernel: ATM dev 0: usbatm_complete: urb 0xcb2f2cc0 failed (-71)! Oct 6 11:49:20 localhost kernel: usb 1-1: [UEAGLE-ATM] uea_intr() failed with -84 Oct 6 11:49:20 localhost kernel: ATM dev 0: usbatm_complete: urb 0xcb2f2ac0 failed (-71)! Oct 6 11:49:20 localhost kernel: usb 1-1: [UEAGLE-ATM] sending DSP block 0 failed Oct 6 11:49:20 localhost kernel: ATM dev 0: usbatm_complete: urb 0xc5a03a60 failed (-71)! Oct 6 11:49:20 localhost kernel: ATM dev 0: usbatm_complete: urb 0xcc8fd740 failed (-71)!
Oct  6 11:49:20 localhost kernel: usb 1-1: USB disconnect, address 96
Oct 6 11:49:20 localhost kernel: ATM dev 0: usbatm_submit_urb: urb 0xcb199e80 submission failed (-19)! Oct 6 11:49:20 localhost kernel: ATM dev 0: usbatm_submit_urb: urb 0xcb199e80 submission failed (-19)! Oct 6 11:49:24 localhost kernel: usb 1-1: [UEAGLE-ATM] usb_control_msg error -19
Oct  6 11:49:24 localhost kernel: usb 1-1: [ueagle-atm] ADSL device removed

At this moment, I must unplug the modem, wait 5 to 10 seconds and re-plug it.



I would like to be able to eject with a script the modem. So, i will scan every minute my syslog and when it found an error, the script will be launch.

I have tried a script months ago that unload the module (and the usb module) but it doesn't work, it seems it doesn't find a new hardware (no new usb event on syslog).

Is there a way to eject the hardware (via udev or anything else) ?

Thanks in advance,
Christophe


Reply to: