LinuxQuestions.org
Visit Jeremy's Blog.
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 12-31-2021, 02:54 PM   #1
Chucko
LQ Newbie
 
Registered: Jun 2018
Posts: 29

Rep: Reputation: Disabled
Raspberry Pi doesn't recognize HP PSC 750xi Scanner


I have an old Pi-3 running Stretch. I have what apt-get install tells me is the latest version of everything installed. I plug in an old HP PSC 750xi All-In-One USB printer/scanner. The Pi recognizes the printer features of the device and I can successfully configure CUPS to use the printer. But I cannot get the Pi to recognize the device's scanner.

I have a separate laptop running Ubuntu 20. When I plug the USB device into that laptop, I can use hplip's hp-scan tool to successfully scan. But none of the Pi's hplip tools (hp-setup, hp-probe, hp-check, hp-scan, scanimage, ...) recognize the USB scanner.

Clearly, as the Ubuntu test proves, hplip does support scanning for this all-in-one printer/scanner. And hplip documentation indicates that the device is supported both for the Pi hplip version (3.16.11) and for the Ubuntu version (3.20).

I also have an HP 6978 Network printer/scanner that the Ubuntu system sees on the network and can manipulate with the hplip tools. The Pi's CUPS server sees and can use that network printer. But, like the USB device, the Pi fails to 'see' the network scanner.

My understanding is that these scanners are supported through use of the libsane-hpaio backend. Yes, I have installed the libsane-hpaio package on the Pi. I've run scanimage on the Pi with SANE_DEBUG_DLL=128 and SANE_DEBUG_HPAIO=128 but the output simply reports no scanners found without indicating any errors of any kind. On the Ubuntu system, the same debug output shows successful discovery of both the network scanner and the USB-connected scanner.

I cannot find any missing packages or dependencies on the Pi. I have tried removing and re-installing hplip and a number of other packages. Clearly, there is some configuration difference between my Pi and Ubuntu platforms. But after several days of struggle, I'm stumped.

Anyone have any ideas?
 
Old 12-31-2021, 03:30 PM   #2
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,361

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
sudo apt install simple-scan

(just an idea)

Last edited by enigma9o7; 12-31-2021 at 03:31 PM.
 
Old 12-31-2021, 03:44 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,754

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
Check that it is not a permissions issue. Generally, a suitable (device-specific) udev rule is used to set this automatically. A similar thread describing this...

https://www.linuxquestions.org/quest...er-4175688680/
 
Old 01-01-2022, 07:14 AM   #4
Chucko
LQ Newbie
 
Registered: Jun 2018
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thanks for the link @ferrari, but I don't think that's the issue. lsusb reports:
Quote:
Bus 001 Device 006: ID 03f0:1511 HP, Inc PSC 750xi
I checked /lib/udev/rules.d/60-libsane.rules and was surprised there was no built-in rule for my device, so I added:
Quote:
# Hewlett-Packard officejet_700_series serial=MY13EA11SJWB is an HP_PSC_750xi all-in-one
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1511", ENV{libsane_matched}="yes"
Still, sudo sane-find-scanner reports only a single 'find':
Quote:
found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003
which lsusb reports as:
Quote:
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
But there appear to be more fundamental issues. The full lsusb output is as follows:
Quote:
theadmin@RASSERVER:~ $ lsusb
Protocol spec without prior Class and Subclass spec at line 23291
Bus 001 Device 005: ID 0bc2:231a Seagate RSS LLC Expansion Portable
Bus 001 Device 006: ID 03f0:1511 HP, Inc PSC 750xi
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
It's that very first line I'm concerned about. I'm thinking this is a possible Python version issue as python -V reports Python 2.7.13. But Python3.5 is installed too (though I have no idea which package might have installed it,) and python3 -V reports Python 3.5.3.

So I'm thinking half the packages are using python v2 and half are using v3 and I don't know which is using which. Nor do I know how to configure them to use a different version. Plus I'm a bit hesitant to even try to reconfigure/upgrade the base python from v2 to v3 for fear of breaking the entire system. And I'm concerned that the libusb and usbutil packages are so old, while hplip and its companions are much newer ... some kind of a mis-match somewhere. But I hardly know where to start. I hate to rebuild the entire Pi from scratch because I don't want to have to rebuild its LAMP stack, web server, nextcloud server, etc. but that may be my only option.
 
Old 01-01-2022, 07:44 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,920
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Moderator Response

Moved: This thread is more suitable in <Linux - Embedded & Single-board computer > and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 01-01-2022, 09:22 AM   #6
Chucko
LQ Newbie
 
Registered: Jun 2018
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thanks @onebuck.
 
Old 01-03-2022, 05:24 PM   #7
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 444

Rep: Reputation: 170Reputation: 170
Quote:
I have an old Pi-3 running Stretch.
Why not just update to latest PI OS? Or buy another SD card (they are cheap) and load latest keeping you old one around... That way you'd get the latest packages too.
Just a thought.
 
Old 01-04-2022, 09:08 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 15,988

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
I've a scanner with a hardware fault here, and hp-scan finds it, whereas sane doesn't. Does your scanner work on other stuff? Or is it a dud scanner?

Packages are inclined to be python2 or python3, and any .py file will invoke python2 or python3 for it's shell. Python2 is usually just 'python.'

Updating an OS by compiling is a major deal and likely to insert as many errors as it removes.
 
Old 01-06-2022, 01:55 PM   #9
Chucko
LQ Newbie
 
Registered: Jun 2018
Posts: 29

Original Poster
Rep: Reputation: Disabled
@rclark recommends that I just transition to the latest Raspberry Pi OS. I was hoping to avoid that simply because of the astonishing number of little tweaks I've made to my system over several years most of which I've forgotten about or forgotten how to do. But fighting with what is clearly a one-off subtle issue just isn't worth it. In under an hour, I flashed the latest Raspberry Bullseye image and booted it. Printing to and scanning from the device in question BOTH worked right out of the box without any configuration whatsoever, proving that the device isn't broken as @business_kid asked.

Now, on with the process of re-installing the rest of my apps, and re-discovering, one-by-one, each little change I had made over the years.

For the record, I consider this approach to be the 'solution' to my original post.

Last edited by Chucko; 01-06-2022 at 01:57 PM.
 
  


Reply

Tags
hplip, raspbian, sane, scanner


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Epson Perfection 350 Scanner driver will not recognize the scanner Mikech Linux - Hardware 4 10-25-2012 01:09 PM
Need an XP hp psc 1300 series driver to print to a psc 1350 connected to Fiesty Fawn Eycks Linux - Networking 4 11-10-2007 07:46 PM
step-by-step scanner instrcutions for hp psc 1210? webazoid Linux - Software 2 09-09-2004 06:49 PM
HP PSC 750Xi print problem bluedarkness Linux - Hardware 0 04-20-2004 02:05 AM
HP PSC 750 scanner problems eolson Linux - Hardware 1 09-17-2003 09:19 PM

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

All times are GMT -5. The time now is 06:50 AM.

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