LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   raspbian buster issue with scanning on hp deskjet 2544 in raspberry pi2 printer/scanner server (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/raspbian-buster-issue-with-scanning-on-hp-deskjet-2544-in-raspberry-pi2-printer-scanner-server-4175688680/)

floppy_stuttgart 01-16-2021 10:12 AM

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.

HappyTux 01-17-2021 07:41 PM

Quote:

Originally Posted by floppy_stuttgart (Post 6208391)
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.


All times are GMT -5. The time now is 11:13 AM.