Re: Porting SANE backend 1.0.21 to FreeBSD 7.2
On Sun, May 23, 2010 at 02:00:46PM -0700, Mark Terribile wrote: Thanks to help from Warren Block and Lowell Gilbert, I now have the offical ported version of sane-backends-1.0.21 running. Unfortunately, it's behaving the same way as before, apparently not properly recognizing the USB device. It Does anyone have experience using this? I have zero experience using SANE, but... Or better yet, some sense of what it needs from the USB side? I think the right answer is 'nothing'. A clue on enabling the internal debugging would also be welcome. I have added product CANON CS8800F0x1901CanoScan 8800F to /usr/src/sys/dev/usb/usbdevs. I have also added {{ USB_VENDOR_CANON, USB_PRODUCT_CANON_CS8800F }, 0 }, to /usr/src/sys/dev/usb/uscanner.c I think this is wrong and may cause all of your problems. I have heard somewhere that the right way of accessing USB scanners on FreeBSD is through libusb. That is, your scanner *should not be recognized* by uscanner driver and *should not appear* in /dev/. When I run scanimage -L I get - device `pixma:04A91901' is a CANON Canoscan 8800F multi-function peripheral --- When I run scanimage -d pixma:04A9101 I get scanimage: sane_read: Invalid argument Which I have traced to a defaulted fill routine in a table. scanimage --help gives me a message ending with --- Options specific to device `pixma:04A91901': Scan mode: --resolution auto||75|150|300|600|1200|2400|4800dpi [75] Sets the resolution of the scanned image. --mode auto|Color|Gray [Color] Selects the scan mode (e.g., lineart, monochrome, or color). --source Flatbed|Transparency Unit [Flatbed] Selects the scan source (such as a document-feeder). --button-controlled[=(yes|no)] [no] When enabled, scan process will not start immediately. To proceed, press SCAN button (for MP150) or COLOR button (for other models). To cancel, press GRAY button. Gamma: --custom-gamma[=(auto|yes|no)] [yes] Determines whether a builtin or a custom gamma-table should be used. --gamma-table auto|0..255,... Gamma-correction table. In color mode this option equally affects the red, green, and blue channels simultaneously (i.e., it is an intensity gamma table). Geometry: -l auto|0..216.069mm [0] Top-left x position of scan area. -t auto|0..297.011mm [0] Top-left y position of scan area. -x auto|0..216.069mm [216.069] Width of scan-area. -y auto|0..297.011mm [297.011] Height of scan-area. Buttons: --button-update Update button state --button-1 int [0] Button 1 --button-2 int [0] Button 2 Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE. List of available devices: There is a /dev/usb/uscanner . I haven't figured out how to turn on the internal debugging system, so my first question to someone who may have ported an earlier version is how to do that. My second question is whether I have the USB entries right, and whether I need to do anything else to make this work. Try reverting all your changes and look how it goes with stock sane from ports. And finally, I ask for any general wisdom or hints in dealing with SANE and SANE with USB devices. HTH, Alexey. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Porting SANE backend 1.0.21 to FreeBSD 7.2
Hi, On Sat, May 22, 2010 at 5:03 PM, Mark Terribile materrib...@yahoo.comwrote: And finally, I ask for any general wisdom or hints in dealing with SANE and SANE with USB devices. Check out this thread for hints about debugging SANE and USB devices: http://lists.freebsd.org/pipermail/freebsd-usb/2010-January/008072.html (it's a different scanner, but the general principles apply) HTH -- Regards, Torfinn Ingolfsen ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Porting SANE backend 1.0.21 to FreeBSD 7.2
Warren, If this is the wrong place, please be gentle! I need to get a Canon 8800F scanner running on FreeBSD 7.2 . SANE's latest version is said to support this scanner. sane-backends 1.0.21 showed up in ports this morning... I'm sorry to be further trouble, but I've tried portupgrade and pkgdb -FU followed by portupgrade and even though the INDEX-7 file indicates that the sane-backend version is 1.0.21 I keep getting 1.0.20 downloaded. What should I be looking at? Mark Terribile ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Porting SANE backend 1.0.21 to FreeBSD 7.2
Warren, sane-backends 1.0.21 showed up in ports this morning... I'm sorry to be further trouble, but I've tried portupgrade and pkgdb -FU followed by portupgrade and even though the INDEX-7 file indicates that the sane-backend version is 1.0.21 I keep getting 1.0.20 downloaded. Here's a little more information: portinstall -f sane-backends-1.0.21 tells me Found already installed package(s) of 'graphics/sane-backends': sane-backends-1.0.20_4 portupgrade with various flags simply does nothing. The entry for sane-backends in INDEX-7 reads sane-backends-1.0.21|/usr/ports/graphics/sane-backends|/usr/local|API for access to scanners, digitals camera, frame grabbers etc|/usr/ports/graphics/sane-backends/pkg-descr|po...@freebsd.org|graphics|gettext-0.17_1 gmake-3.81_3 jbigkit-1.6 jpeg-8_2 libiconv-1.13.1_1 libusb-0.1.12_4 tiff-3.9.2_1|gettext-0.17_1 jbigkit-1.6 jpeg-8_2 libiconv-1.13.1_1 libusb-0.1.12_4 tiff-3.9.2_1|http://www.sane-project.org/||| ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Porting SANE backend 1.0.21 to FreeBSD 7.2
Mark Terribile materrib...@yahoo.com writes: Warren, sane-backends 1.0.21 showed up in ports this morning... I'm sorry to be further trouble, but I've tried portupgrade and pkgdb -FU followed by portupgrade and even though the INDEX-7 file indicates that the sane-backend version is 1.0.21 I keep getting 1.0.20 downloaded. Here's a little more information: portinstall -f sane-backends-1.0.21 tells me Found already installed package(s) of 'graphics/sane-backends': sane-backends-1.0.20_4 portupgrade with various flags simply does nothing. The entry for sane-backends in INDEX-7 reads sane-backends-1.0.21|/usr/ports/graphics/sane-backends|/usr/local|API for access to scanners, digitals camera, frame grabbers etc|/usr/ports/graphics/sane-backends/pkg-descr|po...@freebsd.org|graphics|gettext-0.17_1 gmake-3.81_3 jbigkit-1.6 jpeg-8_2 libiconv-1.13.1_1 libusb-0.1.12_4 tiff-3.9.2_1|gettext-0.17_1 jbigkit-1.6 jpeg-8_2 libiconv-1.13.1_1 libusb-0.1.12_4 tiff-3.9.2_1|http://www.sane-project.org/||| Sounds like you need a portsdb -uf. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Porting SANE backend 1.0.21 to FreeBSD 7.2
Lowell, --- On Sun, 5/23/10, Lowell Gilbert freebsd-ports-lo...@be-well.ilk.org Warren, sane-backends 1.0.21 showed up in ports this morning... I'm sorry to be further trouble, but I've tried portupgrade and pkgdb -FU followed by portupgrade and even though the INDEX-7 file indicates that the sane-backend version is 1.0.21 I keep getting 1.0.20 downloaded. Here's a little more information: portinstall -f sane-backends-1.0.21 tells me Found already installed package(s) of 'graphics/sane-backends': sane-backends-1.0.20_4 portupgrade with various flags simply does nothing. The entry for sane-backends in INDEX-7 reads sane-backends-1.0.21|/usr/ports/graphics/sane-backends|/usr/local|API for access to scanners, digitals camera, frame grabbers etc|/usr/ports/graphics/sane-backends/pkg-descr|po...@freebsd.org|graphics|gettext-0.17_1 gmake-3.81_3 jbigkit-1.6 jpeg-8_2 libiconv-1.13.1_1 libusb-0.1.12_4 tiff-3.9.2_1|gettext-0.17_1 jbigkit-1.6 jpeg-8_2 libiconv-1.13.1_1 libusb-0.1.12_4 tiff-3.9.2_1|http://www.sane-project.org/||| Sounds like you need a portsdb -uf. I just tried it. Same results. Here's the result of portinstall -f sane-backends-1.0.21 (which I interrupted after it went wrong). [Gathering depends for graphics/sane-backends .. done] --- Installing 'sane-backends-1.0.20_4' from a port (graphics/sane-backends) --- Building '/usr/ports/graphics/sane-backends' === Cleaning for sane-backends-1.0.20_4 === Found saved configuration for sane-backends-1.0.20_4 === Extracting for sane-backends-1.0.20_4 = MD5 Checksum mismatch for sane-backends-1.0.20.tar.gz. = SHA256 Checksum mismatch for sane-backends-1.0.20.tar.gz. === Refetch for 1 more times files: sane-backends-1.0.20.tar.gz sane-backends-1.0.20.tar.gz === Found saved configuration for sane-backends-1.0.20_4 = sane-backends-1.0.20.tar.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from http://alioth.debian.org/frs/download.php/3026/. ^?fetch: transfer interrupted ** Command failed [exit code 2]: /usr/bin/script -qa /tmp/portinstall20100523-79910-1ktytu1-0 env make FETCH_BEFORE_ARGS=-q ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! graphics/sane-backends(checksum mismatch) ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Porting SANE backend 1.0.21 to FreeBSD 7.2
On Sun, 23 May 2010, Mark Terribile wrote: sane-backends 1.0.21 showed up in ports this morning... I'm sorry to be further trouble, but I've tried portupgrade and pkgdb -FU followed by portupgrade and even though the INDEX-7 file indicates that the sane-backend version is 1.0.21 I keep getting 1.0.20 downloaded. What should I be looking at? portsnap or csup to update the ports tree. Or maybe a different mirror in case the one you're using is outdated. Here's what I use: csup ports-supfile portsdb -Fu(portsdb is from portupgrade[-devel]) and then portversion -vL= to show outdated ports. -Warren Block * Rapid City, South Dakota USA ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Porting SANE backend 1.0.21 to FreeBSD 7.2
Thanks to help from Warren Block and Lowell Gilbert, I now have the offical ported version of sane-backends-1.0.21 running. Unfortunately, it's behaving the same way as before, apparently not properly recognizing the USB device. It Does anyone have experience using this? Or better yet, some sense of what it needs from the USB side? A clue on enabling the internal debugging would also be welcome. Mark Terribile = I have added product CANON CS8800F0x1901CanoScan 8800F to /usr/src/sys/dev/usb/usbdevs. I have also added {{ USB_VENDOR_CANON, USB_PRODUCT_CANON_CS8800F }, 0 }, to /usr/src/sys/dev/usb/uscanner.c When I run scanimage -L I get - device `pixma:04A91901' is a CANON Canoscan 8800F multi-function peripheral --- When I run scanimage -d pixma:04A9101 I get scanimage: sane_read: Invalid argument Which I have traced to a defaulted fill routine in a table. scanimage --help gives me a message ending with --- Options specific to device `pixma:04A91901': Scan mode: --resolution auto||75|150|300|600|1200|2400|4800dpi [75] Sets the resolution of the scanned image. --mode auto|Color|Gray [Color] Selects the scan mode (e.g., lineart, monochrome, or color). --source Flatbed|Transparency Unit [Flatbed] Selects the scan source (such as a document-feeder). --button-controlled[=(yes|no)] [no] When enabled, scan process will not start immediately. To proceed, press SCAN button (for MP150) or COLOR button (for other models). To cancel, press GRAY button. Gamma: --custom-gamma[=(auto|yes|no)] [yes] Determines whether a builtin or a custom gamma-table should be used. --gamma-table auto|0..255,... Gamma-correction table. In color mode this option equally affects the red, green, and blue channels simultaneously (i.e., it is an intensity gamma table). Geometry: -l auto|0..216.069mm [0] Top-left x position of scan area. -t auto|0..297.011mm [0] Top-left y position of scan area. -x auto|0..216.069mm [216.069] Width of scan-area. -y auto|0..297.011mm [297.011] Height of scan-area. Buttons: --button-update Update button state --button-1 int [0] Button 1 --button-2 int [0] Button 2 Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE. List of available devices: There is a /dev/usb/uscanner . I haven't figured out how to turn on the internal debugging system, so my first question to someone who may have ported an earlier version is how to do that. My second question is whether I have the USB entries right, and whether I need to do anything else to make this work. And finally, I ask for any general wisdom or hints in dealing with SANE and SANE with USB devices. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Porting SANE backend 1.0.21 to FreeBSD 7.2
If this is the wrong place, please be gentle! I need to get a Canon 8800F scanner running on FreeBSD 7.2 . SANE's latest version is said to support this scanner. I have gotten a copy of it to build (and fed a few minor problems back to the people at the SANE project: https://alioth.debian.org/tracker/?func=detailatid=410366aid=312503group_id=30186) and I have added product CANON CS8800F 0x1901 CanoScan 8800F to /usr/src/sys/dev/usb/usbdevs. I have also added {{ USB_VENDOR_CANON, USB_PRODUCT_CANON_CS8800F }, 0 }, to /usr/src/sys/dev/usb/uscanner.c When I run scanimage -L I get - device `pixma:04A91901' is a CANON Canoscan 8800F multi-function peripheral --- When I run scanimage -d pixma:04A9101 I get scanimage: sane_read: Invalid argument Which I have traced to a defaulted fill routine in a table. scanimage --help gives me --- Usage: scanimage [OPTION]... Start image acquisition on a scanner device and write image data to standard output. Parameters are separated by a blank from single-character options (e.g. -d epson) and by a = from multi-character options (e.g. --device-name=epson). -d, --device-name=DEVICE use a given scanner device (e.g. hp:/dev/scanner) --format=pnm|tiff file format of output file -i, --icc-profile=PROFILE include this ICC profile into TIFF file -L, --list-devices show available scanner devices -f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output can be specified: %d (device name), %v (vendor), %m (model), %t (type), %i (index number), and %n (newline) -b, --batch[=FORMAT] working in batch mode, FORMAT is `out%d.pnm' or `out%d.tif' by default depending on --format --batch-start=#page number to start naming files with --batch-count=#how many pages to scan in batch mode --batch-increment=#increase page number in filename by # --batch-double increment page number by two, same as --batch-increment=2 --batch-prompt ask for pressing a key before scanning a page --accept-md5-only only accept authorization requests using md5 -p, --progress print progress messages -n, --dont-scanonly set options, don't actually scan -T, --test test backend thoroughly -h, --help display this help message and exit -v, --verbose give even more status messages -B, --buffer-size=#change input buffer size (in kB, default 32) -V, --version print version information Options specific to device `pixma:04A91901': Scan mode: --resolution auto||75|150|300|600|1200|2400|4800dpi [75] Sets the resolution of the scanned image. --mode auto|Color|Gray [Color] Selects the scan mode (e.g., lineart, monochrome, or color). --source Flatbed|Transparency Unit [Flatbed] Selects the scan source (such as a document-feeder). --button-controlled[=(yes|no)] [no] When enabled, scan process will not start immediately. To proceed, press SCAN button (for MP150) or COLOR button (for other models). To cancel, press GRAY button. Gamma: --custom-gamma[=(auto|yes|no)] [yes] Determines whether a builtin or a custom gamma-table should be used. --gamma-table auto|0..255,... Gamma-correction table. In color mode this option equally affects the red, green, and blue channels simultaneously (i.e., it is an intensity gamma table). Geometry: -l auto|0..216.069mm [0] Top-left x position of scan area. -t auto|0..297.011mm [0] Top-left y position of scan area. -x auto|0..216.069mm [216.069] Width of scan-area. -y auto|0..297.011mm [297.011] Height of scan-area. Buttons: --button-update Update button state --button-1 int [0] Button 1 --button-2 int [0] Button 2 Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE. List of available devices: There is a /dev/usb/uscanner . I haven't figured out how to turn on the internal debugging system, so my first question to someone who may have ported an earlier version is how to do that. My second question is whether I have the USB entries right, and whether I need to do anything else to make this work. And finally, I ask for any general wisdom or hints in dealing with SANE and SANE with USB devices. When I am done, I will gladly turn my work over to anyone who would like to incorporate it into the ports base. (And after this, I need a new CUPS and an EPSON Sylus R1900). Thank you for any help you may be able to offer. Mark Terribile ___ freebsd-ports@freebsd.org mailing list
Re: Porting SANE backend 1.0.21 to FreeBSD 7.2
On Sat, 22 May 2010, Mark Terribile wrote: If this is the wrong place, please be gentle! I need to get a Canon 8800F scanner running on FreeBSD 7.2 . SANE's latest version is said to support this scanner. sane-backends 1.0.21 showed up in ports this morning... I have gotten a copy of it to build (and fed a few minor problems back to the people at the SANE project: https://alioth.debian.org/tracker/?func=detailatid=410366aid=312503group_id=30186) Not sure what's going on in that thread, but the upstream software developer really shouldn't have to worry about FreeBSD paths and where the FreeBSD port is going to end up directory-wise. That's kind of what the port is all about. -Warren Block * Rapid City, South Dakota USA___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org