(maybe solved)(5012 comm error) Mint 21 have to power off and power on printer else not recognize

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

(maybe solved)(5012 comm error) Mint 21 have to power off and power on printer else not recognize

Post by Kris345 »

just upgraded to 21 though this was probably a prob on 20.3.
I have HP laserjet P1606dn set to never auto power off. (USB)
when I boot into Mint (21) and try to use it I get communication error 5012.
If I unplug/replug USB connection - no change
If I power the printer off and power it on, 12 seconds later Mint HPLIP recognizes it and then prints to it.

Be nice if I could avoid that.
Thanks!

Code: Select all

System:
  Kernel: 5.15.0-43-generic x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Cinnamon 5.4.9
    tk: GTK 3.24.33 wm: Mutter dm: LightDM Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20HAS02P00 v: ThinkPad T570 serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20HAS02P00 v: SDK0J40697 WIN serial: <superuser required> UEFI: LENOVO
    v: N1VET59W (1.49 ) date: 12/01/2021
Battery:
  ID-1: BAT0 charge: 27.0 Wh (100.0%) condition: 27.0/32.0 Wh (84.3%) volts: 16.4 min: 15.3
    model: SMP 00UR891 serial: <filter> status: Full
  ID-2: BAT1 charge: 32.0 Wh (98.8%) condition: 32.4/47.5 Wh (68.2%) volts: 12.3 min: 10.8
    model: SANYO 01AV425 serial: <filter> status: Not charging
CPU:
  Info: dual core model: Intel Core i7-7600U bits: 64 type: MT MCP arch: Amber/Kaby Lake
    note: check rev: 9 cache: L1: 128 KiB L2: 512 KiB L3: 4 MiB
  Speed (MHz): avg: 3594 high: 3613 min/max: 400/3900 cores: 1: 3613 2: 3600 3: 3579 4: 3587
    bogomips: 23199
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel HD Graphics 620 vendor: Lenovo driver: i915 v: kernel ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:5916
  Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo bus-ID: 1-8:5
    chip-ID: 13d3:5619
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting unloaded: fbdev,vesa
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 model: Chi Mei Innolux res: 1920x1080 dpi: 142 diag: 394mm (15.5")
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.0.5 direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:9d71
  Sound Server-1: ALSA v: k5.15.0-43-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel port: N/A
    bus-ID: 00:1f.6 chip-ID: 8086:15d7
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 04:00.0 chip-ID: 8086:24fd
  IF: wlp4s0 state: down mac: <filter>
  IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Drives:
  Local Storage: total: 1.36 TiB used: 680.23 GiB (48.7%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
  ID-2: /dev/sda type: USB vendor: Samsung model: SSD 870 EVO 1TB size: 931.51 GiB
    serial: <filter>
Partition:
  ID-1: / size: 72.78 GiB used: 40.23 GiB (55.3%) fs: ext4 dev: /dev/nvme0n1p8
  ID-2: /boot/efi size: 96 MiB used: 33.4 MiB (34.8%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Hub-2: 1-1:2 info: Genesys Logic Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip-ID: 05e3:0610
  Device-1: 1-1.1:4 info: Logitech G502 SE HERO Gaming Mouse type: Mouse,HID
    driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 046d:c08b
  Device-2: 1-1.3:10 info: HP HP LaserJet Professional P1606dn type: Printer driver: N/A
    rev: 2.0 speed: 480 Mb/s chip-ID: 03f0:0a2a
  Device-3: 1-8:5 info: IMC Networks Integrated Camera type: Video driver: uvcvideo rev: 2.0
    speed: 480 Mb/s chip-ID: 13d3:5619
  Hub-3: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s chip-ID: 1d6b:0003
  Device-1: 2-3:2 info: Realtek Card Reader type: Mass Storage driver: usb-storage rev: 3.0
    speed: 5 Gb/s chip-ID: 0bda:0316
  Device-2: 2-4:3
    info: ASMedia ASM1051E SATA 6Gb/s bridge ASM1053E ASM1153 3Gb/s ASM1153E bridge
    type: Mass Storage driver: usb-storage rev: 3.0 speed: 5 Gb/s chip-ID: 174c:55aa
Sensors:
  System Temperatures: cpu: 41.0 C pch: 40.0 C mobo: N/A
  Fan Speeds (RPM): fan-1: 0
Repos:
  Packages: 3020 apt: 3010 snap: 10
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list
    1: deb [arch=amd64] http: //dl.google.com/linux/earth/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com vanessa main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/steam.list
    1: deb [arch=amd64,i386] https: //repo.steampowered.com/steam/ stable steam
    2: deb-src [arch=amd64,i386] https: //repo.steampowered.com/steam/ stable steam
Info:
  Processes: 252 Uptime: 8h 50m Memory: 15.48 GiB used: 4.18 GiB (27.0%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.2.0 alt: 11/9 Client: Unknown python3.10 client inxi: 3.3.13
Last edited by LockBot on Thu Feb 09, 2023 11:00 pm, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
zeus86
Level 1
Level 1
Posts: 5
Joined: Tue Aug 09, 2022 12:49 pm
Location: Germany
Contact:

Re: 21 have to power off and power on printer else not recognize

Post by zeus86 »

The exact same thing happened to me on mint21 with an ENVY 5548 (listed as "ENVY_5540_series").
relevant lines from the cups-unit:

Code: Select all

hp[199706]: io/hpmud/musb.c 389: Active kernel driver on interface=2 ret=0
hp[199706]: io/hpmud/musb.c 535: claimed ff/4/1 interface
hp[199706]: io/hpmud/musb.c 770: invalid deviceid ret=-9: Resource temporarily unavailable
hp[199706]: prnt/backend/hp.c 825: INFO: open device failed stat=12: hp:/usb/ENVY_5540_series?serial=TH78Q2W1BG0671; will retry in 30 seconds...
hp[199706]: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=0, index=1
hp[199706]: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=0
...and repeats as often as you click refresh in the hplip-gui.

In the End, i think hplip is just not ready for mint 21 yet (and thus does it not list as compatible on their website: https://developers.hp.com/hp-linux-imag ... ng/install ). The install-wrapper has trouble probing the OS for the release and version:

Code: Select all

# hp-check -r
Saving output in log file: /root/hp-check.log

HP Linux Imaging and Printing System (ver. 3.21.12)
Dependency/Version Check Utility ver. 15.1

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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper
dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING       - Missing Dependency or Permission or Plug-in
    INCOMPAT      - Incompatible dependency-version or Plugin-version

-Traceback (most recent call last):
  File "/usr/bin/hp-check", line 861, in <module>
    dep.core.init()
  File "/usr/share/hplip/installer/core_install.py", line 523, in init
    self.get_distro()
  File "/usr/share/hplip/installer/core_install.py", line 661, in get_distro
    if 'MX' in distro_release_name:
NameError: name 'distro_release_name' is not defined
#
(the log shows the same content as the output above)

sidenote: fresh install of mint 21 (x86_64, cinnamon, no custom kernel, zfs-mirror on root, lvm).
kernel and hplip-version:

Code: Select all

# uname -a && lsb_release -a && dpkg -l | grep hplip
Linux andi 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 21
Release:        21
Codename:       vanessa
ii  hplip                                      3.21.12+dfsg0-1                            amd64        HP Linux Printing and Imaging System (HPLIP)
ii  hplip-data                                 3.21.12+dfsg0-1                            all          HP Linux Printing and Imaging - data files
ii  hplip-gui                                  3.21.12+dfsg0-1                            all          HP Linux Printing and Imaging - GUI utilities (Qt-based)
#
i hope someone has a clue, because I hate printers and only have to deal with them because this is my parents' computer
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: 21 have to power off and power on printer else not recognize

Post by brian_p »

zeus86 wrote: Tue Aug 09, 2022 1:16 pm The exact same thing happened to me on mint21 with an ENVY 5548 (listed as "ENVY_5540_series").
relevant lines from the cups-unit:

FWIW, zeus86, I do not think you have the same issue as Kris345. It would be better to open a separate report instead of tagging on to this one.
--
Brian.
zeus86
Level 1
Level 1
Posts: 5
Joined: Tue Aug 09, 2022 12:49 pm
Location: Germany
Contact:

Re: 21 have to power off and power on printer else not recognize

Post by zeus86 »

brian_p wrote: Tue Aug 09, 2022 2:13 pm I do not think you have the same issue as Kris345
What made you came to this conclusion? The exact same behaviour as described by OP occurs, as well as the same observable

Code: Select all

communication error 5012
could be seen in dmesg as well as in the hplip-gui, too. I just did not paste the duplicate dmesg-output, but linked the relevant messages of the systemd-unit it acutally affects (cups in this case). I very well think that this in in fact the same issue.
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: 21 have to power off and power on printer else not recognize

Post by Kris345 »

Hi Brian! Be well!!!

FWIW, I am "resolving" my problem by going to windows and changing the settings in the 1606 printer to "sleep after 5 min and off after 30min" (was off after NEVER).

This way, when I send something to the printer, I know it will be off and can just press the power button and wait 12 (edit ~42) seconds. This is a good solution for me since I only print perhaps once a day.

I would have no way of knowing if the 2 problems are the same and will defer to Brian's vast knowledge.
Last edited by Kris345 on Thu Aug 11, 2022 4:43 pm, edited 1 time in total.
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
zeus86
Level 1
Level 1
Posts: 5
Joined: Tue Aug 09, 2022 12:49 pm
Location: Germany
Contact:

Re: 21 have to power off and power on printer else not recognize

Post by zeus86 »

I think i nailed it down. I have researched quite alot regarding this problem an in further Versions of ubuntu or mint basically 2 things have been adviced over and over:
1) set the printer to "don't go to sleep" (as you described)
2) deinstall ippusbxd
The second one is tricky. ippusbxd is a middleware basically allowing ipp-printers (networkprinters) to work with the ipp-protocoll over usb, resulting in a ressource-conflict in combination with hplip sometimes. I initially thought, that this problem did not apply to me, because ippusbxd was not installed, but it turns out, that ippusbxd as been renamed since ubuntu 22.04 (or maybe earlier, but after 20.04), and the package is now named "ipp-usb". Removing the package has solved the problem as it seems. When the printer was off when the computer is powered on it might be the case, that you'll get a communication error, but at least a refresh in the hplip-gui/hplip-device-manager now seems to reliably detect the printer and is able to use it while the printer is properly powered on:

Code: Select all

[  779.962847] usb 1-10.4: new high-speed USB device number 6 using xhci_hcd
[  780.093663] usb 1-10.4: New USB device found, idVendor=03f0, idProduct=ce11, bcdDevice= 1.00
[  780.093666] usb 1-10.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  780.093667] usb 1-10.4: Product: ENVY 5540 series
[  780.093668] usb 1-10.4: Manufacturer: HP
[  780.093668] usb 1-10.4: SerialNumber: XXXXXXXXXXX
[  780.311710] usblp 1-10.4:1.1: usblp3: USB Bidirectional printer dev 6 if 1 alt 0 proto 2 vid 0x03F0 pid 0xCE11
[  780.311736] usbcore: registered new interface driver usblp
I hope this will solve other peoples problem, too, because researching this was quite a long trial and error route. Even for ubuntu 22.04 i have not seen a documented solution yet, even tough it will most likely apply to it in the exact same way.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: 21 have to power off and power on printer else not recognize

Post by brian_p »

zeus86 wrote: Wed Aug 10, 2022 11:48 am
brian_p wrote: Tue Aug 09, 2022 2:13 pm I do not think you have the same issue as Kris345
What made you came to this conclusion? The exact same behaviour as described by OP occurs, as well as the same observable

Code: Select all

communication error 5012
could be seen in dmesg as well as in the hplip-gui, too. I just did not paste the duplicate dmesg-output, but linked the relevant messages of the systemd-unit it acutally affects (cups in this case). I very well think that this in in fact the same issue.
Two users getting the same error message or behavior does not mean the cause is the same. In fact, you have demonstrated as much in another post:
zeus86 wrote:Removing the package has solved the problem as it seems.
Kris345's HP laserjet P1606dn is not an IPP printer, so he could never have encountered the issue you did (but both of you get the same error message). BTW, ippusbxd has not been renamed to ipp-usb; they are completely different packages.
--
Brian.
zeus86
Level 1
Level 1
Posts: 5
Joined: Tue Aug 09, 2022 12:49 pm
Location: Germany
Contact:

Re: 21 have to power off and power on printer else not recognize

Post by zeus86 »

brian_p wrote: Thu Aug 11, 2022 5:33 pm Kris345's HP laserjet P1606dn is not an IPP printer, so he could never have encountered the issue you did
neither is mine, at least primarily. the envy-printer is connected via usb. not sure if it has wifi, but certainly not wired ethernet.

you seem to be right, that ippusbxd and ipp-usb are different packages, but in the end it doesn't matter much, because they basically try to archieve the same goal (sort of): communicating like it's done in IPP but over usb, which causes conflicts in this particular case and others. keeping this in mind, the experienced issue could be very well the same, regardless of which exact middleware tries to get in between. The key here is, that ipp-usb does cause problems (at least for what i can say by now) AND is installed by default, regardless of the printer model. beside that, the second software, ippusbxd is also known to cause (the same) problems, and was in older ubuntu (and most likely mint, too) releases installed by default.

so, yes, while this might be not the "same" error or problem, it is most likely similar enough, to cause the same problems. but in the end: most (home-) users won't notice a difference when trying to remove ipp-usb, when they are using hp-usb-printers, so if one encounters this problem, tries this, and it works, what's the point then? i do know, that the solution might not be technical spot-on in every point, but that was not my goal. as i initialy stated: i hate printers (and i know, many do so, too), if i want to get more in-depth with something, i'm using my primary notebook with arch installed (or worse: use rhel at work...).
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: 21 have to power off and power on printer else not recognize

Post by Kris345 »

zeus86 wrote: Thu Aug 11, 2022 4:11 pm I think i nailed it down. I have researched quite alot regarding this problem an in further Versions of ubuntu or mint basically 2 things have been adviced over and over:
1) set the printer to "don't go to sleep" (as you described)
2) deinstall ippusbxd
The second one is tricky. ippusbxd is a middleware basically allowing ipp-printers (networkprinters) to work with the ipp-protocoll over usb, resulting in a ressource-conflict in combination with hplip sometimes. I initially thought, that this problem did not apply to me, because ippusbxd was not installed, but it turns out, that ippusbxd as been renamed since ubuntu 22.04 (or maybe earlier, but after 20.04), and the package is now named "ipp-usb". Removing the package has solved the problem as it seems. When the printer was off when the computer is powered on it might be the case, that you'll get a communication error, but at least a refresh in the hplip-gui/hplip-device-manager now seems to reliably detect the printer and is able to use it while the printer is properly powered on:

Code: Select all

[  779.962847] usb 1-10.4: new high-speed USB device number 6 using xhci_hcd
[  780.093663] usb 1-10.4: New USB device found, idVendor=03f0, idProduct=ce11, bcdDevice= 1.00
[  780.093666] usb 1-10.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  780.093667] usb 1-10.4: Product: ENVY 5540 series
[  780.093668] usb 1-10.4: Manufacturer: HP
[  780.093668] usb 1-10.4: SerialNumber: XXXXXXXXXXX
[  780.311710] usblp 1-10.4:1.1: usblp3: USB Bidirectional printer dev 6 if 1 alt 0 proto 2 vid 0x03F0 pid 0xCE11
[  780.311736] usbcore: registered new interface driver usblp
I hope this will solve other peoples problem, too, because researching this was quite a long trial and error route. Even for ubuntu 22.04 i have not seen a documented solution yet, even tough it will most likely apply to it in the exact same way.
You are saying? that if you remove something, the 5012 goes away.
What did you remove and how? (code please)
Thanks.
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: (maybe solved) Mint 21 have to power off and power on printer else not recognize

Post by Kris345 »

I tried this on mine and it seems to work.
Though I still get occasional 5012 error messages, 99% of the time , if I send something to the printer, it works, unlike before when I had to power it off and then on. Only once it did not work and I had to again power the printer off and on.

I did set my printer to sleep after 5 min, power off = NEVER, so it is always is awake or in sleep mode, though when I initially tried this, it seemed to work okay when I had the printer set to power off = 30min(that is, booting when printer was off. So you will have to play with it. With my printer I have to boot to windows to change those settings, change them, and then send something to the printer to lock the settings in. Your printer will likely be different.
Last edited by Kris345 on Mon Oct 17, 2022 7:42 pm, edited 1 time in total.
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: 21 have to power off and power on printer else not recognize

Post by brian_p »

zeus86 wrote: Tue Aug 09, 2022 1:16 pm The exact same thing happened to me on mint21 with an ENVY 5548 (listed as "ENVY_5540_series").
relevant lines from the cups-unit:

This one of the worst thread hijacks I have encountered. zeus86 sits back with an issue solved. Meanwhile, Kris345 flounders, abandoned by zeus86.

Exactly the ame problem - same solution; my elbow! :(
--
Brian.
zeus86
Level 1
Level 1
Posts: 5
Joined: Tue Aug 09, 2022 12:49 pm
Location: Germany
Contact:

Re: (maybe solved)(5012 comm error) Mint 21 have to power off and power on printer else not recognize

Post by zeus86 »

i wasn't up to abandon someone, i just don't check forums regulary, especially i basically use arch and ubuntu at home and ubuntu and rhel at work, and tried mint for my parent's computer, because ubuntu's snap-stuff p!#?$$€s me of. anyways, i just wanted to share the solution i found working for me , and OP obviously was able to learn something about how to remove packages without breaking the system :) (no pun intended).
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: (maybe solved)(5012 comm error) Mint 21 have to power off and power on printer else not recognize

Post by Kris345 »

Yes. This seems to work most of the time though there was a period where it was moody. At present I do not have a problem 99% of the time and I think that is the state of my system, though I believe new builds of the latest releases will work correctly out of the box, but haven't tested extensively. I appreciated your efforts!
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
kissbaby
Level 1
Level 1
Posts: 18
Joined: Sat Feb 05, 2022 5:55 pm

Re: (maybe solved)(5012 comm error) Mint 21 have to power off and power on printer else not recognize

Post by kissbaby »

Kris345 wrote: Tue Aug 09, 2022 12:43 pm just upgraded to 21 though this was probably a prob on 20.3.
I have HP laserjet P1606dn set to never auto power off. (USB)
when I boot into Mint (21) and try to use it I get communication error 5012.
If I unplug/replug USB connection - no change
If I power the printer off and power it on, 12 seconds later Mint HPLIP recognizes it and then prints to it.

Be nice if I could avoid that.
Thanks!

Code: Select all

System:
  Kernel: 5.15.0-43-generic x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Cinnamon 5.4.9
    tk: GTK 3.24.33 wm: Mutter dm: LightDM Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20HAS02P00 v: ThinkPad T570 serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20HAS02P00 v: SDK0J40697 WIN serial: <superuser required> UEFI: LENOVO
    v: N1VET59W (1.49 ) date: 12/01/2021
Battery:
  ID-1: BAT0 charge: 27.0 Wh (100.0%) condition: 27.0/32.0 Wh (84.3%) volts: 16.4 min: 15.3
    model: SMP 00UR891 serial: <filter> status: Full
  ID-2: BAT1 charge: 32.0 Wh (98.8%) condition: 32.4/47.5 Wh (68.2%) volts: 12.3 min: 10.8
    model: SANYO 01AV425 serial: <filter> status: Not charging
CPU:
  Info: dual core model: Intel Core i7-7600U bits: 64 type: MT MCP arch: Amber/Kaby Lake
    note: check rev: 9 cache: L1: 128 KiB L2: 512 KiB L3: 4 MiB
  Speed (MHz): avg: 3594 high: 3613 min/max: 400/3900 cores: 1: 3613 2: 3600 3: 3579 4: 3587
    bogomips: 23199
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel HD Graphics 620 vendor: Lenovo driver: i915 v: kernel ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:5916
  Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo bus-ID: 1-8:5
    chip-ID: 13d3:5619
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting unloaded: fbdev,vesa
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 model: Chi Mei Innolux res: 1920x1080 dpi: 142 diag: 394mm (15.5")
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.0.5 direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:9d71
  Sound Server-1: ALSA v: k5.15.0-43-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel port: N/A
    bus-ID: 00:1f.6 chip-ID: 8086:15d7
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 04:00.0 chip-ID: 8086:24fd
  IF: wlp4s0 state: down mac: <filter>
  IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Drives:
  Local Storage: total: 1.36 TiB used: 680.23 GiB (48.7%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
  ID-2: /dev/sda type: USB vendor: Samsung model: SSD 870 EVO 1TB size: 931.51 GiB
    serial: <filter>
Partition:
  ID-1: / size: 72.78 GiB used: 40.23 GiB (55.3%) fs: ext4 dev: /dev/nvme0n1p8
  ID-2: /boot/efi size: 96 MiB used: 33.4 MiB (34.8%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Hub-2: 1-1:2 info: Genesys Logic Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip-ID: 05e3:0610
  Device-1: 1-1.1:4 info: Logitech G502 SE HERO Gaming Mouse type: Mouse,HID
    driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 046d:c08b
  Device-2: 1-1.3:10 info: HP HP LaserJet Professional P1606dn type: Printer driver: N/A
    rev: 2.0 speed: 480 Mb/s chip-ID: 03f0:0a2a
  Device-3: 1-8:5 info: IMC Networks Integrated Camera type: Video driver: uvcvideo rev: 2.0
    speed: 480 Mb/s chip-ID: 13d3:5619
  Hub-3: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s chip-ID: 1d6b:0003
  Device-1: 2-3:2 info: Realtek Card Reader type: Mass Storage driver: usb-storage rev: 3.0
    speed: 5 Gb/s chip-ID: 0bda:0316
  Device-2: 2-4:3
    info: ASMedia ASM1051E SATA 6Gb/s bridge ASM1053E ASM1153 3Gb/s ASM1153E bridge
    type: Mass Storage driver: usb-storage rev: 3.0 speed: 5 Gb/s chip-ID: 174c:55aa
Sensors:
  System Temperatures: cpu: 41.0 C pch: 40.0 C mobo: N/A
  Fan Speeds (RPM): fan-1: 0
Repos:
  Packages: 3020 apt: 3010 snap: 10
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list
    1: deb [arch=amd64] http: //dl.google.com/linux/earth/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com vanessa main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/steam.list
    1: deb [arch=amd64,i386] https: //repo.steampowered.com/steam/ stable steam
    2: deb-src [arch=amd64,i386] https: //repo.steampowered.com/steam/ stable steam
Info:
  Processes: 252 Uptime: 8h 50m Memory: 15.48 GiB used: 4.18 GiB (27.0%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.2.0 alt: 11/9 Client: Unknown python3.10 client inxi: 3.3.13
todays date: 10-18-22,
i now see that i'm not the only one with this bug, i'm also using linux mint 21. i found something interesting , from reading everything people are saying, got to write some thing down before i try this one thing......
kissbaby
Level 1
Level 1
Posts: 18
Joined: Sat Feb 05, 2022 5:55 pm

Re: 21 have to power off and power on printer else not recognize

Post by kissbaby »

zeus86 wrote: Thu Aug 11, 2022 4:11 pm I think i nailed it down. I have researched quite alot regarding this problem an in further Versions of ubuntu or mint basically 2 things have been adviced over and over:
1) set the printer to "don't go to sleep" (as you described)
2) deinstall ippusbxd
The second one is tricky. ippusbxd is a middleware basically allowing ipp-printers (networkprinters) to work with the ipp-protocoll over usb, resulting in a ressource-conflict in combination with hplip sometimes. I initially thought, that this problem did not apply to me, because ippusbxd was not installed, but it turns out, that ippusbxd as been renamed since ubuntu 22.04 (or maybe earlier, but after 20.04), and the package is now named "ipp-usb". Removing the package has solved the problem as it seems. When the printer was off when the computer is powered on it might be the case, that you'll get a communication error, but at least a refresh in the hplip-gui/hplip-device-manager now seems to reliably detect the printer and is able to use it while the printer is properly powered on:

Code: Select all

[  779.962847] usb 1-10.4: new high-speed USB device number 6 using xhci_hcd
[  780.093663] usb 1-10.4: New USB device found, idVendor=03f0, idProduct=ce11, bcdDevice= 1.00
[  780.093666] usb 1-10.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  780.093667] usb 1-10.4: Product: ENVY 5540 series
[  780.093668] usb 1-10.4: Manufacturer: HP
[  780.093668] usb 1-10.4: SerialNumber: XXXXXXXXXXX
[  780.311710] usblp 1-10.4:1.1: usblp3: USB Bidirectional printer dev 6 if 1 alt 0 proto 2 vid 0x03F0 pid 0xCE11
[  780.311736] usbcore: registered new interface driver usblp
I hope this will solve other peoples problem, too, because researching this was quite a long trial and error route. Even for ubuntu 22.04 i have not seen a documented solution yet, even tough it will most likely apply to it in the exact same way.
@ zeus86 , your post help me fix my printer problem, i cant explain it, which is a bummer, but i will try, i have a "hp deskjet 2742e" all in one printer, it run as a USB connection as well as wifi.

my old computer does not have wifi built in, so i use the USB(corded) connection, when i power my pc on, and i when i want to print something, i then turn on the printer, and it wont fully see my printer........ cant print,

so after reading your comment, i see 2 things, one , you installed the "hplip-gui" and two, you removed the "ipp-usb" , before i tried this i made sure my printer was powered off, i installed the "hplip-gui" and removed the "ipp-usb",

i then restarted my pc, let it warm up...... then i turned on my printer , let it warm up, after 30 minutes away from the computer, i then did a test print and it works as it should...... i cant explain it , wish i can.....

thank you.

i believe this is a bug in linux mint 21, i dont know if i can explain it , in order to report it , maybe some one here can..........
Locked

Return to “Printers & Scanners”