OK, here is the output of /usr/libexec/cups/backend/hp (I don't have a /usr/lib/cups/backend/hp)
# /usr/libexec/cups/backend/hp direct hp:/no_device_found "Unknown" "hp no_device_found" This is the same whether I modify models.dat or not. Somewhat unsuprising since the psc 1310 series doesn't use the hp backend. I thought the problem was pretty clear from the description below. hpaio is not working like hp-setup or hp-toolbox with respect to how they take the info from the printer (ATTRS{product}=="psc 1310 series ") and use it to read the models.dat file. hp-setup and hp-toolbox do it correctly, hpaio does not. Jim On Monday 29 January 2007 11:42, Aaron wrote: > Can you also run: > > /usr/lib/cups/backend/hp > > and post that? > > A > > On 1/27/07, Jim Stead <[EMAIL PROTECTED]> wrote: > > I found the problem > > It does not work because the PSC 1315 (it is actually a psc 1315) > > identifies > > itself as > > ATTRS{product}=="psc 1310 series " with a space before the end of the > > quote. > > The space is incorporated as an underscore in the device uri for cups and > > for > > sane backend hpaio. (My cups uri is as setup by hp-setup is: > > hp:/usb/psc_1310_series_?serial=CN48IB72SYO2 (note the underscore after > > series. > > > > When hpaio looks at /usr/share/hplip/data/models/models.dat, it only > > finds [psc_1310_series] (no trailing underscore). As a result, it has no > > usable scanners. Adding an underscore to the model.dat file > > [psc_1310_series_] enables scanning, but breaks recognition by hp-setup > > and hp-toolbox (and probably everything else that works correctly). > > Under hplip-1.6.10, everything worked correctly. > > > > hpaio is using the model number to look in models.dat, when it should be > > using > > the model number without the trailing underscore! > > > > Please fix this. > > > > Proof is as follows: > > > > After installation with hp-setup and exporting SANE_DEBUG_HPAIO=8 > > SANE_DEBUG_DLL=12 > > > > sane-find-scanner > > found USB scanner (vendor=0x03f0 [hp], product=0x3f11 [psc 1310 series ]) > > at > > libusb:004:002 > > > > scanimage -L > > [sanei_debug] Setting debug level of dll to 128. > > [dll] sane_init: SANE dll backend version 1.0.12 from sane-backends > > 1.0.18 [dll] sane_init: reading dll.conf > > [dll] add_backend: adding backend `hpaio' > > [dll] sane_get_devices > > [dll] load: searching backend `hpaio' in `/usr/lib/sane' > > [dll] load: trying to load `/usr/lib/sane/libsane-hpaio.so.1' > > [dll] load: dlopen()ing `/usr/lib/sane/libsane-hpaio.so.1' > > [dll] init: initializing backend `hpaio' > > [sanei_debug] Setting debug level of hpaio to 8. > > [hpaio] sane_hpaio_init(): scan/sane/hpaio.c 1808 > > [dll] init: backend `hpaio' is version 1.0.6 > > [hpaio] sane_hpaio_get_devices(local=0): scan/sane/hpaio.c 1834 > > [hpaio] no psc_1310_series_ attributes found in models.dat: api/model.c > > 402 > > [dll] sane_get_devices: found 0 devices > > > > 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). > > [dll] sane_exit: exiting > > [dll] sane_exit: calling backend `hpaio's exit function > > [hpaio] sane_hpaio_exit(): scan/sane/hpaio.c 1827 > > [dll] sane_exit: finished > > > > Since it seems that hpaio finds "no psc_1310_series_ attributes found in > > models.dat" (note the underscore after series) in its second to last > > message > > before exiting I looked at /usr/share/hplip/data/models/models.dat and > > found > > > > [psc_1310_series] > > > > I changed it to > > > > [psc_1310_series_] > > note the extra underscore at the end. > > Now I run scanimage -L and everything works. > > > > scanimage -L > > [sanei_debug] Setting debug level of dll to 128. > > [dll] sane_init: SANE dll backend version 1.0.12 from sane-backends > > 1.0.18 [dll] sane_init: reading dll.conf > > [dll] add_backend: adding backend `hpaio' > > [dll] sane_get_devices > > [dll] load: searching backend `hpaio' in `/usr/lib/sane' > > [dll] load: trying to load `/usr/lib/sane/libsane-hpaio.so.1' > > [dll] load: dlopen()ing `/usr/lib/sane/libsane-hpaio.so.1' > > [dll] init: initializing backend `hpaio' > > [sanei_debug] Setting debug level of hpaio to 8. > > [hpaio] sane_hpaio_init(): scan/sane/hpaio.c 1808 > > [dll] init: backend `hpaio' is version 1.0.6 > > [hpaio] sane_hpaio_get_devices(local=0): scan/sane/hpaio.c 1834 > > [dll] sane_get_devices: found 1 devices > > device `hpaio:/usb/psc_1310_series_?serial=CN48IB72SYO2' is a > > Hewlett-Packard > > psc_1310_series_ all-in-one > > [dll] sane_exit: exiting > > [dll] sane_exit: calling backend `hpaio's exit function > > [hpaio] sane_hpaio_exit(): scan/sane/hpaio.c 1827 > > [dll] sane_exit: finished > > > > But if I run hp-setup it can't find the device until I delete the > > underscore > > that I added. Which breaks scanning again. > > > > I think the trailing underscore is coming from the PSC itself. When I > > run # udevinfo -a -p `udevinfo -q path -n /dev/bus/usb/004/004` > > looking at parent device '/devices/pci0000:00/0000:00:0b.1/usb4/4-1': > > KERNELS=="4-1" > > SUBSYSTEMS=="usb" > > DRIVERS=="usb" > > ATTRS{configuration}=="" > > ATTRS{serial}=="CN48IB72SYO2" > > ATTRS{product}=="psc 1310 series " > > > > And viola, that is where the trailing underscore comes from, note the > > space > > before the closing double quote in ATTRS{product}, it is hard to see in > > some > > fonts. > > > > Here is part of the hp-check, but it bombs out with RuntimeError: maximum > > recursion depth exceeded. > > # hp-check > > > > HP Linux Imaging and Printing System (ver. 1.6.12) > > Dependency/Version Check Utility ver. 5.2 > > > > Copyright (c) 2003-6 Hewlett-Packard Development Company, LP > > This software comes with ABSOLUTELY NO WARRANTY. > > This is free software, and you are welcome to distribute it > > under certain conditions. See COPYING file for more details. > > > > > > --------------- > > > > | SYSTEM INFO | > > > > --------------- > > > > Basic system information: > > Linux steadnew 2.6.18-gentoo-r3y #2 PREEMPT Fri Dec 1 16:05:42 EST 2006 > > i686 > > AMD Athlon(tm) Processor AuthenticAMD GNU/Linux > > > > Detected distro (/etc/issue): > > mepis 0.0 > > > > Detected distro (lsb_release): > > error: lsb_release not found. > > > > Currently installed HPLIP version... > > HPLIP 1.6.12 currently installed in '/usr/share/hplip'. > > > > Current contents of '/etc/hp/hplip.conf' file: > > # hplip.conf > > > > [hpiod] > > # port=0 (dynamic IP port) > > port=2208 > > [hpssd] > > # port=0 (dynamic IP port) > > port=2207 > > > > [hplip] > > version=1.6.12 > > jdprobe=0 > > > > [dirs] > > home=/usr/share/hplip > > run=/var/run > > ppd=/usr/share/ppd/HP > > doc=/usr/share/doc/hplip-1.6.12 > > > > # Following values are determined at configure time and cannot be > > changed. [configure] > > network-build=0 > > pp-build=1 > > gui-build=1 > > scanner-build=1 > > fax-build=1 > > installinitd= > > chkconfig= > > internal-tag=1.6.12.15 > > > > > > HPLIP running? > > Yes, HPLIP is running (OK). > > > > HPOJ running? > > No, HPOJ is not running (OK). > > > > Checking Python version... > > OK, version 2.4.3 installed > > > > Checking PyQt version... > > OK, version 3.14 installed. > > > > Checking SIP version... > > OK, Version 4.2.1 installed > > > > ---------------- > > > > | DEPENDENCIES | > > > > ---------------- > > > > > > Checking for dependency libcrypto - OpenSSL cryptographic library... > > OK, found. > > > > Checking for dependency gcc - GNU Project C and C++ Compiler... > > OK, found. > > > > Checking for dependency SANE - Scanning library... > > OK, found. > > > > Checking for dependency GhostScript - PostScript and PDF language > > interpreter > > and previewer... > > OK, found. > > > > Checking for dependency libjpeg - JPEG library... > > OK, found. > > > > Checking for dependency libpthread - POSIX threads library... > > OK, found. > > > > Checking for dependency make - GNU make utility to maintain groups of > > programs... > > OK, found. > > > > Checking for dependency python-devel - Python development files... > > ...<comment>there's lots of lines like the following before it bombs out > > File "/usr/lib/python2.4/posixpath.py", line 422, in realpath > > if islink(component): > > File "/usr/lib/python2.4/posixpath.py", line 162, in islink > > return stat.S_ISLNK(st.st_mode) > > File "/usr/lib/python2.4/stat.py", line 61, in S_ISLNK > > return S_IFMT(mode) == S_IFLNK > > RuntimeError: maximum recursion depth exceeded > > > > On Saturday 27 January 2007 15:42, dwelch91 wrote: > > > Please post the output of 'hp-check' > > > > > > Thanks, > > > > > > Don > > > > > > On 1/27/07, Jim Stead <[EMAIL PROTECTED]> wrote: > > > > My PSC 1311 scanner is found by sane-find-scanner, which returns: > > > > found USB scanner (vendor=0x03f0, product=0x3f11) at libusb:004:002 > > > > > > > > The scanner is directly attached to my PC. > > > > > > > > However, scanimage -L says it finds no scanner. > > > > When run with export SANE_DEBUG_DLL=128 > > > > everything is fine, including loading the hpaio backend, but no > > > > scanner > > > > > > is found. > > > > > > > > I am running gentoo linux. > > > > > > > > Printing works fine, hp-setup and hp-toolbox work fine, everything > > > > works > > > > > > in > > > > version 1.6.10, but 1.6.12 and 1.7 are broken. > > > > > > > > It looks like hpiod isn't communicating with the hpaio sane backend. > > > > ------------------------------------------------------------------------- > > > > > > Take Surveys. Earn Cash. Influence the Future of IT > > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > > > share > > > > > > your > > > > opinions on IT & business topics through brief surveys - and earn > > > > cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > > _______________________________________________ > > > > HPLIP-Help mailing list > > > > HPLIP-Help@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/hplip-help > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > HPLIP-Help mailing list > > HPLIP-Help@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/hplip-help ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ HPLIP-Help mailing list HPLIP-Help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hplip-help