Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having a terribly hard time getting this program to work. I've installed moto4lin, and it detects when my phone is plugged in as well as when I unplug it, however it will not connect to my phone in. I've been told I also need to install p2ktest, but for some reason when I try to run it, p2ktest tells me:
p2ktest: error while loading shared libraries: libp2kmoto.0: cannot open shared object file: No such file or directory
All I'm trying to do is edit ringtones and download my pictures. Any help at all would be appreciated. Thanks!
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
The device may be wrong, for me the device really is /dev/ttyACM0 maybe this is the problem?
Jan 23 15:22:14 Aspire5000 kernel: cdc_acm 3-3:1.0: ttyACM0: USB ACM device
Jan 23 15:22:14 Aspire5000 kernel: usbcore: registered new interface driver cdc_acm
Jan 23 15:22:14 Aspire5000 kernel: drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
Would that cause p2ktest to fail with that error message? If so, how do I check? At the risk of sounding like a total noob, what exactly is all this:
Jan 23 15:22:14 Aspire5000 kernel: cdc_acm 3-3:1.0: ttyACM0: USB ACM device
Jan 23 15:22:14 Aspire5000 kernel: usbcore: registered new interface driver cdc_acm
Jan 23 15:22:14 Aspire5000 kernel: drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
This is the output from my /var/log/messages file;
Code:
Jan 23 15:22:14 Aspire5000 kernel: cdc_acm 3-3:1.0: ttyACM0: USB ACM device
Jan 23 15:22:14 Aspire5000 kernel: usbcore: registered new interface driver cdc_acm
Jan 23 15:22:14 Aspire5000 kernel: drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
The first line shows that when I attached the cellphone via the USB interface it was recognized as device ttyACM0 (/dev/ttyACM0). You should also see something like this after attaching your cellphone. If not then your missing something, maybe the cdc-acm.ko kernel module. Plug the phone in and take a look at your messages file (as root or equivalent);
Jan 25 19:08:26 marctop kernel: usb 2-1: new full speed USB device using uhci_hcd and address 4
Jan 25 19:08:26 marctop kernel: usb 2-1: new device found, idVendor=22b8, idProduct=4902
Jan 25 19:08:26 marctop kernel: usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=0
Jan 25 19:08:26 marctop kernel: usb 2-1: Product: Motorola Phone (V3/P)
Jan 25 19:08:26 marctop kernel: usb 2-1: Manufacturer: Motorola Inc.
Jan 25 19:08:26 marctop kernel: usb 2-1: configuration #1 chosen from 2 choices
Jan 25 19:08:27 marctop kernel: cdc_acm 2-1:1.0: ttyACM0: USB ACM device
I noticed it's not exactly the same as yours, but certain aspects are the same... I have my device set to ttyACM0 in moto4lin, but it still fails. p2ktest still gives me the same error as well.
Last edited by mastersword; 01-25-2007 at 06:15 PM.
well now instead of being ACM it should be hcd like the good logfile says i think. i don't know that much about moto4lin, because when i attach my phone i just plug back in my windows hard drive (eliminates complication) but i can read logfiles.
Ok, I see the area in the log file you're refering to. What does that mean for me? Should I switch the device to /dev/uhci_hcd?
Also, after checking out that link from Lenard, is it possible to have my phone connect like that? It seems for some reason his is comming up like a scsi hard drive, whereas mine does not. Here is the relevant output from dmesg:
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: new device found, idVendor=22b8, idProduct=4902
usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: Motorola Phone (V3/P)
usb 2-1: Manufacturer: Motorola Inc.
usb 2-1: configuration #1 chosen from 2 choices
cdc_acm 2-1:1.0: ttyACM0: USB ACM device
usbcore: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
Thanks!
Last edited by mastersword; 01-28-2007 at 09:42 PM.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Looks like it is /dev/ttyACM0 just like on my system.
Try starting moto4lin choose Preferences set the ACM device to /dev/yytACM0, switch to PKmode and select your cell phone (USB View), which is what I had to do the first time.
Gave it a try, I still get the "[error] Unable to connect" message. I still don't understand why p2ktest is giving me errors when I run it from console t though... Wouldn't that be part of this problem potentially?
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Hmmm........ what I see when using moto4lin starting from a xterm session (as root);
# moto4lin
Form1
PhoneMan
New mode: 1
New mode: 0
New mode: 2
doActConnect
doActConnect
P2kProc::doConnect()
doActConnect
Filelist received: 487
The two lines "New mode 1" and "New mode 0" are AT devices which are not good for me. The "New mode 2'" line is when I press the "Switch to P2K" button in Preferences. The next four lines are what happens when I click on the Connect/Disconnect button (main moto4lin menu). The last line "Filelist recieved: 487" is what happens when I press the "Update List" button.
I have no pk2test installed(I'm 64-bit and this does not build correctly), but after switching to PK my device ID's are; idVendor=22b8, idProduct=4901
I'm unable to get the "New Mode 2" status, here is what I get:
# moto4lin
Form1
PhoneMan
New mode: 1
New mode: 0
New mode: 1
doActConnect
doActConnect
P2kProc::doConnect()
It switched to New Mode : 0 when I hit "swtich to p2k." Afterwards, I hit "Connect/Disconnect" and got the last three lines. Moto4lin then gave me an unable to connect error.
I get identical IDs to you for my phone.
I'll take a look at CVS version, and post my results.
Last edited by mastersword; 01-30-2007 at 11:50 AM.
Ok, I've managed to get my phone detected as P2k by changing the AT values to something incorrect. Now, I actually get a "New Mode: 2" message, but my phone still won't connect. Here's my moto4lin output:
# moto4lin
Form1
PhoneMan
New mode: 1
New mode: 2
doActConnect
doActConnect
P2kProc::doConnect()
(E_openPhone: Unable to set configuration)
Everything up to New Mode: 2 is from the first boot of moto4lin. doActConnect is when I hit the "Connect/Disconnect" button on the main screen, and after that is the error I get.
mo
As for the CVS, it looks like the version of P2kmoto I got off sourceforge hasn't been updated since 2005... Has this project been moved to a place other than http://sourceforge.net/projects/moto4lin ?
Last edited by mastersword; 01-30-2007 at 01:10 PM.
Woah! Seems, I've fixed it! Not quite sure what I did, but the sequence I used to get it to work was as follows:
1) Plug phone in
2) log in as root and start moto4lin
3) Settings, update list, find my phone and click set as p2k
4) Click switch to p2k
5) connect/disconnect
6) update list
Bingo! Everything works. Thanks for all the help . The only difference here is I switched the values in the settings for the AT section to something invalid so that it would no longer try to connect my phone as AT.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.