Bug 165455 - Evolution synchronization with palm device does not work.
Summary: Evolution synchronization with palm device does not work.
Status: RESOLVED FIXED
: 103053 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Evolution (show other bugs)
Version: unspecified
Hardware: 32bit SuSE Linux 10.0
: P2 - High : Major (vote)
Target Milestone: ---
Assignee: JP Rosevear
QA Contact: Poornima Nayak
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 03:14 UTC by stephan schutter
Modified: 2006-11-15 02:57 UTC (History)
3 users (show)

See Also:
Found By: Integration Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stephan schutter 2006-04-12 03:14:29 UTC
Reproduction:
Default desktop is KDE.
1. Launch Evolution
2. Select the "Synchronization Options"...
3. Follow the prompts. 
4. Select "yes I have used sync... before"

Using a USB Tungsten device this does not work at all. It never connects. I may be related to the fact that there is no /dev/pilot anywhere (which is what you are suggesting).
Comment 1 stephan schutter 2006-04-12 03:22:58 UTC
It was necessary to list all the USB devices (significant research) to find out that the palm device was actually connected to: /dev/ttyUSB1 there is no reason to believe that any remotely mortal user would consider doing this. 
Comment 2 stephan schutter 2006-04-12 03:25:02 UTC
According to the palm device you can not sync with Gnome-Pilot if you have password enabled in the device! This works on other distros! Please fix!
Comment 3 stephan schutter 2006-04-12 03:52:39 UTC
OK OK... My fault on the last one. Please disregard Comment #2. The defaults need to visited though. I cant imagine that a user would want to poke around in the command line and using odd tools to find out what device the system thinks that the pilot is plugged in to. 

Comment 4 JP Rosevear 2006-04-13 15:51:36 UTC
Added HAL support for code 10, needs retesting.
Comment 5 JP Rosevear 2006-05-07 18:54:46 UTC
Ok, found an issue in pilot-link which I fixed.  Found an issue in gnome-pilot for non-visor USB devices which I have a patch for.

As for searching around for the right device, indeed this is very annoying but until the advent of HAL and udev, there wasn't much that could be done.

That being said, Kay, Greg, I understand that some other distros are shipping a udev rule something like:
BUS="usb" SYSFS{product}="Palm Handheld*" KERNEL="ttyUSB*" MODE="666"
SYMLINK="pilot"

Does this seem like a viable thing to do?
Comment 6 Kay Sievers 2006-05-07 20:11:19 UTC
We ship a rule for this:
  KERNEL=="ttyUSB*", SYSFS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
Comment 7 JP Rosevear 2006-05-07 20:53:33 UTC
Indeed, I grepped incorrectly.

For me on a Tungsten T /dev/pilot is mapped incorrectly however.  Its mapped to ttyUSB1 instead of ttyUSB0.  A matrix of these mappings is linked from:
http://pilot-link.org/DeviceMatrix

My device is specifically covered in:
http://www.pilot-link.org/node/111

Greg, can anything be done about this?

If so, is there a way then to distinguish the two devices that show up in HAL when the hotsync button is pressed, ie a way to mark with a property what is actually the hotsync device (maybe merge properties based on the device matrix above Kay?).
Comment 8 JP Rosevear 2006-05-08 15:30:33 UTC
I have a patch now that resolves symbolic links (for /dev/pilot) via readlink to try and match on properties in hal, however the /dev/pilot link is not absolute, so thats a bit annoying.
Comment 9 JP Rosevear 2006-05-08 19:18:42 UTC
*** Bug 103053 has been marked as a duplicate of this bug. ***
Comment 10 Greg Kroah-Hartman 2006-05-08 20:10:12 UTC
No, there is nothing "automatic" that can be done to create this pilot symlink.

We can try to match up some devices, like you are trying to do now, and that's
about the best we can do.  The problem is the device tries to export
attributes about which port is which (debug, hotsync, etc.), but for a 
large number of devices, it lies about this.  This is especially true for 
the Sony Clie devices, which are known to do this (so much so, we have a
special kernel log message telling the user that the device lied about
the ports, so they should try the other one instead.)

Sorry about this, go blame Palm if you want to, it's their fault :)
Comment 11 JP Rosevear 2006-05-19 00:56:48 UTC
Ok, submitted a package that works with hal/non-visor devices and older visor devices.  Left /dev/pilot in for those devices it will work for.  A couple as per the matrix above will not work and will need /dev/ttyUSB0.

Really we need to move completely to libusb or better hal info, but is a separate big feature already in the feature database.
Comment 12 JP Rosevear 2006-05-19 00:57:57 UTC
Btw, to the reporter, if you have a Tungsten T like me, you'll need to use /dev/ttyUSB0.
Comment 13 Jon Schewe 2006-11-01 15:21:09 UTC
This is still broken even when using gnome-pilot-2.0.13-45.  I'm using SUSE 10.1 with all patches and a Treo 650.  I get this output when trying to sync:
>/opt/gnome/lib/gnome-pilot/gpilotd
gpilotd-Message: gnome-pilot 2.0.13 starting...
gpilotd-Message: compiled for pilot-link version 0.11.8
gpilotd-Message: compiled with [VFS] [USB] [IrDA] [Network] 
gpilotd-Message: Activating CORBA server
gpilotd-Message: bonobo_activation_active_server_register = 0
gpilotd-Message: Watching Treo650 (/dev/ttyUSB1)
gpilotd-Message: palm pda detected by HAL
gpilotd-Message: setting PILOTRATE=115200

(gpilotd:589): gpilotd-WARNING **: pi_accept_to: Connection timed out

(gpilotd:589): gpilotd-WARNING **: pi_accept_to: timeout was 2 secs
gpilotd-Message: palm pda detected by HAL
gpilotd-Message: setting PILOTRATE=115200

(gpilotd:589): gpilotd-WARNING **: pi_accept_to: Connection timed out

(gpilotd:589): gpilotd-WARNING **: pi_accept_to: timeout was 2 secs
Comment 14 Greg Kroah-Hartman 2006-11-01 16:33:09 UTC
What does your kernel log messages show when you try to do this?
Comment 15 Jon Schewe 2006-11-01 18:38:04 UTC
Nov  1 12:36:14 mn65-eggplant kernel: usb 5-1: new full speed USB device using uhci_hcd and address 4
Nov  1 12:36:14 mn65-eggplant kernel: usb 5-1: new device found, idVendor=0830, idProduct=0061
Nov  1 12:36:14 mn65-eggplant kernel: usb 5-1: new device strings: Mfr=1, Product=2, SerialNumber=5
Nov  1 12:36:14 mn65-eggplant kernel: usb 5-1: Product: Palm Handheld
Nov  1 12:36:14 mn65-eggplant kernel: usb 5-1: Manufacturer: PalmOne, Inc.
Nov  1 12:36:14 mn65-eggplant kernel: usb 5-1: SerialNumber: PalmSN12345678
Nov  1 12:36:14 mn65-eggplant kernel: usb 5-1: configuration #1 chosen from 1 choice
Nov  1 12:36:14 mn65-eggplant kernel: visor 5-1:1.0: Handspring Visor / Palm OS converter detected
Nov  1 12:36:14 mn65-eggplant kernel: usb 5-1: Handspring Visor / Palm OS converter now attached to ttyUSB0
Nov  1 12:36:14 mn65-eggplant kernel: usb 5-1: Handspring Visor / Palm OS converter now attached to ttyUSB1
Nov  1 12:36:55 mn65-eggplant kernel: usb 5-1: USB disconnect, address 4
Nov  1 12:36:55 mn65-eggplant kernel: visor 5-1:1.0: device disconnected
Nov  1 12:36:55 mn65-eggplant kernel: visor ttyUSB0: Handspring Visor / Palm OS converter now disconnected from ttyUSB0
Nov  1 12:36:55 mn65-eggplant kernel: visor ttyUSB1: Handspring Visor / Palm OS converter now disconnected from ttyUSB1
Comment 16 Greg Kroah-Hartman 2006-11-02 05:46:46 UTC
Thanks, nothing looks improper in the kernel log, so it must be an issue higher up the stack.
Comment 17 JP Rosevear 2006-11-09 17:13:27 UTC
On comment 13: the patch was never shipped on 10.1, its in SLE 10 products and 10.2.

You can get an updated package at:
http://ftp.osuosl.org/pub/suse/suse/i386/supplementary/GNOME/update_for_10.1/applications/gnome-pilot-2.0.13-50.i586.rpm
Comment 18 Jon Schewe 2006-11-09 17:32:42 UTC
Do you have a 64bit version of the package as well?
Comment 20 Jon Schewe 2006-11-10 12:44:40 UTC
Thanks, this is a little better.  I can get it to connect now.  However now I get this error when trying to sync or pull the sync id off the pilot:

(gpilotd:18779): gpilotd-WARNING **: Number of pilots is configured to 0
gpilotd-Message: Watching Treo650 (/dev/ttyUSB1)
gpilotd-Message: corba: get_user_info(cradle=Treo650,survival=0,timeout=0)
gpilotd-Message: assigned handle num 2
gpilotd-Message: corba: get_system_info(cradle=Treo650,survival=0,timeout=0)
gpilotd-Message: assigned handle num 3
gpilotd-Message: palm pda detected by HAL
gpilotd-Message: setting PILOTRATE=115200

(gpilotd:18779): gpilotd-WARNING **: An error occured while getting the pilot's system data
gpilotd-Message: palm pda detected by HAL
gpilotd-Message: setting PILOTRATE=115200

(gpilotd:18779): gpilotd-WARNING **: pi_accept_to: Connection timed out

(gpilotd:18779): gpilotd-WARNING **: pi_accept_to: timeout was 2 secs
Comment 21 JP Rosevear 2006-11-10 14:26:32 UTC
I suspect now that not having pilot-link 0.12 is the issue (which fixed some issues for newer pilots).
Comment 22 Jon Schewe 2006-11-10 14:43:06 UTC
And where might I find that?  It doesn't appear to be at your previous URL.
Comment 23 Jon Schewe 2006-11-14 11:53:07 UTC
I found a tarball of pilot-link and installed that in a temporary directory, then installed a patched version of gnome-pilot in a temporary directory and that combination allowed me to communicate successfully with my palm using gpilotd.  Any chance these versions will be in 10.1?  Any chance someone already has them packaged up in 64bit RPMs?

See the bug here: http://bugzilla.gnome.org/show_bug.cgi?id=321947
The pilot-link package is from pilot-link.org
The gnome-pilot package is from http://www.inference.phy.cam.ac.uk/mcdavey/downloads/gnome-pilot-2.0.14p1.tar.gz
Comment 24 Petr Ostadal 2006-11-14 17:07:10 UTC
We have recent versions of pilot-link in FACTORY, but we can't mix the new version of pilot-link with older version rpms in 10.1, becasue the API is incompatible with the older version of application which use pilot-link.
Comment 25 Jon Schewe 2006-11-15 02:57:09 UTC
I tried getting all of the dependencies, but the list got too long.  So I guess I have to wait until 10.2 is out.  Hopefully it'll work right then, as my Palm hasn't worked since 9.3.