[sane-devel] (no subject)
Hi, Download SANE CVS. See backend-writing.txt document. And start to hack. ?tienne. -- Verso l'Alto ! -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070119/4b838297/attachment.pgp From kilg...@banach.math.auburn.edu Fri Jan 19 22:48:02 2007 From: kilg...@banach.math.auburn.edu (kilg...@banach.math.auburn.edu) Date: Fri Jan 19 22:00:46 2007 Subject: [sane-devel] Setting up a dedicated machine to run scanner Message-ID: Hi, I want to set up a dedicated machine in a semi-public location (departmental printer room in my university) which will do the following things: 1. allow people to use it freely to run the attached scanner and to do something with the output 2. output can be sent to the printer (which requires network access), or 2a. sent by scp to another machine on which the scanner user has an account (obviously also needs network access), or 2b. copied to the user's USB flash drive which the user can be plugged into the back of the machine (obviously requires automatic mounting and umounting of said flash drive) So, there is an obvious conflict between usability and security. I would say that it is not the right kind of environment to go making people to get an account on the machine; they should be able just to come and run the scanner. I would say that it should not be permissible to run any shell (by, for example, launching an xterm with a command prompt) and also it would be good to set up xsane so that it automatically clobbers the previous output file when a new scan is done, and the user who walks up to the machine cannot change that. Also, the save-the-file dialog should only allow the file to be saved in the scanner account's directory, or on the flash drive (which would require a hookup of the save-file dialog to mount the flash drive automatically and invisibly, but with a warning in case it has been attached, and to unmount it when the file has been copied, along with another warning if said flash drive is removed prematurely). Furthermore, the save-file dialog should only allow inspection of the scanner home directory and of the flash drive, not other directories. Has anyone already done something like this? To what extent is it possible to configure xsane by means of an .rc file, which the user cannot alter? Also, how difficult would it be to get the "Help" key to give some help which is specific to the situation, telling the user what can and cannot be done, and how to do what can be done? I have figured out how to do things like set up an account which will start X straightaway and will then do nothing but to run xsane, or perhaps a TCL menu box which will do nothing but offer certain options. But how much of what I want could be done inside of xsane, with custom configurations, without a major overhaul of source code? Theodore Kilgore
[sane-devel] failing make sane-backends-1.0.18; sanei_scsi question]
On Friday 19 January 2007 15:31, Johannes Meixner wrote: > Hello, > > On Jan 19 15:00 Julien Michielsen wrote (shortened): > > sanei_scsi.c:1276: error: 'HZ' undeclared (first use in this function) > > This patch replaces the fixed HZ compile-time value (which is > no longer supported by new glibc) by the more correct > sysconf(_SC_CLK_TCK) runtime value because a fixed HZ compile-time > value may be wrong in the running system if the runtime system > is not exactly the same as the compile-time system: That's what I've expected. So I think the patch I've sent earlier today should fix that issue. Could some of you guys check that on SuSE 10.2? Gerhard
[sane-devel] How to use Dextra Scanner DF-1200+ with sane-teco1
Hello SANE-Experts, I am trying to get my oldie Dextra scanner to work with Linux and SANE ubuntu6.10 (2.6.17) - sane-backends-1.0.18 With scanimage --mode Grayscale scanning works fine - output-sheet ok. The problem: scanimage --mode Colorscanning works for all three passes R,G,B but the output-sheet colors are wrong - blue fails, no error messages detected. Then I look with a hexeditor into the output.png file - all data bytes for the Blue-channel = 00 ,Red and Green-channel data ok. (The Scanner itself is ok, works in colormode with twain/Win98) cat /proc/scsi/scsi Host: scsi0 Channel: 00 Id: 04 Lun: 00 Vendor: Dextra Model: DF-1200+ Rev: 1.03 Type: Scanner ANSI SCSI revision: 02 scanimage -L device `teco1:/dev/scanner' is a Relisys AVEC Colour 2412 flatbed scanner FCC-ID:E80VM3520 How can I use these "untested" Scanner with sane-teco1 ? Thanks Regards Peter
[sane-devel] HP Scanjet 5500c
On Thursday 18 January 2007 03:50, Terry Cutler wrote: > Hey there. I was wondering if anyone knew if the HP Scanjet 5500c will be > supported by SANE ? This is the only piece left for me to get working > before I can migrate from Windows to Suse Linux. Any help in getting it to > work would be greatly appreciated. > > Thanks in advance ! Please check this URL http://www.sane-project.org/unsupported/hp-scanjet-5500c.html Youg might be able to report the missing informations on that device. Gerhard
[sane-devel] (no subject)
Hello, sorry for my English. I want to write a Canon 5200F driver (USB). I have a lot of experience in Windows Programing (C,C++, Delphi) and Java. And Linux console programing with C. Any one, Can send to my "a example source" of one similar driver? or where can I download it?. Thank's
[sane-devel] CVS Won't make.
Greetings; I have been trying for a few weeks to compile the cvs feed with no luck. I have the 2.6.18 kernel and Slackware. My libc is 2.3.6. The compile appears to die while trying to compile the epson backend. The first apparent failure is the inability of epson2.c to find the include file byteorder.h. Any help appreciated! The relevant portion of the make output seems to be: ... creating libsane-stv680.la (cd .libs && rm -f libsane-stv680.la && ln -s ../libsane-stv680.la libsane-stv680.la) gcc -c -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=epson2 -DLIBDIR=/usr/local/lib/sane epson2.c -fPIC -DPIC -o .libs/epson2.o epson2.c:54:23: byteorder.h: No such file or directory epson2.c: In function `epson2_set_model': epson2.c:667: warning: passing arg 1 of `free' discards qualifiers from pointer target type epson2.c: In function `attach': epson2.c:1227: warning: implicit declaration of function `le32atoh' epson2.c: In function `sane_epson2_exit': epson2.c:1584: warning: passing arg 1 of `free' discards qualifiers from pointer target type epson2.c:1585: warning: passing arg 1 of `free' discards qualifiers from pointer target type epson2.c: In function `epson2_set_extended_scanning_parameters': epson2.c:2932: warning: implicit declaration of function `htole32a' make[1]: *** [epson2.lo] Error 1 make[1]: Leaving directory `/usr/local/src/sane/sane-cvs/sane-backends/backend' make: *** [all-recursive] Error 1 _ Get Hilary Duffs homepage with her photos, music, and more. http://www.live.com/?addtemplate=hilary&ocid=T001MSN30A0701
[sane-devel] failing make sane-backends-1.0.18; sanei_scsi question]
Hello, On Jan 19 15:00 Julien Michielsen wrote (shortened): > sanei_scsi.c:1276: error: 'HZ' undeclared (first use in this function) This patch replaces the fixed HZ compile-time value (which is no longer supported by new glibc) by the more correct sysconf(_SC_CLK_TCK) runtime value because a fixed HZ compile-time value may be wrong in the running system if the runtime system is not exactly the same as the compile-time system: - --- sanei/sanei_scsi.c.orig 2005-04-22 10:36:17.0 +0200 +++ sanei/sanei_scsi.c 2006-07-04 10:16:49.0 +0200 @@ -1273,7 +1273,7 @@ disconnect... ;-( */ { int timeout; -timeout = sane_scsicmd_timeout * HZ; +timeout = sane_scsicmd_timeout * sysconf(_SC_CLK_TCK); ioctl (fd, SG_SET_TIMEOUT, &timeout); } #endif - Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsm...@suse.de 90409 Nuernberg, GermanyWWW: http://www.suse.de/
[sane-devel] failing make sane-backends-1.0.18; sanei_scsi question
On Thursday 18 January 2007 20:55, abel deuring wrote: [SNIPSNAP] > GNU C Library stable release version 2.5 (20061011), by Roland ah - I see pretty new beast ;) > Compiled on a Linux 2.6.18 system on 2006-11-26. Hmmm - okay. So they will use these headers... > > >>> Anyway could you guys please try and add the compiler.h only to the > >>> HAVE_SCSI_SG_H path? > >> Well, before making any "real" patch, the first thing I'd like to > >> know is, if we have a special Suse 10.2 bug, or if something changed > >> in the kernel headers... > > > > Hmmm - seems we need to check how they compile their glibc and which > > kernel-headers they use - I think Johannes is around and might could > > shade some light on that - maybe also on that resmgr stuff. > > I think you spotted the cause in the diff file: Well, I've only copied the patch from the SuSE srpm ;) > > BTW: they use the following patch: > > --- sanei/sanei_scsi.c.orig 2005-04-22 10:36:17.0 +0200 > > +++ sanei/sanei_scsi.c 2006-07-04 10:16:49.0 +0200 > > @@ -1273,7 +1273,7 @@ > > disconnect... ;-( */ > >{ > > int timeout; > > -timeout = sane_scsicmd_timeout * HZ; > > +timeout = sane_scsicmd_timeout * sysconf(_SC_CLK_TCK); > > ioctl (fd, SG_SET_TIMEOUT, &timeout); > >} > > #endif > > Seems that the Suse folks did not trust the usage of the HZ macro > that much. IIRC, HZ gives something like the kernel-internal timer > resolution or similar, and specifiying this value outside a header > file make some sense. Since 2.6, the kernel runs with two timer resolutions, one for the internal accounting, which is in general 1000Hz -> 1ms and the other one having a 4ms = 100Hz resolution (the default). The later one is in general reflected by the HZ, that is used in the scsi lib. While doing some cross-compilation stuff, I've already seen this sysconf stuff, so it should be save to use it. Could you please check the attached patch? (It's borrowed from gdb code) > Compiling sanei_scsi.c from sane-backends 1.1.18 with this patch > instead of the added #include line works fine. > That's what I've expected ;) Gerhard -- next part -- A non-text attachment was scrubbed... Name: sanei_scsi-HZ.patch Type: text/x-diff Size: 1038 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070119/1f4a7757/sanei_scsi-HZ.bin From jul...@michkloo.xs4all.nl Fri Jan 19 15:00:46 2007 From: jul...@michkloo.xs4all.nl (Julien Michielsen) Date: Fri Jan 19 15:06:54 2007 Subject: [sane-devel] failing make sane-backends-1.0.18; sanei_scsi question] Message-ID: <45b0cf0e.9080...@michkloo.xs4all.nl> Being the origin of this thread I'd like to make a few contributions Gerhard Jaeger wrote: > On Thursday 18 January 2007 20:55, abel deuring wrote: > [SNIPSNAP] >> GNU C Library stable release version 2.5 (20061011), by Roland > > ah - I see pretty new beast ;) On my SuSE 10.2: glibc-devel-2.5-25 >> Compiled on a Linux 2.6.18 system on 2006-11-26. > > Hmmm - okay. So they will use these headers... >>>>> Anyway could you guys please try and add the compiler.h only to the >>>>> HAVE_SCSI_SG_H path? >>>> Well, before making any "real" patch, the first thing I'd like to >>>> know is, if we have a special Suse 10.2 bug, or if something changed >>>> in the kernel headers... >>> Hmmm - seems we need to check how they compile their glibc and which >>> kernel-headers they use - I think Johannes is around and might could >>> shade some light on that - maybe also on that resmgr stuff. >> I think you spotted the cause in the diff file: > > Well, I've only copied the patch from the SuSE srpm ;) When I compiled the sane-backend the include-file seemed to be unread: sanei_scsi.c:1276: error: 'HZ' undeclared (first use in this function) In addition, it only was defined for 60 Hz: #define SG_DEFAULT_TIMEOUT (60*HZ) /* HZ == 'jiffies in 1 second' */ (/usr/include/scsi/sg.h line 268) therefore I added a line to fix HZ on 50, and then installed the backend without further problems. Also sane-frontends installed fine. The scanner was not recognized however. Starting xsane I got the message "no devices available" with 6 possible reasons under "help": - device not supported by sane? Thought epson 2580 is supported - supported device is busy No, it isn't - no permissions, try as root Did not help - back-end is not loaded by saneAdded usb 0x4b8 0x121 to /etc/sane.d/epson.conf and thinkthis defines it properly - back-end not configured properly Answered on other back-end point - possibly more than one sane-version No there is not. installed. My question: anyone a suggestion how to get my epson 2580 recognized? Thanks -- Julien Michielsen -- Julien Michielsen
[sane-devel] Xsane/scanimage -L only works as root
Hello, I have Mandriva 2007 with an HP Photosmart C3180 All-in-One device. The printer part works well (with the HP drivers) I would like to use the scanner function with Xsane (I tried it on Ubuntu and it worked), but it only works as root. With normal user the device is not detected. Even scanimage fails as a normal user: renan@wizard:~$ scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). But with root it work: renan@wizard:~$ su Senha: [root@wizard renan]# scanimage -L device `hpaio:/usb/Photosmart_C3100_series?serial=BR6BIGN0NR04KV' is a hp Photosmart_C3100_series multi-function peripheral I think it might be a permission problem. If so, what files should I change permission/ownership of? Thanks! Renan Birck -- next part -- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070119/590798a0/attachment.html From drou...@darcs.net Fri Jan 19 05:33:56 2007 From: drou...@darcs.net (David Roundy) Date: Fri Jan 19 05:40:10 2007 Subject: [sane-devel] Xsane/scanimage -L only works as root In-Reply-To: References: Message-ID: <20070119043355.gb15...@abridgegame.org> On Fri, Jan 19, 2007 at 01:16:49AM -0200, Renan Birck wrote: > I think it might be a permission problem. If so, what files should I > change permission/ownership of? Most likely you just need to add your user to the group scanner. -- David Roundy http://www.darcs.net