LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-16-2021, 10:12 AM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
raspbian buster issue with scanning on hp deskjet 2544 in raspberry pi2 printer/scanner server


Hello,
I installed the latest raspbian on a raspberry pi2 (which had wheezy: it worked but the SD card was showing an error; so I am using a new card with paspbian; the old-working-one is still available as plan B).
Printing setup works with the hp deskjet 2544). Scanning is an issue.

sudo hp-doctor
Code:
error: cupsext not present in the system. Please re-install HPLIP.
re-installing dont help.

Further errors can be seen..
sudo hp-check -t
PHP Code:
Saving output in log file: /home/pi/hp-check.log

HP Linux Imaging 
and Printing System (ver3.18.12)
Dependency/Version Check Utility ver15.1

Copyright 
(c2001-15 HP Development CompanyLP
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.

Notehp-check can be run in three modes:
1. Compile-time check mode (-or --compile): Use this mode before compiling the
HPLIP supplied tarball 
(.tar.gz or .runto determine if the proper dependencies
are installed to successfully compile HPLIP
.                                    
2. Run-time check mode (-or --run): Use this mode to determine if a distro    
supplied package 
(.deb, .rpmetc) or an already built HPLIP supplied tarball   
has the proper dependencies installed to successfully run
.                      
3. Both compile- and run-time check mode (-or --both) (Default): This mode    
will check both of the above cases 
(both compile- and run-time dependencies).   

Check types:                                                                    
aEXTERNALDEP External Dependencies                                          
b
GENERALDEP General Dependencies (required both at compile and run time)    
cCOMPILEDEP 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

|Traceback (most recent call last):
  
File "/usr/share/hplip/base/utils.py"line 265in walkFiles
    names 
os.listdir(root)
FileNotFoundError: [Errno 2No such file or directory'/usr/include/cups'

During handling of the above exceptionanother exception occurred:

Traceback (most recent call last):
  
File "/usr/share/hplip/base/utils.py"line 267in walkFiles
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception
:

Traceback (most recent call last):
  
File "/usr/bin/hp-check"line 861in <module>
    
dep.core.init()
  
File "/usr/share/hplip/installer/core_install.py"line 527in init
    self
.check_dependencies(callback)
  
File "/usr/share/hplip/installer/core_install.py"line 620in check_dependencies
    self
.have_dependencies[d] = self.dependencies[d][3]()
  
File "/usr/share/hplip/installer/core_install.py"line 1166in check_cups_image
    
return check_file("raster.h""/usr/include/cups")
  
File "/usr/share/hplip/installer/dcheck.py"line 107in check_file
    
for w in utils.walkFiles(dirrecurse=Trueabs_paths=Truereturn_folders=Falsepattern=f):
RuntimeErrorgenerator raised StopIteration 
sudo hp-setup -i
PHP Code:
HP Linux Imaging and Printing System (ver3.18.12)
Printer/Fax Setup Utility ver9.0

Copyright 
(c2001-15 HP Development CompanyLP
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.

(
NoteDefaults for each question are maked with a '*'Press <enterto accept the default.)


--------------------------------
SELECT CONNECTION (I/OTYPE |
--------------------------------

  
Num       Connection  Description                                               
            Type                                                                  
  
--------  ----------  ----------------------------------------------------------
  
0*        usb         Universal Serial Bus (USB)                                
  
1         net         Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quitenter=usb*) ? 

Using connection typeusb

 
Setting up device
hp:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604



---------------------
| PRINT 
QUEUE SETUP |
---------------------

warningOne or more print queues already exist for this deviceHP_Deskjet_2540_series.

Would you like to install another print queue for this device (y=yesn=no*, q=quit) ? n


Done

weird: 2 scanners are recognized.
sudo sane-find-scanner
Code:
  # 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.
  # Also you need support for SCSI Generic (sg) in your operating system.
  # If using Linux, try "modprobe sg".

found USB scanner (vendor=0x03f0 [HP], product=0xc211 [Deskjet 2540 series]) at libusb:001:004
found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003
  # 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.
sudo scanimage -L
Code:
device `hpaio:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604' is a Hewlett-Packard Deskjet_2540_series all-in-one

Has anybody any idea what could cause the issue and/or where to search for making the scanner working?
I will have a look if any usb rules must be defined etc.
Any recommendation is welcome.

Update 1 (few progress):
I putted the printer/scanner usb into the other usb port of the raspberry PI
Now
sudo sane-find-scanner
Quote:
# 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.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x03f0 [HP], product=0xc211 [Deskjet 2540 series]) at libusb:001:006
found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003
# 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
AND according "2.3" of http://schuett.io/2011/03/debian-pri...lip-cups-sane/
Quote:
sudo chmod 666 /dev/bus/usb/001/006
then..
scanimage -L
Quote:
device `hpaio:/usb/Deskjet_2540_series?serial=CN49Q4F4KH0604' is a Hewlett-Packard Deskjet_2540_series all-in-one
And started simple scan. it works. But a bit of time later, after a reboot it dont scan anymore.
I will have a look at an udev rule now.

It look like sudo sane-find-scanner
has "found USB scanner (vendor=0x03f0 [HP], product=0xc211 [Deskjet 2540 series]) at libusb:001:004" or 001:006
therefore x is 4 or 6 in
Quote:
sudo chmod 666 /dev/bus/usb/001/00x
Update 2 (final?)
sudo nano /etc/udev/rules.d/10-usbhp2544printer.rules
Quote:
SUBSYSTEM=="usb", ATTR{idVendor}=="03f0", ATTR{idProduct}=="c211", MODE:="0666"
seems to work at reboot.
I will update/close in few days if it works without issue.

Last edited by floppy_stuttgart; 01-16-2021 at 04:10 PM.
 
Old 01-17-2021, 07:41 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by floppy_stuttgart View Post
Hello,
I installed the latest raspbian on a raspberry pi2 (which had wheezy: it worked but the SD card was showing an error; so I am using a new card with paspbian; the old-working-one is still available as plan B).
I see why it pops up a no reply thread edited with solution, well I will solve that. I would have tried cloning the card to the new to try for working setup guaranteed if it worked. But you got it solved so it worked out.
 
  


Reply

Tags
hplip, raspbian, scanner



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Setup a proxy server with Raspberry PI, Raspbian Buster Lite and Squid LXer Syndicated Linux News 0 04-03-2020 06:01 AM
LXer: Raspbian GNU/Linux upgrade from Stretch to Raspbian Buster 10 LXer Syndicated Linux News 0 07-26-2019 06:12 PM
Raspberry Pi2 keeps crashing and corrupting disk enine Slackware - ARM 14 05-14-2015 06:15 PM
[SOLVED] HP deskjet 2544 allinone printer on raspbian server not working; 03f0:c211 floppy_stuttgart MEPIS 0 05-02-2015 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration