[sane-devel] segfault when using transparency unit with epson
Hi, On Sat, Mar 29, 2003 at 09:26:05PM +0100, Markus Hoenicka wrote: Is this a known problem? Would upgrading to the unstable branch (1.0.10-1) help? I don't know, but there are backported SANE packages for Woody (1.0.11): http://people.debian.org/~aurel32/sane.html Bye, Henning
[sane-devel] Trouble with hp5400
--IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 29, 2003 at 04:16:26PM -0800, Tim Ashman wrote: I've been trying all afternoon to get the 5400c recognized on my Suse=20 8.0 system. =20 I've removed the older sane, installed the newest backend, followed the= =20 instructions included with the alpha hp driver and the few posts I could= =20 find searching these archives This would be the HP5400c? That backend is not in SANE by default, but maybe you can try: http://sourceforge.net/projects/hp5400backend/ You may need to get the CVS version but the latest release there should work. Please let us know how it goes. Thanks, --=20 Martijn van Oosterhout klep...@svana.org http://svana.org/kleptog/ the West won the world not by the superiority of its ideas or values or religion but rather by its superiority in applying organized violence. Westerners often forget this fact, non-Westerners never do. - Samuel P. Huntington --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+hrEdY5Twig3Ge+YRAsatAKCUkn8hFNNlSx/3uC5BU8bJ9dmfuACgiaSM I570v7G+MA+TaPK7LY2HNPM= =0qPR -END PGP SIGNATURE- --IS0zKkzwUGydFO0o--
[sane-devel] Trouble with hp5400
Martijn van Oosterhout wrote: On Sat, Mar 29, 2003 at 04:16:26PM -0800, Tim Ashman wrote: I've been trying all afternoon to get the 5400c recognized on my Suse 8.0 system. I've removed the older sane, installed the newest backend, followed the instructions included with the alpha hp driver and the few posts I could find searching these archives This would be the HP5400c? That backend is not in SANE by default, but maybe you can try: http://sourceforge.net/projects/hp5400backend/ I have grabbed this and followed the instructions about changing the SANE_LIBS_DIR and such. I have a *so.1 in my sane libs directory. If I use hwinfo I see the scanner info in the correct category under scanners. So the linux appears to be working correctly I just can't get sane to use the 5400backend. You may need to get the CVS version but the latest release there should work. Please let us know how it goes. I will snag this and give it a try. Thanks. Thanks,
[sane-devel] ScanJet 3200C
On Fri, Mar 28, 2003 at 06:32:52PM -0300, Alejandro Noli wrote: I'm closer and closer... It will work, I know !! You know, I saw in the BIOS, the two values, and thought that selecting both it will be allright. I changed it. Now, only EPP, and is listed now. Finally scanimage -L showed what it has to. But, after that, I installed xsane (that depends on libsane with, i think, another version of scanimage) and there is a crash. Sincerely, Hello, since the hardware is now tuned, you might consider removing all sane and scanimage packages, and then reinstall them at once with version that makes your package manager happy. You'll certainly have to modify dll.conf again. Alternatively, you may recompile sane and xsane from their sources. Passing '--prefix=/usr --sysconfdir=/etc' will ensure that they will be installed where most distribution put them. Don't forget '--enable-parport-direction' for sane-backends. Regards, Stef
[sane-devel] IPv6 patch for saned and net backend
Hi, On Sun, Mar 23, 2003 at 04:41:27PM +0100, Henning Meier-Geinitz wrote: *** FreeBSD: IPV6=yes, compiles ok, but running net doesn't really work: The problem occurs because the socket is set into non-blocking mode: if (fcntl (fd, F_SETFL, O_NONBLOCK) However, saned (or to be exact, the sanei_net stuff) doesn't expect that and doesn't handle EAGAIN. Just removing the fcntl line solves the problem. Bye, Henning
[sane-devel] Canon N656U poor image quality
Just got Mandrake 9.1 which includes support for my Canon N656U scanner (sane v.1.0.11) This is the first time I've had this scanner working at all in Linux. Initial tests have revealed very poor image quality, however. Virtical streaks appear through the image which are not on the original. Ive tried this at several standard and non-standard resolutions with similar results in each test. Below is a URL to one of my test scans done at 150DPI http://brainslide.com/scantest2.jpg Please advise. I'm quite open to the possibility that I'm just doing something wrong, as this is my first experience with Sane. The above image was scanned with all the settings as default (except resolution). ~ At night I dream of a world where Windows doesn't suck. ~
[sane-devel] IPv6 patch for saned and net backend
Henning Meier-Geinitz henn...@meier-geinitz.de wrote: Hi, *** FreeBSD: IPV6=yes, compiles ok, but running net doesn't really work: The problem occurs because the socket is set into non-blocking mode: if (fcntl (fd, F_SETFL, O_NONBLOCK) Damn, I thought the fd was duped after the connection is accepted, in which case the O_NONBLOCK flag is cleared (as any other flag) on the returned fd. However, saned (or to be exact, the sanei_net stuff) doesn't expect that and doesn't handle EAGAIN. Just removing the fcntl line solves the problem. Patch updated, I removed this line ; there's also the fix for the SANE_IN6_IS_ADDR_LOOPBACK that removes the __ in front of the const keyword in the casts. http://people.debian.org/~jblache/sane-IPv6-20030330.patch (48 KB) Now it should build and run on most platforms... JB. -- Julien BLACHE http://www.jblache.org j...@jblache.org
[sane-devel] IPv6 patch for saned and net backend
Hi, On Sun, Mar 30, 2003 at 08:48:31PM +0200, Julien BLACHE wrote: Now it should build and run on most platforms... The patch is in CVS now. Thanks for all the work! Bye, Henning
[sane-devel] Some warnings/errors - please verify your backends
Hi, On Wed, Mar 26, 2003 at 10:29:53PM +0100, Oliver Rauch wrote: - A lot of unused parameter warnings. I saw some SANE code that does var=var; to quell such warnings, so presumably at least some people care. Probably 99% of those are harmless, just annoying. - Twelve unused variable warnings. Maybe #ifdef problems. - 13 warnings which indicate carelessness with `const': two assignment discards `const' from pointer target type and 11 passing arg 1 of `free' discards `const' from pointer target type. How serious SANE considers these depends on how serious it is about doing real const poisoning; since the gcc instructions don't say to use -Wwrite-strings, presumably it's not really all that serious. Usually that's because of something like sane.name = strdup (name); [...] free (sane.name); To avoid these, either use sane.name = some name; or name = (use any method to set the name); sane.name = name; [...] free (name); - 30 comparison between signed and unsigned. I consider these total noise, to the point where I use -Wno-sign-compare. I found two or three errors becasue of these warnings in my code, so sometimes they make sense. E.g. if (result 0) to catche errors when result is unsigned int. - 133 int format, long int arg messages. These will matter on architectures where long and int are not the same size, like alpha or sparc64. (I suspect the successful build on NetBSD/alpha despite these is because they are the last format argument, and the alpha is little-endian. On a big-endian platform like sparc64, I would expect incorrect results to ensue.) That's definitely a bug. And it's mentioned for ages in backend-writing.txt. - Various other format/argument type mismatches: canon630u-common.c, line 305: warning: unsigned int format, long unsigned int arg (arg 3) canon630u-common.c, line 331: warning: unsigned int format, long unsigned int arg (arg 3) epson.c, line 908: warning: unsigned int format, long unsigned int arg (arg 3) epson.c, line 837: warning: unsigned int format, size_t arg (arg 3) canon630u-common.c, line 239: warning: unsigned int format, size_t arg (arg 4) canon630u-common.c, line 261: warning: unsigned int format, size_t arg (arg 4) - One missing initializer. - One call to mktemp(), which actually is broken anyway, since the return value test is reversed. (backend/bh.c line 1865.) This and the following open() should be collapsed into a call to mkstemp() to avoid the race between testing for nonexistence of the file and opening it - though I note the open uses O_EXCL, so losing the race merely produces an unnecessary error rather than a serious bug. Most of the warnings are known. But I hesitate to touch this code because I don't have the equipment to test it and at least some maintainers aren't active anymore. - Two passing arg N of `...' from incompatible pointer type, both in the same call: coolscan.c, line 2641: warning: passing arg 2 of `RGBIfix16' from incompatible pointer type coolscan.c, line 2641: warning: passing arg 3 of `RGBIfix16' from incompatible pointer type Coolscan is one of those backends, there are already TODO entries for it. If SANE is interested, I can try to clean these up and send in patches for them. (Since it works for me, I'm not inclined to bother unless there's a reasonable chance SANE would actually pick up the patches.) Please send patches. I can't gurantee that I'll apply them all but I'll do that at least for the obvious ones for unmaintained backends. Bye, Henning
[sane-devel] First try dutch translation
Hi, On Sat, Mar 01, 2003 at 01:48:11PM +0100, Bertrik Sikken wrote: * finally we do a consistency check and send it to Henning What happened with the update of the dutch translation? Or did I miss anything? Bye, Henning
[sane-devel] What about creating music with scanning devices?
Hi, I've just had an idea about a crazy scanner frontend: The basic idea is to use a scanner as music instrument and translate a scan line into music notes (x-scale for differnt notes and intensity for the volume). Therefore it would be nice to have a constant y value (I don't see an interesting use for y!). So it would be great to read out that one y-line and produce MIDI notes until Ctrl-C is pressed. I'm more involved into the ALSA side of this problem and absolutely new to sane development. So my question: Is it possible to solve this (read out one line without y movement) in a frontend application? Or do I have to patch the backend part? Is there any developer information available? I've just had a look to some command line frontends, but they don't touch this point (ok, it's possible that I'm blind!). But my impression was: they only handle complete scans, which I don't want to use. Or is there a general problem in the control of scanning devices, if I have this goal . because they were not build for this use. Is there a counterpart to sane_get_parameters() for setting those parameters, like lines and pixels? Anybody out there, who can give me some hints or who can say: Forget It! thanks, martin
[sane-devel] Some warnings/errors - please verify your backends
Hi, On Sun, Mar 30, 2003 at 10:00:23PM +0200, Henning Meier-Geinitz wrote: Hi, On Wed, Mar 26, 2003 at 10:29:53PM +0100, Oliver Rauch wrote: - A lot of unused parameter warnings. I saw some SANE code that does var=var; to quell such warnings, so presumably at least some people care. Probably 99% of those are harmless, just annoying. I tried to Cc: the original author (der Mouse mo...@rodents.montreal.qc.ca), but he doesn't want my mail: 550-Not interested in mail from kundenserver.de. Oliver (or someone else) can you forward my response to him? Bye, Henning
[sane-devel] What about creating music with scanning devices?
The basic idea is to use a scanner as music instrument and translate a scan line into music notes (x-scale for differnt notes and intensity for the volume). Therefore it would be nice to have a constant y value (I don't see an interesting use for y!). So it would be great to read out that one y-line and produce MIDI notes until Ctrl-C is pressed. Just to make sure I'm getting the right ideas: you want a scanner to scan a single line over and over quickly so that you can synthesize music by moving objects above the scanner's glass surface? Sounds very interesting indeed! Is it possible to solve this (read out one line without y movement) in a frontend application? Or do I have to patch the backend part? Is there any It has little to do with the frontend. Scanners are designed to scan whole 2D documents, so making just a frontend will not be enough. You'll probably have to find a scanner that can do this in hardware (not easy, I suppose), then probably modify its backend. Is there a counterpart to sane_get_parameters() for setting those parameters, like lines and pixels? The name of sane_get_parameters() can be misleading. It is supposed to return secondary values, i.e. values calculated from the scan options, such as the total number of bytes. Options are set using sane_control_option(), that's what you're looking for, I suppose. Anybody out there, who can give me some hints or who can say: Forget It! Given that (most?) scanners weren't designed for real-time scanning, I'd suggest you look at video cameras instead. It should be fairly easy to do what you want by using a digital video camera, dissect the DV stream so as to take one line only, then use that to generate your music. Andras === Major Andras e-mail: and...@users.sourceforge.net www:http://andras.webhop.org/ ===
[sane-devel] What about creating music with scanning devices?
On Sun, Mar 30, 2003 at 09:56:53PM +0100, Major A wrote: The basic idea is to use a scanner as music instrument and translate a scan line into music notes (x-scale for differnt notes and intensity for the volume). Therefore it would be nice to have a constant y value (I don't see an interesting use for y!). So it would be great to read out that one y-line and produce MIDI notes until Ctrl-C is pressed. Just to make sure I'm getting the right ideas: you want a scanner to scan a single line over and over quickly so that you can synthesize music by moving objects above the scanner's glass surface? Sounds very interesting indeed! I'm not really sure, about my final goals. On one hand I can have a three dimensional keyboard (RGB) and on the other hand I don't know how to use it. But we will see. My first idea was playing an invisible keyboard with my finger tips on the scanner surface, but there are more possibilities, that's right and I don't see them all. Is it possible to solve this (read out one line without y movement) in a frontend application? Or do I have to patch the backend part? Is there any It has little to do with the frontend. Scanners are designed to scan whole 2D documents, so making just a frontend will not be enough. You'll probably have to find a scanner that can do this in hardware (not easy, I suppose), then probably modify its backend. Then it would be depend on a specific scanner and a general solution would be much nicer. Ok, I will look to the backend part of my umax, but such things should be IMHO part of a middleware level. There is no middleware level in the sane architecture - Is that right? Given that (most?) scanners weren't designed for real-time scanning, I'd suggest you look at video cameras instead. It should be fairly easy to do what you want by using a digital video camera, dissect the DV stream so as to take one line only, then use that to generate your music. Yes. There are 1000 ideas to generate some notes, but there are not 1000 developers to do it and the companies want to sell more hardware instead of using existing hardware for strange things. But linux offers this general concepts of ALSA+SANE for a wide range of scanners and soundcards. And I like the idea to use it for more than normal things :-) but up to now it's not much more than an idea! martin
[sane-devel] (no subject)
theill...@yahoo.com = Supa Filla! __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com