On Sat, Apr 23, 2011 at 12:41 PM, Camaleón <noela...@gmail.com> wrote: > On Sat, 23 Apr 2011 18:15:53 +0200, Hans-J. Ullrich wrote: > >> is there a way, to unplug a device by software or a command? I wanna >> unplug and plugin a device (it is a built in modem), if it crashes. At >> the moment, i have to reboot, each time it hangs. > > I dunno if an internal/embedded modem can be unpluggled without power > cycling the machine but if the modem gets "stuck" you can try to > "initilize" the device by using minicom settings or just sending the > "ATZ" string to the modem ("echo ATZ > /dev/modem" or "echo ATZ > /dev/ > ttyxx"). >
i remember some instances where the modem would freeze so that an atz wouldn't work on it. this is why i used to always buy external modems. if it's isa, you might have more luck getting low level access to it. either way, the best thing i can recommend is to unload and load the module. this should work. it is also possible if there was something dangerous (but sometimes worked) the author of the module might not have included it in the module but may have documented the functionality in there. the other idea would be to hibernate to disk (which pretty much shuts the machine down but saves the state). my suggestion, buy an external modem. i have no idea how much they cost, but i couldn't immagine them costing more than $15. also, external modems are smarter because if there is a surge, your computer is less likely to fry. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/banlktim0rmyzmgfych_bo3goxzcf7-h...@mail.gmail.com