[SOLVED] Scanner problem

Archived topics about LMDE 1 and LMDE 2
Locked
Eddles

[SOLVED] Scanner problem

Post by Eddles »

Hi all,

Am having problems using my scanner, a HP Colour Laserjet CM1312 MFP printer connected via USB. I plugged it in, the printer portion works perfectly fine. Simplescan can't find a scanner and I quickly figured out that everything to do with scanning has to be done by root. Even then, I still can't scan using root. "sane-find-scanner" outputs an error, while "scanimage -L" works. Simplescan and xsane both doesn't work.

Output from sane-find-scanner & scanimage -L:

Code: Select all

piers@octopussy:~$ sudo 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 fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
piers@octopussy:~$ scanimage -L
device `hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNF8B8M8NH' is a Hewlett-Packard HP_Color_LaserJet_CM1312_MFP all-in-one
piers@octopussy:~$ 
Output from xsane run as root:

Code: Select all

Failed to open device `hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNF8B8M8NH': Error during device I/O.
I've looked on Google for a while, but couldn't find a fix. I'm hoping someone here can tell me how can I fix this issue please?

Cheers!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Eddles

Re: Scanner problem

Post by Eddles »

Thanks for taking your time in responding. Here you go!
Eddles

Re: Scanner problem

Post by Eddles »

Hello,

Thanks for your response again.

For scanimage -T:

Code: Select all

piers@octopussy:~$ sudo scanimage -L
device `hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNF8B8M8NH' is a Hewlett-Packard HP_Color_LaserJet_CM1312_MFP all-in-one
piers@octopussy:~$ sudo scanimage -T
scanimage: open of device hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNF8B8M8NH failed: Error during device I/O
piers@octopussy:~$
For printer-driver-foo2zjs:

Code: Select all

piers@octopussy:~$ sudo apt-get install printer-driver-foo2zjs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
printer-driver-foo2zjs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
piers@octopussy:~$ 
hp-check -rt throws up a lot of errors and suggested that I run hp-doctor

Code: Select all

HP_Color_LaserJet_CM1312_MFP
----------------------------
Type: Printer
Device URI: hp:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNF8B8M8NH
PPD: /etc/cups/ppd/HP_Color_LaserJet_CM1312_MFP.ppd
PPD Description: HP Color LaserJet CM1312 MFP Series Postscript (recommended)
Printer status: printer HP_Color_LaserJet_CM1312_MFP is idle.  enabled since Wed 04 Mar 2015 16:37:50 GMT
error: Required plug-in status: Not installed
Communication status: Good

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

error: groups   user-groups                    Required        -        -        MISSING  lp
USB             HP_Color_LaserJet_CM1312_MFP   Required        -        -        OK       Node:'/dev/bus/usb/005/008' Perm:'  root  lp rw- rw- rw- rw- rw- r--'
Missing Required Dependencies
-----------------------------
error: 'libdbus-1-dev' package is missing/incompatible 
error: 'libcups2' package is missing or 'cups' service is not running.
error: 'openssl' package is missing/incompatible 
error: 'libjpeg8-dev' package is missing/incompatible 
error: 'python-dev' package is missing/incompatible 
error: 'libcups2-dev' package is missing or 'cups' service is not running.
error: 'cups-bsd' package is missing or 'cups' service is not running.
error: 'cups-client' package is missing or 'cups' service is not running.
error: 'libsane-dev' package is missing/incompatible 
error: 'libusb-1.0.0-dev' package is missing/incompatible 
error: 'libcupsimage2-dev' package is missing or 'cups' service is not running.
error: 'libsnmp-dev' package is missing/incompatible 
error: 'libtool' package is missing/incompatible 
Missing Optional Dependencies
-----------------------------
error: 'avahi-utils' package is missing/incompatible 
Interestingly both hp-check and hp-doctor says my Linux Mint is verison 1 and thus is not compatible, and should be upgraded. I assume it's not realising it's LMDE and not Linux Mint Olivia or newer? Anyway, ran hp-doctor, it did some things. Afterwards, I ran hp-check -rt again, it passed everything and scanning now works as the user "piers"!

I'm not entirely sure why it's this complicated - why aren't the required files automatically installed or notified when I install the driver, or why people isn't made aware about "hp-check" if there's problems with hp printers/scanners? hp-check is fantastic.

Regardless - thank you very much for your help! :-D
Eddles

Re: [SOLVED] Scanner problem

Post by Eddles »

True! Ink is ridiculously expensive, that's why I've got a B&W laserjet 4100 as my workhorse. Cartridges are cheap on eBay, about £10/$15 each. The CM1312 is actually broken, it doesn't print properly, never had since new. I got it for free and I only use it for scanning and for printing draft documents where I don't need accurate colour representation.
Locked

Return to “LMDE Archive”