HP F4180 all-in-one doesn't scan in Debian lenny

Asked by Wm Whalley

I'm having problems getting my HP F4180 all-in-one printer to scan in Debian lenny
Printing works fine. Scanning works from Windows XP
I've tried hplip from the Debian lenny repository, no joy
I've installed hplip version 2.8.12. Installed OK, no joy
sane-find-scanner detects the scanner
scanimage -L does not find scanner.
hp-check can't find scanimage, but sane-utils is installed (version 1.0.19-23)

hp-check[1331]: info: :
Initializing. Please wait...
Debian

5.0

scheduler is running

1.3.8

Linux presario 2.6.26-1-486 #1 Mon Dec 15 17:32:01 UTC 2008 i686 GNU/Linux

hp-check[1331]: info: :
hp-check[1331]: info: :---------------
hp-check[1331]: info: :| SYSTEM INFO |
hp-check[1331]: info: :---------------
hp-check[1331]: info: :
hp-check[1331]: info: :[01mBasic system information:[0m
hp-check[1331]: info: :Linux presario 2.6.26-1-486 #1 Mon Dec 15 17:32:01 UTC 2008 i686 GNU/Linux

hp-check[1331]: info: :
hp-check[1331]: info: :[01mDistribution:[0m
hp-check[1331]: info: :debian 5.0
hp-check[1331]: info: :[01m
HPOJ running?[0m
hp-check[1331]: info: :No, HPOJ is not running (OK).
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking Python version...[0m
hp-check[1331]: info: :OK, version 2.5.2 installed
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking PyQt 3.x version...[0m
hp-check[1331]: info: :OK, version 3.17 installed.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking PyQt 4.x version...[0m
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for CUPS...[0m
hp-check[1331]: info: :Status: scheduler is running
hp-check[1331]: info: :Version: 1.3.8
hp-check[1331]: info: :error_log is set to level: warn
note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dbus/python-dbus...[0m
hp-check[1331]: info: :dbus daemon is running.
hp-check[1331]: info: :python-dbus version: 0.82.4
hp-check[1331]: info: :
hp-check[1331]: info: :
hp-check[1331]: info: :------------------------------------
hp-check[1331]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[1331]: info: :------------------------------------
hp-check[1331]: info: :
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: cups - Common Unix Printing System...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: cups-ddk - CUPS driver development kit...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: cups-devel- Common Unix Printing System development files...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: dbus - Message bus system...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: gcc - GNU Project C and C++ Compiler...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: libcrypto - OpenSSL cryptographic library...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: libjpeg - JPEG library...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: libnetsnmp-devel - SNMP networking library development files...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: libpthread - POSIX threads library...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: libtool - Library building support services...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: libusb - USB library...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: make - GNU make utility to maintain groups of programs...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: ppdev - Parallel port support kernel module....[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: python-ctypes - A foreign function library for Python...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: python-dbus - Python bindings for dbus...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: python-devel - Python development files...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: Python XML libraries...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: Python 2.3 or greater - Required for fax functionality...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: Python 2.2 or greater - Python programming language...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: Reportlab - PDF library for Python...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: SANE - Scanning library...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: SANE - Scanning library development files...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: scanimage - Shell scanning program...[0m
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[1331]: info: :To install this dependency, execute this command:
hp-check[1331]: info: :su -c "apt-get install --force-yes -y sane-utils"
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for dependency: xsane - Graphical scanner frontend for SANE...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :
hp-check[1331]: info: :----------------------
hp-check[1331]: info: :| HPLIP INSTALLATION |
hp-check[1331]: info: :----------------------
hp-check[1331]: info: :
hp-check[1331]: info: :
hp-check[1331]: info: :[01mCurrently installed HPLIP version...[0m
hp-check[1331]: info: :HPLIP 2.8.12 currently installed in '/usr/share/hplip'.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[1331]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=2.8.12

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-2.8.12
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
internal-tag=2.8.12.26
restricted-build=no
ui-toolkit=qt3
qt3=yes
qt4=no

hp-check[1331]: info: :
hp-check[1331]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
hp-check[1331]: info: :[last_used]
printer_name = Deskjet_F4100
device_uri = hp:/usb/Deskjet_F4100_series?serial=CN7CH4T29D04TJ

[commands]
fax = hp-sendfax -d %FAX_URI%
scan = xsane -V %SANE_URI%
prnt = hp-print -p%PRINTER%
pcard = hp-unload -d %DEVICE_URI%
cpy = hp-makecopies -d %DEVICE_URI%

[installation]
version = 2.8.12.26
date_time = 01/14/09 11:37:28

[refresh]
rate = 30
enable = False
type = 0

hp-check[1331]: info: :
hp-check[1331]: info: :--------------------------
hp-check[1331]: info: :| DISCOVERED USB DEVICES |
hp-check[1331]: info: :--------------------------
hp-check[1331]: info: :
hp-check[1331]: info: :No devices found.
hp-check[1331]: info: :
hp-check[1331]: info: :---------------------------------
hp-check[1331]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[1331]: info: :---------------------------------
hp-check[1331]: info: :
hp-check[1331]: info: :
hp-check[1331]: info: :[01mHP_Deskjet_F4100_series_USB_CN7CH4T29D04TJ_HPLIP[0m
hp-check[1331]: info: :[01m------------------------------------------------[0m
hp-check[1331]: info: :Type: Printer
hp-check[1331]: info: :Installed in HPLIP?: Yes, using the hp: CUPS backend.
hp-check[1331]: info: :Device URI: hp:/usb/Deskjet_F4100_series?serial=CN7CH4T29D04TJ
hp-check[1331]: info: :PPD: /etc/cups/ppd/HP_Deskjet_F4100_series_USB_CN7CH4T29D04TJ_HPLIP.ppd
hp-check[1331]: info: :PPD Description: HP Deskjet f4100 series Foomatic/hpijs, hpijs 2.8.6b
hp-check[1331]: info: :Printer status: printer HP_Deskjet_F4100_series_USB_CN7CH4T29D04TJ_HPLIP is idle. enabled since Wed 14 Jan 2009 11:27:17 AM PST

error: Unable to communicate with device (code=12): hp:/usb/Deskjet_F4100_series?serial=CN7CH4T29D04TJ
error: Device not found
hp-check[1331]: info: :
hp-check[1331]: info: :
hp-check[1331]: info: :----------------------
hp-check[1331]: info: :| SANE CONFIGURATION |
hp-check[1331]: info: :----------------------
hp-check[1331]: info: :
hp-check[1331]: info: :[01m'hpaio' in '/etc/sane.d/dll.conf'...[0m
hp-check[1331]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking output of 'scanimage -L'...[0m
hp-check[1331]: info: :[sanei_debug] Setting debug level of dll to 12.

[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.1.0-cvs

[dll] sane_init/read_dlld: processing /usr/local/etc/sane.d/dll.d ...

[dll] sane_init/read_dlld: opendir failed: No such file or directory

[dll] sane_init/read_config: reading dll.conf

[dll] add_backend: adding backend `hpaio'

[dll] sane_get_devices

[dll] load: searching backend `hpaio' in `/usr/local/lib/sane'

[dll] load: trying to load `/usr/local/lib/sane/libsane-hpaio.so.1'

[dll] load: dlopen()ing `/usr/local/lib/sane/libsane-hpaio.so.1'

[dll] init: initializing backend `hpaio'

[dll] init: backend `hpaio' is version 1.0.0

[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

[dll] sane_exit: finished

hp-check[1331]: info: :
hp-check[1331]: info: :---------------------
hp-check[1331]: info: :| PYTHON EXTENSIONS |
hp-check[1331]: info: :---------------------
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking 'cupsext' CUPS extension...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking 'pcardext' Photocard extension...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking 'hpmudext' I/O extension...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking 'scanext' SANE scanning extension...[0m
hp-check[1331]: info: :OK, found.
hp-check[1331]: info: :
hp-check[1331]: info: :
hp-check[1331]: info: :-----------------
hp-check[1331]: info: :| USB I/O SETUP |
hp-check[1331]: info: :-----------------
hp-check[1331]: info: :
hp-check[1331]: info: :
hp-check[1331]: info: :[01mChecking for permissions of USB attached printers...[0m
hp-check[1331]: info: :
HP Device 0x7e04 at 002:032:
warning: Device URI: (Makeuri FAILED)
hp-check[1331]: info: : Device node: /dev/bus/usb/002/032
hp-check[1331]: info: : Mode: 0664
hp-check[1331]: info: :
HP Device 0x3202 at 002:025:
warning: Device URI: (Makeuri FAILED)
hp-check[1331]: info: : Device node: /dev/bus/usb/002/025
hp-check[1331]: info: : Mode: 0664
hp-check[1331]: info: :
hp-check[1331]: info: :-----------
hp-check[1331]: info: :| SUMMARY |
hp-check[1331]: info: :-----------
hp-check[1331]: info: :
error: 2 errors and/or warnings.
hp-check[1331]: info: :
hp-check[1331]: info: :[01mSummary of needed commands to run to satisfy missing dependencies:[0m
hp-check[1331]: info: :su -c "apt-get install --force-yes -y sane-utils"
hp-check[1331]: info: :
hp-check[1331]: info: :Please refer to the installation instructions at:
hp-check[1331]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[1331]: info: :
hp-check[1331]: info: :Done.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Wm Whalley
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

It doesn't appear the HPLIP can detect the printer.

Try disconnecting and reconnecting the printer? Then run hp-check -t again.

Also what is the error you get? Run:

su
tail -f /var/log/syslog

then run xsane and try to scan and post the output in the syslog.

Thanks!

Aaron

Revision history for this message
Wm Whalley (bwhalley) said :
#2

Thanks for your quick reply, Arron. Here is the info you requested.

hp-check[3213]: info: :
Initializing. Please wait...
Debian

5.0

scheduler is running

1.3.8

Linux presario 2.6.26-1-486 #1 Mon Dec 15 17:32:01 UTC 2008 i686 GNU/Linux

hp-check[3213]: info: :
hp-check[3213]: info: :---------------
hp-check[3213]: info: :| SYSTEM INFO |
hp-check[3213]: info: :---------------
hp-check[3213]: info: :
hp-check[3213]: info: :Basic system information:
hp-check[3213]: info: :Linux presario 2.6.26-1-486 #1 Mon Dec 15 17:32:01 UTC 2008 i686 GNU/Linux

hp-check[3213]: info: :
hp-check[3213]: info: :Distribution:
hp-check[3213]: info: :debian 5.0
hp-check[3213]: info: :
HPOJ running?
hp-check[3213]: info: :No, HPOJ is not running (OK).
hp-check[3213]: info: :
hp-check[3213]: info: :Checking Python version...
hp-check[3213]: info: :OK, version 2.5.2 installed
hp-check[3213]: info: :
hp-check[3213]: info: :Checking PyQt 3.x version...
hp-check[3213]: info: :OK, version 3.17 installed.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking PyQt 4.x version...
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for CUPS...
hp-check[3213]: info: :Status: scheduler is running
hp-check[3213]: info: :Version: 1.3.8
hp-check[3213]: info: :error_log is set to level: warn
note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel'
note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root),
note: and change the line near the top of the file that begins with 'LogLevel' to read:
note: LogLevel debug
note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS).
note: Now, when you print, helpful debug information will be saved to the file:
note: /var/log/cups/error_log
note: You can monitor this file by running this command in a console/shell:
note: tail -f /var/log/cups/error_log
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dbus/python-dbus...
hp-check[3213]: info: :dbus daemon is running.
hp-check[3213]: info: :python-dbus version: 0.82.4
hp-check[3213]: info: :
hp-check[3213]: info: :
hp-check[3213]: info: :------------------------------------
hp-check[3213]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[3213]: info: :------------------------------------
hp-check[3213]: info: :
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: cups - Common Unix Printing System...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: cups-ddk - CUPS driver development kit...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: cups-devel- Common Unix Printing System development files...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: dbus - Message bus system...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: libtool - Library building support services...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: libusb - USB library...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: python-ctypes - A foreign function library for Python...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: python-dbus - Python bindings for dbus...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: python-devel - Python development files...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: Python XML libraries...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: Reportlab - PDF library for Python...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: SANE - Scanning library...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :
hp-check[3213]: info: :----------------------
hp-check[3213]: info: :| HPLIP INSTALLATION |
hp-check[3213]: info: :----------------------
hp-check[3213]: info: :
hp-check[3213]: info: :
hp-check[3213]: info: :Currently installed HPLIP version...
hp-check[3213]: info: :HPLIP 2.8.12 currently installed in '/usr/share/hplip'.
hp-check[3213]: info: :
hp-check[3213]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[3213]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=2.8.12

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hpijs/HP
ppdbase=/usr/share/ppd/hpijs
doc=/usr/share/doc/hplip-2.8.12
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
internal-tag=2.8.12.26
restricted-build=no
ui-toolkit=qt3
qt3=yes
qt4=no

hp-check[3213]: info: :
hp-check[3213]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[3213]: info: :[last_used]
printer_name = Deskjet_F4100
device_uri = hp:/usb/Deskjet_F4100_series?serial=CN7CH4T29D04TJ

[commands]
fax = hp-sendfax -d %FAX_URI%
scan = xsane -V %SANE_URI%
prnt = hp-print -p%PRINTER%
pcard = hp-unload -d %DEVICE_URI%
cpy = hp-makecopies -d %DEVICE_URI%

[installation]
version = 2.8.12.26
date_time = 01/14/09 15:18:00

[refresh]
rate = 30
enable = False
type = 0

hp-check[3213]: info: :
hp-check[3213]: info: :--------------------------
hp-check[3213]: info: :| DISCOVERED USB DEVICES |
hp-check[3213]: info: :--------------------------
hp-check[3213]: info: :
hp-check[3213]: info: :No devices found.
hp-check[3213]: info: :
hp-check[3213]: info: :---------------------------------
hp-check[3213]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[3213]: info: :---------------------------------
hp-check[3213]: info: :
hp-check[3213]: info: :
hp-check[3213]: info: :HP_Deskjet_F4100_series_USB_CN7CH4T29D04TJ_HPLIP
hp-check[3213]: info: :------------------------------------------------
hp-check[3213]: info: :Type: Printer
hp-check[3213]: info: :Installed in HPLIP?: Yes, using the hp: CUPS backend.
hp-check[3213]: info: :Device URI: hp:/usb/Deskjet_F4100_series?serial=CN7CH4T29D04TJ
hp-check[3213]: info: :PPD: /etc/cups/ppd/HP_Deskjet_F4100_series_USB_CN7CH4T29D04TJ_HPLIP.ppd
hp-check[3213]: info: :PPD Description: HP Deskjet f4100 series Foomatic/hpijs, hpijs 2.8.6b
hp-check[3213]: info: :Printer status: printer HP_Deskjet_F4100_series_USB_CN7CH4T29D04TJ_HPLIP is idle. enabled since Wed 14 Jan 2009 11:27:17 AM PST

error: Unable to communicate with device (code=12): hp:/usb/Deskjet_F4100_series?serial=CN7CH4T29D04TJ
error: Device not found
hp-check[3213]: info: :
hp-check[3213]: info: :
hp-check[3213]: info: :----------------------
hp-check[3213]: info: :| SANE CONFIGURATION |
hp-check[3213]: info: :----------------------
hp-check[3213]: info: :
hp-check[3213]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[3213]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking output of 'scanimage -L'...
hp-check[3213]: info: :

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).

hp-check[3213]: info: :
hp-check[3213]: info: :---------------------
hp-check[3213]: info: :| PYTHON EXTENSIONS |
hp-check[3213]: info: :---------------------
hp-check[3213]: info: :
hp-check[3213]: info: :Checking 'cupsext' CUPS extension...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking 'pcardext' Photocard extension...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking 'hpmudext' I/O extension...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :Checking 'scanext' SANE scanning extension...
hp-check[3213]: info: :OK, found.
hp-check[3213]: info: :
hp-check[3213]: info: :
hp-check[3213]: info: :-----------------
hp-check[3213]: info: :| USB I/O SETUP |
hp-check[3213]: info: :-----------------
hp-check[3213]: info: :
hp-check[3213]: info: :
hp-check[3213]: info: :Checking for permissions of USB attached printers...
hp-check[3213]: info: :
HP Device 0x7e04 at 002:035:
warning: Device URI: (Makeuri FAILED)
hp-check[3213]: info: : Device node: /dev/bus/usb/002/035
hp-check[3213]: info: : Mode: 0664
hp-check[3213]: info: :
HP Device 0x3202 at 002:034:
warning: Device URI: (Makeuri FAILED)
hp-check[3213]: info: : Device node: /dev/bus/usb/002/034
hp-check[3213]: info: : Mode: 0664
hp-check[3213]: info: :
hp-check[3213]: info: :-----------
hp-check[3213]: info: :| SUMMARY |
hp-check[3213]: info: :-----------
hp-check[3213]: info: :
error: 1 error or warning.
hp-check[3213]: info: :
hp-check[3213]: info: :Please refer to the installation instructions at:
hp-check[3213]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[3213]: info: :
hp-check[3213]: info: :Done.

Output of /var/log/syslog after running xsane gui (xsane gives "No devices available" error.

Jan 14 15:21:06 presario xsane: io/hpmud/musb.c 135: unable get_string_descriptor -1: Operation not permitted
Jan 14 15:21:06 presario xsane: io/hpmud/musb.c 1995: invalid product id string ret=-1
Jan 14 15:21:06 presario xsane: io/hpmud/musb.c 135: unable get_string_descriptor -1: Operation not permitted
Jan 14 15:21:06 presario xsane: io/hpmud/musb.c 2000: invalid serial id string ret=-1
Jan 14 15:21:06 presario xsane: io/hpmud/musb.c 135: unable get_string_descriptor -1: Operation not permitted
Jan 14 15:21:06 presario xsane: io/hpmud/musb.c 1995: invalid product id string ret=-1
Jan 14 15:21:06 presario xsane: io/hpmud/musb.c 135: unable get_string_descriptor -1: Operation not permitted
Jan 14 15:21:06 presario xsane: io/hpmud/musb.c 2000: invalid serial id string ret=-1

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

Run:

/usr/lib/cups/backend/hp

and post the output.

Thanks.

Aaron

Revision history for this message
Wm Whalley (bwhalley) said :
#4

result of /usr/lib/cups/backend/hp

direct hp "Unknown" "HP Printer (HPLIP)"

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#5

Hm..

Run:

lsusb

and post that.

A

Revision history for this message
Wm Whalley (bwhalley) said :
#6

lsusb
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 035: ID 03f0:7e04 Hewlett-Packard Deskjet F4100 Printer series
Bus 002 Device 034: ID 03f0:3202 Hewlett-Packard photosmart 1215
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#7

First try disconnecting the Photosmart 1215 then run /usr/lib/cups/backend/hp and see if the printer is detected correctly.

What's the output?

A

Revision history for this message
Wm Whalley (bwhalley) said :
#8

Photosmart 1215 usb cable disconnected
bill@presario:~$ /usr/lib/cups/backend/hp
direct hp "Unknown" "HP Printer (HPLIP)"

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#9

Okay lets try this:

Edit the file /usr/share/hplip/data/models/models.dat

Find the section:

[deskjet_f4100_series]
align-type=5
clean-type=2
color-cal-type=0
copy-type=0
embedded-server-type=0
fax-type=0
fw-download=False
icon=psc_1100_series.png
io-mfp-mode=6
io-mode=1
io-support=2
job-storage=0
linefeed-cal-type=0
model1=HP Deskjet F4140 All-in-One
model10=HP Deskjet F4190 All-in-One
model11=HP Deskjet F4194 All-in-One
model2=HP Deskjet F4180 All-in-One
model3=HP Deskjet F4172 All-in-One
model4=HP Deskjet F4185 All-in-One
model5=HP Deskjet F4135 All-in-One
model6=HP Deskjet F4150 All-in-One
model7=HP Deskjet F4175 All-in-One
model8=HP Deskjet F4180 All-in-One
model9=HP Deskjet F4188 All-in-One
monitor-type=0
panel-check-type=0
pcard-type=0
plugin=0
plugin-reason=0
power-settings=0
pq-diag-type=0
r-type=1
r0-agent1-kind=3
r0-agent1-sku=21(C9153A)
r0-agent1-type=1
r0-agent2-kind=3
r0-agent2-sku=22(C9352A)
r0-agent2-type=2
r0-agent3-kind=3
r0-agent3-sku=58 (C6658x)
r0-agent3-type=3
r1-agent1-kind=3
r1-agent1-sku=21(C9351A)
r1-agent1-type=1
r1-agent2-kind=3
r1-agent2-sku=22(C9352A)
r1-agent2-type=2
r1-agent3-kind=3
r1-agent3-sku=58 (C6658x)
r1-agent3-type=3
r2-agent1-kind=3
r2-agent1-sku=21 (C9351A)
r2-agent1-type=1
r2-agent2-kind=3
r2-agent2-sku=22 (C9352A)
r2-agent2-type=2
r2-agent3-kind=3
r2-agent3-sku=58 (C6658x)
r2-agent3-type=3
r3-agent1-kind=3
r3-agent1-sku=21 (C9351A)
r3-agent1-type=1
r3-agent2-kind=3
r3-agent2-sku=22 (C9352A)
r3-agent2-type=2
r3-agent3-kind=3
r3-agent3-sku=58 (C6658x)
r3-agent3-type=3
r4-agent1-kind=3
r4-agent1-sku=21 (C9351A)
r4-agent1-type=1
r4-agent2-kind=3
r4-agent2-sku=22 (C9352A)
r4-agent2-type=2
r4-agent3-kind=3
r4-agent3-sku=58 (C6658x)
r4-agent3-type=3
r5-agent1-kind=3
r5-agent1-sku=21 (C9351A)
r5-agent1-type=1
r5-agent2-kind=3
r5-agent2-sku=22 (C9352A)
r5-agent2-type=2
r5-agent3-kind=3
r5-agent3-sku=58 (C6658x)
r5-agent3-type=3
r6-agent1-kind=3
r6-agent1-sku=21 (C9351A)
r6-agent1-type=1
r6-agent2-kind=3
r6-agent2-sku=22 (C9352A)
r6-agent2-type=2
r6-agent3-kind=3
r6-agent3-sku=58 (C6658x)
r6-agent3-type=3
r7-agent1-kind=3
r7-agent1-sku=816 (C8816A/B/G)
r7-agent1-type=1
r7-agent2-kind=3
r7-agent2-sku=817 (C8817A/C8817G)
r7-agent2-type=2
r7-agent3-kind=3
r7-agent3-sku=58 (C6658x)
r7-agent3-type=3
r816-agent1-kind=3
r816-agent1-sku=
r816-agent1-type=1
r816-agent2-kind=3
r816-agent2-sku=
r816-agent2-type=2
scan-style=1
scan-type=1
status-battery-check=0
status-dynamic-counters=0
status-type=2
support-released=True
support-type=2
support-ver=1.7.4
tech-class=DJ3600
tech-subclass=Normal
tech-type=2
usb-pid=7e04
usb-vid=03f0

and replace it with:

[deskjet_f4100_series]
align-type=5
clean-type=2
color-cal-type=0
copy-type=0
embedded-server-type=0
fax-type=0
fw-download=False
icon=psc_1100_series.png
io-mfp-mode=6
io-mode=1
io-support=2
job-storage=0
linefeed-cal-type=0
model1=HP Deskjet F4140 All-in-One
model10=HP Deskjet F4190 All-in-One
model11=HP Deskjet F4194 All-in-One
model2=HP Deskjet F4180 All-in-One
model3=HP Deskjet F4172 All-in-One
model4=HP Deskjet F4185 All-in-One
model5=HP Deskjet F4135 All-in-One
model6=HP Deskjet F4150 All-in-One
model7=HP Deskjet F4175 All-in-One
model8=HP Deskjet F4180 All-in-One
model9=HP Deskjet F4188 All-in-One
model12=HP Deskjet F4100 All-in-One
monitor-type=0
panel-check-type=0
pcard-type=0
plugin=0
plugin-reason=0
power-settings=0
pq-diag-type=0
r-type=1
r0-agent1-kind=3
r0-agent1-sku=21(C9153A)
r0-agent1-type=1
r0-agent2-kind=3
r0-agent2-sku=22(C9352A)
r0-agent2-type=2
r0-agent3-kind=3
r0-agent3-sku=58 (C6658x)
r0-agent3-type=3
r1-agent1-kind=3
r1-agent1-sku=21(C9351A)
r1-agent1-type=1
r1-agent2-kind=3
r1-agent2-sku=22(C9352A)
r1-agent2-type=2
r1-agent3-kind=3
r1-agent3-sku=58 (C6658x)
r1-agent3-type=3
r2-agent1-kind=3
r2-agent1-sku=21 (C9351A)
r2-agent1-type=1
r2-agent2-kind=3
r2-agent2-sku=22 (C9352A)
r2-agent2-type=2
r2-agent3-kind=3
r2-agent3-sku=58 (C6658x)
r2-agent3-type=3
r3-agent1-kind=3
r3-agent1-sku=21 (C9351A)
r3-agent1-type=1
r3-agent2-kind=3
r3-agent2-sku=22 (C9352A)
r3-agent2-type=2
r3-agent3-kind=3
r3-agent3-sku=58 (C6658x)
r3-agent3-type=3
r4-agent1-kind=3
r4-agent1-sku=21 (C9351A)
r4-agent1-type=1
r4-agent2-kind=3
r4-agent2-sku=22 (C9352A)
r4-agent2-type=2
r4-agent3-kind=3
r4-agent3-sku=58 (C6658x)
r4-agent3-type=3
r5-agent1-kind=3
r5-agent1-sku=21 (C9351A)
r5-agent1-type=1
r5-agent2-kind=3
r5-agent2-sku=22 (C9352A)
r5-agent2-type=2
r5-agent3-kind=3
r5-agent3-sku=58 (C6658x)
r5-agent3-type=3
r6-agent1-kind=3
r6-agent1-sku=21 (C9351A)
r6-agent1-type=1
r6-agent2-kind=3
r6-agent2-sku=22 (C9352A)
r6-agent2-type=2
r6-agent3-kind=3
r6-agent3-sku=58 (C6658x)
r6-agent3-type=3
r7-agent1-kind=3
r7-agent1-sku=816 (C8816A/B/G)
r7-agent1-type=1
r7-agent2-kind=3
r7-agent2-sku=817 (C8817A/C8817G)
r7-agent2-type=2
r7-agent3-kind=3
r7-agent3-sku=58 (C6658x)
r7-agent3-type=3
r816-agent1-kind=3
r816-agent1-sku=
r816-agent1-type=1
r816-agent2-kind=3
r816-agent2-sku=
r816-agent2-type=2
scan-style=1
scan-type=1
status-battery-check=0
status-dynamic-counters=0
status-type=2
support-released=True
support-type=2
support-ver=1.7.4
tech-class=DJ3600
tech-subclass=Normal
tech-type=2
usb-pid=7e04
usb-vid=03f0

Then run the /usr/lib/cups/backend/hp again.

A

Revision history for this message
Wm Whalley (bwhalley) said :
#10

Same result. I even cycled the printer power.
bill@presario:~$ /usr/lib/cups/backend/hp
direct hp "Unknown" "HP Printer (HPLIP)"

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#11

okay run:

lsusb -v

and post that output.

A

Revision history for this message
Wm Whalley (bwhalley) said :
#12

lsusb -v output

Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 0 Full speed (or root) hub
  bMaxPacketSize0 64
  idVendor 0x1d6b Linux Foundation
  idProduct 0x0002 2.0 root hub
  bcdDevice 2.06
  iManufacturer 3
  iProduct 2
  iSerial 1
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
      Self Powered
      Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 9 Hub
      bInterfaceSubClass 0 Unused
      bInterfaceProtocol 0 Full speed (or root) hub
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0004 1x 4 bytes
        bInterval 12

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 0 Full speed (or root) hub
  bMaxPacketSize0 64
  idVendor 0x1d6b Linux Foundation
  idProduct 0x0001 1.1 root hub
  bcdDevice 2.06
  iManufacturer 3
  iProduct 2
  iSerial 1
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
      Self Powered
      Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 9 Hub
      bInterfaceSubClass 0 Unused
      bInterfaceProtocol 0 Full speed (or root) hub
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0002 1x 2 bytes
        bInterval 255

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 0 Full speed (or root) hub
  bMaxPacketSize0 64
  idVendor 0x1d6b Linux Foundation
  idProduct 0x0001 1.1 root hub
  bcdDevice 2.06
  iManufacturer 3
  iProduct 2
  iSerial 1
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
      Self Powered
      Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 9 Hub
      bInterfaceSubClass 0 Unused
      bInterfaceProtocol 0 Full speed (or root) hub
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0002 1x 2 bytes
        bInterval 255

Bus 002 Device 037: ID 03f0:7e04 Hewlett-Packard Deskjet F4100 Printer series
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x03f0 Hewlett-Packard
  idProduct 0x7e04 Deskjet F4100 Printer series
  bcdDevice 1.00
  iManufacturer 1
  iProduct 2
  iSerial 3
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 129
    bNumInterfaces 3
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 2mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 255 Vendor Specific Class
      bInterfaceSubClass 204
      bInterfaceProtocol 0
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0020 1x 32 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 10
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 7 Printer
      bInterfaceSubClass 1 Printer
      bInterfaceProtocol 2 Bidirectional
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x03 EP 3 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0020 1x 32 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0020 1x 32 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x84 EP 4 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 10
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 2
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 255 Vendor Specific Class
      bInterfaceSubClass 255 Vendor Specific Subclass
      bInterfaceProtocol 255 Vendor Specific Protocol
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x07 EP 7 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0020 1x 32 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x87 EP 7 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0020 1x 32 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x88 EP 8 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 10
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 2
      bAlternateSetting 1
      bNumEndpoints 3
      bInterfaceClass 255 Vendor Specific Class
      bInterfaceSubClass 212
      bInterfaceProtocol 0
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x07 EP 7 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0020 1x 32 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x87 EP 7 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0020 1x 32 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x88 EP 8 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 10

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 0 Full speed (or root) hub
  bMaxPacketSize0 64
  idVendor 0x1d6b Linux Foundation
  idProduct 0x0001 1.1 root hub
  bcdDevice 2.06
  iManufacturer 3
  iProduct 2
  iSerial 1
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
      Self Powered
      Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 9 Hub
      bInterfaceSubClass 0 Unused
      bInterfaceProtocol 0 Full speed (or root) hub
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0002 1x 2 bytes
        bInterval 255

Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 0 Full speed (or root) hub
  bMaxPacketSize0 64
  idVendor 0x1d6b Linux Foundation
  idProduct 0x0001 1.1 root hub
  bcdDevice 2.06
  iManufacturer 3
  iProduct 2
  iSerial 1
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
      Self Powered
      Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 9 Hub
      bInterfaceSubClass 0 Unused
      bInterfaceProtocol 0 Full speed (or root) hub
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0002 1x 2 bytes
        bInterval 255

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#13

Are you going through a USB hub or anything?

Revision history for this message
Wm Whalley (bwhalley) said :
#14

The output I sent was lsusb -v >outputfile. I just noticed that I got some terminal messages as well, i.e.
can't get hub descriptor: Operation not permitted
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
can't get hub descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
can't get hub descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
can't get hub descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
can't get hub descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)

Revision history for this message
Wm Whalley (bwhalley) said :
#15

Not using a hub. Plugged into the back connector. I had tried it on a front connector but did not see a difference.

I just removed all usb cables but the Deskjet. Scanimage still does not see it. Tried front USB connectors and both back connectors. Plugged in, cycled the printer power then ran scanimage -L. N.G.

I would suspect a cable or hardware problem, but using the same cable on WinXP, the scanner worked.

Revision history for this message
Wm Whalley (bwhalley) said :
#16

OK, I tried the Deskjet on my backup system. It fired right up and scanned like a champ.

The backup system is also Debian lenny, but I don't use it as much as my primary, so it may have less kruft.
It has
hplip 2.8.6.b-3
libsane 1.0.19-23
libsane-extras 1.0.19-11
xsane 0.996-1
xsane-common 0.996-1
Not sane
Not sane-utils
so no scanimage or sane-find-scanner

On the system that doesn't work I have (searched for "sane" in synaptic)
libsane 1.0.19-23
libsane-dev 1.0.19-23
libsane-extras 1.0.19.11
libsane-extras-dev 1.0.19.11
sane 1.0.14-7
sane-utils 1.0.19-23
xsane 0.996-1
xsane-common 0.996-1
And (installed from hplip web page, so not in Debian package system) hplip 2.8.12

I previously had hplip 2.8.6.b-3 on this system as well, but it wasn't working, so I installed 2.8.12.

I will try and make my non-working system match my working system. I would appreciate some hints about where I might track down any config files, etc. that might be left over after an uninstall.

Revision history for this message
David Suffield (david-suffield) said :
#17

Sounds like a device permission problem since printing works and scanning does not. Print jobs run at "lp" permissions and scan jobs run at "console_user" permissions. Print jobs run at higher privileges than the scan jobs.

With hplip 2.8.12 device permission are set by HAL at USB plug-in-play time for the console user. HAL will set the device node ACL created at plug-in-play to the console user. If the permissions are not set correctly the console user will not be able to scan or use hp-toolbox.

You can check device permissions with the following commands.

1. Use lsusb to get the bus and device number for the hp device.

$ lsusb
Bus 002 Device 035: ID 03f0:7e04 Hewlett-Packard Deskjet F4100 Printer series

2. Now check the ACL for the device node with the ls command using the bus=002 and device=035. The output below should look similar. There should be a "+" sign in the permissions this means an ACL was set.

$ ls -l /dev/bus/usb/002/035
crw-rw-r--+ 1 lp lp 189, 23 2009-01-15 10:17 /dev/bus/usb/002/035

3. Now check the actual ACL with this command. Again the output should look similar. The output should have the console user set for the "user:".

$ getfacl /dev/bus/usb/002/035
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/024
# owner: lp
# group: lp
user::rw-
user:console_user_name:rw-
group::rw-
mask::rw-
other::---

If the ACL is not set correctly only CUPS will have access to your device not the console user.

-dave

Revision history for this message
Wm Whalley (bwhalley) said :
#18

OK, the ACL is not set for the printer scanner
bill@presario:~$ ls -l /dev/bus/usb/002/007
crw-rw-r-- 1 lp scanner 189, 134 2009-01-15 12:32 /dev/bus/usb/002/007

And the console user is not set in the user tag
bill@presario:~$ getfacl /dev/bus/usb/002/007
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/002/007
# owner: lp
# group: scanner
user::rw-
group::rw-
other::r--

So can I fix it with
# setfacl -m u:bill:rw /dev/bus/usb/002/007 ?
If so, is there a way to set the ACL for other bus addresses such as 002/003 (which I get on cold startup)?

Revision history for this message
Wm Whalley (bwhalley) said :
#19

I don't know if ACL permission is the answer.

My system that does scan does not have the acl +, i.e.
ls -l /dev/bus/usb/xxx/xxx
crw-rw-r-- 1 lp scanner 189, 130 .....
System that does not scan
crw-rw-r-- 1 lp scanner 189, 134 .....

Both systems are running the same kernel, and Debian lenny, kept up-to-date. I am a member of the scanner group on both systems.

Revision history for this message
Wm Whalley (bwhalley) said :
#20

Tried Ubuntu live cd on problem system. Scanner worked perfectly. This rules out a hardware/cable problem.

Ubuntu did have ACL enabled
ls -l /dev/bus/usb/xxx/xxx
crw-rw-r--+ 1 lp scanner, 189, 130 ......

But apparently ACL is not necessary. One Debian system worked without it.

Revision history for this message
Wm Whalley (bwhalley) said :
#21

Scanner now works on both Debian systems.

Previously I had tried to get another scanner to work (not very successfully), but in doing so I installed some packages from source, not deb files. I thought I had expunged it all, but I guess not.

I removed everything I could find dealing with sane, hplip, scanners, etc., and started fresh. Reinstalled libsane, libsane-extras, sane-utils, xsane, xsane-common and hplip, all from the Debian lenny repository. I power cycled my printer and now scanning with xsane works.

Thanks for you help. You helped me rule out a bunch of stuff and look deeper for the problem.