cannot detect usb connected printer

Asked by Colin Scott

I installed HPLIP from the Synaptec Pkg Mgr in Ubuntu 10.04; after entering "sudo hp-setup" and my password I attempt to connect via Wireless/802.11 and cannot access the device via USB:

Searching on USB bus...
error: No devices found on bus: usb
[I disconnect the cable from the printer for 15 seconds and reconnect it]
Searching on USB bus...
error: No devices found on bus: usb
[I disconnect the cable from the laptop for 15 seconds and reconnect it]
Searching on USB bus...
error: No devices found on bus: usb
[power cycle printer]
Searching on USB bus...
error: No devices found on bus: usb
[press "refresh" in desperation]
Searching on USB bus...
error: No devices found on bus: usb
[ibid]
Searching on USB bus...
error: No devices found on bus: usb
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=mdns)
error: No devices found on bus: net

lsusb returns that the device is in fact connected:

laptop:~$ lsusb
Bus 004 Device 002: ID 045e:0745 Microsoft Corp.
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 006: ID 03f0:2e12 Hewlett-Packard

Other notes: I can use the printer with Sys > Admin > Printing to print only. Everything works fine in Vista 32-bit on both USB and wireless connections when it feels like booting properly.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Amarnath Chitumalla
Solved:
Last query:
Last reply:
Revision history for this message
Srikanth (srikanth-lokare) said :
#1

Hi,

Can you please run "hp-check -t" from the terminal and post the complete output here.

Thanks for using HPLIP.

Thanks and Regards,
Srikanth Lokare

Revision history for this message
Colin Scott (solutionorppt) said :
#2

No problem; this output is without the printer attached via USB cable:

"Initializing. Please wait...

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

Basic system information:
Linux colin-laptop 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:40:53 UTC 2011 i686 GNU/Linux

Distribution:
ubuntu 10.04

Checking Python version...
OK, version 2.6.5 installed

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

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

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

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

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
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
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=yes
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.10.2rc1.9
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=yes
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]
printer_name =
working_dir = .
device_uri = "hp:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR"

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[installation]
version = 3.10.2rc1.9
date_time = 11/02/2011 12:03:18

[settings]
systray_messages = 0
systray_visible = 2

[fax]
email_address =
voice_phone =

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

[polling]
enable = false
device_list =
interval = 5

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

No devices found.

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

HP-Officejet-4500-G510n-z
-------------------------
Type: Unknown
Device URI: dnssd://Officejet%204500%20G510n-z%20%5B14D8F1%5D._pdl-datastream._tcp.local/
PPD: /etc/cups/ppd/HP-Officejet-4500-G510n-z.ppd
PPD Description: HP Officejet 4500 g510n-z, hpcups 3.11.10
Printer status: printer HP-Officejet-4500-G510n-z is idle. enabled since Wed 02 Nov 201Ready to print.DT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

Officejet-4500-G510n-z
----------------------
Type: Unknown
Device URI: usb://HP/Officejet%204500%20G510n-z?serial=CN17RK12G605HR
PPD: /etc/cups/ppd/Officejet-4500-G510n-z.ppd
PPD Description: HP Officejet 4500 g510n-z, hpcups 3.11.10
Printer status: printer Officejet-4500-G510n-z is idle. enabled since Tue 01 Nov 2011 03:16:53 PM EDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

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

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

Checking output of 'scanimage -L'...

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

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

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

colin adm lp dialout fax cdrom floppy tape audio dip video plugdev fuse lpadmin netdev admin sambashare

User member of group 'lp'. Enables print/ scan/ fax.
User member of group 'lpadmin'.

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

error: 2 errors and/or warnings.

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

Done."

Revision history for this message
Srikanth (srikanth-lokare) said :
#3

Hi,

Can you please try downloading and installing the latest HPLIP (3.11.10) release using run file. You can download the same from http://hplipopensource.com/hplip-web/gethplip.html. If the problem still persists, please post the output of "hp-check -t" again.

Thanks for using HPLIP.

Thanks and Regards,
Srikanth Lokare

Revision history for this message
Colin Scott (solutionorppt) said :
#4

Okay, done. I encountered the same recursion that caused me to attempt to use the package from Synaptec in the first place. When I attempt to set up the wireless/802.11 in lieu of the USB connection, I select "finish" from the 5th screen after the printer connects to the network and I am directed back to the initial screen where I am prompted to select from USB, local, or wireless networking. Output below:

:~/Downloads$ 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 colin-laptop 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:40:53 UTC 2011 i686 GNU/Linux

Distribution:
ubuntu 10.04

Checking Python version...
OK, version 2.6.5 installed

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

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

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

------------------------------------
| 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]
printer_name =
working_dir = .
device_uri = "hp:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR"

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[installation]
version = 3.11.10
date_time = 11/03/2011 09:17:53

[settings]
systray_messages = 0
systray_visible = 2

[fax]
email_address =
voice_phone =

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

[polling]
enable = false
device_list =
interval = 5

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

No devices found.

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

HP-Officejet-4500-G510n-z
-------------------------
Type: Unknown
Device URI: dnssd://Officejet%204500%20G510n-z%20%5B14D8F1%5D._pdl-datastream._tcp.local/
PPD: /etc/cups/ppd/HP-Officejet-4500-G510n-z.ppd
PPD Description: HP Officejet 4500 g510n-z, hpcups 3.11.10
Printer status: printer HP-Officejet-4500-G510n-z is idle. enabled since Wed 02 Nov 201Ready to print.DT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

Officejet-4500-G510n-z
----------------------
Type: Unknown
Device URI: usb://HP/Officejet%204500%20G510n-z?serial=CN17RK12G605HR
PPD: /etc/cups/ppd/Officejet-4500-G510n-z.ppd
PPD Description: HP Officejet 4500 g510n-z, hpcups 3.11.10
Printer status: printer Officejet-4500-G510n-z disabled since Thu 03 Nov 2011 09:16:49 AUnplugged or turned off
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.

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

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

Checking output of 'scanimage -L'...

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

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

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

colin adm lp dialout fax cdrom floppy tape audio dip video plugdev fuse lpadmin netdev admin sambashare

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

error: 2 errors and/or warnings.

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

Done.

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) said :
#5

Hi Colin,

Sorry for inconvenience.
Your printer is configured with invalid URI type. So please remove all the print queues and re-configure print by method.

Steps to remove the invalid queues.
1) run system-config-printer in terminal.
$ system-config-printer
2) remove all print queues (i.e. Officejet-4500-G510n-z and HP-Officejet-4500-G510n-z)

Steps to re-configure through USB.
1) run hp-setup in the terminal
$ hp-setup
2) select USB option. and follow navigation.

Steps to re-configure through Wireless.
1) get the printer wireless IP address "from printer panel".
2)run hp-setup in the terminal
$ hp-setup
2) select Network/Ethernet/Wireless option (2nd option). and enter IP address in "Show Advanced option"-->"Manual Discovery".
3) and follow navigation.

Please let us know if you need more information.

Thanks & Regards,
Amarnath

Revision history for this message
Colin Scott (solutionorppt) said :
#6

Fine until this point:

2) select Network/Ethernet/Wireless option (2nd option). and enter IP address in "Show Advanced option"-->"Manual Discovery".

Which fails to see the printer at the address I printed directly from the printer (192.168.1.4); Terminal output below.

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.

error: No devices found on bus: net
error: No devices found on bus: net
error: No devices found on bus: net
error: No devices found on bus: net
error: No devices found on bus: net

Done.

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

Hi Colin,

The IP address which the printer is showing should be previded by the wireless router. Are you sure you configured printer with wireless router correctly?? If yes then please check if you are able to ping this IP from the Linux system.

Also please paste the output of following command here.

     hp-setup -g <IP address of the printer>

Thanks,
Sanjay

Revision history for this message
Colin Scott (solutionorppt) said :
#8

Ping is fine. Printer appears as idle in HP Device Manager but has no available actions. Output below;

hp-setup -g 192.168.1.4

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.

hp-setup[17329]: debug: param=192.168.1.4
hp-setup[17329]: debug: selected_device_name=None
hp-setup[17329]: debug: Sys.argv=['/usr/bin/hp-setup', '-g', '192.168.1.4'] printer_name=None param=192.168.1.4 jd_port=1 device_uri=None remove=False
Searching for device...
hp-setup[17329]: debug: Trying IP address 192.168.1.4
hp-setup[17329]: debug: Found: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4
hp-setup[17329]: debug: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hp is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: Cache miss: officejet_4500_g510n-z
hp-setup[17329]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[17329]: debug: Searching for section [officejet_4500_g510n-z] in file /usr/share/hplip/data/models/models.dat
hp-setup[17329]: debug: Found section [officejet_4500_g510n-z] in file /usr/share/hplip/data/models/models.dat
Found device: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4
hp-setup[17329]: debug: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hp is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: Starting GUI loop...
hp-setup[17329]: debug: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hp is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hp is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hp is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: Unable to open file installer/distros.dat for reading.
hp-setup[17329]: debug: []
hp-setup[17329]: debug: hp:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR: back_end:hp is_hp:True bus:usb model:Officejet_4500_G510n-z serial:CN17RK12G605HR dev_file: host: zc: port:1
hp-setup[17329]: debug: hpfax:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR: back_end:hpfax is_hp:True bus:usb model:Officejet_4500_G510n-z serial:CN17RK12G605HR dev_file: host: zc: port:1
hp-setup[17329]: debug: {'hp:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR': ['Officejet-4500-G510n-z']}
hp-setup[17329]: debug: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hp is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: Officejet_4500_G510n-z
hp-setup[17329]: debug: (CUPS 1.2.x) Getting list of PPDs using CUPS_GET_PPDS...
hp-setup[17329]: debug: CUPS PPD base path = None
hp-setup[17329]: debug: Foomatic PPD base path = /usr/share/ppd
hp-setup[17329]: debug: Matching PPD list to model officejet_4500_g510n-z...
hp-setup[17329]: debug: []
warning: No PPD found for model officejet_4500_g510n-z using new algorithm. Trying old algorithm...
hp-setup[17329]: debug: 1st stage edit distance match
hp-setup[17329]: debug: Determining edit distance from officejet_4500_g510n-z (only showing edit distances < 4)...
hp-setup[17329]: debug: dist('officejet_4500_g510a-f') = 2
hp-setup[17329]: debug: dist('officejet_4500_g510g-m') = 2
hp-setup[17329]: debug: dist('officejet_6500_e710n-z') = 3
hp-setup[17329]: debug: dist('officejet_4500_g510n-z') = 0
hp-setup[17329]: debug: Min. dist = 0
hp-setup[17329]: debug: {'drv:///hp/hpcups.drv/hp-officejet_4500_g510n-z.ppd': u'HP Officejet 4500 g510n-z, hpcups 3.11.10'}
hp-setup[17329]: debug: [('drv:///hp/hpcups.drv/hp-officejet_4500_g510n-z.ppd', u'HP Officejet 4500 g510n-z, hpcups 3.11.10')]
hp-setup[17329]: debug: Found match: drv:///hp/hpcups.drv/hp-officejet_4500_g510n-z.ppd
hp-setup[17329]: debug: [('drv:///hp/hpcups.drv/hp-officejet_4500_g510n-z.ppd', ['z'])]
hp-setup[17329]: debug: One match found.
hp-setup[17329]: debug: hp:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR: back_end:hp is_hp:True bus:usb model:Officejet_4500_G510n-z serial:CN17RK12G605HR dev_file: host: zc: port:1
hp-setup[17329]: debug: hpfax:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR: back_end:hpfax is_hp:True bus:usb model:Officejet_4500_G510n-z serial:CN17RK12G605HR dev_file: host: zc: port:1
hp-setup[17329]: debug: {'hpfax:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR': ['Officejet-4500-G510n-z-Fax']}
hp-setup[17329]: debug: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hpfax is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: Searching for fax PPD for model officejet_4500_g510n-z
hp-setup[17329]: debug: Found fax PPD: /usr/share/ppd/HP/HP-Fax-hpcups.ppd.gz
hp-setup[17329]: debug: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hpfax is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: fax-type=1
hp-setup[17329]: debug: Device URI: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4
hp-setup[17329]: debug: Printer: None
hp-setup[17329]: debug: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hpfax is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: URI: backend=hpfax, is_hp=True, bus=net, model=Officejet_4500_G510n-z, serial=, dev=, host=192.168.1.4, port=1
hp-setup[17329]: debug: Model/UI model: Officejet_4500_G510n-z/HP Officejet 4500 g510n-z
hp-setup[17329]: debug: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hpfax is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: Re-reading CUPS printer queue information.
hp-setup[17329]: debug: Opening device: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4 (not for printing)
hp-setup[17329]: debug: I/O mode=3
hp-setup[17329]: debug: device-id=1
hp-setup[17329]: debug: Opened device: hpfax (backend=hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4, is_hp=True, bus=net, model=Officejet_4500_G510n-z, dev=, serial=, host=192.168.1.4, port=1)
hp-setup[17329]: debug: Opening HP-MESSAGE channel...
hp-setup[17329]: debug: channel-id=1
hp-setup[17329]: debug: PML/SNMP GET 1.1.3.8 (result code = 0x0) returned:
hp-setup[17329]: debug: 0000: fd e8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
hp-setup[17329]: debug: 0010: 00 00 00 00 00 00 00 .......
hp-setup[17329]: debug: PML/SNMP GET 1.1.3.9 (result code = 0x0) returned:
hp-setup[17329]: debug: 0000: fd e8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
hp-setup[17329]: debug: 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
hp-setup[17329]: debug: 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
hp-setup[17329]: debug: 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
hp-setup[17329]: debug: 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..............
hp-setup[17329]: debug: Closing device...
hp-setup[17329]: debug: Closing HP-MESSAGE channel...
hp-setup[17329]: debug: Result-code = 0
hp-setup[17329]: debug: addPrinter('Officejet_4500_G510n-z', 'hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4', '', '', 'drv:///hp/hpcups.drv/hp-officejet_4500_g510n-z.ppd', '')
hp-setup[17329]: debug: addPrinter() returned (1, successful-ok)
hp-setup[17329]: debug: hp:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR: back_end:hp is_hp:True bus:usb model:Officejet_4500_G510n-z serial:CN17RK12G605HR dev_file: host: zc: port:1
hp-setup[17329]: debug: hpfax:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR: back_end:hpfax is_hp:True bus:usb model:Officejet_4500_G510n-z serial:CN17RK12G605HR dev_file: host: zc: port:1
hp-setup[17329]: debug: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hp is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: {'hp:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR': ['Officejet-4500-G510n-z'], 'hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4': ['Officejet_4500_G510n-z']}
hp-setup[17329]: debug: addPrinter('Officejet_4500_G510n-z_fax', 'hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4', '', '/usr/share/ppd/HP/HP-Fax-hpcups.ppd.gz', '', '')
hp-setup[17329]: debug: addPrinter() returned (1, successful-ok)
hp-setup[17329]: debug: hp:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR: back_end:hp is_hp:True bus:usb model:Officejet_4500_G510n-z serial:CN17RK12G605HR dev_file: host: zc: port:1
hp-setup[17329]: debug: hpfax:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR: back_end:hpfax is_hp:True bus:usb model:Officejet_4500_G510n-z serial:CN17RK12G605HR dev_file: host: zc: port:1
hp-setup[17329]: debug: hp:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hp is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hpfax is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: {'hpfax:/usb/Officejet_4500_G510n-z?serial=CN17RK12G605HR': ['Officejet-4500-G510n-z-Fax'], 'hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4': ['Officejet_4500_G510n-z_fax']}
hp-setup[17329]: debug: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hpfax is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: fax-type=1
hp-setup[17329]: debug: Device URI: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4
hp-setup[17329]: debug: Printer: None
hp-setup[17329]: debug: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hpfax is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: URI: backend=hpfax, is_hp=True, bus=net, model=Officejet_4500_G510n-z, serial=, dev=, host=192.168.1.4, port=1
hp-setup[17329]: debug: Model/UI model: Officejet_4500_G510n-z/HP Officejet 4500 g510n-z
hp-setup[17329]: debug: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4: back_end:hpfax is_hp:True bus:net model:Officejet_4500_G510n-z serial: dev_file: host:192.168.1.4 zc: port:1
hp-setup[17329]: debug: Re-reading CUPS printer queue information.
hp-setup[17329]: debug: Opening device: hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4 (not for printing)
hp-setup[17329]: debug: I/O mode=3
hp-setup[17329]: debug: device-id=1
hp-setup[17329]: debug: Opened device: hpfax (backend=hpfax:/net/Officejet_4500_G510n-z?ip=192.168.1.4, is_hp=True, bus=net, model=Officejet_4500_G510n-z, dev=, serial=, host=192.168.1.4, port=1)
hp-setup[17329]: debug: Opening HP-MESSAGE channel...
hp-setup[17329]: debug: channel-id=1
hp-setup[17329]: debug: PML/SNMP SET 1.1.3.9 (result code = 0x0) to:
hp-setup[17329]: debug: 0000: 00 0e ..
hp-setup[17329]: debug: PML/SNMP SET 1.1.3.8 (result code = 0x0) to:
hp-setup[17329]: debug: 0000: 00 0e ..
hp-setup[17329]: debug: Closing device...
hp-setup[17329]: debug: Closing HP-MESSAGE channel...
hp-setup[17329]: debug: Result-code = 0

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

Hi Colin,

From the log it looks like the printer got added correctly on wireless network port. PLease print any docuent and let us know if issue is still present.

Thanks,
Sanjay

Revision history for this message
Colin Scott (solutionorppt) said :
#10

Printing has never been an issue; Ubuntu's native drivers allowed me to print without installing anything, but the printer requires the HP drivers to save scanned documents. I can't scan documents - that's why I installed the HPLIP software in the first place.

The scan option is not available in the HP Device Manager and selecting "Scan > Scan Color > Scan To" on the printer returns the error message "No Scan Options".

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

Hi Colin,

Thanks for the update. We will work on it and let you know the update soon.

Thanks,
Sanjay

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

From the above log, it seems you have configured printer on net. For scan, run "hp-scan" or "xsane" in commandline.

As you're saying, for Officejet_4500_G510n-z, there is no Scan option in Device manager. Please go to /usr/share/hplip/model/models.dat and search for [Officejet_4500_G510n-z] and in this section, scan-type=1 should be there. If not present, please make it so.

Let us know your response.

Revision history for this message
Colin Scott (solutionorppt) said :
#13

Okay, the scan was effective. My only two remaining questions are as follows:

1) How do I define the destination folder for the scanned image?
2) How do I select between a .png or .pdf as the file type and b/w or color? It prompts you to choose these options when the operation is performed at the printer console in Windows.

The results of my successful scan are below:

colin@Mr:~$ hp-scan

HP Linux Imaging and Printing System (ver. 3.11.10)
Scan Utility ver. 2.2

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.

Using device: hpaio:/net/Officejet_4500_G510n-z?ip=192.168.1.4

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/net/Officejet_4500_G510n-z?ip=192.168.1.4
Opening connection to device...

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.899994mm, 381.000000mm)
  Width: 215.899994mm
  Height: 381.000000mm
Destination(s): file
Output file:
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/colin/hpscan001.png'.

Warming up...

Scanning...
Expecting to read 10.9 MB from scanner.
Reading data: [******************************************] 100% 10.9 MB
Read 10.9 MB from scanner.
Closing device.

Outputting to destination 'file':
Saving to file /home/colin/hpscan001.png

Done.

Revision history for this message
Best Amarnath Chitumalla (amarnath-chitumalla) said :
#14

Hi Colin,

By running "xsane" command in terminal, you will get pop-up to select options.

hp-scan is only command line. for option, you can check "hp-scan -h"
e.g.
hp-scan --file=~/scanedFiles/a.png --mode=color

Thanks & Regards,
Amarnath

Revision history for this message
Colin Scott (solutionorppt) said :
#15

Thanks Amarnath Chitumalla, that solved my question.