HP Linux Imaging and Printing

scanimage: open of device (HPCM1312) failed: Error during device I/O

Asked by stuckey on 2009-06-10

When using Debian Lenny AMD64 printing with "lp" works but "scanimage" does not. Running "scanimage" returns:
scanimage: open of device hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M failed: Error during device I/O

"scanimage -L" returns:
device `hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M' is a Hewlett-Packard HP_Color_LaserJet_CM1312_MFP all-in-one

I have run "hp-setup" and have installed the plug-in.

The output of "hp-check" command is:

HP Linux Imaging and Printing System (ver. 3.9.4b)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the
proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP
supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time
dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux debian 2.6.26-2-amd64 #1 SMP Wed May 13 15:37:46 UTC 2009 x86_64 GNU/Linux

Distribution:
debian 5.0.1

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.2 installed

Checking PyQt 4.x version...
OK, version 4.4.2 installed.

Checking for CUPS...
Status: scheduler is running
Version: 1.3.8
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.82.4

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
OK, found.

Checking for dependency: PolicyKit - Administrative policy framework...
OK, found.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.

Checking for dependency: Python ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.9.4b currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.4b

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

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

Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
eula = 1
installed = 1

Current contents of '~/.hplip/hplip.conf' file:

-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI Model
  -------------------------------------------------------- ----------------------------
  hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M HP Color LaserJet CM1312 MFP

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_Color_LaserJet_CM1312_MFP
----------------------------
Type: Unknown
Device URI: usb://HP/Color%20LaserJet%20CM1312%20MFP
PPD: /etc/cups/ppd/HP_Color_LaserJet_CM1312_MFP.ppd
PPD Description: Generic PostScript Printer
Printer status: printer HP_Color_LaserJet_CM1312_MFP is idle. enabled since Tue 09 Jun 2009 07:19:34 PM CEST

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
'hpaio' in '/etc/sane.d/dll.d/hplip'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M' is a Hewlett-Packard HP_Color_LaserJet_CM1312_MFP all-in-one

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

-----------------
| USB I/O SETUP |
-----------------

Checking for permissions of USB attached printers...

HP Device 0x4e17 at 008:008:
    Device URI: hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M
    Device node: /dev/bus/usb/008/008
    Mode: 0664

---------------
| USER GROUPS |
---------------

root

-----------
| SUMMARY |
-----------

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Done.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Philipp Schlesinger
Solved:
2009-06-13
Last query:
2009-06-13
Last reply:
2009-06-12

Please run hp-check as user and post the output.

Also run:

su

tail -f /var/log/syslog

and then try to scan (as user) and post the output in the syslog.

Thanks!

Aaron

stuckey (jhstuckey) said : #2

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

5.0.1

scheduler is running

1.3.8

Linux debian 2.6.26-2-amd64 #1 SMP Wed May 13 15:37:46 UTC 2009 x86_64 GNU/Linux

hp-check[10608]: info: :
hp-check[10608]: info: :---------------
hp-check[10608]: info: :| SYSTEM INFO |
hp-check[10608]: info: :---------------
hp-check[10608]: info: :
hp-check[10608]: info: :[01mBasic system information:[0m
hp-check[10608]: info: :Linux debian 2.6.26-2-amd64 #1 SMP Wed May 13 15:37:46 UTC 2009 x86_64 GNU/Linux
hp-check[10608]: info: :
hp-check[10608]: info: :[01mDistribution:[0m
hp-check[10608]: info: :debian 5.0.1
hp-check[10608]: info: :[01m
HPOJ running?[0m
hp-check[10608]: info: :No, HPOJ is not running (OK).
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking Python version...[0m
hp-check[10608]: info: :OK, version 2.5.2 installed
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking PyQt 4.x version...[0m
hp-check[10608]: info: :OK, version 4.4.2 installed.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for CUPS...[0m
hp-check[10608]: info: :Status: scheduler is running
hp-check[10608]: info: :Version: 1.3.8
hp-check[10608]: info: :error_log is set to level: warn
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dbus/python-dbus...[0m
hp-check[10608]: info: :dbus daemon is running.
hp-check[10608]: info: :python-dbus version: 0.82.4
hp-check[10608]: info: :
hp-check[10608]: info: :
hp-check[10608]: info: :------------------------------------
hp-check[10608]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[10608]: info: :------------------------------------
hp-check[10608]: 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[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: CUPS - Common Unix Printing System...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: CUPS DDK - CUPS driver development kit...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: CUPS devel- Common Unix Printing System development files...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: CUPS image - CUPS image development files...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: DBus - Message bus system...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: gcc - GNU Project C and C++ Compiler...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: libcrypto - OpenSSL cryptographic library...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: libjpeg - JPEG library...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: libnetsnmp-devel - SNMP networking library development files...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: libpthread - POSIX threads library...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: libtool - Library building support services...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: libusb - USB library...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: make - GNU make utility to maintain groups of programs...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: PolicyKit - Administrative policy framework...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: ppdev - Parallel port support kernel module....[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: PyQt 4 DBus - DBus Support for PyQt4...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: Python ctypes - A foreign function library for Python...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: Python DBus - Python bindings for DBus...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: Python devel - Python development files...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: Python XML libraries...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: Python 2.3 or greater - Required for fax functionality...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: Python 2.2 or greater - Python programming language...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: Reportlab - PDF library for Python...[0m
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: SANE - Scanning library...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: SANE - Scanning library development files...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: scanimage - Shell scanning program...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for dependency: xsane - Graphical scanner frontend for SANE...[0m
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[10608]: info: :
hp-check[10608]: info: :
hp-check[10608]: info: :----------------------
hp-check[10608]: info: :| HPLIP INSTALLATION |
hp-check[10608]: info: :----------------------
hp-check[10608]: info: :
hp-check[10608]: info: :
hp-check[10608]: info: :[01mCurrently installed HPLIP version...[0m
hp-check[10608]: info: :HPLIP 3.9.4b currently installed in '/usr/share/hplip'.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[10608]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.4b

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

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

hp-check[10608]: info: :
hp-check[10608]: info: :[01mCurrent contents of '/var/lib/hp/hplip.state' file:[0m
hp-check[10608]: info: :[plugin]
eula = 1
installed = 1

hp-check[10608]: info: :
hp-check[10608]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
hp-check[10608]: info: :[last_used]
printer_name =
working_dir = .
device_uri = "hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M"

[commands]
scan =

[installation]
version = 3.9.4b.10
date_time = 06/10/09 20:30:35

[settings]
systray_messages = 0
systray_visible = 0

[fax]
email_address =
voice_phone =

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
device_list =
interval = 5

hp-check[10608]: info: :
hp-check[10608]: info: :-------------------------------
hp-check[10608]: info: :| DISCOVERED PARALLEL DEVICES |
hp-check[10608]: info: :-------------------------------
hp-check[10608]: info: :
hp-check[10608]: info: :No devices found.
hp-check[10608]: info: :
hp-check[10608]: info: :--------------------------
hp-check[10608]: info: :| DISCOVERED USB DEVICES |
hp-check[10608]: info: :--------------------------
hp-check[10608]: info: :
hp-check[10608]: info: : Device URI Model
hp-check[10608]: info: : -------------------------------------------------------- ------------------------------------------
hp-check[10608]: info: : hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M HP Color LaserJet CM1312 MFP
hp-check[10608]: info: :
hp-check[10608]: info: :---------------------------------
hp-check[10608]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[10608]: info: :---------------------------------
hp-check[10608]: info: :
hp-check[10608]: info: :
hp-check[10608]: info: :[01mHP_Color_LaserJet_CM1312_MFP[0m
hp-check[10608]: info: :[01m----------------------------[0m
hp-check[10608]: info: :Type: Printer
hp-check[10608]: info: :Device URI: hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M
hp-check[10608]: info: :PPD: /etc/cups/ppd/HP_Color_LaserJet_CM1312_MFP.ppd
hp-check[10608]: info: :PPD Description: Generic PostScript Printer
hp-check[10608]: info: :Printer status: printer HP_Color_LaserJet_CM1312_MFP is idle. enabled since Wed 10 Jun 2009 01:56:24 PM CEST
hp-check[10608]: info: :Required plug-in status: Installed
hp-check[10608]: info: :Communication status: Good
hp-check[10608]: info: :
hp-check[10608]: info: :
hp-check[10608]: info: :----------------------
hp-check[10608]: info: :| SANE CONFIGURATION |
hp-check[10608]: info: :----------------------
hp-check[10608]: info: :
hp-check[10608]: info: :[01m'hpaio' in '/etc/sane.d/dll.conf'...[0m
hp-check[10608]: info: :[01m'hpaio' in '/etc/sane.d/dll.d/hplip'...[0m
hp-check[10608]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking output of 'scanimage -L'...[0m
hp-check[10608]: info: :device `hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M' is a Hewlett-Packard HP_Color_LaserJet_CM1312_MFP all-in-one

hp-check[10608]: info: :
hp-check[10608]: info: :---------------------
hp-check[10608]: info: :| PYTHON EXTENSIONS |
hp-check[10608]: info: :---------------------
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking 'cupsext' CUPS extension...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking 'pcardext' Photocard extension...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking 'hpmudext' I/O extension...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking 'scanext' SANE scanning extension...[0m
hp-check[10608]: info: :OK, found.
hp-check[10608]: info: :
hp-check[10608]: info: :
hp-check[10608]: info: :
hp-check[10608]: info: :-----------------
hp-check[10608]: info: :| USB I/O SETUP |
hp-check[10608]: info: :-----------------
hp-check[10608]: info: :
hp-check[10608]: info: :[01mChecking for permissions of USB attached printers...[0m
hp-check[10608]: info: :
HP Device 0x4e17 at 008:008:
hp-check[10608]: info: : Device URI: hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB8872H1M
hp-check[10608]: info: : Device node: /dev/bus/usb/008/008
hp-check[10608]: info: : Mode: 0666
hp-check[10608]: info: :
hp-check[10608]: info: :---------------
hp-check[10608]: info: :| USER GROUPS |
hp-check[10608]: info: :---------------
hp-check[10608]: info: :
hp-check[10608]: info: :stuckey dialout cdrom floppy audio video plugdev

hp-check[10608]: info: :
hp-check[10608]: info: :-----------
hp-check[10608]: info: :| SUMMARY |
hp-check[10608]: info: :-----------
hp-check[10608]: info: :
error: 2 errors and/or warnings.
hp-check[10608]: info: :
hp-check[10608]: info: :Please refer to the installation instructions at:
hp-check[10608]: info: :http://hplip.sourceforge.net/install/index.html

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

FROM /VAR/LOG/SYSLOG when running "scanimage":
Jun 10 20:31:29 debian scanimage: scan/sane/soapht.c 67: unable to load restricted library: libhpmud.so: cannot open shared object file: No such file or directory

Maybe you are running into this bug: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/364653

The workaround pointed out in the bug just involves creating a symlink.

Best regards,

   Philipp

stuckey (jhstuckey) said : #4

I think I have the correct links:

from " ls -l /usr/lib/ | grep libhpmud"

lrwxrwxrwx 1 root root 17 2009-06-09 18:56 libhpmud.so.0 -> libhpmud.so.0.0.4
-rw-r--r-- 1 root root 90240 2009-06-09 18:54 libhpmud.so.0.0.4

stuckey (jhstuckey) said : #5

Wait, you may have been right.

After giving the command you suggested, the scanner now responds to "scanimage" or "scanimage > scan.png", however, after scanning for a second (I hear it scanning) I see "scanimage: sane_read: Operation was cancelled" in the terminal. It creates a scan.png file, but I'm not able to open it with gpicview or gimp; when I do I see an error that says "Failed to load image 'scan.png': Premature end-of-file encountered".

"ln -s /usr/lib/libhpmud.so.0 /usr/lib/libhpmud.so" links libhpmud.so to libhpmud.so.0, which is linked to liphpmud.so.0.0.4.

So I'm wondering if I can't just "ln -s /usr/lib/libhpmud.so.0.0.4 /lusr/lib/libhpmud.so" and bypass the simlink to "/usr/lib/libhpmud.so.0". Would that also work?

I think have this for "ls -l /usr/lib/ | grep libhpmud"
lrwxrwxrwx 1 root root 22 2009-06-12 18:08 libhpmud.so -> /usr/lib/libhpmud.so.0
lrwxrwxrwx 1 root root 17 2009-06-12 00:13 libhpmud.so.0 -> libhpmud.so.0.0.4
-rw-r--r-- 1 root root 90240 2009-06-12 00:10 libhpmud.so.0.0.4

stuckey (jhstuckey) said : #6

Here's what I see in /var/log/syslog:

Jun 12 18:08:40 debian scanimage: sane_hpaio_read(maxLength=32768): User cancelled!
Jun 12 18:08:40 debian scanimage: sane_hpaio_cancel: already cancelled!
Jun 12 18:08:40 debian scanimage: http.c 344: invalid http_status=0
Jun 12 18:08:40 debian scanimage: http.c 348: dumping len=2048
Jun 12 18:08:40 debian scanimage: http.c 348: dumping len=2018
Jun 12 18:08:40 debian scanimage: http.c 348: dumping len=2048
Jun 12 18:08:40 debian scanimage: http.c 348: dumping len=49
Jun 12 18:08:40 debian scanimage: http.c 348: dumping len=30
Jun 12 18:08:40 debian scanimage: http.c 348: dumping len=722
Jun 12 18:08:41 debian scanimage: http.c 188: timeout reading data sec_timeout=1
Jun 12 18:09:02 debian scanimage: sane_hpaio_read(maxLength=32768): User cancelled!
Jun 12 18:09:02 debian scanimage: sane_hpaio_cancel: already cancelled!
Jun 12 18:09:02 debian scanimage: http.c 344: invalid http_status=0
Jun 12 18:09:02 debian scanimage: http.c 348: dumping len=2048
Jun 12 18:09:02 debian scanimage: http.c 348: dumping len=2018
Jun 12 18:09:02 debian scanimage: http.c 348: dumping len=2048
Jun 12 18:09:02 debian scanimage: http.c 348: dumping len=49
Jun 12 18:09:02 debian scanimage: http.c 348: dumping len=30
Jun 12 18:09:02 debian scanimage: http.c 348: dumping len=722
Jun 12 18:09:03 debian scanimage: http.c 188: timeout reading data sec_timeout=1
Jun 12 18:09:40 debian scanimage: sane_hpaio_read(maxLength=32768): User cancelled!
Jun 12 18:09:40 debian scanimage: sane_hpaio_cancel: already cancelled!
Jun 12 18:09:40 debian scanimage: http.c 344: invalid http_status=0
Jun 12 18:09:40 debian scanimage: http.c 348: dumping len=2048
Jun 12 18:09:40 debian scanimage: http.c 348: dumping len=2011
Jun 12 18:09:40 debian scanimage: http.c 348: dumping len=49
Jun 12 18:09:40 debian scanimage: http.c 348: dumping len=30
Jun 12 18:09:40 debian scanimage: http.c 348: dumping len=722
Jun 12 18:09:41 debian scanimage: http.c 188: timeout reading data sec_timeout=1

stuckey (jhstuckey) said : #7

Jun 12 18:43:36 debian kernel: [2073925.747393] usb 8-1: New USB device found, idVendor=03f0, idProduct=4e17
Jun 12 18:43:36 debian kernel: [2073925.747393] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 12 18:43:36 debian kernel: [2073925.747393] usb 8-1: Product: HP Color LaserJet CM1312 MFP
Jun 12 18:43:36 debian kernel: [2073925.747393] usb 8-1: Manufacturer: Hewlett-Packard
Jun 12 18:43:36 debian kernel: [2073925.747393] usb 8-1: SerialNumber: 00CNB8872H1M
Jun 12 18:43:53 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:43:53 debian scanimage: io/hpmud/musb.c 1996: invalid product id string ret=-1
Jun 12 18:43:53 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:43:53 debian scanimage: io/hpmud/musb.c 2001: invalid serial id string ret=-1
Jun 12 18:43:58 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:43:58 debian scanimage: io/hpmud/musb.c 1996: invalid product id string ret=-1
Jun 12 18:43:58 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:43:58 debian scanimage: io/hpmud/musb.c 2001: invalid serial id string ret=-1
Jun 12 18:44:04 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:44:04 debian scanimage: io/hpmud/musb.c 1996: invalid product id string ret=-1
Jun 12 18:44:04 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:44:04 debian scanimage: io/hpmud/musb.c 2001: invalid serial id string ret=-1
Jun 12 18:44:18 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:44:18 debian scanimage: io/hpmud/musb.c 1996: invalid product id string ret=-1
Jun 12 18:44:18 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:44:18 debian scanimage: io/hpmud/musb.c 2001: invalid serial id string ret=-1
Jun 12 18:44:28 debian kernel: [2073978.588717] usblp0: removed
Jun 12 18:44:35 debian scanimage: sane_hpaio_read(maxLength=32768): User cancelled!
Jun 12 18:44:35 debian scanimage: sane_hpaio_cancel: already cancelled!
Jun 12 18:44:35 debian scanimage: http.c 344: invalid http_status=0
Jun 12 18:44:35 debian scanimage: http.c 348: dumping len=2048
Jun 12 18:44:35 debian scanimage: http.c 348: dumping len=2025
Jun 12 18:44:35 debian scanimage: http.c 348: dumping len=2048
Jun 12 18:44:35 debian scanimage: http.c 348: dumping len=2048
Jun 12 18:44:35 debian scanimage: http.c 348: dumping len=49
Jun 12 18:44:35 debian scanimage: http.c 348: dumping len=30
Jun 12 18:44:35 debian scanimage: http.c 348: dumping len=734
Jun 12 18:44:36 debian scanimage: http.c 188: timeout reading data sec_timeout=1
Jun 12 18:44:42 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:44:42 debian scanimage: io/hpmud/musb.c 1996: invalid product id string ret=-1
Jun 12 18:44:42 debian scanimage: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Jun 12 18:44:42 debian scanimage: io/hpmud/musb.c 2001: invalid serial id string ret=-1

stuckey (jhstuckey) said : #8

Thanks Philipp Sadleder, that solved my question.

stuckey, it would be nice if you let us know what exactly solved your question. And tell us if it works now as expected, please.

Best regards,

   Philipp

KBS16355 (kbs16355) said : #10

I had the same problem as stuckey with a CM1312 MFP and the fix to which Philipp pointed worked for me.