Deskjet F2280 unsupported by Sane - will hplip give scanner?

Asked by lugoteehalt

According to Sane's search engine my Deskjet F2280 is not supported:

Supported Scanners - Search Engine

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

Manufacturer Hewlett-Packard
Model Name Deskjet F2280
Bus Type USB
(new) Vendor-ID 03f0Product-ID 2404

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

No matches found.

So will hplip give scanning? It does not seem to, e.g.:

HP Linux Imaging and Printing System (ver. 2.8.12)
Scan Utility ver. 2.1

Copyright (c) 2001-8 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/Deskjet_F2200_series?serial=CN8814R30X0534

warning: No destinations specified. Adding 'file' destination by default.
warning: File destination enabled with no output file specified.
Setting output format to JPEG for color/lineart mode.
warning: Defaulting to '/home/eric/hpscan001.jpg'.
error: Unable to locate device hpaio:/usb/Deskjet_F2200_series?serial=CN8814R30X0534 using SANE backend hpaio:. Please check HPLIP installation.

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
lugoteehalt
Solved:
Last query:
Last reply:
Revision history for this message
dwelch91 (dwelch91) said :
#1

Please run 'hp-check -t' and post the output. The F2280 should be supported
for scanning with HPLIP.

On Thu, Jan 29, 2009 at 7:13 AM, lugoteehalt <
<email address hidden>> wrote:

> New question #59115 on HPLIP:
> https://answers.launchpad.net/hplip/+question/59115
>
> According to Sane's search engine my Deskjet F2280 is not supported:
>
>
> Supported Scanners - Search Engine
>
>
> --------------------------------------------------------------------------------
>
> Manufacturer Hewlett-Packard
> Model Name Deskjet F2280
> Bus Type USB
> (new) Vendor-ID 03f0Product-ID 2404
>
>
>
> --------------------------------------------------------------------------------
>
> No matches found.
>
> So will hplip give scanning? It does not seem to, e.g.:
>
> HP Linux Imaging and Printing System (ver. 2.8.12)
> Scan Utility ver. 2.1
>
> Copyright (c) 2001-8 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/Deskjet_F2200_series?serial=CN8814R30X0534
>
> warning: No destinations specified. Adding 'file' destination by default.
> warning: File destination enabled with no output file specified.
> Setting output format to JPEG for color/lineart mode.
> warning: Defaulting to '/home/eric/hpscan001.jpg'.
> error: Unable to locate device
> hpaio:/usb/Deskjet_F2200_series?serial=CN8814R30X0534 using SANE backend
> hpaio:. Please check HPLIP installation.
>
> Thanks.
>
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
lugoteehalt (lugoteehalt) said :
#2

Great thanks dwelch91 will get back with that. Relief that it should work. Gather sane don't write backend hpaio??

Revision history for this message
dwelch91 (dwelch91) said :
#3

hpaio: SANE backend is part of HPLIP.

On Thu, Jan 29, 2009 at 8:12 AM, lugoteehalt <
<email address hidden>> wrote:

> Question #59115 on HPLIP changed:
> https://answers.launchpad.net/hplip/+question/59115
>
> Status: Answered => Open
>
> lugoteehalt is still having a problem:
> Great thanks dwelch91 will get back with that. Relief that it should
> work. Gather sane don't write backend hpaio??
>
> --
> You received this question notification because you are a member of HP
> Linux Imaging and Printing, which is an answer contact for HPLIP.
>

Revision history for this message
lugoteehalt (lugoteehalt) said :
#4

Scanner now works. Seems to have been mostly a permissions problem. Could have sworn I tried hd-scan as root. Here is how it was fixed for referrence's sake (Will post hp-check -t at end as requested.):

scanner .. Would not work. Doubt if this did it but for completeness: removed all files about hpaio, the
sane back end written by Hewlett-Packard, I think. Re-ran the blah*hplip.run thing perhaps more sensibly
than last time. What I think probably did make it work was tried it as root and it worked. But still did
not work for lugo. So added lugo to group scanner. Then fiddled with udev thus: changed /etc/udev/rules.d/
z60_libsane.rules. Put in:
<snip>
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="2005", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 3500C
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="2205", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 3970c
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="2305", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
#
#lugo Put in next two lines to try to get the scanner device owned root:scanner, so lugo may use it.
# Hewlett-Packard ScanJet F2280 All-in-One
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="2404", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
#
# Hewlett-Packard ScanJet 4070 Photosmart
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="2405", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
# Hewlett-Packard ScanJet 3770
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="2505", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
<snip>

Before doing it:
lugo@fido:~$ ls -l /dev/bus/usb/002/006
crw-rw-rw- 1 lp lp 189, 133 Jan 30 01:52 /dev/bus/usb/002/006

After doing it, and rebooting:
ls -l /dev/bus/usb/001/003
crw-rw-r-- 1 lp scanner 189, 2 Jan 30 03:49 /dev/bus/usb/001/003

So the device now belongs to group scanner and lugo may use it. Whole thing works.

Did not have a thing from Sane to paste into udev file. Wrong version??

Thanks for your help dwelch91 et al.

hp-scan -t:

HP Linux Imaging and Printing System (ver. 2.8.12)
Dependency/Version Check Utility ver. 14.1

Copyright (c) 2001-8 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 fido 2.6.26-1-amd64 #1 SMP Thu Oct 9 14:16:53 UTC 2008 x86_64 GNU/Linux

Distribution:
debian testing/unstable

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.2 installed

Checking PyQt 3.x version...
OK, version 3.17 installed.

Checking PyQt 4.x version...

Checking for CUPS...
Status: scheduler is running
Version: 1.3.7

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

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

Checking for dependency: cups - Common Unix Printing System...
OK, found.

Checking for dependency: cups-ddk - CUPS driver development kit...
OK, found.

Checking for dependency: cups-devel- Common Unix Printing System 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...

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...

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: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
OK, found.

Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
OK, found.

Checking for dependency: python-ctypes - A foreign function library for Python...
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 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 2.8.12 currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
[dirs]
run = /var/run
cupsbackend = /usr/lib/cups/backend
ppd = /usr/share/ppd/HP
doc = /usr/share/doc/hplip-2.8.12
drv = /usr/share/cups/drv/hp
ppdbase = /usr/share/ppd
home = /usr/share/hplip
cupsfilter = /usr/lib/cups/filter
icon = /usr/share/applications

[last_used]
device_uri = hpaio:/usb/Deskjet_F2200_series?serial=CN8814R30X0534

[hplip]
version = 2.8.12

[installation]
version = 2.8.12.26
date_time = 01/30/09 00:49:30

[configure]
foomatic-rip-hplip-install = yes
qt4 = no
doc-build = yes
qt3 = yes
cups11-build = no
gui-build = yes
internal-tag = 2.8.12.26
foomatic-drv-install = no
foomatic-ppd-install = yes
ui-toolkit = qt3
pp-build = no
scanner-build = yes
network-build = no
restricted-build = no
dbus-build = yes
shadow-build = no
fax-build = no

Current contents of '~/.hplip/hplip.conf' file:
[last_used]
device_uri = hpaio:/usb/Deskjet_F2200_series?serial=CN8814R30X0534

[installation]
version = 2.8.12.26
date_time = 01/30/09 01:14:42

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

  Device URI Model
  ------------------------------------------- -----------------------
  hp:/usb/Deskjet_F2200_series?serial=CN8814R HP Deskjet F2200 series
  30X0534

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

Deskjet_F2200
-------------
Type: Printer
Installed in HPLIP?: Yes, using the hp: CUPS backend.
Device URI: hp:/usb/Deskjet_F2200_series?serial=CN8814R30X0534
PPD: /etc/cups/ppd/Deskjet_F2200.ppd
PPD Description: HP Deskjet f2200 Series Foomatic/hpijs, hpijs 2.8.12.26
Printer status: printer Deskjet_F2200 is idle. enabled since Thu Jan 29 23:09:03 2009
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/Deskjet_F2200_series?serial=CN8814R30X0534' is a Hewlett-Packard Deskjet_F2200_series all-in-one
device `v4l:/dev/video0' is a Noname ASUSTeK P7131 Dual virtual device

---------------------
| 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 0x2404 at 002:006:
    Device URI: hp:/usb/Deskjet_F2200_series?serial=CN8814R30X0534
    Device node: /dev/bus/usb/002/006
    Mode: 0666 [lugo - this should be 0664, 0666 fixes the problem]

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

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

Done.