[sane-devel] HP Scanjet 4850 Development
Le mardi 21 f?vrier 2012 21:06:40 Stef a ?crit : Le mardi 21 f?vrier 2012 16:12:30 Dani?l Sonck a ?crit : I found the following values SANE_FIX (7.9),/* Start of scan area in mm (x) */ SANE_FIX (5.9),/* Start of scan area in mm (y) */ SANE_FIX (219.6),/* Size of scan area in mm (x) */ SANE_FIX (314.5),/* Size of scan area in mm (y) */ Hello, thanks for these values. I'll commit them shortly. Regards, Stef Hello, I have committed the changes. I can get them in latest git version. Regards, Stef
[sane-devel] HP Scanjet 4850 Development
On 16-02-12 21:24, Stef wrote: But even if it is in the starting position, almost every scan resolution I use moves the scan head to the wrong starting position, always too far resulting in a dangerous overscan (it doesn't bump however). The geometry description of the 4850 is a clone of the G4050. I has never been tuned since I don't have this device to test on. The value to work on are the one in genesys_devices.c in the hp4850 device entry: SANE_FIX (8.0), /* Start of scan area in mm (x) */ SANE_FIX (13.00), /* Start of scan area in mm (y) */ SANE_FIX (217.9), /* Size of scan area in mm (x) 5148 pixels at 600 dpi*/ SANE_FIX (315.0), /* Size of scan area in mm (y) */ The first is the amount of distance for the head to reach scan area. Decrease it until scan really starts at he beginning of the scan area. The second is left margin, and third the width. Tune width when margin is OK. Last field is total scanarea height. Decrease it to 250 so you get sure the head won't bump to the end of device. Once other values are settled, increase it until you get the whole area scanned. I found the following values SANE_FIX (7.9),/* Start of scan area in mm (x) */ SANE_FIX (5.9),/* Start of scan area in mm (y) */ SANE_FIX (219.6),/* Size of scan area in mm (x) */ SANE_FIX (314.5),/* Size of scan area in mm (y) */ -- Groeten, Dani?l Sonck - WWW: http://dss.nl.eu.org/ TEL: +31683554997 - Zin in wat kunst: http://dsonck92.deviantart.com/ - Certificate provider CA : CAcert ROOT: http://www.cacert.org/index.php?id=3 -- next part -- A non-text attachment was scrubbed... Name: dsonck92.vcf Type: text/x-vcard Size: 208 bytes Desc: not available URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120221/cf946b26/attachment.vcf -- next part -- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2312 bytes Desc: S/MIME Cryptographic Signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120221/cf946b26/attachment.bin
[sane-devel] HP Scanjet 4850 Development
Le mardi 21 f?vrier 2012 16:12:30 Dani?l Sonck a ?crit : I found the following values SANE_FIX (7.9),/* Start of scan area in mm (x) */ SANE_FIX (5.9),/* Start of scan area in mm (y) */ SANE_FIX (219.6),/* Size of scan area in mm (x) */ SANE_FIX (314.5),/* Size of scan area in mm (y) */ Hello, thanks for these values. I'll commit them shortly. Regards, Stef
[sane-devel] HP Scanjet 4850 Development
Le jeudi 9 f?vrier 2012 00:03:21 Dani?l Sonck a ?crit : On 07-02-12 21:38, Stef wrote: Le dimanche 5 f?vrier 2012 22:27:53 Dani?l Sonck a ?crit : On 05-02-12 09:01, Stef wrote: I compiled from the latest git source code. The release that came with openSUSE did not want to work or recognize my printer. Daniel Hello, could test that adding your scanner to this test (line 710 of genesys_gl843.c) improves the scan ? /* G4050 values */ if ((strcmp (dev-model-name, hewlett-packard-scanjet-g4050) == 0) || (strcmp (dev-model-name, || hewlett-packard-scanjet-g4010) == 0)) { Regards, Stef Alright, I have made a simple script that calls scanimage with all possible combinations of scan settings (mode, resolution, bitdepth). I have clearly an error in my script as it calls lineart and depth together but somehow there is a (serious) bug in the driver. Whenever I call lineart together with depth, the driver actually sets the scan head to the beginposition but gives an error about the unused parameter. It doesn't return the scan head to the beginning. So as every new scan assumes that it is in the starting position (and it isn't far enough to let the scanner return the scan head self) it over-scans, and thus resulting in an awful bump. Would you mind send me the scanimage line with conflicting parameters so that I can reproduce the bug here ? But even if it is in the starting position, almost every scan resolution I use moves the scan head to the wrong starting position, always too far resulting in a dangerous overscan (it doesn't bump however). The geometry description of the 4850 is a clone of the G4050. I has never been tuned since I don't have this device to test on. The value to work on are the one in genesys_devices.c in the hp4850 device entry: SANE_FIX (8.0), /* Start of scan area in mm (x) */ SANE_FIX (13.00), /* Start of scan area in mm (y) */ SANE_FIX (217.9), /* Size of scan area in mm (x) 5148 pixels at 600 dpi*/ SANE_FIX (315.0), /* Size of scan area in mm (y) */ The first is the amount of distance for the head to reach scan area. Decrease it until scan really starts at he beginning of the scan area. The second is left margin, and third the width. Tune width when margin is OK. Last field is total scanarea height. Decrease it to 250 so you get sure the head won't bump to the end of device. Once other values are settled, increase it until you get the whole area scanned. The colors are strange too. In the folder (dss.nl.eu.org/pictures) you can see the results of Gray and Color mode. The second batch of scans are pictures of my printer-test-page as it shows all colors/Grays and text. Somehow my paper shows violet. That can be the paper, it does show a bit violet when it is being scanned. The background is clearly white (first couple of scans). Because I opened the lid (to see why it made strange noises like it was constantly bumping) the rest of the images have black backgrounds. In case of improper calibration colors maybe not good. Tuning the scanner geometry may help (by . You can also play with the gamma option to improves the result. By running scanimage like this: export SANE_DEBUG_GENESYS=255 export SANE_DEBUG_GENESYS_GL843=255 scanimage -d genesys --resolution 75 --mode Color scan.pnm 2debug.log You will create a debug.log and a lot of pnm files. Please send them all to me. I'll be able to check calibration. Mode Color 400dpi 16bit is pretty wrong. It moves the head forward for a couple of cm and then moves it back a bit and continues forward and reverses again (until it reaches the end). Mode Color 600dpi 16bit is very wrong. It moves the head forward and back (more back than forward). The scanned image is correctly read, the head isn't correctly moved. This is called backtracking: the computer doesn't read data fast enough, when its buffers are full the scanner discard data and goes back to the last good position. Compiling SANE using libusb-1 usually helps transfer speed. But at some point you may be constrained by USB bandwidth. Regards, Stef If you could tell me how to solve (or try to solve) this? Daniel
[sane-devel] HP Scanjet 4850 Development
On 07-02-12 21:38, Stef wrote: Le dimanche 5 f?vrier 2012 22:27:53 Dani?l Sonck a ?crit : On 05-02-12 09:01, Stef wrote: I compiled from the latest git source code. The release that came with openSUSE did not want to work or recognize my printer. Daniel Hello, could test that adding your scanner to this test (line 710 of genesys_gl843.c) improves the scan ? /* G4050 values */ if ((strcmp (dev-model-name, hewlett-packard-scanjet-g4050) == 0) || (strcmp (dev-model-name, hewlett-packard-scanjet-g4010) == 0)) { Regards, Stef Alright, I have made a simple script that calls scanimage with all possible combinations of scan settings (mode, resolution, bitdepth). I have clearly an error in my script as it calls lineart and depth together but somehow there is a (serious) bug in the driver. Whenever I call lineart together with depth, the driver actually sets the scan head to the beginposition but gives an error about the unused parameter. It doesn't return the scan head to the beginning. So as every new scan assumes that it is in the starting position (and it isn't far enough to let the scanner return the scan head self) it over-scans, and thus resulting in an awful bump. But even if it is in the starting position, almost every scan resolution I use moves the scan head to the wrong starting position, always too far resulting in a dangerous overscan (it doesn't bump however). The colors are strange too. In the folder (dss.nl.eu.org/pictures) you can see the results of Gray and Color mode. The second batch of scans are pictures of my printer-test-page as it shows all colors/Grays and text. Somehow my paper shows violet. That can be the paper, it does show a bit violet when it is being scanned. The background is clearly white (first couple of scans). Because I opened the lid (to see why it made strange noises like it was constantly bumping) the rest of the images have black backgrounds. Mode Color 400dpi 16bit is pretty wrong. It moves the head forward for a couple of cm and then moves it back a bit and continues forward and reverses again (until it reaches the end). Mode Color 600dpi 16bit is very wrong. It moves the head forward and back (more back than forward). The scanned image is correctly read, the head isn't correctly moved. If you could tell me how to solve (or try to solve) this? Daniel -- Groeten, Dani?l Sonck - WWW: http://dss.nl.eu.org/ TEL: +31683554997 - Zin in wat kunst: http://dsonck92.deviantart.com/ - Certificate provider CA : CAcert ROOT: http://www.cacert.org/index.php?id=3 -- next part -- A non-text attachment was scrubbed... Name: dsonck92.vcf Type: text/x-vcard Size: 208 bytes Desc: not available URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120209/b5f78f6a/attachment.vcf -- next part -- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2312 bytes Desc: S/MIME Cryptographic Signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120209/b5f78f6a/attachment.bin
[sane-devel] HP Scanjet 4850 Development
On 07-02-12 21:38, Stef wrote: Le dimanche 5 f?vrier 2012 22:27:53 Dani?l Sonck a ?crit : On 05-02-12 09:01, Stef wrote: I compiled from the latest git source code. The release that came with openSUSE did not want to work or recognize my printer. Daniel Hello, could test that adding your scanner to this test (line 710 of genesys_gl843.c) improves the scan ? /* G4050 values */ if ((strcmp (dev-model-name, hewlett-packard-scanjet-g4050) == 0) || (strcmp (dev-model-name, hewlett-packard-scanjet-g4010) == 0)) { Regards, Stef It's a lot better. I've changed the line into: /* G4050 values */ if ((strcmp (dev-model-name, hewlett-packard-scanjet-g4050) == 0) || (strcmp (dev-model-name, hewlett-packard-scanjet-g4010) == 0) || (strcmp (dev-model-name, hewlett-packard-scanjet-4850c) == 0) ) I guess this is the experimental code. I ran some tests. In the folder I specified before (dss.nl.eu.org/images) I have put the new images. It does bump at the end. (Just one click and it returns so a little refinement is needed). Color is somewhat shifted. But it does give a crisp image. And I can see (with the lid open) that the scan head goes too far as it scans a part of the inside (it should be an black image). And the purple disc in the middle is supposed to be a white bowl (wanted to experiment with color). Daniel -- Groeten, Dani?l Sonck - WWW: http://dss.nl.eu.org/ TEL: +31683554997 - Zin in wat kunst: http://dsonck92.deviantart.com/ - Certificate provider CA : CAcert ROOT: http://www.cacert.org/index.php?id=3 -- next part -- A non-text attachment was scrubbed... Name: dsonck92.vcf Type: text/x-vcard Size: 208 bytes Desc: not available URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120208/0fe1db0c/attachment.vcf
[sane-devel] HP Scanjet 4850 Development
Le dimanche 5 f?vrier 2012 22:27:53 Dani?l Sonck a ?crit : On 05-02-12 09:01, Stef wrote: I compiled from the latest git source code. The release that came with openSUSE did not want to work or recognize my printer. Daniel Hello, could test that adding your scanner to this test (line 710 of genesys_gl843.c) improves the scan ? /* G4050 values */ if ((strcmp (dev-model-name, hewlett-packard-scanjet-g4050) == 0) || (strcmp (dev-model-name, hewlett-packard-scanjet-g4010) == 0)) { Regards, Stef
[sane-devel] HP Scanjet 4850 Development
Le vendredi 3 f?vrier 2012 13:39:57 Dani?l Sonck a ?crit : Hello all, I recently got an HP Scanjet scanner from my parents as I sometimes need to copy or scan images as a student. I have seen that the genesys backend has experimental support for this scanner as it is based on the same chip. I have tried the latest snapshot and I am pleased to see that it actually sees the scanner and does something with it. Although the statement that it works with 2400 - 300 dpi is not entirely true. When I scan an image, the top left part gets scanned perfectly but the rest is black with stripes through it. You can actually see some of the image but it is not suited for copying. Well, it is better than nothing but here is the thing. As this scanner is pretty useless if I have to switch between Win 7 and OpenSUSE every time I want to scan something, I want to help you with the development of this driver. Well, I know nothing about scanner driver programming but I do know C++ so I understand the code of the driver. I am not willing to donate my scanner as it does work with Win 7 and if it is absolutely necessary I will switch to Win 7 to scan. But I am willing to do whatever you suggest to try to solve it. You could send me code changes to see if these would work or explain what I must modify to correct errors. Anyway, it is nice that there is some support for this scanner because I am not willing to buy a specific scanner if I already have a scanner. You can see the picture at http://dss.nl.eu.org/pictures/out.png. As far as I know, the scanner is fine. I just scanned the interior of the scanner, no sheet. There is a special negatives holder that always shows up, it makes a nice test scan as it is not confidential. Kind regards, Dani?l Sonck Hello, did you use a release or compiled from latest git source code ? Regards, Stef
[sane-devel] HP Scanjet 4850 Development
On 05-02-12 09:01, Stef wrote: Le vendredi 3 f?vrier 2012 13:39:57 Dani?l Sonck a ?crit : Hello all, I recently got an HP Scanjet scanner from my parents as I sometimes need to copy or scan images as a student. I have seen that the genesys backend has experimental support for this scanner as it is based on the same chip. I have tried the latest snapshot and I am pleased to see that it actually sees the scanner and does something with it. Although the statement that it works with 2400 - 300 dpi is not entirely true. When I scan an image, the top left part gets scanned perfectly but the rest is black with stripes through it. You can actually see some of the image but it is not suited for copying. Well, it is better than nothing but here is the thing. As this scanner is pretty useless if I have to switch between Win 7 and OpenSUSE every time I want to scan something, I want to help you with the development of this driver. Well, I know nothing about scanner driver programming but I do know C++ so I understand the code of the driver. I am not willing to donate my scanner as it does work with Win 7 and if it is absolutely necessary I will switch to Win 7 to scan. But I am willing to do whatever you suggest to try to solve it. You could send me code changes to see if these would work or explain what I must modify to correct errors. Anyway, it is nice that there is some support for this scanner because I am not willing to buy a specific scanner if I already have a scanner. You can see the picture at http://dss.nl.eu.org/pictures/out.png. As far as I know, the scanner is fine. I just scanned the interior of the scanner, no sheet. There is a special negatives holder that always shows up, it makes a nice test scan as it is not confidential. Kind regards, Dani?l Sonck Hello, did you use a release or compiled from latest git source code ? Regards, Stef I compiled from the latest git source code. The release that came with openSUSE did not want to work or recognize my printer. Daniel -- Groeten, Dani?l Sonck - WWW: http://dss.nl.eu.org/ TEL: +31683554997 - Zin in wat kunst: http://dsonck92.deviantart.com/ - Certificate provider CA : CAcert ROOT: http://www.cacert.org/index.php?id=3 -- next part -- A non-text attachment was scrubbed... Name: dsonck92.vcf Type: text/x-vcard Size: 208 bytes Desc: not available URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120205/4ee06982/attachment.vcf -- next part -- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2312 bytes Desc: S/MIME Cryptographic Signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120205/4ee06982/attachment.bin
[sane-devel] HP Scanjet 4850 Development
Hello all, I recently got an HP Scanjet scanner from my parents as I sometimes need to copy or scan images as a student. I have seen that the genesys backend has experimental support for this scanner as it is based on the same chip. I have tried the latest snapshot and I am pleased to see that it actually sees the scanner and does something with it. Although the statement that it works with 2400 - 300 dpi is not entirely true. When I scan an image, the top left part gets scanned perfectly but the rest is black with stripes through it. You can actually see some of the image but it is not suited for copying. Well, it is better than nothing but here is the thing. As this scanner is pretty useless if I have to switch between Win 7 and OpenSUSE every time I want to scan something, I want to help you with the development of this driver. Well, I know nothing about scanner driver programming but I do know C++ so I understand the code of the driver. I am not willing to donate my scanner as it does work with Win 7 and if it is absolutely necessary I will switch to Win 7 to scan. But I am willing to do whatever you suggest to try to solve it. You could send me code changes to see if these would work or explain what I must modify to correct errors. Anyway, it is nice that there is some support for this scanner because I am not willing to buy a specific scanner if I already have a scanner. You can see the picture at http://dss.nl.eu.org/pictures/out.png. As far as I know, the scanner is fine. I just scanned the interior of the scanner, no sheet. There is a special negatives holder that always shows up, it makes a nice test scan as it is not confidential. Kind regards, Dani?l Sonck -- Groeten, Dani?l Sonck - WWW: http://dss.nl.eu.org/ TEL: +31683554997 - Zin in wat kunst: http://dsonck92.deviantart.com/ - Certificate provider CA : CAcert ROOT: http://www.cacert.org/index.php?id=3 -- next part -- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2312 bytes Desc: S/MIME Cryptographic Signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120203/53e2c4e6/attachment.bin
[sane-devel] HP Scanjet 4850 Development
Hello all, I recently got an HP Scanjet scanner from my parents as I sometimes need to copy or scan images as a student. I have seen that the genesys backend has experimental support for this scanner as it is based on the same chip. I have tried the latest snapshot and I am pleased to see that it actually sees the scanner and does something with it. Although the statement that it works with 2400 - 300 dpi is not entirely true. When I scan an image, the top left part gets scanned perfectly but the rest is black with stripes through it. You can actually see some of the image but it is not suited for copying. Well, it is better than nothing but here is the thing. As this scanner is pretty useless if I have to switch between Win 7 and OpenSUSE every time I want to scan something, I want to help you with the development of this driver. Well, I know nothing about scanner driver programming but I do know C++ so I understand the code of the driver. I am not willing to donate my scanner as it does work with Win 7 and if it is absolutely necessary I will switch to Win 7 to scan. But I am willing to do whatever you suggest to try to solve it. You could send me code changes to see if these would work or explain what I must modify to correct errors. Anyway, it is nice that there is some support for this scanner because I am not willing to buy a specific scanner if I already have a scanner. You can see the picture at http://dss.nl.eu.org/pictures/out.png. As far as I know, the scanner is fine. I just scanned the interior of the scanner, no sheet. There is a special negatives holder that always shows up, it makes a nice test scan as it is not confidential. Kind regards, Dani?l Sonck -- Groeten, Dani?l Sonck - WWW: http://dss.nl.eu.org/ TEL: +31683554997 - Zin in wat kunst: http://dsonck92.deviantart.com/ - Certificate provider CA : CAcert ROOT: http://www.cacert.org/index.php?id=3 -- next part -- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2312 bytes Desc: S/MIME Cryptographic Signature URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120203/aee62cc4/attachment.bin