[sane-devel] Scanner with multiple usb bulk endpoints

2007-07-16 Thread Miguel
Hello, Currently I'm trying to modify the avision backend to support the kodak i1320 (duplex) using the sane-backends 1.0.18 but I have a problem, the i1320 uses 2 usb bulk-in endpoints. I?ve modified sanei_usb.c to include an endpoint array (both in and out), but i don?t know if it?s correct place

[sane-devel] ScanImage works, but no other program does

2007-07-16 Thread David Goodenough
On Monday 16 July 2007, Gerhard Jaeger wrote: > On Montag, 16. Juli 2007, David Goodenough wrote: > [SNIPSNAP] > > > I am using 2.6.21, and unfortunately the stock kernel from Debian > > has CONFIG_USB_SUSPEND turned on. But I never use hibernate or the like > > on this machine. > > > > Are there

[sane-devel] ScanImage works, but no other program does

2007-07-16 Thread Gerhard Jaeger
On Montag, 16. Juli 2007, David Goodenough wrote: [SNIPSNAP] > I am using 2.6.21, and unfortunately the stock kernel from Debian > has CONFIG_USB_SUSPEND turned on. But I never use hibernate or the like > on this machine. > > Are there any details of the problem? Also why are the mechanisms used

[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

2007-07-16 Thread David Solomon
Allan, That is a pretty good find. Thank you! David Solomon On 7/16/07, m. allan noah wrote: > this webpage is all i know about it (but google will give more): > > http://sig9.com/articles/gcc-packed-structures > > allan > > On 7/16/07, David Solomon wrote: > > Allan, > > > > Do I add them to

[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

2007-07-16 Thread m. allan noah
this webpage is all i know about it (but google will give more): http://sig9.com/articles/gcc-packed-structures allan On 7/16/07, David Solomon wrote: > Allan, > > Do I add them to all of the command structs or just the Avision_Connection? > > David Solomon > > On 7/16/07, m. allan noah wrote:

[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

2007-07-16 Thread David Solomon
Allan, Do I add them to all of the command structs or just the Avision_Connection? David Solomon On 7/16/07, m. allan noah wrote: > On 7/16/07, David Solomon wrote: > > I think you are right. I am trying some pragma pack statments to see > > if they will help. I looked at some of the plustek

[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

2007-07-16 Thread m. allan noah
On 7/16/07, David Solomon wrote: > I think you are right. I am trying some pragma pack statments to see > if they will help. I looked at some of the plustek_usb header changes > and found that they used: "#define PACKED8 __attribute__ > ((packed,aligned(1)))" and "#define PACKED16 __attribute__

[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

2007-07-16 Thread David Solomon
I think you are right. I am trying some pragma pack statments to see if they will help. I looked at some of the plustek_usb header changes and found that they used: "#define PACKED8 __attribute__ ((packed,aligned(1)))" and "#define PACKED16 __attribute__ ((packed,aligned(2)))" statements to pack

[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

2007-07-16 Thread David Solomon
Thank you. I have filed the bug. Also, I am trying to use some #pragma pack statements to see if they will work. David Solomon On 7/13/07, Jochen Eisinger wrote: > Hi, > > that's a common problem of many backends, please file a bug at our > alioth bug tracker. See bug #303681 > http://alioth.d

[sane-devel] ScanImage works, but no other program does

2007-07-16 Thread Gerhard Jaeger
On Montag, 16. Juli 2007, David Goodenough wrote: > I am a new sane user (Debian sid, Plustek chip Cannon LiED25 scanner). > > After installing sane, scanimage works a treat. I can specify the > size and resolution, and the colour depth etc, and it works. > > BUT, any of the other programs I try

[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

2007-07-16 Thread m. allan noah
my apologies- Jochen appears to have been correct. though the data payloads are correct (which is what i initially inspected), the commands before them are built from un-aligned structs, and extended from 10 to 12 bytes in both cases, IIRC. i guess you could try adding the gcc specific alignment p

[sane-devel] ScanImage works, but no other program does

2007-07-16 Thread David Goodenough
On Monday 16 July 2007, Gerhard Jaeger wrote: > On Montag, 16. Juli 2007, David Goodenough wrote: > > I am a new sane user (Debian sid, Plustek chip Cannon LiED25 scanner). > > > > After installing sane, scanimage works a treat. I can specify the > > size and resolution, and the colour depth etc,

[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT

2007-07-16 Thread David Solomon
Allan, I tried disabling Gamma in the code (couldn't get it work in the config for some reason). Now it is having a problem at the sense. Could this be related to usb issues? Is udev required when using libusb? Here is the new output: [avision] set_window: [45-46] line-width: 3825 [avision] set

[sane-devel] ScanImage works, but no other program does

2007-07-16 Thread David Goodenough
I am a new sane user (Debian sid, Plustek chip Cannon LiED25 scanner). After installing sane, scanimage works a treat. I can specify the size and resolution, and the colour depth etc, and it works. BUT, any of the other programs I try, xsaneimage, xsane, Kooka, OpenOffice.org, it does not compla