Scanner HP CM1312 MFP worked flawlessly, untill upgrade from Ubuntu 12.10 to 13.04. After upgrade ´unable to connect to scanner´, but work well with win 8 under virtualbox.

Asked by Patrick Valsecchi

Using hplip as before the ubuntu upgrade.

/var/log/syslog gives me some info:

Jul 25 17:19:58 yvan kernel: [ 1254.639327] Did not find alt setting 1 for intf 0, config 1
Jul 25 17:19:58 yvan xsane: scan/sane/soapht.c 871: control_option failed: option=mode action=get
Jul 25 17:20:04 xsane: last message repeated 3 times
Jul 25 17:20:04 yvan xsane: scan/sane/soapht.c 871: control_option failed: option=br-x action=set
Jul 25 17:20:04 yvan xsane: scan/sane/soapht.c 871: control_option failed: option=br-y action=set
Jul 25 17:20:04 yvan xsane: scan/sane/soapht.c 871: control_option failed: option=mode action=get
Jul 25 17:20:07 yvan xsane: scan/sane/soapht.c 871: control_option failed: option=mode action=get
Jul 25 17:20:09 yvan kernel: [ 1265.362067] xsane[5916]: segfault at 2b8 ip 00007f01304e89cc sp 00007fff3a56c188 error 4 in libc-2.17.so[7f0130465000+1be000]

I tried to "install the required plugin" from the HP device manager to no help.

If I boot on windows I can scan without any problem. So the printer/scanner is fine.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Sarbeswar Meher
Solved:
Last query:
Last reply:
Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#1

Hi,

Can you try below steps and see if issue is resolved.

1) Try below command in the terminal.
$hp-doctor

2) If that does not solve your problem then try below steps.
=> Download and install the latest HPLIP release from
http://hplipopensource.com/hplip-web/install/install/index.html (automatic installer)

=> Reconfigure print queue with the commands in the terminal as mentioned below.
       => system-config-printer (remove all print queues)
      => sudo hp-plugin (This will download right plugin)
       => hp-setup (It should not be run in a root mode. This command is adding print queue, make sure you select ppd name having "-ps" or "hpcups" substring)
=>Try printing/scanning now.

Revision history for this message
Patrick Valsecchi (patrick-launchpad) said :
#2

Helo,
Sorry but no change. hp-doctor gives the following result :

HP Linux Imaging and Printing System (ver. 3.13.7)
Self Diagnse Utility and Healing Utility ver. 1.0
Copyright (c) 2001-13 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.
Checking for Deprecated items....
No Deprecated items are found
Checking for HPLIP updates....
Latest version of HPLIP is already installed.
Checking for Dependencies....
---------------
| SYSTEM INFO |
---------------
 Kernel: 3.8.0-28-generic #41-Ubuntu SMP Fri Jul 26 16:26:01 UTC 2013 GNU/Linux
 Host: yvan
 Proc: 3.8.0-28-generic #41-Ubuntu SMP Fri Jul 26 16:26:01 UTC 2013 GNU/Linux
 Distribution: ubuntu 13.04
 Bitness: 64 bit
-----------------------
| HPLIP CONFIGURATION |
-----------------------
HPLIP-Version: HPLIP 3.13.7
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 13.04 version
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.13.7
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.13.7
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
# 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.13.7
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
lite-build=no
udev-acl-rules=yes
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.13.7
Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1365604877
pending_upgrade_time = 0
latest_available_version = 3.13.7
[settings]
systray_visible = 0
systray_messages = 0
[last_used]
device_uri = "hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC891DH9X"
printer_name = HP_Color_LaserJet_CM1312_MFP_2
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 = 07. 08. 13 09:58:05
version = 3.13.7
 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>
--------------------------
| External Dependencies |
--------------------------
 gs Ghostscript REQUIRED 7.05 9.07 OK -
 network Network-wget OPTIONAL - 1.14 OK -
 dbus DBus REQUIRED - 1.6.8 OK -
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.23 OK -
 policykit Admin-Policy-framework OPTIONAL - 0.105 OK -
 xsane SANE-GUI OPTIONAL 0.9 0.998 OK -
 cups CUPS REQUIRED 1.1 1.6.2 OK 'CUPS Scheduler is running'
-------------------------
| General Dependencies |
-------------------------
 reportlab Python-PDF-Lib OPTIONAL 2.0 2.6 OK -
 libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.1 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
 pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.10 OK -
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - 2.17 OK -
 python-dbus Python-DBUS REQUIRED 0.80.0 1.1.1 OK -
 python-devel Python-SDK REQUIRED 2.2 2.7.4 OK -
 pyqt4 Python-Qt4 REQUIRED 4.0 4.10 OK -
 cups-devel CUPS-SDK REQUIRED - 1.6.2 OK -
 sane-devel SANE-SDK REQUIRED - 1.0.23 OK -
 libusb USB-Lib REQUIRED - 1.0 OK -
 sane Scan-Lib REQUIRED - 1.0.23 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.6.2 OK -
 libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.4.3 OK -
 python-xml Python-XML-Lib REQUIRED - 2.1.0 OK -
 python-notify Desktop-notifications OPTIONAL - - OK -
------------------------------
| Compile Time Dependencies |
------------------------------
 gcc gcc-Compiler REQUIRED - 4.7.3 OK -
 libtool Build-tools REQUIRED - 2.4.2 OK -
 make GNU-Build-tools REQUIRED 3.0 3.81 OK -
----------------------
| Python Extentions |
----------------------
 cupsext CUPS-Extension REQUIRED - 3.13.7 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.13.7 OK -
 hpmudext IO-Extension REQUIRED - 3.13.7 OK -
-----------------------
| Scan Configuration |
-----------------------
 hpaio HPLIP-SANE-Backend REQUIRED - 3.13.7 OK 'hpaio found in /etc/sane.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.13.7 OK -
------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------
device `hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC891DH9X' is a Hewlett-Packard HP_Color_LaserJet_CM1312_MFP all-in-one
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
  Device URI Model
  -------------------------------------------------------- -----------------------------------
  hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC891DH9X HP Color LaserJet CM1312 MFP
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
HP_Color_LaserJet_CM1312_MFP_2
------------------------------
Type: Printer
Device URI: hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNC891DH9X
PPD: /etc/cups/ppd/HP_Color_LaserJet_CM1312_MFP_2.ppd
PPD Description: HP Color LaserJet CM1312 MFP Series Postscript (recommended)
Printer status: printer HP_Color_LaserJet_CM1312_MFP_2 is idle. enabled since mer 24 jui 2013 10:40:38 CEST
Required plug-in status: Installed
Communication status: Good
--------------
| PERMISSION |
--------------
groups user-groups Required - - OK yvan adm lp cdrom sudo dip plugdev lpadmin sambashare vboxusers
USB HP_Color_LaserJet_CM1312_MFP_2 Required - - OK Node:'/dev/bus/usb/001/004' Perm:' root lp rw- rw- rw- rw- ---'
Checking for Configured Queues....
 Queue(s) configured correctly using HPLIP.
Checking for HP Properitery Plugin's....
Plugin's already installed
Diagnose completed...
More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html

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

Can you please reboot the printer and run 'xsane' again.

Revision history for this message
Patrick Valsecchi (patrick-launchpad) said :
#4

The new Hplip version (3.13.8) solved the problem. Nevertheless the existing .sane/xsane files have to be deleted after the update (hplip will recreate them automatically). Thank you for your help

Revision history for this message
Patrick Valsecchi (patrick-launchpad) said :
#5

Thanks Sarbeswar Meher, that solved my question.