Simple scan stopped working

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Smiler

Simple scan stopped working

Post by Smiler »

Hi all, I need help to get simple scan working again, Simple Scan shows the error
Failed to scan unable to connect to scanner
Several things have happened since it stopped working,
1) I moved my equipment to another room
2) I upgraded Linux Mint Kernal several times.

I have an HP PSC 2200 all in one printer connected via USB, the printer works without any problems, I can print.
scan image produces the following
$ scanimage -L
device `hpaio:/usb/PSC_2200_Series?serial=MY35CF70CV0G' is a Hewlett-Packard PSC_2200_Series all-in-one
sane-find-scanner produces the following
$ sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

could not open USB device 0x8087/0x8000 at 002:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x8087/0x8008 at 001:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 004:001: Access denied (insufficient permissions)
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x2911 [PSC 2200 Series]) at libusb:003:004
could not open USB device 0x093a/0x2521 at 003:003: Access denied (insufficient permissions)
could not open USB device 0x0461/0x0010 at 003:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 003:001: Access denied (insufficient permissions)
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary
Simple Scan shows the correct scanner.

I have checked that user and printer are in the same group so permissions should not be a problem, indeed if it were a permissions issue then I'm guessing that sane-find-scanner would fail

This has previously worked perfectly.
I have re-installed simple scan and the CUPS printer several times to no avail, any help appreciated
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Simple scan stopped working

Post by austin.texas »

Try xsane instead of Simple Scan.

Code: Select all

sudo apt-get install xsane
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

Re: Simple scan stopped working

Post by pdc_2 »

so this is an HP device;

can I suggest you run

Code: Select all

hp-check
to see if all the files you need are installed; then

Code: Select all

hp-setup
for it to go through things and re-set up the scanner; as that is what you seem to need;

your device only need hplip > 0.9.5 so your current version will be fine
Smiler

Re: Simple scan stopped working

Post by Smiler »

hp-check shows
Missing Required Dependencies
-----------------------------
error: 'libtool' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'xsane' package is missing/incompatible
I've never had xsane installed before, why would I need it now?
and
libtool is already the newest version (2.4.6-0.1)
hp-setup setup a 2nd instance of my printer but simple Scan won't detect that
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

Re: Simple scan stopped working

Post by pdc_2 »

Missing Optional Dependencies .. error: 'xsane' package is missing/incompatible
.......it says it is optional

you can try the two commands you tested with sudo in front of them: ie

Code: Select all

sudo scanimage -L
and

Code: Select all

sudo sane-find-scanner

some folks find that

Code: Select all

sudo xsane
from the terminal is successful;
Smiler

Re: Simple scan stopped working

Post by Smiler »

Both

Code: Select all

sudo scanimage -L 
and

Code: Select all

sudo sane-find-scanner
return exactly the same results as without the sudo as reported in my opening post. i.e. they both find the scanner
So why is Simple Scan unable to communicate witrh it?
I've just installed a mint 17 virtual machine which works with the scanner perfectly so whaqt's wrong with latest mint 18 and latest Kernel?
picaza

Re: Simple scan stopped working

Post by picaza »

isidora@isidora-Precision-WorkStation-T3500:~$ hp-check shows
Saving output in log file: /home/isidora/hp-check.log

HP Linux Imaging and Printing System (ver. 3.17.10)
Dependency/Version Check Utility ver. 15.1

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

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
OK
MISSING - Missing Dependency or Permission or Plug-in
INCOMPAT - Incompatible dependency-version or Plugin-version

warning: 22-19 version is not supported. Using 22-18.2 versions dependencies to verify and install...

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

Kernel: 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 GNU/Linux
Host: isidora-Precision-WorkStation-T3500
Proc: 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 GNU/Linux
Distribution: 22 19
Bitness: 64 bit


-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.17.10
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 22 distro 19 version

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

[hplip]
version=3.17.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
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.17.10
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no


Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[fax]
email_address =
voice_phone =

[last_used]
device_uri = "hp:/usb/DeskJet_2130_series?serial=CN6214B68W065V"
printer_name = DeskJet-2130-series
working_dir = .

[polling]
device_list =
enable = false
interval = 5

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

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1540918411
notify_upgrade = false
pending_upgrade_time = 0

[installation]
date_time = 03/26/19 22:27:53
version = 3.17.10


<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

-------------------------
| External Dependencies |
-------------------------

error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.26 OK -
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.27 OK -
error: dbus DBus - Message bus system REQUIRED - 1.12.2 MISSING 'DBUS may not be installed or not running'
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
network network -wget OPTIONAL - 1.19.4 OK -
avahi-utils avahi-utils OPTIONAL - 0.7 OK -

------------------------
| General Dependencies |
------------------------

error: libjpeg libjpeg - JPEG library REQUIRED - - MISSING 'libjpeg needs to be installed'
error: cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - MISSING 'cups-devel needs to be installed'
error: cups-image CUPS image - CUPS image development files REQUIRED - - MISSING 'cups-image needs to be installed'
libpthread libpthread - POSIX threads library REQUIRED - b'2.27' OK -
error: libusb libusb - USB library REQUIRED - 1.0 MISSING 'libusb needs to be installed'
sane SANE - Scanning library REQUIRED - - OK -
error: sane-devel SANE - Scanning library development files REQUIRED - - MISSING 'sane-devel needs to be installed'
error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 - MISSING 'libnetsnmp-devel needs to be installed'
error: libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.0 MISSING 'libcrypto needs to be installed'
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.6.7 OK -
error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - MISSING 'python3-notify2 needs to be installed'
error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.6 OK -
python3-xml Python XML libraries REQUIRED - 2.2.5 OK -
error: python3-devel Python devel - Python development files REQUIRED 2.2 3.6.7 MISSING 'python3-devel needs to be installed'
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -

--------------
| COMPILEDEP |
--------------

error: libtool libtool - Library building support services REQUIRED - - MISSING 'libtool needs to be installed'
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 7.3.0 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.1 OK -

---------------------
| Python Extentions |
---------------------

cupsext CUPS-Extension REQUIRED - 3.17.10 OK -
hpmudext IO-Extension REQUIRED - 3.17.10 OK -

----------------------
| Scan Configuration |
----------------------

'/etc/sane.d/dll.d/hpaio' not found.
hpaio HPLIP-SANE-Backend REQUIRED - 3.17.10 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.17.10 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

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


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

Device URI Model
------------------------------------------------- -----------------------------------
hp:/usb/DeskJet_2130_series?serial=CN6214B68W065V HP DeskJet 2130 series

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


DeskJet_2130_ok
---------------
Type: Printer
Device URI: hp:/usb/DeskJet_2130_series?serial=CN6214B68W065V
PPD: /etc/cups/ppd/DeskJet_2130_ok.ppd
warning: Failed to read /etc/cups/ppd/DeskJet_2130_ok.ppd ppd file
PPD Description:
Printer status: la impresora DeskJet_2130_ok está inactiva. activada desde mar 26 mar 2019 22:17:44 -03
Communication status: Good


--------------
| PERMISSION |
--------------

USB DeskJet_2130_ok Required - - OK Node:'/dev/bus/usb/002/010' Perm:' root lp rw- rw- rw- rw- r--'

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

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'libdbus-1-dev' package is missing/incompatible
error: 'libjpeg8-dev' package is missing/incompatible
error: 'libcups2-dev' package is missing/incompatible
error: 'cups-bsd' package is missing/incompatible
error: 'cups-client' package is missing/incompatible
error: 'libcupsimage2-dev' package is missing/incompatible
error: 'libusb-1.0.0-dev' package is missing/incompatible
error: 'libsane-dev' package is missing/incompatible
error: 'libsnmp-dev' package is missing/incompatible
error: 'snmp-mibs-downloader' package is missing/incompatible
error: 'openssl' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'python3-dev' package is missing/incompatible
error: 'libtool' package is missing/incompatible
error: 'libtool-bin' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'python3-notify2' package is missing/incompatible
error: 'mate-notification-daemon' package is missing/incompatible
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

Total Errors: 14
Total Warnings: 0


Done.
isidora@isidora-Precision-WorkStation-T3500:~$
picaza

Re: Simple scan stopped working

Post by picaza »

I Install the last version hplip-3.19.1.run
phd21
Level 20
Level 20
Posts: 10103
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Simple scan stopped working

Post by phd21 »

Hi Smiler,

+1 for installing HP Linux printer driver 3.19.x

See this post for installing the most current scanning packages and the excellent "gscan2pdf" application.
install this "lsb".

Code: Select all

sudo apt install lsb
Simple scan in mint 19 - Linux Mint Forums
viewtopic.php?f=47&t=274108&hilit=gscan2pdf

hp's Developer Portal | Version: 3.19.1
https://developers.hp.com/hp-linux-imag ... g/gethplip

hp's Developer Portal | Installer Walkthrough
https://developers.hp.com/hp-linux-imag ... tall/index

HPLIP 3.19.1 Released with New Printers / Distro’s Support | UbuntuHandbook
http://ubuntuhandbook.org/index.php/201 ... s-support/

Hope this helps ...
Phd21: Mint 20 Cinnamon & xKDE (Mint Xfce + Kubuntu KDE) & KDE Neon 64-bit (new based on Ubuntu 20.04) Awesome OS's, Dell Inspiron I5 7000 (7573) 2 in 1 touch screen, Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, Intel 4 Graphics.
ClixTrix

Re: Simple scan stopped working

Post by ClixTrix »

That's a pretty old scanner. Any chance your system has both USB2 and USB3 ports and during the move you changed scanner from USB2 to USB3 port on the system? You might want to read this thread where I recently ran some tests.

viewtopic.php?f=51&t=285990&p=1583206&h ... 3#p1583206
trope
Level 4
Level 4
Posts: 320
Joined: Tue Feb 19, 2013 1:10 pm

Re: Simple scan stopped working

Post by trope »

ClixTrix wrote: Wed Mar 27, 2019 7:48 am That's a pretty old scanner. Any chance your system has both USB2 and USB3 ports and during the move you changed scanner from USB2 to USB3 port on the system? You might want to read this thread where I recently ran some tests.

viewtopic.php?f=51&t=285990&p=1583206&h ... 3#p1583206
I received the same error as the OP above (different scanner - a Canon imageclass). I tried switching usb ports and the scanner indeed worked!

However based on the symbols all 3 ports are usb3 although when I run

Code: Select all

lsusb
It appears that 2 of the ports are being recognized as usb2, because two of them give the description

Code: Select all

Linux Foundation 2.0 root hub 
I am not sure which ones are which.
Locked

Return to “Printers & Scanners”