Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,673
Rep:
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.
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:~$
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.
Distribution: Ubuntu based stuff for the most part
Posts: 1,177
Rep:
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.
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.
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:~#
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.