Mobile Phone/Synchronization

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Contents

[edit] Introduction

This howto has been tested with a Motorola C330 phone. Notice that this phone use a standard USB cable, like the ones of some Nikon camera or Archos jukebox.

To get the full list of officialy supported phones, check kmobiletools website.

Start by emerging kmobile tools.

[edit] Merging kmobiletools

emerge -av kmobiletools

[edit] Loading cdc_acm module (USB Modem)

Once installed, check that the device is recognized :

Code: dmesg | grep ACM
cdc_acm 1-1:1.0: ttyACM0: USB ACM device

If dmesg |grep ACM doesn't return anything, you need to modprobe cdc_acm:

modprobe cdc-acm

If the module doesn't exist, you need to edit your kernel config :

Linux Kernel Configuration: CDC ACM
Device Drivers  --->  
   USB support  ---> 
      <M>   USB Modem (CDC ACM) support 
make && make modules_install.

You should now be able to modprobe it.

[edit] Checking the entry in /dev

Once dmesg |grep ACM shows your device, you need to check if the device is well registered in /dev

ls -l /dev/ttyACM*

If nothing shows up you need to create the device :

mknod /dev/ttyACM0 c 166 0

And it's a good idea to symlink 'mobile' to it (easier to remember, and kmobiletools expects this entry by default)

ln -s /dev/ttyACM0 /dev/mobile

Now kmobiletools should be able to find your phone.

If you got errors, and run as a simple user, try to check rights on the device and on mobile :

chmod a+rw /dev/ttyACM0
chmod a+rw /dev/mobile

[edit] Using udev

If you are using udev, you only need to add a rules file to the /etc/udev/rules.d directory. I created a file called moble.rules and added the following for my Motorola RAZR V3, but it should work for any Motorola Phone.

 BUS=="usb" SYSFS{product}=="Motorola Phone*" KERNEL=="ttyACM*" SYMLINK=="mobile" MODE=="666"

If you are using a different brand of phone, you can find the product information by typeing the following and looking for something similar to your phone:

 lsusb -v | grep iProduct

Just replace "Motorola Phone*" with the description of your phone found in the command above.

[edit] Credits

KaZeR.

  • Thanks to RockMan from #kmobiletools for his help!
  • Thanks also to Insanity5902 for his suggestions.
Personal tools