[argyllcms] Re: Running dispcal stops usb card reader

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Thu, 16 Feb 2012 11:29:49 +1100

Ridouan Agarad wrote:

> /proc to exclude ports already open by other processes.

Can you be more specific ?

As far as I can tell /proc/tty/ is Linux only, and
/proc/tty/driver is not accessible in user mode anyway.

> Another option would be I guess is to allow (optional) specification
> of either a device path in a conf file (bypassing the need to scan for
> ports),

That's very user unfriendly though - I could expect anyone trying to
use a serial instrument to then have to ask how to do it.

> or allow for limitation to specific pid/vid id's, if those can
> be determined from pathname.

Not for serial devices. You can't know what they are without opening
and trying to talk to them (ie. send characters at them). This would
surly interfere with other things that use the serial port.

> But, since there's currently no config
> file, it might be that you're against config files and the filter
> option is somewhat of a kludge. On the other hand, having something of
> a 'device database' with (a combination of) blacklisted/filter/known
> identifiers might speed up appstart, since you might discard a
> (largish) number of devices beforehand...

In earlier versions I simply limited the number to about 4. Maybe
that's all I can do again.

Graeme Gill.

Other related posts: