<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Tom Moertel's Weblog: How to hotsync the Palm Centro with a Fedora 7 Linux desktop via USB</title>
    <link>http://blog.moertel.com/articles/2007/10/31/how-to-hotsync-the-palm-centro-with-a-fedora-7-linux-desktop-via-usb</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Quality rants on programming theory and stuff geeks like</description>
    <item>
      <title>How to hotsync the Palm Centro with a Fedora 7 Linux desktop via USB</title>
      <description>&lt;p&gt;I just got a Palm Centro smartphone, and I love it. Getting it to sync
with my Linux workstation, however, was tricky, so I&amp;#8217;m posting this
recipe in hopes that it might save you some time.&lt;/p&gt;


	&lt;p&gt;The &amp;#8220;visor&amp;#8221; kernel driver is supposed to make compatible Palm
handhelds look like serial devices when attached via a &lt;span class="caps"&gt;USB&lt;/span&gt; cable.  For
me, it didn&amp;#8217;t work.  Instead, I had to blacklist the driver and
then use libusb to talk to the Centro.  Here&amp;#8217;s the recipe:&lt;/p&gt;


	&lt;p&gt;First, blacklist the &amp;#8220;visor&amp;#8221; kernel driver:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;# echo blacklist visor &amp;gt;&amp;gt; /etc/modprobe.conf
# modprobe -qr visor
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Second, make sure libusb is installed:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;# yum install libusb
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Third, edit the system&amp;#8217;s udev rules to make sure your user account can
access the device files used to talk to the Centro.  On my Fedora 7
setup, I found the right rule in /etc/udev/rules.d/50-udev.rules:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;ACTION=="add", SUBSYSTEM=="usb_endpoint", \
ATTR{bEndpointAddress}=="?*", ATTRS{devnum}=="?*", ATTRS{busnum}=="?*", \
NAME="bus/usb/$attr{busnum}/$attr{devnum}_ep/$attr{bEndpointAddress}", \
MODE="0644", SYMLINK+="%k" 
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;I edited the last line of the rule, changing the mode to 0664 and adding
a &lt;span class="caps"&gt;GROUP&lt;/span&gt; key to assign the Centro devices to my exclusive user group:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;MODE="0664", SYMLINK+="%k", GROUP="thor" 
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;This change lets my account talk to the Centro without having to
take on root privileges. (For bonus points you could set up a more-specific rule to match just your Centro. The rule above, as is, will actually match other devices, too.)&lt;/p&gt;


	&lt;p&gt;Fourth, tell udev to reload the rules:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;# udevcontrol reload_rules
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Finally, set up a Palm-device connection via gnome-pilot.  Be sure to
select &lt;span class="caps"&gt;USB&lt;/span&gt; for the Type and &amp;#8220;usb:&amp;#8221; from the Device drop-down list.&lt;/p&gt;


	&lt;p&gt;That&amp;#8217;s it.  If you&amp;#8217;re lucky like me, you should now be ready to
hotsync your Palm Centro!&lt;/p&gt;


&lt;div class="update"&gt;

	&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; Even better, &lt;a href="http://howto.pilot-link.org/bluesync/index.html"&gt;this handy &lt;span class="caps"&gt;HOWTO&lt;/span&gt;&lt;/a&gt; shows you to
sync via Bluetooth, which is more convenient than hooking up a &lt;span class="caps"&gt;USB&lt;/span&gt;
cable.  I&amp;#8217;m now using this method.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Update 2:&lt;/strong&gt; If you want to use &lt;span class="caps"&gt;USB&lt;/span&gt; to hotsync your Centro, there is a
method that&amp;#8217;s more convenient than setting up udev rules.  Just create a perms file for
pam_console_apply that tells it to give the console user permission to
access your Centro.  To do so, create a file
/etc/security/console.perms.d/60-libpisock.perms and put the following in it:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;&amp;lt;libpisock&amp;gt;=/dev/usbdev* /dev/bus/usb/[0-9]*/[0-9]*
&amp;lt;console&amp;gt; 0644 &amp;lt;libpisock&amp;gt; 0644 root
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;That&amp;#8217;s it. (You&amp;#8217;ll still need to use libusb.)&lt;/p&gt;


&lt;/div&gt;</description>
      <pubDate>Wed, 31 Oct 2007 00:35:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:32b55049-6f05-4eae-8d46-3c1c350afa4f</guid>
      <author>Tom Moertel</author>
      <link>http://blog.moertel.com/articles/2007/10/31/how-to-hotsync-the-palm-centro-with-a-fedora-7-linux-desktop-via-usb</link>
      <category>linux</category>
      <category>linux</category>
      <category>fedora</category>
      <category>palm</category>
      <category>centro</category>
      <category>hotsync</category>
      <category>usb</category>
      <trackback:ping>http://blog.moertel.com/articles/trackback/608</trackback:ping>
    </item>
    <item>
      <title>"How to hotsync the Palm Centro with a Fedora 7 Linux desktop via USB" by Matthew Miller</title>
      <description>&lt;p&gt;For the record, in Fedora 9, everything seems to Just Work. It took me a little bit to figure out how to configure jpilot for usb, but once that was done, there&amp;#8217;s no tricks.&lt;/p&gt;</description>
      <pubDate>Sat, 12 Jul 2008 23:43:03 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:28e0fc4c-b1a7-4627-b2c4-c4ba2bab671b</guid>
      <link>http://blog.moertel.com/articles/2007/10/31/how-to-hotsync-the-palm-centro-with-a-fedora-7-linux-desktop-via-usb#comment-750</link>
    </item>
    <item>
      <title>"How to hotsync the Palm Centro with a Fedora 7 Linux desktop via USB" by David Mudrak</title>
      <description>&lt;p&gt;In reply to: David A. Desrosiers&lt;/p&gt;


	&lt;p&gt;Reading /proc/bus/usb/devices I can see Centro has Vendor=0830 ProdID=0061. Looking at visor.h I found these values are already there defined:&lt;/p&gt;


	&lt;p&gt;#define PALM_VENDOR_ID   0&amp;#215;0830&lt;/p&gt;


	&lt;p&gt;#define PALM_TREO_650    0&amp;#215;0061&lt;/p&gt;


	&lt;p&gt;#define PALM_ZIRE31_ID   0&amp;#215;0061&lt;/p&gt;


	&lt;p&gt;So this does not apppeat to be a point, does it?&lt;/p&gt;</description>
      <pubDate>Tue, 03 Jun 2008 17:04:15 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:350d9c27-e276-4a10-876b-d868e00c9f5c</guid>
      <link>http://blog.moertel.com/articles/2007/10/31/how-to-hotsync-the-palm-centro-with-a-fedora-7-linux-desktop-via-usb#comment-737</link>
    </item>
    <item>
      <title>"How to hotsync the Palm Centro with a Fedora 7 Linux desktop via USB" by Tom Moertel</title>
      <description>&lt;p&gt;Vaughn,&lt;/p&gt;


	&lt;p&gt;I haven&amp;#8217;t tried mounting the microSDHC card because I already have a convenient way to extract images, etc. from the card: &lt;a href="http://blog.moertel.com/articles/2007/11/02/how-to-download-photos-and-movies-from-the-palm-centro-to-a-linux-desktop" rel="nofollow"&gt;How to download photos and movies from the Palm Centro to a Linux desktop&lt;/a&gt;.  Some of the comments on that page might contain tips you can use.  Also, you can probably tweak my script to do what you want if other options don&amp;#8217;t work for you.&lt;/p&gt;


	&lt;p&gt;Cheers,&lt;br /&gt;
Tom&lt;/p&gt;</description>
      <pubDate>Mon, 05 May 2008 21:57:34 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:18b7622d-0156-4289-b7be-a5132752142c</guid>
      <link>http://blog.moertel.com/articles/2007/10/31/how-to-hotsync-the-palm-centro-with-a-fedora-7-linux-desktop-via-usb#comment-725</link>
    </item>
    <item>
      <title>"How to hotsync the Palm Centro with a Fedora 7 Linux desktop via USB" by Vaughn Grisham</title>
      <description>&lt;p&gt;Tom,&lt;/p&gt;


	&lt;p&gt;Have you been able to mount the the phone&amp;#8217;s microSDHC card via the USB sync cable? There was a palm app called Card Reader that I installed. It worked but interfered with my ability to Sync via USB, so I uninstalled. It&amp;#8217;s no longer listed as Centro compatible at the Palm software webstore.&lt;/p&gt;


	&lt;p&gt;Thanks,
Vaughn
Ubuntu 64-bit Hardy Heron 8.04 (Gnome)&lt;/p&gt;</description>
      <pubDate>Fri, 02 May 2008 13:42:30 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:b19ed3e5-60c9-4551-a0ee-f9b4c4a70dfd</guid>
      <link>http://blog.moertel.com/articles/2007/10/31/how-to-hotsync-the-palm-centro-with-a-fedora-7-linux-desktop-via-usb#comment-723</link>
    </item>
    <item>
      <title>"How to hotsync the Palm Centro with a Fedora 7 Linux desktop via USB" by David A. Desrosiers</title>
      <description>&lt;p&gt;The reason your visor driver doesn&amp;#8217;t work is because it doesn&amp;#8217;t have the right prod_id and vendor_id for the Centro, which was just released.&lt;/p&gt;


	&lt;p&gt;To get it to work, you&amp;#8217;ll need to modprobe it with the right values, or add them to the visor.c and visor.h file, and rebuild that module (no need to rebuild the whole kernel, you can just rebuild the module and use that).&lt;/p&gt;</description>
      <pubDate>Sun, 25 Nov 2007 12:36:45 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:94ff8188-915e-465f-b9ee-a7ca89109f4b</guid>
      <link>http://blog.moertel.com/articles/2007/10/31/how-to-hotsync-the-palm-centro-with-a-fedora-7-linux-desktop-via-usb#comment-628</link>
    </item>
    <item>
      <title>"How to hotsync the Palm Centro with a Fedora 7 Linux desktop via USB" by Kotts</title>
      <description>&lt;p&gt;Thank you!  I&amp;#8217;ve been whacking my head up aginast the wall for the past two evenings on this.  I had gotten the rule down, but it didn&amp;#8217;t occur to me to blacklist visor.&lt;/p&gt;


	&lt;p&gt;You probably just gave me a couple of evenings where I could do something more interesting.&lt;/p&gt;</description>
      <pubDate>Thu, 01 Nov 2007 08:28:43 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:5f2a8c4e-fafc-4cb6-85f2-a870bfe9b3ad</guid>
      <link>http://blog.moertel.com/articles/2007/10/31/how-to-hotsync-the-palm-centro-with-a-fedora-7-linux-desktop-via-usb#comment-613</link>
    </item>
  </channel>
</rss>
