[SOLVED] scanning does not work with HP Deskjet F300
MageiaThis forum is for the discussion of Mageia Linux.
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.
~]$ lpstat -t
scheduler is running
system default destination: HP-Deskjet-F300-series
device for HP-Deskjet-F300-series: hp:/usb/Deskjet_F300_series?serial=CN73DGW0WC04KH
HP-Deskjet-F300-series accepting requests since Fri 26 Feb 2021 12:28:15 PM CET
printer HP-Deskjet-F300-series is idle. enabled since Fri 26 Feb 2021 12:28:15 PM CET
~]$
Thanks. Installing the HP hplip package is not for everyone.. looked into it, compilation failed because of something that could not be found in Synaptic in ALT. The distribution specific packages ask for distro specific stuff and refuse to continue if that stuff is installed but has a different name in your distro (the distro list is ridic, outdated)
Ok so then I try the hplip driver available in ALT or find and copy over the PPD I guess. In ALT I have hpijs driver.
Ubuntu output here (scanning works just fine)
lpstat -t
scheduler is running
system default destination: Deskjet-F300-series
device for Deskjet-F300-series: hp:/usb/Deskjet_F300_series?serial=CN73DGW0WC04KH
Deskjet-F300-series accepting requests since sų. 28. mars 2021 kl. 15.13 +0200
printer Deskjet-F300-series is idle. enabled since sų. 28. mars 2021 kl. 15.13 +0200
CUPS driver info ubuntu:
Description: HP Deskjet F300 series
Location: arcadia
Driver: HP Deskjet f300 Series, hpcups 3.20.3 (color, 2-sided printing)
Connection: hp:/usb/Deskjet_F300_series?serial=CN73DGW0WC04KH
Defaults: job-sheets=none, none media=iso_a4_210x297mm sides=one-sided
Ok, so the lpstat output shows the expected HPLIP printer URI at least...
Code:
device for Deskjet-F300-series: hp:/usb/Deskjet_F300_series?serial=CN73DGW0WC04KH
Check that /etc/sane.d/dll.conf contains an uncommented 'hpaio' entry. As user shruggy already mentioned, check that 'hplip-sane' is installed. There may be other missing supporting libraries. HPLIP provides diagnostic tools including 'hp-doctor' which can be used to get an idea about what may be missing.
ALT output. Lots of code below, the output from hp-doctor is not helpful as to missing stuff as it does not recognize the distro.
But the errors about permissions suggest that may be the problem.
ALT has the newest hplip but maybe not too well integrated.
Also I'm using a SySV based starterkit and those are very barebones, have to add most stuff afterwards.
[@comp-pentium-cpu-142909 sane.d]$ lpstat -t
scheduler is running
no system default destination
device for HP_Deskjet_F300_series: hp:/usb/Deskjet_F300_series?serial=CN73DGW0WC04KH
HP_Deskjet_F300_series accepting requests since sų. 28. mars 2021 kl. 15.02 +0200
printer HP_Deskjet_F300_series is idle. enabled since sų. 28. mars 2021 kl. 15.02 +0200
[@comp-pentium-cpu-142909 sane.d]$
... Driver: HP Deskjet 400, hpcups 3.21.2 (color)
Connection: hp:/usb/Deskjet_F300_series?serial=CN73DGW0WC04KH
hp-doctor:
warning: starter distro is not found in AUTH_TYPES
Checking for Deprecated items....
error: This distro (i.e unknown p9) is either deprecated or not yet supported.
The diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):
hp-doctor
HP Linux Imaging and Printing System (ver. 3.21.2)
Self Diagnse Utility and Healing Utility ver. 1.0
Copyright (c) 2001-18 HP Development Company, LP
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.
HP Linux Imaging and Printing System (ver. 3.21.2)
Self Diagnse Utility and Healing Utility ver. 1.0
Copyright (c) 2001-18 HP Development Company, LP
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.
warning: starter distro is not found in AUTH_TYPES
Checking for Deprecated items....
error: This distro (i.e unknown p9) is either deprecated or not yet supported.
The diagnosis is limited on unsupported platforms. Do you want to continue?(y=yes*, n=no):y
Checking for HPLIP updates....
error: Failed to locate hp-upgrade utility
Checking for Dependencies....
warning: unknown-p9 version is not supported. Using unknown-0 versions dependencies to verify and install...
---------------
| SYSTEM INFO |
---------------
Kernel: 5.4.81-std-def-alt1 #1 SMP Fri Dec 4 09:57:57 UTC 2020 GNU/Linux
Host: comp-pentium-cpu-142909
Proc: 5.4.81-std-def-alt1 #1 SMP Fri Dec 4 09:57:57 UTC 2020 GNU/Linux
Distribution: unknown p9
Bitness: 64 bit
error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.27 OK -
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.32 OK -
error: dbus DBus - Message bus system REQUIRED - 1.12.16 MISSING 'DBUS may not be installed or not running'
error: policykit PolicyKit - Administrative policy framework OPTIONAL - 0.116 MISSING 'policykit needs to be installed'
network network -wget OPTIONAL - 1.20.3 OK -
avahi-utils avahi-utils OPTIONAL - 0.8 OK -
------------------------
| General Dependencies |
------------------------
libjpeg libjpeg - JPEG library REQUIRED - - OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - OK -
cups-image CUPS image - CUPS image development files REQUIRED - - OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.27' OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
sane SANE - Scanning library REQUIRED - 1.0.32 OK -
sane-devel SANE - Scanning library development files REQUIRED - 1.0.32 OK -
libavahi-dev libavahi-dev REQUIRED - - OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.8 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.7.4 OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 4.12.1 MISSING 'python3-pyqt4-dbus needs to be installed'
python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.12.1 OK -
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.12 OK -
python3-xml Python XML libraries REQUIRED - 2.2.10 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.7.4 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 5.2.0 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.4.0 OK -
--------------
| COMPILEDEP |
--------------
libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 8.4.1 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.2.1 OK -
HP_Deskjet_F300_series
----------------------
Type: Printer
Device URI: hp:/usb/Deskjet_F300_series?serial=CN73DGW0WC04KH
PPD: /etc/cups/ppd/HP_Deskjet_F300_series.ppd
warning: Failed to read /etc/cups/ppd/HP_Deskjet_F300_series.ppd ppd file
PPD Description:
Printer status: printer HP_Deskjet_F300_series is idle. enabled since sų. 28. mars 2021 kl. 15.02 +0200
error: Unable to communicate with device (code=12): hp:/usb/Deskjet_F300_series?serial=CN73DGW0WC04KH
error: Device not found
error: Communication status: Failed
--------------
| PERMISSION |
--------------
Checking Permissions....
Checking for Configured Queues....
warning: Fail to read ppd=/etc/cups/ppd/HP_Deskjet_F300_series.ppd file
warning: Insufficient permission to access file /etc/cups/ppd/HP_Deskjet_F300_series.ppd
warning: Could not complete Queue(s) configuration check
Checking for HP Properitery Plugin's....
No plug-in printers are configured.
Checking for Printer Status....
error: 'HP_Deskjet_F300_series' Printer is either Powered-OFF or Failed to communicate.
Turn On Printer and re-run hp-doctor
Ok, tried Xsane as root. Yelled some crap about how dangerisk to run as root but found scanner. So, confirmed its about permissions I guess, got to look into that.
Ok, tried Xsane as root. Yelled some crap about how dangerisk to run as root but found scanner. So, confirmed its about permissions I guess, got to look into that.
Add the user to the 'lp' group for USB-connected scanners.
There is also be a 'scan' group you need to be added to. I think the lp group is just to control print jobs, not scanning.
No, CUPS printer access is generally ACL controlled for USB devices. Scanner udev rules (for USB-connected devices) usually set r/w access explicitly for the 'lp' group.
Distribution: Ubuntu based stuff for the most part
Posts: 1,177
Rep:
Quote:
Originally Posted by ferrari
No, CUPS printer access is generally ACL controlled for USB devices. Scanner udev rules (for USB-connected devices) usually set r/w access explicitly for the 'lp' group.
Good to know. It has been years since I last setup a scanner, and I have not kept up with changes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.