[sane-devel] sanei_pio

Karl Heinz Kremer khk@khk.net
Thu, 12 May 2005 18:33:33 -0400


never ask if somebody wants to see patches, just send them :-)

Karl Heinz

On May 11, 2005, at 4:13 PM, Toby Dickenson wrote:

> Ive been using an Epson GT-5000 with sane successfully for a few  
> years now,
> and recently Ive tracked down a couple of annoying characteristics to
> sanei_pio.c....
> Firstly, the sanei_pio polling loop currently runs indefinitely if  
> the scanner
> is not switched on. It has a half-baked max_polls implementation,  
> but as far
> as I can tell it is never enabled. Ive replaced that with a timeout  
> mechanism
> based on time(), and now it reliably reports an error if the  
> scanner is not
> switched on.
> Secondly, the sanei_pio polling loop uses 100% CPU while scanning.  
> Adding a
> call to usleep in that loop brings usage down to 60% without noticibly
> affecting scanning throughput.
> Is there any interest in seeing patches for these changes?
> -- 
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>              to sane-devel-request@lists.alioth.debian.org