Cannot scan with HP 6500 OfficeJet from Ubuntu 11.04

Asked by Wayne R. Knight

I cannot use the scan function on my HP OJ 6500 all-in-one printer using xsane or simple-scan on ubuntu 11.04 running on an intel i5 2320 cpu. HPLIP version is 3.11.10. The printer works fine on Ubuntu and Windows 7, and the scanner works on Windows 7 but not on Ubuntu.

Using xsane, I get the following error messages: "failed to open device 'hpaio:/usb/OfficeJet_6500 - Device Busy" and "HPLIP Device Status - OfficeJet 6500 - Scan Job Failed (2002)"

Using simple-scan I get the following messages: "Failed to Scan - Unable to connect to Scanner" and
"HPLIP Device Status - OfficeJet 6500 - Scan Job Failed (2002)"

On a couple of occasions after turning both the computer and printer off and back on, simple-scan activated the scanner and displayed a couple of lines of image prior to freezing up and displaying error message. After that, I continued to get the “unable to connect to scanner” or “device busy” message.

Other messages are:
$ scanimage -L

device `hpaio:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2' is a Hewlett-Packard Officejet_6500_E709n all-in-one

$ scanimage

scanimage: open of device hpaio:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2 failed: Error during device I/O

$ hp-setup

HP Linux Imaging and Printing System (ver. 3.11.10)

Printer/Fax Setup Utility ver. 9.0

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.

Searching on USB bus...

error: Channel write error

error: An I/O error occurred. Please check the USB connection to your printer and try again. (Device I/O error)

Searching... (bus=usb, search=(None), desc=0)

/

Done.

hp-check finds no errors or warnings

Output from hp-check -t is:

$ hp-check -t

HP Linux Imaging and Printing System (ver. 3.11.10)

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 I-5 2.6.38-13-generic #52-Ubuntu SMP Tue Nov 8 16:53:51 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Distribution:

ubuntu 11.04

Checking Python version...

OK, version 2.7.1 installed

Checking PyQt 4.x version...

OK, version 4.8.3 installed.

Checking for CUPS...

Status: scheduler is running

Version: 1.4.6

error_log is set to level: warn

Checking for dbus/python-dbus...

dbus daemon is running.

python-dbus version: 0.83.1

------------------------------------

| COMPILE AND RUNTIME DEPENDENCIES |

------------------------------------

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

Checking for dependency: CUPS - Common Unix Printing System...

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: PyQt 4 DBus - DBus Support for PyQt4...

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 libnotify - Python bindings for the libnotify Desktop notifications...

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

OK, found.

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

OK, found.

----------------------

| HPLIP INSTALLATION |

----------------------

Currently installed HPLIP version...

HPLIP 3.11.10 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.11.10

[dirs]

home=/usr/share/hplip

run=/var/run

ppd=/usr/share/ppd/HP

ppdbase=/usr/share/ppd

doc=/usr/share/doc/hplip-3.11.10

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

hpijs-install=no

foomatic-drv-install=no

foomatic-ppd-install=no

foomatic-rip-hplip-install=no

hpcups-install=yes

cups-drv-install=yes

cups-ppd-install=no

internal-tag=3.11.10

restricted-build=no

ui-toolkit=qt4

qt3=no

qt4=yes

policy-kit=no

hpijs-only-build=no

lite-build=no

udev-acl-rules=yes

hpcups-only-build=no

hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:

# hplip.state - HPLIP runtime persistent variables.

[plugin]

installed=0

eula=0

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

[last_used]

device_uri = "hpfax:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2"

printer_name = HP-Fax

working_dir = .

[settings]

systray_visible = 0

systray_messages = 0

[commands]

scan = /usr/bin/simple-scan %SANE_URI%

[refresh]

rate = 30

enable = false

type = 1

[polling]

enable = false

interval = 5

device_list =

[fax]

voice_phone =

email_address =

[installation]

date_time = 12/01/2011 12:35:37

version = 3.11.10

--------------------------

| DISCOVERED USB DEVICES |

--------------------------

  Device URI Model

  -------------------------------------------------- ----------------------------------

  hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2 HP Officejet 6500 E709n

---------------------------------

| INSTALLED CUPS PRINTER QUEUES |

---------------------------------

Officejet-6500-E709n

--------------------

Type: Printer

Device URI: hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2

PPD: /etc/cups/ppd/Officejet-6500-E709n.ppd

PPD Description: HP Officejet 6500 e709n, hpcups 3.11.1

Printer status: printer Officejet-6500-E709n is idle. enabled since Wed 30 Nov 2011 08:31:19 PM EST

Communication status: Good

Officejet-6500-E709n-Fax

------------------------

Type: Fax

Device URI: hpfax:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2

PPD: /etc/cups/ppd/Officejet-6500-E709n-Fax.ppd

PPD Description: HP Fax hpcups

Printer status: printer Officejet-6500-E709n-Fax is idle. enabled since Wed 30 Nov 2011 08:31:19 PM EST

Communication status: Good

Officejet_6500_E709n

--------------------

Type: Printer

Device URI: hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2

PPD: /etc/cups/ppd/Officejet_6500_E709n.ppd

PPD Description: HP Officejet 6500 e709n, hpcups 3.11.10

Printer status: printer Officejet_6500_E709n is idle. enabled since Wed 30 Nov 2011 08:31:19 PM EST

Communication status: Good

Officejet_6500_E709n_2

----------------------

Type: Printer

Device URI: hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2

PPD: /etc/cups/ppd/Officejet_6500_E709n_2.ppd

PPD Description: HP Officejet 6500 e709n, hpcups 3.11.10

Printer status: printer Officejet_6500_E709n_2 is idle. enabled since Thu 01 Dec 2011 12:24:16 PM EST

Communication status: Good

Officejet_6500_E709n_fax

------------------------

Type: Fax

Device URI: hpfax:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2

PPD: /etc/cups/ppd/Officejet_6500_E709n_fax.ppd

PPD Description: HP Fax hpcups

Printer status: printer Officejet_6500_E709n_fax is idle. enabled since Wed 30 Nov 2011 08:31:19 PM EST

Communication status: Good

Officejet_6500_E709n_fax_2

--------------------------

Type: Fax

Device URI: hpfax:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2

PPD: /etc/cups/ppd/Officejet_6500_E709n_fax_2.ppd

PPD Description: HP Fax hpcups

Printer status: printer Officejet_6500_E709n_fax_2 is idle. enabled since Thu 01 Dec 2011 12:24:16 PM EST

Communication status: Good

----------------------

| SANE CONFIGURATION |

----------------------

'hpaio' in '/etc/sane.d/dll.conf'...

OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...

device `hpaio:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2' is a Hewlett-Packard Officejet_6500_E709n 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 0x4512 at 001:005:

    Device URI: hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2

    Device node: /dev/bus/usb/001/005

    Mode: 0664

---------------

| USER GROUPS |

---------------

wayne root daemon bin sys adm disk lp mail news uucp man proxy kmem dialout fax cdrom floppy tape sudo audio dip backup operator list irc src gnats shadow utmp video sasl plugdev staff games users libuuid crontab syslog fuse messagebus mlocate ssh avahi-autoipd avahi netdev bluetooth lpadmin ssl-cert gdm pulse pulse-access utempter rtkit admin saned sambashare vboxusers project

-----------

| SUMMARY |

-----------

No errors or warnings.

Done.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Wayne R. Knight
Solved:
Last query:
Last reply:
Revision history for this message
Sarbeswar Meher (sarbeswar-meher) said :
#1

Hi,

  If you are using Ubuntu 11.10 64-bit system, please run the following command in terminal.

  sudo cp -r /usr/lib64/* /usr/lib/

 Remove the existing print queues by running "system-config-printer".
Connect the printer and run "hp-setup" in terminal. You can scan now.

Revision history for this message
Wayne R. Knight (wrkbear) said :
#2

I am using 64 bit Ubuntu 11.04 Natty. Does that make a difference?
This is a new system (intel i5) with a fresh install. I had no problems
with USB ports on my Intel Core 2 Duo using exactly the same 64 bit
Ubuntu 11.04 Natty installation package.

W. Knight

On Fri, 2011-12-02 at 05:25 +0000, Sarbeswar Meher wrote:

> Your question #180634 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/180634
>
> Status: Open => Answered
>
> Sarbeswar Meher proposed the following answer:
> Hi,
>
> If you are using Ubuntu 11.10 64-bit system, please run the following
> command in terminal.
>
> sudo cp -r /usr/lib64/* /usr/lib/
>
> Remove the existing print queues by running "system-config-printer".
> Connect the printer and run "hp-setup" in terminal. You can scan now.
>

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#3

Hi Wayne,

HPLIP does not work correctly on Ubuntu 11.10, 64 bit machine because of softlink removel (/usr/lib64-> /usr/lib). Which will be fixed in the next release of HPLIP. Therefore please run following command as a workaround.

  sudo cp -r /usr/lib64/* /usr/lib/

Thanks,
Sanjay

Revision history for this message
Wayne R. Knight (wrkbear) said :
#4

Sanjay,

    I am not running Ubuntu 11.10. I am running Ubuntu 11.04, 64 bit
machine. Does that make a difference?

    I had no problem with this printer using the same Ubuntu 11.04
installation on an intel core 2 duo (64 bit machine), and the problem
first occurred when I upgraded my hardware to the intel i5. I have
since updated hplip to 3.10.11 with no apparent improvement. Still
cannot scan.

Wayne

On Sun, 2011-12-04 at 05:20 +0000, Sanjay Kumar wrote:

> Your question #180634 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/180634
>
> Status: Open => Answered
>
> Sanjay Kumar proposed the following answer:
> Hi Wayne,
>
> HPLIP does not work correctly on Ubuntu 11.10, 64 bit machine because of
> softlink removel (/usr/lib64-> /usr/lib). Which will be fixed in the
> next release of HPLIP. Therefore please run following command as a
> workaround.
>
> sudo cp -r /usr/lib64/* /usr/lib/
>
>
> Thanks,
> Sanjay
>

Revision history for this message
Wayne R. Knight (wrkbear) said :
#5

I am reluctant to do this because I am not running Ubuntu 11.10. I am running Ubuntu 11.04. I just now tested this printer on an intel dual core 64 bit machine also running Ubuntu 11.04 (same install disc I used for the new machine) and both simple-scan and xsane work beautifully. This does not appear to be an Ubuntu 11.04 problem as I have now verified that the scanner works perfectly on two out of three 64 bit computers running Ubuntu 11.04.

Additional information:

HPLIP Device Manager only shows printer and fax. It doesn't show the scanner and the only reference to a scanning capability in the device manager is under configure->preferences->command->scan: /usr/bin/xsane -V %SANE_URI%.

scanimage -T gives following error message:
$ scanimage -T
scanimage: open of device hpaio:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2 failed: Device busy

Uninstalling all printers, shutting down and re-installing printer gives same results even after test on other 11.04 system.

Any other ideas?

Wayne

Revision history for this message
Wayne R. Knight (wrkbear) said :
#6

Still more info.

dmesg gives following messages after running xsane.

[ 155.894617] usb 1-1.3: new high speed USB device using ehci_hcd and address 5
[ 156.006623] scsi6 : usb-storage 1-1.3:1.3
[ 156.055240] usblp0: USB Bidirectional printer dev 5 if 1 alt 0 proto 2 vid 0x03F0 pid 0x4512
[ 156.055259] usbcore: registered new interface driver usblp
[ 157.005683] scsi 6:0:0:0: Direct-Access HP Officejet 6500 E 1.00 PQ: 0 ANSI: 5
[ 157.006690] sd 6:0:0:0: Attached scsi generic sg7 type 0
[ 157.013252] sd 6:0:0:0: [sdg] Attached SCSI removable disk
[ 157.080239] usb 1-1.3: usbfs: interface 1 claimed by usblp while 'usb' sets config #1
[ 211.065373] usblp0: removed
[ 265.149877] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 450.161023] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 450.360950] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 503.104216] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 503.260587] usb 1-1.3: device descriptor read/all, error -71
[ 503.334142] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 565.164549] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 565.364524] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 622.106276] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 622.264550] usb 1-1.3: device descriptor read/all, error -71
[ 622.336223] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 622.536324] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 659.054529] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 659.254479] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 726.073280] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 726.273213] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 742.458081] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 742.657992] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 742.857892] usb 1-1.3: reset high speed USB device using ehci_hcd and address 5
[ 742.968296] sd 6:0:0:0: Device offlined - not ready after error recovery
wayne@I-5:~$

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) said :
#7

Can you please follow the below steps. If you are using 11.04, then no need to copy files from /usr/lib64 to /usr/lib.

1. Please download the latest hplip from http://hplipopensource.com/hplip-web/install/install/index.html and follow the steps mentioned there.
2. Remove the existing print queues by running command "system-config-printer"
3. Connect the printer via USB and run in terminal "hp-setup".

Once setup is done, you can print/scan.

Thanks,
Sarbeswar

Revision history for this message
Wayne R. Knight (wrkbear) said :
#8

Disconnected printer
Downloaded latest hplip from hplipopensource
Installed per instructions
Exited prior to setting up printer
Rebooted
Removed existing HP 6500 print queues
Re-connected printer
Ran hp-setup
Prints just fine
Refuses to scan - exactly same error messages.

Additional info
Messages from syslog after re-booting

Dec 6 01:28:53 I-5 rsyslogd-2039: Could no open output pipe '/dev/xconsole' [try http://www.rsyslog.com/e/2039 ]

Dec 6 01:33:01 I-5 kernel: [ 263.762014] usb 1-1.3: usbfs: interface 1 claimed by usblp while 'usb' sets config #1
Dec 6 01:33:01 I-5 udev-configure-printer: SERN fields match
Dec 6 01:33:01 I-5 udev-configure-printer: URI match: usb://HP/Officejet%206500%20E709n?serial=TH06B2216X05G2
Dec 6 01:33:01 I-5 udev-configure-printer: SERN fields match
Dec 6 01:33:01 I-5 udev-configure-printer: URI match: hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2
Dec 6 01:33:01 I-5 udev-configure-printer: hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2 twinned with hpfax:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2
Dec 6 01:33:01 I-5 udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3
Dec 6 01:33:01 I-5 udev-configure-printer: URI of print queue: dnssd://Samsung%20CLX-3160%20Series%20(SEC0015993E6E63)._printer._tcp.local/, normalized: dnssd samsung clx 3160 series sec0015993e6e63 printer tcp local
Dec 6 01:33:01 I-5 udev-configure-printer: URI of detected printer: usb://HP/Officejet%206500%20E709n?serial=TH06B2216X05G2, normalized: officejet 6500 e709n serial th06b2216x05g2
Dec 6 01:33:01 I-5 udev-configure-printer: URI of detected printer: hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2, normalized: officejet 6500 e709n serial th06b2216x05g2
Dec 6 01:33:01 I-5 udev-configure-printer: URI of detected printer: hpfax:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2, normalized: hpfax usb officejet 6500 e709n serial th06b2216x05g2
Dec 6 01:33:01 I-5 udev-configure-printer: About to add queue for hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2
Dec 6 01:33:01 I-5 udev-add-printer: add_queue: URIs=['hp:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2', 'usb://HP/Officejet%206500%20E709n?serial=TH06B2216X05G2', 'hpfax:/usb/Officejet_6500_E709n?serial=TH06B2216X05G2']
Dec 6 01:33:05 I-5 udev-add-printer: PPD: drv:///hp/hpcups.drv/hp-officejet_6500_e709a.ppd; Status: 1
Dec 6 01:33:53 I-5 anacron[863]: Job `cron.daily' started
Dec 6 01:33:53 I-5 anacron[1969]: Updated timestamp for job `cron.daily' to 2011-12-06
Dec 6 01:33:54 I-5 kernel: [ 317.035321] usblp0: removed

after running simple-scan, syslog gives following messages

Dec 6 01:33:58 I-5 python: io/hpmud/dot4.c 231: unable to read Dot4ReverseReply header: Resource temporarily unavailable bytesRead=0
Dec 6 01:33:58 I-5 python: io/hpmud/dot4.c 617: invalid Dot4OpenChannelReply: cmd=1, result=1
Dec 6 01:33:58 I-5 python: io/hpmud/hpmud.c 648: invalid channel_write state
Dec 6 01:33:58 I-5 python: io/hpmud/pml.c 461: GetPml channel_write failed ret=31
Dec 6 01:33:58 I-5 python: io/hpmud/hpmud.c 648: invalid channel_write state
Dec 6 01:33:58 I-5 python: io/hpmud/pml.c 461: GetPml channel_write failed ret=31
Dec 6 01:33:58 I-5 python: io/hpmud/hpmud.c 629: invalid channel_close state

Revision history for this message
Sarbeswar Meher (sarbeswar-meher) said :
#9

Exit the running HP systray process if any. Please open the file /usr/share/hplip/data/model/models.dat and go to section [officejet_6500_e709n]. Check in that section scan-type=1. If not, please make it to 1.

Let me know your response.

Revision history for this message
Wayne R. Knight (wrkbear) said :
#10

Checked out scan-type and it is equal to 1.

NEW INFORMATION

Discovered problem and fixed it. Not a software problem. It was a usb connection problem.

Because the printer is about 8 feet from the computer, I had a usb extension cable between the two. When I moved the printer close enough to the computer that I could remove the usb extension cable, it cured the problem. What I don't understand is why everything worked with the core2 duo machine configured exactly the same.