Hi David, If you are using VirtualBox then maybe this http://ubuntuforums.org/showthread.php?t=1290339 will help you. and further in case this solves the problem ;next time ask google before asking here :-). On Thu, Jan 7, 2010 at 3:38 AM, David Harel <hareldvd@xxxxxxxxx> wrote: > > > sachin shinde wrote: > > abt >>> "After disconnect I can no longer use this method to connect > my phone and > > > I have to reboot before I can reconnect the phone." > > > (this is my first reply so go easy guys). > My first guess is /dev/usb/ttyACM0 is still open (i mean fd is stiil > open so i thinks its deadlock) but i am not sure myself its just > guess. > > > I am afraid some things are hidden here (my lame excuse for not > finding/understanding stuff) > After I connect the device to USB I can see the file /dev/ttyACM0 but it is > not used by anyone. > > # fuser /dev/ttyACM0 > # #nothing here. > > in the moto4lin window I get this: > [info] Phone is unpluged. Please connect it > [info] Phone pluged as AT > > and in /proc I can not see the file yet: > # ls -l /proc/`pgrep moto4lin`/fd > total 0 > lrwx------ 1 root root 64 2010-01-06 23:42 0 -> /dev/pts/1 > lrwx------ 1 root root 64 2010-01-06 23:42 1 -> /dev/pts/1 > lrwx------ 1 root root 64 2010-01-06 23:42 2 -> /dev/pts/1 > lr-x------ 1 root root 64 2010-01-06 23:42 3 -> socket:[325341] > lr-x------ 1 root root 64 2010-01-06 23:44 4 -> pipe:[325432] > l-wx------ 1 root root 64 2010-01-06 23:44 5 -> pipe:[325432] > > > After I hit the connect button I get on moto4lin this: > Try to connect > [info] AT phone found > [info] Switching device /dev/ttyACM0 to P2K mode... > [info] AT E0 answer: AT E0 OK > [info] Phone answer: OK > [info] Phone pluged as P2K > [info] Phone connected as P2K > > but the file /dev/ttyACM0 disappears: > # ls -l /dev/ttyACM0 > ls: cannot access /dev/ttyACM0: No such file or directory > > And in /proc I can see: > # ls -l /proc/`pgrep moto4lin`/fd > total 0 > lrwx------ 1 root root 64 2010-01-06 23:42 0 -> /dev/pts/1 > lrwx------ 1 root root 64 2010-01-06 23:42 1 -> /dev/pts/1 > lrwx------ 1 root root 64 2010-01-06 23:42 2 -> /dev/pts/1 > lr-x------ 1 root root 64 2010-01-06 23:42 3 -> socket:[325341] > lr-x------ 1 root root 64 2010-01-06 23:44 4 -> pipe:[325432] > l-wx------ 1 root root 64 2010-01-06 23:44 5 -> pipe:[325432] > lrwx------ 1 root root 64 2010-01-06 23:46 6 -> /dev/bus/usb/001/006 > > > After I disconnect I get (I guess a positive responce): > Try to disconnect > [info] Phone disconnected > > but the file is not there yet: > # ls -l /dev/ttyACM0 > ls: cannot access /dev/ttyACM0: No such file or directory > > but in /proc the device is not opened anymore: > # ls -l /proc/`pgrep moto4lin`/fd > total 0 > lrwx------ 1 root root 64 2010-01-06 23:42 0 -> /dev/pts/1 > lrwx------ 1 root root 64 2010-01-06 23:42 1 -> /dev/pts/1 > lrwx------ 1 root root 64 2010-01-06 23:42 2 -> /dev/pts/1 > lr-x------ 1 root root 64 2010-01-06 23:42 3 -> socket:[325341] > lr-x------ 1 root root 64 2010-01-06 23:44 4 -> pipe:[325432] > l-wx------ 1 root root 64 2010-01-06 23:44 5 -> pipe:[325432] > > unplugging the phone gives me a positive message in moto4lin but nothing is > changed on either /proc or /dev regarding the device. > I also tried to find the opened file I had in /proc: > # ls -l /dev/bus/usb/001/006 > ls: cannot access /dev/bus/usb/001/006: No such file or directory > > The device can no longer be used until I reboot. > > I am really interested in understanding this one so if you feel like trying > more tests I am willing to take this machine apart. > > Thanks for your reply. > > On Mon, Jan 4, 2010 at 2:14 AM, David Harel <hareldvd@xxxxxxxxx> wrote: > > > Sorry for the long delay (who connects his phone that often?). > > Charlie Brady wrote: > > > > On Sun, 15 Nov 2009, David Harel wrote: > > > > Greetings, > > I use Linux Ubuntu Jaunty 9.04 kernel 2.6.28-16-generic to connect my > Motorola phones. > I have to do that while logged in as root and it connects nicely using > AT over ttyACM > /dev/usb/ttyACM0 > After disconnect I can no longer use this method to connect my phone and > I have to reboot before I can reconnect the phone. > > > Nobody is likely to be able to help you unless you provide more detail. > Why can you "no longer use this method"? What happens when you try? Why do > you have to reboot? What other recovery techniques (short of rebooting) have > you tried? > > > It simply hangs on next connect attempts. I don't remember finding anything > funny on the log or dmesg. I will be happy to assist. Just give me what you > want me to check. > > > > > I tried it also on my Gentoo installation (currently kernel > 2.6.27-gentoo-r8 and also tried it with two different Motorola phones. > I have this problem for more than a year (obviously it is not something I > do very often) and I have been waiting patiently hoping (it sure looks like) > a kernel upgrade would resolve this problem. > > > If it is not a kernel problem then you will be waiting forever. > > > > If connection fails with a different phone and a new process and it is not > kernel/driver than I don't know what it is. I would assume that a device > would become ready once a new process and new HW gets connected to it. But > that's me. > > -- > Regards. > > David Harel, > > ================================== > > Home office +972 77 7657645 > Cellular: +972 54 4534502 > Snail Mail: Amuka > D.N Merom Hagalil > 13802 > Israel > Email: hareldvd@xxxxxxxxxxxxxxxx > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-net" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > > > -- > Regards. > > David Harel, > > ================================== > > Home office +972 77 7657645 > Cellular: +972 54 4534502 > Snail Mail: Amuka > D.N Merom Hagalil > 13802 > Israel > Email: hareldvd@xxxxxxxxxxxxxxxx > > -- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html