Re: USB Port Auto Notification to BitPim

Roger Binns <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
Joe Pham wrote:
>> Just monitor /proc/bus/usb or whatever it is called
> 
> Good suggestion.  However:
> 
> 1. dnotify does not work with /proc until 2.6-15 or so.
> 2. dnotify does not work with subdirs.

inotify is the replacement for dnotify and should be used instead.

  http://lwn.net/Articles/104343/

>From your patches, it looks like you want to know the name of the device
that changed, not just that a device changed.  I have no opinion on the
merits either way.

However if you want to go the route of knowing the name, then I think
dbus/hal is the best approach.  It should work on every current shipping
Linux.  I don't think it matters for people using 3 year old versions of
distros.  As long as BitPim doesn't fail to run for folks who don't have
the infrastructure I don't see any problems.

In summary, forget the journey - just go straight for the destination :-)

Roger

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.