On Tue, Nov 29, 2005 at 02:23:05PM +0100, Xavier Bestel wrote:
> On Tue, 2005-11-29 at 10:53, Marco d'Itri wrote:
> > On Nov 29, Xavier Bestel <[EMAIL PROTECTED]> wrote:
> > [...]
> > > There should probably exist some sane defaults to let
> > > people recognize their devices in /dev.
> > Please explain how this should actually work, which symlinks should be
> > created, how the devices would be detected and when.
> > The default rules files already create a pilot symlink, BTW.
> 
> Well, I have a nokia cable that has these attributes:
>     SYSFS{idProduct}=="2303"
>     SYSFS{idVendor}=="067b"
>     SYSFS{manufacturer}=="Prolific Technology Inc."
>     SYSFS{product}=="USB-Serial Controller"
> 
> I could easily write a rule that would create a /dev/pl2303 (or
> whatever)

What happens if you plug in more than one device like this?  I know
people who sync more than one palm device all the time.

> to differentiate it from the palm, but that would be a bit
> ad-hoc. Maybe have something like SYMLINK+="usbserial%s{idProduct}" ?
> 
> I understand that having it for all devices kind is a bit troublesome,
> and I'm beginning to believe device persistence can't be solved without
> some state saved somewhere, preferably by the application.
> 
> I have to think a bit more about it.

Good luck, writing a rule for all palm devices is _hard_, if not
impossible due to the wide variety of devices, and what port is supposed
to be used for syncing with (some devices lie about this, and you don't
know for sure until you try to actually sync with them.)

Marco did the right thing in closing this :)

thanks,

greg k-h


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to