Bug 31007 - HP printers not staying connected to Mageia 8 and Cauldron systems once installed
Summary: HP printers not staying connected to Mageia 8 and Cauldron systems once insta...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-22 21:47 CEST by Edward
Modified: 2023-10-19 10:20 CEST (History)
3 users (show)

See Also:
Source RPM: hplip-3.22.6-1.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Edward 2022-10-22 21:47:22 CEST
Description of problem:

Under both Mageia 8 and Cauldron, HP printers are not staying connected to the system after they have been installed. 


Version-Release number of selected component (if applicable):

hplip: 3.22.6-1


How reproducible:

Mageia 8 was installed on system, then eventually converted to Cauldron. On both OS versions, once an HP printer was added via HPLIP or MCC/Hardware/Set up the printers..., they do not stay connected to the system. HPLIP displays a "device communication error" almost immediately after it's installed. The HP icon indicates everything is fine, then once the HPLIP Device Manager GUI is launched, it immediately displays this error for both printers. It's fine one second, not the next. Rebooting the system will sometimes clear this, most times it will not.

Ran hp-doctor and it is believed to be completely unreliable. It listed numerous packages that claimed were not installed. Out of all of them, libcups2, python3-gopbject3 and all of the packages ending in "-devel" are not in the Mageia distribution. libtool, make and gcc-c++ are not installed now. cups and cups-common ARE installed, as cups is a dependency for HPLIP. libtool, make and gcc-c++ were installed in a prior attempt to figure out what was going on, but had no affect.

I can understand it possibly being a printer hardware issue - if it were only one printer, but this is occurring with TWO printers connected, via USB. All of the other USB devices (keyboard, mouse, Bluetooth dongle, hub) are all working properly, so this cannot be a USB issue. HPLIP can find the printers some of the time, install them, then one second later "communication error".

I thought the GUI (hplip-gui) might be half the problem, but once uninstalled, hp-setup doesn't launch.

Here is the output from hp-doctor, the printers were powered on when this was run.


 ~]$ hp-doctor
/usr/share/hplip/check.py:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if 'getfacl' not in g and '' is not g and 'file' not in g:

HP Linux Imaging and Printing System (ver. 3.22.6)
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.22.6)
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.

 

Checking for Deprecated items....
error: This distro (i.e mageia  9) 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: 99-9 version is not supported. Using 99-7 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

 Kernel: 6.0.3-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Fri Oct 21 16:46:21 UTC 2022 GNU/Linux
 Host: downstairs
 Proc: 6.0.3-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Fri Oct 21 16:46:21 UTC 2022 GNU/Linux
 Distribution: 99 9
 Bitness: 64 bit


-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.22.6
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for 99 distro  9 version 

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf.  Generated from hplip.conf.in by configure.

[hplip]
version=3.22.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.22.6
html=/usr/share/doc/hplip-3.22.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=yes
internal-tag=3.22.6
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no


Current contents of '/var/lib/hp/hplip.state' file:


Current contents of '~/.hplip/hplip.conf' file:
[commands]
scan = 

[fax]
email_address = 
voice_phone = 

[last_used]
device_uri = "hp:/usb/Deskjet_D1600_series?serial=CN05HCB96B05CT"
printer_name = 
working_dir = .

[polling]
device_list = 
enable = false
interval = 5

[refresh]
enable = false
rate = 30
type = 1

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1666460715
notify_upgrade = false
pending_upgrade_time = 0

[installation]
date_time = 10/22/22 15:11:05
version = 3.22.6


 <Package-name>        <Package-Desc>      <Required/Optional> <Min-Version> <Installed-Version> <Status>   <Comment>

-------------------------
| External Dependencies |
-------------------------

 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            10.00.0         OK         -
 xsane                xsane - Graphical scanner frontend for SANE                  OPTIONAL        0.9             0.999           OK         -
 scanimage            scanimage - Shell scanning program                           OPTIONAL        1.0             1.1.1           OK         -
 error: dbus          DBus - Message bus system                                    REQUIRED        -               1.14.4          MISSING    'DBUS may not be installed or not running'
 error: policykit     PolicyKit - Administrative policy framework                  OPTIONAL        -               0.120           MISSING    'policykit needs to be installed'
 network              network -wget                                                OPTIONAL        -               1.21.3          OK         -
 avahi-utils          avahi-utils                                                  OPTIONAL        -               0.8             OK         -

------------------------
| General Dependencies |
------------------------

 error: libjpeg       libjpeg - JPEG library                                       REQUIRED        -               -               MISSING    'libjpeg needs to be installed'
 error: cups-devel    CUPS devel- Common Unix Printing System development files    REQUIRED        -               -               MISSING    'cups-devel needs to be installed'
 error: cups-image    CUPS image - CUPS image development files                    REQUIRED        -               -               MISSING    'cups-image needs to be installed'
 libpthread           libpthread - POSIX threads library                           REQUIRED        -               b'2.36'         OK         -
 error: libusb        libusb - USB library                                         REQUIRED        -               1.0             MISSING    'libusb needs to be installed'
 sane                 SANE - Scanning library                                      REQUIRED        -               -               OK         -
 error: sane-devel    SANE - Scanning library development files                    REQUIRED        -               -               MISSING    'sane-devel needs to be installed'
 error: libavahi-dev  libavahi-dev                                                 REQUIRED        -               -               MISSING    'libavahi-dev needs to be installed'
 error: libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED        5.0.9           -               MISSING    'libnetsnmp-devel needs to be installed'
 error: libcrypto     libcrypto - OpenSSL cryptographic library                    REQUIRED        -               3.0.5           MISSING    'libcrypto needs to be installed'
 python3X             Python 2.2 or greater - Python programming language          REQUIRED        2.2             3.10.7          OK         -
 error: python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL        -               -               MISSING    'python3-notify2 needs to be installed'
 error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4                         OPTIONAL        4.0             -               MISSING    'python3-pyqt4-dbus needs to be installed'
 error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x)         REQUIRED        4.0             -               MISSING    'python3-pyqt4 needs to be installed'
 python3-dbus         Python DBus - Python bindings for DBus                       REQUIRED        0.80.0          1.3.2           OK         -
 python3-xml          Python XML libraries                                         REQUIRED        -               2.4.9           OK         -
 error: python3-devel Python devel - Python development files                      REQUIRED        2.2             3.10.7          MISSING    'python3-devel needs to be installed'
 python3-pil          PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL        -               9.2.0           OK         -
 python3-reportlab    Reportlab - PDF library for Python                           OPTIONAL        2.0             3.6.11          OK         -

--------------
| COMPILEDEP |
--------------

 error: libtool       libtool - Library building support services                  REQUIRED        -               -               MISSING    'libtool needs to be installed'
 error: gcc           gcc - GNU Project C and C++ Compiler                         REQUIRED        -               12.2.1          MISSING    'gcc needs to be installed'
 error: make          make - GNU make utility to maintain groups of programs       REQUIRED        3.0             -               MISSING    'make needs to be installed'

---------------------
| Python Extentions |
---------------------

 cupsext              CUPS-Extension                                               REQUIRED        -               3.22.6          OK         -
 hpmudext             IO-Extension                                                 REQUIRED        -               3.22.6          OK         -

----------------------
| Scan Configuration |
----------------------

 hpaio                HPLIP-SANE-Backend                                           REQUIRED        -               3.22.6          OK         'hpaio found in /etc/sane.d/dll.conf'
 scanext              Scan-SANE-Extension                                          REQUIRED        -               3.22.6          OK         -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `escl:http://localhost:60000' is a HP OfficeJet 3830 series [4FF16C] (USB) platen,adf scanner
device `airscan:e0:HP OfficeJet 3830 series [4FF16C] (USB)' is a eSCL HP OfficeJet 3830 series [4FF16C] (USB) ip=127.0.0.1


--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

 
Deskjet_D1600
-------------
Type: Printer
Device URI: hp:/usb/Deskjet_D1600_series?serial=CN05HCB96B05CT
PPD: /etc/cups/ppd/Deskjet_D1600.ppd
warning: Failed to read /etc/cups/ppd/Deskjet_D1600.ppd ppd file
PPD Description: 
Printer status: printer Deskjet_D1600 is idle.  enabled since Sat 22 Oct 2022 03:01:49 PM EDT
error: Unable to communicate with device (code=12): hp:/usb/Deskjet_D1600_series?serial=CN05HCB96B05CT
error: Device not found
error: Communication status: Failed

HP-OfficeJet-3830-series
------------------------
Type: Printer
Device URI: hp:/usb/OfficeJet_3830_series?serial=CN94B7Q5H206VZ
PPD: /etc/cups/ppd/HP-OfficeJet-3830-series.ppd
warning: Failed to read /etc/cups/ppd/HP-OfficeJet-3830-series.ppd ppd file
PPD Description: 
Printer status: printer HP-OfficeJet-3830-series now printing HP-OfficeJet-3830-series-8.  enabled since Sat 22 Oct 20Processing page 1...
error: Unable to communicate with device (code=12): hp:/usb/OfficeJet_3830_series?serial=CN94B7Q5H206VZ
error: Device not found
error: Communication status: Failed


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

Missing Required Dependencies
-----------------------------
error: 'cups' package is missing or 'cups' service is not running.
error: 'cups-common' package is missing or 'cups' service is not running.
error: 'libdbus-devel' package is missing/incompatible 
error: 'python3-gobject3' package is missing/incompatible 
error: 'libjpeg-devel' package is missing/incompatible 
error: 'libcups2-devel' package is missing or 'cups' service is not running.
error: 'libcups2' package is missing or 'cups' service is not running.
error: 'libusb1.0-devel' package is missing/incompatible 
error: 'libsane1-devel' package is missing/incompatible 
error: 'sane-backends' package is missing/incompatible 
error: 'libnet-snmp-devel' package is missing/incompatible 
error: 'libopenssl-devel' package is missing/incompatible 
error: 'libpython3-devel' package is missing/incompatible 
error: 'libtool' package is missing/incompatible 
error: 'libgphoto-devel' package is missing/incompatible 
error: 'gcc-c++' package is missing/incompatible 
error: 'make' package is missing/incompatible 
Missing Optional Dependencies
-----------------------------
error: 'policykit' package is missing/incompatible 
error: 'policykit-gnome' package is missing/incompatible 


ENTER SUDO PASSWORD
-------------------
Please enter the sudoer (epp)'s password:
Do you want to update repository and Install missing/incompatible packages. (a=install all*, c=custom_install, s=skip):a
Updating repository
-------------------
Installing Missing/Incompatible packages
----------------------------------------
cmd =cups
error: Failed to install 'cups' package, please install manually. 
cmd =cups-common
error: Failed to install 'cups-common' package, please install manually. 
cmd =libdbus-devel
error: Failed to install 'libdbus-devel' package, please install manually. 
cmd =python3-gobject3
error: Failed to install 'python3-gobject3' package, please install manually. 
cmd =libjpeg-devel
error: Failed to install 'libjpeg-devel' package, please install manually. 
cmd =libcups2-devel
error: Failed to install 'libcups2-devel' package, please install manually. 
cmd =libcups2
error: Failed to install 'libcups2' package, please install manually. 
cmd =libusb1.0-devel
error: Failed to install 'libusb1.0-devel' package, please install manually. 
cmd =libsane1-devel
error: Failed to install 'libsane1-devel' package, please install manually. 
cmd =sane-backends
error: Failed to install 'sane-backends' package, please install manually. 
cmd =libnet-snmp-devel
error: Failed to install 'libnet-snmp-devel' package, please install manually. 
cmd =libopenssl-devel
error: Failed to install 'libopenssl-devel' package, please install manually. 
cmd =libpython3-devel
error: Failed to install 'libpython3-devel' package, please install manually. 
cmd =libtool
error: Failed to install 'libtool' package, please install manually. 
cmd =libgphoto-devel
error: Failed to install 'libgphoto-devel' package, please install manually. 
cmd =gcc-c++
error: Failed to install 'gcc-c++' package, please install manually. 
cmd =make
error: Failed to install 'make' package, please install manually. 
cmd =policykit
error: Failed to install 'policykit' package, please install manually. 
cmd =policykit-gnome
error: Failed to install 'policykit-gnome' package, please install manually. 


Checking Permissions....


Checking for Configured Queues....
warning: Fail to read ppd=/etc/cups/ppd/Deskjet_D1600.ppd file
warning: Insufficient permission to access file /etc/cups/ppd/Deskjet_D1600.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: 'Deskjet_D1600' Printer is either Powered-OFF or Failed to communicate.
Turn On Printer and re-run hp-doctor
error: 'HP-OfficeJet-3830-series' Printer is either Powered-OFF or Failed to communicate.
Turn On Printer and re-run hp-doctor

Diagnose completed...



More information on Troubleshooting,How-To's and Support is available on http://hplipopensource.com/hplip-web/index.html
Comment 1 Edward 2022-10-22 23:09:19 CEST
Can this bug report remain unresolved, pending resolution of HDD issue? I just ran GSmartControl and found this in the log:

SMART Extended Comprehensive Error Log Version: 1 (6 sectors)
Device Error Count: 87 (device log contains only the most recent 24 errors)
	CR     = Command Register
	FEATR  = Features Register
	COUNT  = Count (was: Sector Count) Register
	LBA_48 = Upper bytes of LBA High/Mid/Low Registers ]  ATA-8
	LH     = LBA High (was: Cylinder High) Register    ]   LBA
	LM     = LBA Mid (was: Cylinder Low) Register      ] Register
	LL     = LBA Low (was: Sector Number) Register     ]
	DV     = Device (was: Device/Head) Register
	DC     = Device Control Register
	ER     = Error register
	ST     = Status register
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 87 [14] occurred at disk power-on lifetime: 1472 hours (61 days + 8 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  40 -- 51 00 00 00 00 00 00 18 08 e0 00  Error: UNC at LBA = 0x00001808 = 6152

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  c8 00 00 00 20 00 00 00 00 18 00 e0 0a     00:01:58.545  READ DMA
  ea 00 00 00 00 00 00 25 42 ea af e0 0a     00:01:58.545  FLUSH CACHE EXT
  27 00 00 00 00 00 00 00 00 00 00 e0 0a     00:01:58.544  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
  ec 00 00 00 00 00 00 00 00 00 00 a0 0a     00:01:58.542  IDENTIFY DEVICE
  ef 00 03 00 46 00 00 00 00 00 00 a0 0a     00:01:58.540  SET FEATURES [Set transfer mode]
Comment 2 Lewis Smith 2022-10-23 20:38:40 CEST
Thanks for the report.
> Here is the output from hp-doctor
(This very long report would have been better as an attachment).

> Can this bug report remain unresolved, pending resolution of HDD issue?
Done.

Using Gsmartcontrol on a suspect disc recently, after ruuning the *long* smartctl self test, it immediately said the disc was on its way out, panick!

Ever confirmed: 1 => 0
CC: (none) => lewyssmith
Status: NEW => UNCONFIRMED

Comment 3 Edward 2022-10-23 22:42:28 CEST
(In reply to Lewis Smith from comment #2)
> Thanks for the report.
> > Here is the output from hp-doctor
> (This very long report would have been better as an attachment).
> 
> > Can this bug report remain unresolved, pending resolution of HDD issue?
> Done.
> 
> Using Gsmartcontrol on a suspect disc recently, after ruuning the *long*
> smartctl self test, it immediately said the disc was on its way out, panick!

The HDD was indeed failing. Bought my first, ever, solid state drive today. Installed Mageia 8 on it then converted it to Cauldron.

The base install (before online updates) took all of nine minutes. Rebooted after the online update and the boot took 17 seconds from Grub2 to the login screen.

And this is on a 13-year old desktop...  :)

HPLIP is still displaying the "communication error". One minute it displays that, then the next minute it's fine. I've done everything I can think of, from deleting the printers in the CUPS interface then adding them back in with HPLIP, to factory-resetting the 3830 (the D1660 cannot be factory reset), to replacing the USB cables.

What I do know, is when HPLIP displays "communication error", running "lsusb -v" displays both printers, Mageia *is* recognizing them, so it's not a USB problem. This is leading me to believe that there is likely a bad file in the HPLIP package somewhere.
Comment 4 Edward 2022-10-24 00:12:01 CEST
Lewis,

I *may* have found a workaround to this, but want to test it for a few days, before deciding whether to close this bug report.

Working with my HP OfficeJet 3830 (all-in-one), I deleted everything via the CUPS web interface. Then added the 3830 back via CUPS. But this time, rather than selecting the HP PPD file for the printer, I selected "IPP Everywhere"  (https://www.pwg.org/ipp/everywhere.html), which allows computers and mobile devices to find and print to networked and USB printers, without the need for vendor-specific software.

So far, it's working. The HP Device Manager is showing no HP printers connected, test prints from Thunderbird and the web browsers print successfully and Document Scanner (simple-scan) is seeing the device and is able to scan.

Going into MCC/Hardware/Printers, the printer entry icon is a network printer, instead of a local printer.
Comment 5 Lewis Smith 2022-10-26 12:15:40 CEST
Thank you for all the work you have put into this (which, however, no-one else could have done). You seem to have got very bogged down in HPLIP. Congratulations on your hopeful solution.

What you say above about "IPP Everywhere" looks important. I have no experience of using CUPS to configure a printer, rather always via our MCC and Manage Printer applications. It seems that your printers are USB. Can you say whether you could have achieved the same result using Mageia's "Add printer"?
(I did not get anywhere trying to add my USB printer as a network one: fell at the first fence over a URI).

CC'ing TJ to see what he thinks about this. He has, I think, HP experience.

CC: (none) => andrewsfarm

Comment 6 Thomas Andrews 2022-10-26 14:00:30 CEST
This sounds like the same issue as Bug 30626. 

With that bug, if I boot with my HP printers powered up, more often than not I will get the "communication error" message. Sometimes, there will be a long delay in the boot, and then there will be no error. If I power them up after the boot, there is no problem.

This issue remains unresolved. My workaround is to power down my printers when not using them. One printer, an almost ancient Deskjet 5650, does not power down with the switch - it only goes to sleep. With that one, I installed an inline switch before the power supply. I actually have no problem with this, as I use my printers irregularly, and removing power from them when not using them saves me a few pennies on my electric bill.

Your solution of forcing the printer to be a network printer is interesting, as I had determined that what I saw only affected usb-connected printers.
Comment 7 Edward 2022-10-26 14:51:49 CEST
(In reply to Lewis Smith from comment #5)
> Thank you for all the work you have put into this (which, however, no-one
> else could have done). You seem to have got very bogged down in HPLIP.
> Congratulations on your hopeful solution.
> 
> What you say above about "IPP Everywhere" looks important. I have no
> experience of using CUPS to configure a printer, rather always via our MCC
> and Manage Printer applications. It seems that your printers are USB. Can
> you say whether you could have achieved the same result using Mageia's "Add
> printer"?
> (I did not get anywhere trying to add my USB printer as a network one: fell
> at the first fence over a URI).
> 
> CC'ing TJ to see what he thinks about this. He has, I think, HP experience.

Most likely, the IPP Everywhere option would not be available using MCC to configure the printer as it appears to communicate in sone way with HPLIP, as I found the printer listed in HPLIP after using the MCC.

I also have an older Deskjet D1600 and although it can be added via CUPS, MCC and HPLIP, the IPP Everywhere option was not available for this model in CUPS, so I ended up disconnecting it, since there is no way to access the printer maintenance (align cartridges, clean, etc.) outside of HPLIP with this model.

Apparently, when CUPS configured the OfficeJet 3830 with IPP Everywhere, it showed up as a networked printer in MCC, even though it's USB-connected.
Comment 8 Edward 2022-10-26 15:01:17 CEST
(In reply to Thomas Andrews from comment #6)
> This sounds like the same issue as Bug 30626. 

What I had been seeing was when HPLIP installed the printer and I selected to send aprint test page, that was fine. The second I opened the HPLIP GUI (Device Manager), it immediately threw up the communication error.

The printer was powered on during all this.
Comment 9 Thomas Andrews 2022-10-26 16:03:28 CEST
According to HP's support page, your Officejet has wireless connectivity, so that is what's being used to make it a network printer, even though the usb cable is connected. That is why the "IPP Everywhere" trick worked. One of my printers can be used like that, but the others cannot.

Please try this with the Deskjet: Boot with the printer connected, but powered down. Once booted, power up the printer and use MCC to install it. You can print a test page from MCC if you want, but don't try the HP Gui just yet. Reboot with the power removed from the printer. (It's possible that your Deskjet may be like mine, and is never really powered down unless the power supply is disconnected from the power source.) Once booted, power up the printer, and try the HP GUI again. (With my printers, the device communication error will be gone. I'm hoping the same will be true for you.)
Comment 10 Edward 2022-10-26 16:19:49 CEST
The printer is successfully connected and working, so I would prefer to leave it as it is.

Wireless is turned off at the printer and I use MAC Filtering on my Internet gateway. As the printer's MAC address is not in the filter, there is no way for it to connect via wireless.
Comment 11 Thomas Andrews 2022-10-26 17:29:55 CEST
I meant to perform the test with the older D1600. The way I was reading it, you did not have that one working. I would not ask you to mess around with one that is working.

My HP Envy Photo 7858 allows the computer to communicate directly with the printer's wireless, bypassing the router and Internet. I had thought that's what happened with you, but it shouldn't if the printer's wireless is turned off. I think. My only experience with wireless printers is with the one HP Envy.
Comment 12 Edward 2022-10-26 17:59:33 CEST
The D1600 installed successfully via the MCC, selecting USB for the connection, instead of HPLIP. Removed power from the printer and rebooted. Restored power to printer.

Launched HP GUI, it crashed.

From terminal:

~]$ hp-toolbox

HP Linux Imaging and Printing System (ver. 3.22.6)
HP Device Manager ver. 15.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.

\Segmentation fault (core dumped)
[epp@downstairs ~]$ coredumpctl
No coredumps found.
Comment 13 Thomas Andrews 2022-10-26 19:17:35 CEST
Well, it would seem that your issue is not the same, though the symptoms are somewhat similar.

That exhausts any help I can give. All of my printers, when I used MCC, have been installed with the "hplip" option. I don't remember ever trying the "usb" option, because all my printers are HP. And I'm not a developer by any definition of the term, so getting into the guts of hplip is beyond me.

I am sorry I couldn't be of more assistance.
Comment 14 Lewis Smith 2022-10-27 12:48:15 CEST
You were very helpful!

@Edward
> The D1600 installed successfully via the MCC, selecting USB for the
> connection, instead of HPLIP. Removed power from the printer and rebooted.
> Restored power to printer.
You did not say whether it worked before the HPLIP crash...

In particular, does TJ's simple suggestion that troublesome HP printers are powered off for boot, then powered on, whence they work OK, work for you?
If so, this will be 'for errata'.

Likewise your suggestion about "IPP Everywhere".

I find this mixture of MCC, CUPS, HPLIP for installing HP printers a worms' nest. I have never had affair with HPLIP over many years (but no HP printer).
Comment 15 Edward 2022-10-27 13:45:26 CEST
The printer, installed using HPLIP, worked before the hplip segfaults, as long as I left the GUI alone. As soon as I launched the GUI, pre-segfault, it threw up the 'communication error'. As long as the 'communication error' was there, the printer would not print.

IPP Everywhere is apparently not compatible with every printer. Occasionally, I would see a message in the CUPS interface that printer drivers and one other item would be deprecated in a future version of CUPS. I do not know what that would mean for printers like the D1600.

The D1600 otherwise works if installed independently of HPLIP, using USB as the connection from within MCC.

I do not believe the current HPLIP version is incompatible with Mageia Cauldron/9. My other desktop (Mageia 8 host, Cauldron VBox guests) has a different HP printer, but is Ethernet-connected. 'hp-setup -a <IP address>' successfully set it up in all three of the Cauldron VBoxes and I have had zero issues.
Comment 16 Thomas Andrews 2022-10-27 15:49:41 CEST
I still believe this is at least related to the issue I saw in Bug 30626. Unfortunately, I also believe it is an upstream bug, and we will probably have to wait for a new version of hplip before it might be fixed.

As for older printers like your D1600, and all of mine, while they don't usually drop the printers from the list of support, once the hplip developers have decided that there is "full" support for them they rarely revisit the ppds to fix any bug that might be there. However, this doesn't act like a ppd issue, because it seems to involve many printers, so there is still a chance they will look into it.
Comment 17 Edward 2022-10-27 17:05:41 CEST
Over the years, I reported a grand total of two bugs to HPLIP, the oldest was in 2016. As of today, neither bug has been acknowledged or commented on by anyone from HP. I don't report bugs to them anymore.
Comment 18 Lewis Smith 2022-10-31 18:28:13 CET
> The D1600 otherwise works if installed independently of HPLIP,
> using USB as the connection from within MCC.
Thank you for this encouraging news!
This bug looks very much an HPLIP problem; if the dropping printers are added via MCC or CUPS; or only powered on after booting; they work. Please correct if this is wrong.

Flagging for ERRATA.

Assigning to NicolasS. although HPLIP is not your baby, you are its main maintainer.

Ever confirmed: 0 => 1
Keywords: (none) => FOR_ERRATA9
Status: UNCONFIRMED => NEW
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=30626
Assignee: bugsquad => nicolas.salguero

Comment 19 Nicolas Salguero 2022-11-03 13:27:42 CET
Hi,

Does the problem still occur with hplip-3.22.10-1.mga9?

Best regards,

Nico.
Comment 20 Lewis Smith 2022-11-04 16:42:26 CET
Ping Edward. When you have time.
Comment 21 Thomas Andrews 2022-11-20 00:49:07 CET
I finally got the time to make a real hardware install of Cauldron, with printers attached, and I am seeing the same problem with my printers and hplip 3.22.10 that Edward saw with his printers.

I have three HP printers, a venerable Deskjet 5650, a Color Laserjet CP1215, and an Envy Photo 7858 all-in-one. 

The Deskjet is capable of usb or parallel; I'm using usb. The Laserjet is usb-only. Both were installed using system-config-printer from MCC, choosing hplip. Both of these are working as they do in Mageia 8. If I boot with them powered down, then power up after, the HP gui seems to communicate with them OK. If I boot with them powered up, The HP gui shows a "communication error" until I power them down, refresh the devices, power them up again, and refresh again.

They will print OK, whether the HP gui can communicate with them or not.

As with Edward's Officejet, my Envy can be used with usb or wireless.(wifi) It is connected to my router, but I installed the Envy in MCC using the usb connection and hplip. When I went to look at it in the hp gui, I was told the status was "busy, (BLAST! I forgot this one), or unplugged." If I tried to print with it, and I was presented with a number of options, the one that included "IPP Anywhere" was the only one that worked. 

And if I tried the scanner, the only device out of three choices that would work is the "airscan" option. That includes an IP address, so one would think it is directly accessing the printer's wireless connection - except that the IP address is not the one my router gave the printer, AND this desktop does not have wifi hardware at the moment. 

I have not yet tried to configure the Envy as a network printer in MCC on this desktop, so I don't know how that might work.

I'm going to remove the "ERRATA" flag, at lest for now. Yes, I can get the printer and scanner to work, but it's far too complicated for many of our less experienced users. It should be better than this.

Keywords: FOR_ERRATA9 => (none)

Comment 22 Nicolas Salguero 2022-12-05 11:08:19 CET
Hi,

With hplip-3.22.10-2.mga9, I reverted back to the previous behaviour, which was the cause of bug 10072.  Does it works better?

Best regards,

Nico.
Comment 23 Thomas Andrews 2022-12-05 17:53:44 CET
It's looking more now that what Edward and I have seen are the symptoms of two issues at the same time. At least, that's what I'm seeing. 

The issue of Bug 30626 changed, reverting behavior in the HP Device manager. The issue of Bug 31222, concerning the scanner part of the printer only working with the "Airscan" driver, did not change. 

I have reported any changes I observed in the respective bugs.
Comment 24 Herman Viaene 2023-02-14 16:16:20 CET
There is definitely something wrong with the device handling via USB  connection in M8.
Explanation:
My HP Envy 6022 is connected:
via USB to my desktop PC
via wifi (not via sharing) to my Acer laptop.

Started this morning  the desktop. As the printer is behind the same powerswitch as the desktop's monitor, the printer starts up as well and it works OK.
Nothing done further to printer, after 1 hour start HP Device Manager and get status "device communication error".
Thereafter, start the laptop, start HP Device Manager and get status "Power save mode". Initiate a print job from the laptop and it prints OK.
Check thereafter the status on the desktop refreshing the HP Device Manager device and it remains at "device communication error" and does not do any printing.

CC: (none) => herman.viaene

Nicolas Salguero 2023-10-19 10:20:56 CEST

Assignee: nicolas.salguero => pkg-bugs


Note You need to log in before you can comment on or make changes to this bug.