Scan function of a HP Photosmart c3180 doesn't go with Ubuntu 12.04 Precise LTS

Asked by matt

Hi everybody,

I'm using Ubuntu 12.04 Precise LTS with Gnome Classic as DE, and I tried to follow the steps that Amarnath suggested in a similar post, that's the https://answers.launchpad.net/hplip/+question/211996 but nothing changed.
My printer, a HP Photosmart c3180, prints well but doesn't scan at all.
I tried also to remove the package installed with sudo rm -rf /usr/share/hplip and everything went well. Then I installed the file hplip-3.12.10a again just doing the same as the guy there, that's Stewart: in effect, if you use Synaptic and you try to cancel the package hplip the comes with the distro, the file 3.12.10a doesn't seem to run and exits showing an error.
That's why I gave sudo apt-get install in a shell and then installed the file mentioned above, I mean the 3.12.10a.

All went well, but the scanner of my printer doesn't go.
I tried to change the permissions as Amarnath said but nothing changed.
It's a mystery. If only I think that with all the old versions of Ubuntu LTS I didn't have any problem at all!
I'm really angry with this.
I copy here down the result I got running the command hp-scan.
I hope somebody can help me. Thanks in advance.
The result I got:

matthew@matthew-Desktop:~$ hp-scan

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

Copyright (c) 2001-14 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:/usb/Photosmart_C3100_series?serial=CN73AC93DN04P9

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/Photosmart_C3100_series?serial=CN73AC93DN04P9
Opening connection to device...
error: SANE: Invalid argument (code=4)
matthew@matthew-Desktop:~$

Question information

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

Are you able to scan via 'Xsane' ? Which version of hplip gives correct scanning?

Revision history for this message
matt (mitsuve) said :
#2

Hi Sarbeswar,

I'm able to scan neither with Xsane nor with Simple Scan. I always got the same error that's ( I translate from Italian): An error occurred during the reading: an error occurred during the I/O on the device.

I really don't know why. That's strange.
Bye.
Matt

Revision history for this message
matt (mitsuve) said :
#3

Hi again,

As I said above, the printer works perfectly a printer but not as a scanner! The strangest thing is the result I got if I run the command hp-check.
Everything seems alright as you can see here:

hp-check[3674]: info: :
Initializing. Please wait...
Ubuntu

12.04

scheduler is running

1.5.3

Linux matthew-Desktop 3.2.0-33-generic-pae #52-Ubuntu SMP Thu Oct 18 16:39:21 UTC 2012 i686 athlon i386 GNU/Linux

hp-check[3674]: info: :
hp-check[3674]: info: :---------------
hp-check[3674]: info: :| SYSTEM INFO |
hp-check[3674]: info: :---------------
hp-check[3674]: info: :
3.2.0-33-generic-pae #52-Ubuntu SMP Thu Oct 18 16:39:21 UTC 2012 GNU/Linux

matthew-Desktop

3.2.0-33-generic-pae #52-Ubuntu SMP Thu Oct 18 16:39:21 UTC 2012 GNU/Linux

hp-check[3674]: info: : Kernel: 3.2.0-33-generic-pae #52-Ubuntu SMP Thu Oct 18 16:39:21 UTC 2012 GNU/Linux
 Host: matthew-Desktop
 Proc: 3.2.0-33-generic-pae #52-Ubuntu SMP Thu Oct 18 16:39:21 UTC 2012 GNU/Linux
 Distribution: ubuntu 12.04
hp-check[3674]: info: :
hp-check[3674]: info: :-----------------------
hp-check[3674]: info: :| HPLIP CONFIGURATION |
hp-check[3674]: info: :-----------------------
hp-check[3674]: info: :
hp-check[3674]: info: :HPLIP-Version: HPLIP 3.12.10a
hp-check[3674]: info: :HPLIP-Home: /usr/share/hplip
hp-check[3674]: info: :HPLIP-Installation: Auto installation is supported for ubuntu distro 12.04 version
hp-check[3674]: info: :
hp-check[3674]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[3674]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.12.10a

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.10a
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
libusb01-build=no
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.12.10a
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

hp-check[3674]: info: :
hp-check[3674]: info: :[01mCurrent contents of '/var/lib/hp/hplip.state' file:[0m
hp-check[3674]: info: :# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

hp-check[3674]: info: :
hp-check[3674]: info: :[01mCurrent contents of '~/.hplip/hplip.conf' file:[0m
hp-check[3674]: info: :[upgrade]
notify_upgrade = false
last_upgraded_time = 1353231690
pending_upgrade_time = 0
latest_available_version = 3.12.10a

[settings]
systray_visible = 2
systray_messages = 0

[last_used]
device_uri = "hp:/usb/Photosmart_C3100_series?serial=CN73AC93DN04P9"
printer_name =
working_dir = .

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

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

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[installation]
date_time = 19/11/2012 19:59:55
version = 3.12.10a

hp-check[3674]: info: : <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
hp-check[3674]: info: :
hp-check[3674]: info: :--------------------------
hp-check[3674]: info: :| External Dependencies |
hp-check[3674]: info: :--------------------------
hp-check[3674]: info: :
hp-check[3674]: info: : gs Ghostscript REQUIRED 7.05 9.05 OK -
hp-check[3674]: info: : network Network-wget OPTIONAL - 1.13.4 OK -
hp-check[3674]: info: : dbus DBus REQUIRED - 1.4.18 OK -
hp-check[3674]: info: : scanimage Shell-Scanning OPTIONAL 1.0 1.0.22 OK -
hp-check[3674]: info: : policykit Admin-Policy-framework OPTIONAL - 0.104 OK -
hp-check[3674]: info: : xsane SANE-GUI OPTIONAL 0.9 0.998 OK -
scheduler is running

hp-check[3674]: info: : cups CUPS REQUIRED 1.1 1.5.3 OK 'CUPS Scheduler is running'
hp-check[3674]: info: :
hp-check[3674]: info: :-------------------------
hp-check[3674]: info: :| General Dependencies |
hp-check[3674]: info: :-------------------------
hp-check[3674]: info: :
hp-check[3674]: info: : reportlab Python-PDF-Lib OPTIONAL 2.0 2.5 OK -
hp-check[3674]: info: : libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.1 OK -
hp-check[3674]: info: : pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
hp-check[3674]: info: : pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.9.1 OK -
hp-check[3674]: info: : libjpeg JPEG-Lib REQUIRED - - OK -
hp-check[3674]: info: : libpthread POSIX-Threads-Lib REQUIRED - 2.15 OK -
hp-check[3674]: info: : python-dbus Python-DBUS REQUIRED 0.80.0 1.0.0 OK -
hp-check[3674]: info: : python-devel Python-SDK REQUIRED 2.2 2.7.3 OK -
hp-check[3674]: info: : pyqt4 Python-Qt4 REQUIRED 4.0 4.9.1 OK -
hp-check[3674]: info: : cups-devel CUPS-SDK REQUIRED - 1.5.3 OK -
hp-check[3674]: info: : sane-devel SANE-SDK REQUIRED - 1.0.22 OK -
hp-check[3674]: info: : libusb USB-Lib REQUIRED - 1.0 OK -
hp-check[3674]: info: : sane Scan-Lib REQUIRED - 1.0.22 OK -
hp-check[3674]: info: : cups-image CUPS-Image-Lib REQUIRED - 1.5.3 OK -
hp-check[3674]: info: : libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.4.3 OK -
hp-check[3674]: info: : python-xml Python-XML-Lib REQUIRED - 2.0.1 OK -
hp-check[3674]: info: : python-notify Desktop-notifications OPTIONAL - - OK -
hp-check[3674]: info: :
hp-check[3674]: info: :------------------------------
hp-check[3674]: info: :| Compile Time Dependencies |
hp-check[3674]: info: :------------------------------
hp-check[3674]: info: :
hp-check[3674]: info: : gcc gcc-Compiler REQUIRED - 4.6.3 OK -
hp-check[3674]: info: : libtool Build-tools REQUIRED - 2.4.2 OK -
hp-check[3674]: info: : make GNU-Build-tools REQUIRED 3.0 3.81 OK -
hp-check[3674]: info: :
hp-check[3674]: info: :----------------------
hp-check[3674]: info: :| Python Extentions |
hp-check[3674]: info: :----------------------
hp-check[3674]: info: :
hp-check[3674]: info: : cupsext CUPS-Extension REQUIRED - 3.12.10a OK -
hp-check[3674]: info: : pcardext PhotoCard-Extension REQUIRED - 3.12.10a OK -
hp-check[3674]: info: : hpmudext IO-Extension REQUIRED - 3.12.10a OK -
hp-check[3674]: info: :
hp-check[3674]: info: :-----------------------
hp-check[3674]: info: :| Scan Configuration |
hp-check[3674]: info: :-----------------------
hp-check[3674]: info: :
hp-check[3674]: info: : hpaio HPLIP-SANE-Backend REQUIRED - 3.12.10a OK 'hpaio found in /etc/sane.d/dll.conf'
hp-check[3674]: info: : scanext Scan-SANE-Extension REQUIRED - 3.12.10a OK -
hp-check[3674]: info: :
hp-check[3674]: info: :------------------------------
hp-check[3674]: info: :| DISCOVERED SCANNER DEVICES |
hp-check[3674]: info: :------------------------------
hp-check[3674]: info: :
hp-check[3674]: info: :device `hpaio:/usb/Photosmart_C3100_series?serial=CN73AC93DN04P9' is a Hewlett-Packard Photosmart_C3100_series all-in-one

hp-check[3674]: info: :
hp-check[3674]: info: :--------------------------
hp-check[3674]: info: :| DISCOVERED USB DEVICES |
hp-check[3674]: info: :--------------------------
hp-check[3674]: info: :
hp-check[3674]: info: : Device URI Model
hp-check[3674]: info: : -------------------------------- --------------------------
hp-check[3674]: info: : hp:/usb/Photosmart_C3100_series? HP Photosmart C3100 series
  serial=CN73AC93DN04P9
hp-check[3674]: info: :
hp-check[3674]: info: :---------------------------------
hp-check[3674]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[3674]: info: :---------------------------------
hp-check[3674]: info: :
hp-check[3674]: info: :
hp-check[3674]: info: :[01mPhotosmart_C3100[0m
hp-check[3674]: info: :[01m----------------[0m
hp-check[3674]: info: :Type: Printer
hp-check[3674]: info: :Device URI: hp:/usb/Photosmart_C3100_series?serial=CN73AC93DN04P9
hp-check[3674]: info: :PPD: /etc/cups/ppd/Photosmart_C3100.ppd
hp-check[3674]: info: :PPD Description: HP Photosmart c3100 Series, hpcups 3.12.10a
hp-check[3674]: info: :Printer status: printer Photosmart_C3100 is idle. enabled since lun 19 nov 2012 19:48:33 CET
hp-check[3674]: info: :Communication status: Good
hp-check[3674]: info: :
hp-check[3674]: info: :
hp-check[3674]: info: :--------------
hp-check[3674]: info: :| PERMISSION |
hp-check[3674]: info: :--------------
hp-check[3674]: info: :
matthew adm lp cdrom sudo dip plugdev lpadmin netdev sambashare

hp-check[3674]: info: :groups user-groups Required - - OK matthew adm lp cdrom sudo dip plugdev lpadmin netdev sambashare

hp-check[3674]: info: :USB Photosmart_C3100 Required - - OK Node:'/dev/bus/usb/001/005' Perm:' root lp rw- rw- rw- rw- r--'
hp-check[3674]: info: :
hp-check[3674]: info: :-----------
hp-check[3674]: info: :| SUMMARY |
hp-check[3674]: info: :-----------
hp-check[3674]: info: :
hp-check[3674]: info: :[01mMissing Required Dependencies[0m
hp-check[3674]: info: :[01m-----------------------------[0m
hp-check[3674]: info: :None
hp-check[3674]: info: :
hp-check[3674]: info: :[01mMissing Optional Dependencies[0m
hp-check[3674]: info: :[01m-----------------------------[0m
hp-check[3674]: info: :None
hp-check[3674]: info: :
hp-check[3674]: info: :
hp-check[3674]: info: :Total Errors: 0
hp-check[3674]: info: :Total Warnings: 0
hp-check[3674]: info: :
hp-check[3674]: info: :[32;01mNo errors or warnings.[0m
hp-check[3674]: info: :
hp-check[3674]: info: :Done.

I got no errors or warnings at all! Still the scanning function doesn't work.

Hope somebody can help me.
Bye.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
matt (mitsuve) said :
#5

Hi everybody,

I tried again to install the new hplip-3.12.11 but the scanning function doesn't work all, just like it happened with the previous hplip3.12.10a.

I removed first the package by running "make uninstall" in the HPLIP source directory that I kept, and then I installed the new one, but with no result.

Then I gave the command in a shell:

hp-check -t

and also this time I received no error!
Am I the only one with this problem?

Bye.

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

Hi Matt,

As we are not able to reproduce this here, can you please provide the some log information with following changes to analyse further?

Enabling debug:-
1) go to hplip-3.12.11 folder ( assuming downloaded hplip-3.12.11.run in ~/Downloads)
$ cd ~/Downloads/hplip-3.12.11

2) open scan/sane/sclpml.c file
--> line no:48 . uncomment SCLPML_DEBUG. (i.e. change from "//# define SCLPML_DEBUG" to"# define SCLPML_DEBUG")

3) open scan/sane/common.h file
--> line no. 34.. uncomment HPAIO_DEBUG (i.e. change from "// #define HPAIO_DEBUG" to "#define HPAIO_DEBUG" )
-->line no. 44.. change from "#if 1" to "#if 0"

4) run mkae
$ make

$ sudo make install
 or
$ su -c 'make install'

5) clean system logs
$ sudo cp /dev/null /var/log/syslog (i.e. if /var/log/syslog exists)
$ sudo cp /dev/null /var/log/messages (i.e. if /var/log/messages exists)

6) run hp-scan command in debug mode
$ hp-scan -g &>scan.log

7) hp-check &>hp-check.log
--> attach following logs by creating bug in this launchpad
1) /var/log/messages
2) /var/log/syslog
3) scan.log
4) hp-check.log

Thanks & Regards,
Amarnath

Can you help with this problem?

Provide an answer of your own, or ask matt for more information if necessary.

To post a message you must log in.