LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2022, 03:17 AM   #1
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Rep: Reputation: 5
Scanner not working on HP printer/scanner combo


Ubuntu 22.04 lts

Scanner not working on HP printer/scanner combo. The printer works. I have tried 4 different scanner program from the Ubuntu Software center. Some will recognize the name of the device but won't scan. I have also installed the following from the Software center: ps-printer-app, ipp-usb, and hplip-printer-app.
 
Old 06-03-2022, 04:13 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,646
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
If you look at the man page for sane, it contains a big section on how to debug this kind of problem. Go through the steps they suggest and then report back.
 
Old 06-03-2022, 04:19 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,833

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Can you show if the scanner is reported by the following command?
Code:
scanimage -L
Show the printer device URI as well
Code:
lpstat -t
 
Old 06-03-2022, 08:42 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
How's your printer/scanner hooked up to your PC? I've got an HP Photosmart 5520 attached to my Mint 20.2 system. The printer worked fine via WiFi but the scanner wouldn't till I connected them together via a USB cable. Weird! No idea what the problem was but all happy now.

Play Bonny!

 
Old 06-03-2022, 12:42 PM   #5
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by ferrari View Post
Can you show if the scanner is reported by the following command?
Code:
scanimage -L
Show the printer device URI as well
Code:
lpstat -t
Code:
michael@michael-HP-EliteDesk-800-G1-SFF:~$ scanimage -L
device `hpaio:/usb/HP_LaserJet_Pro_MFP_M127fn?serial=CNB9H7FDXQ' is a Hewlett-Packard HP_LaserJet_Pro_MFP_M127fn all-in-one
michael@michael-HP-EliteDesk-800-G1-SFF:~$ lpstat -t
scheduler is running
system default destination: HP-LaserJet-Pro-MFP-M127fn
device for HP-LaserJet-Pro-MFP-M127fn: hp:/usb/HP_LaserJet_Pro_MFP_M127fn?serial=CNB9H7FDXQ
device for HP-LaserJet-Pro-MFP-M127fn-Fax-2: hpfax:/usb/HP_LaserJet_Pro_MFP_M127fn?serial=CNB9H7FDXQ
HP-LaserJet-Pro-MFP-M127fn accepting requests since Thu 05 May 2022 04:12:28 PM EDT
HP-LaserJet-Pro-MFP-M127fn-Fax-2 accepting requests since Thu 05 May 2022 04:12:28 PM EDT
printer HP-LaserJet-Pro-MFP-M127fn is idle.  enabled since Thu 05 May 2022 04:12:28 PM EDT
printer HP-LaserJet-Pro-MFP-M127fn-Fax-2 is idle.  enabled since Thu 05 May 2022 04:12:28 PM EDT
michael@michael-HP-EliteDesk-800-G1-SFF:~$
 
Old 06-03-2022, 12:42 PM   #6
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Soadyheid View Post
How's your printer/scanner hooked up to your PC? I've got an HP Photosmart 5520 attached to my Mint 20.2 system. The printer worked fine via WiFi but the scanner wouldn't till I connected them together via a USB cable. Weird! No idea what the problem was but all happy now.

Play Bonny!

It's USB
 
Old 06-03-2022, 01:25 PM   #7
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Make sure your user is in the scanner group, Ubuntu has a history of not adding users to that group.
To list what groups you are in run the 'groups' command.
 
Old 06-03-2022, 01:29 PM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,646
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by uteck View Post
Make sure your user is in the scanner group, Ubuntu has a history of not adding users to that group.
To list what groups you are in run the 'groups' command.
For an all-in-1 printer/scanner the relevant usb port might be assigned to either the lp or the scanner group. It depends on your udev rules. Better make sure you're in both of them.

There's a useful command sane-find-scanner which detects the scanner simply as a usb device. If this doesn't work as you but works as root, it's a permissions problem on the usb port.
 
Old 06-03-2022, 03:42 PM   #9
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Original Poster
Rep: Reputation: 5
Not really sure what I'm doing. Perhaps this will shed some light on it (?) :

Code:
michael@michael-HP-EliteDesk-800-G1-SFF:~$ 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)
could not open USB device 0x0781/0xb6b7 at 003:004: Access denied (insufficient permissions)
found possible USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x322a [HP LaserJet Pro MFP M127fn]) at libusb:003:003
could not open USB device 0x25a7/0xfa23 at 003:005: Access denied (insufficient permissions)
could not open USB device 0x046d/0x0825 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.
michael@michael-HP-EliteDesk-800-G1-SFF:~$ scanimage -L
device `hpaio:/usb/HP_LaserJet_Pro_MFP_M127fn?serial=CNB9H7FDXQ' is a Hewlett-Packard HP_LaserJet_Pro_MFP_M127fn all-in-one
michael@michael-HP-EliteDesk-800-G1-SFF:~$ % sudo su –
bash: fg: %: no such job
michael@michael-HP-EliteDesk-800-G1-SFF:~$ sudo su -
[sudo] password for michael: 
root@michael-HP-EliteDesk-800-G1-SFF:~# 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.

found possible USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x322a [HP LaserJet Pro MFP M127fn]) at libusb:003: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.
root@michael-HP-EliteDesk-800-G1-SFF:~#
 
Old 06-03-2022, 03:59 PM   #10
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Quote:
found possible USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x322a [HP LaserJet Pro MFP M127fn]) at libusb:003:003
The scanner was found, so it seems that it is a matter of permissions. Is your user in the scanner and lp groups?
 
Old 06-03-2022, 05:57 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,833

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
Originally Posted by kernelhead View Post
Not really sure what I'm doing. Perhaps this will shed some light on it (?) :
The output you shared shows that the USB-connected scanner is detected. That's a good sign. However, I've seen some reports that ipp-usb (for airscan support) might break communication when using the HPLIP hpaio driver.

https://groups.google.com/g/linux.de...3DUb_GeM?pli=1

So, you could try removing that package. Just speculation on my part of course.

Also, check if the firmare (plugin) is required.
Code:
hp-doctor
https://developers.hp.com/hp-linux-i...l#howtocheck11

Last edited by ferrari; 06-03-2022 at 07:51 PM.
 
Old 06-03-2022, 05:58 PM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,833

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
Originally Posted by uteck View Post
The scanner was found, so it seems that it is a matter of permissions. Is your user in the scanner and lp groups?
No, it is not a permissions issue. The commands were run as user, and found successfully. Some other issue at play.
 
Old 06-04-2022, 04:05 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,646
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by ferrari View Post
No, it is not a permissions issue. The commands were run as user, and found successfully. Some other issue at play.
So the next step according to the Sane man page is to run scanimage -L in debug mode. The page tells you how to do it. Start by setting the usb debug parameter to 256 and see if you get a visible error there. If you do, it's a libusb connection problem. If not, look at the man page for hpaio; it has a debug parameter that you can set similarly for maximum info. At some point you should see some operation that crashes and it can usually be fixed by editing the configuration files in /etc/sane.d.

Last edited by hazel; 06-04-2022 at 04:07 AM.
 
Old 06-04-2022, 05:16 PM   #14
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by ferrari View Post
The output you shared shows that the USB-connected scanner is detected. That's a good sign. However, I've seen some reports that ipp-usb (for airscan support) might break communication when using the HPLIP hpaio driver.

https://groups.google.com/g/linux.de...3DUb_GeM?pli=1

So, you could try removing that package. Just speculation on my part of course.

Also, check if the firmare (plugin) is required.
Code:
hp-doctor
https://developers.hp.com/hp-linux-i...l#howtocheck11
ok, I removed that package. It didn't work before it was installed & likewise the scanner doesn't work after it is removed....
 
Old 06-04-2022, 05:19 PM   #15
kernelhead
Member
 
Registered: Jun 2022
Posts: 247

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by hazel View Post
So the next step according to the Sane man page is to run scanimage -L in debug mode. The page tells you how to do it. Start by setting the usb debug parameter to 256 and see if you get a visible error there. If you do, it's a libusb connection problem. If not, look at the man page for hpaio; it has a debug parameter that you can set similarly for maximum info. At some point you should see some operation that crashes and it can usually be fixed by editing the configuration files in /etc/sane.d.
ok, if you could provide me with a link to the Sane man (main?) page, I will attempt to do all that I can understand - is this it?: http://www.sane-project.org/ I suspect, however, that some or much of this will be above my head/beyond my understanding...

Mean time:

Code:
michael@michael-HP-EliteDesk-800-G1-SFF:~$ scanimage -L 
device `hpaio:/usb/HP_LaserJet_Pro_MFP_M127fn?serial=CNB9H7FDXQ' is a Hewlett-Packard HP_LaserJet_Pro_MFP_M127fn all-in-one
michael@michael-HP-EliteDesk-800-G1-SFF:~$

Last edited by kernelhead; 06-04-2022 at 05:21 PM.
 
  


Reply



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
printer/scanner combo -scanner missing ninian Linux - Hardware 27 03-27-2016 11:59 PM
Help buying a printer scanner combo j.curtis Linux - Hardware 4 10-27-2013 05:45 PM
Please recommend a network printer/scanner combo philipm Linux - Hardware 14 07-21-2007 07:45 PM
Scanner/Printer Combo Unit - Scanner Works - Printer Does Not rrrssssss Linux - Hardware 1 03-04-2007 10:49 PM
Combo,combo box and combo entry box diff santhosh.linux Programming 4 02-27-2006 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:06 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