no /dev/USB

Kenton Brede kbrede at nixnotes.org
Tue Apr 5 20:34:51 UTC 2005


On Tue, Apr 05, 2005 at 08:28:03PM +0100, Ben Dembroski (info at arthacking.org) wrote:
> Hello all,
> 
> I just installed the latest Hoary release a few days ago. So far so good (very good).
> 
> Just one little problem that I don't really know how to solve. I just
> installed jpilot, as i did under Debian sid, and soon found out that
> there is no /dev/USB. Curious. Any hints as what I should do next? I
> did some google searches and looked at the forums, but found nothing.

> Before this install, I was running sid, on the same hardware and
> this was not an issue, if that helps at all.

I'll try to remember the steps I took to get this working.

In /etc/udev I created a file called 10-zire.rules.  In
/etc/udev/rules.d I created a symlink to 10-zire.rules, like so -

cd /etc/udev/rules.d
ln -s /etc/udev/10-zire.rules

The file 10-zire.rules contains the following -
# rule to create symlink for zire
BUS="usb", SYSFS{product}="Palm*", KERNEL="ttyUSB*", SYMLINK="pilot"

A note: The wild-card "*" for the "KERNEL" variable allows you to
plug into any USB port on your machine.  You might have to play 
with the SYSFS{product} variable, depending on which handheld you are
using, so that it will create /dev/pilot only when you plug in your
handheld, and not your USB mouse for example.  Google for "udev pilot" 
and you will find lots if information on how to find the appropriate
string for SYSFS{product}.  Basically you plug your device in, hit 
the sync button and run -

udevinfo -p /sys/class/tty/ttyUSB1 -a

Which gives you the info to plug into the variable.

You may also have to set up permissions in
/etc/udev/permissions.d/udev.permissions  
I didn't have to.
  
I don't remember for sure but you might have to restart udev with -
/etc/init.d/udev start

Once you're done with those steps plug your handheld in and fire up
jpilot.  It is important before you hit the sync button on jpilot to hit
the sync button on your handheld, then hit the sync button on jpilot.

What actually happens is udev will create the link /dev/pilot ->
/.dev/ttyUSB1 when you hit the sync button on your handheld, and you're
plugged into USB1.  Then jpilot has something to work with.  
When /.dev/ttyUSB1 is released the link /dev/pilot will disappear.

Or to quickly get yourself going, in jpilot you could go to 
file/preferences/settings and add /.dev/ttyUSB1 as your port.  The
downside is you can only plug into USB1 in order to sync.

hth,
Kent

-- 
"Our lives begin to end the day we become silent about things that matter."
  - Martin Luther King Jr.





More information about the ubuntu-users mailing list