Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HP LaserJet m605: printer malfunction after connecting to the system with ipp-usb installed #87

Open
qwetwe opened this issue Nov 7, 2024 · 12 comments

Comments

@qwetwe
Copy link

qwetwe commented Nov 7, 2024

Steps to reproduce:

  1. # apt-get install -y ipp-usb (preinstalled);
  2. Connect the printer via USB to the system with ipp-usb installed.
  3. Add a printer using WEB Cups (http://localhost:631) or KDE tools ("Settings - Printers"), using the suggested USB driver from the list. Connection string must be something like this: usb://HP/LaserJet%20M605?serial=CNDVJCY16N
  4. Start printing the test page;
  5. Try to print the printer configuration using the panel on the printer itself ("Main Menu - Administration - Reports");
  6. Try to perform any other action using the panel on the printer itself.

The actual result:

  1. After sending a test print job, either nothing happens, or the printer goes into some kind of "waiting mode";
  2. Printing the printer configuration using the panel on the printer itself ("Main Menu - Administration - Reports") does not work - instead, the panel interface stops responding to user actions until it is restarted;
  3. The printer does not respond to print jobs until it is restarted;

Expected result:

  1. The test page is being printed successfully;
  2. The printer configuration is being printed successfully by using the panel on the printer itself, the panel interface does not freeze;
  3. The printer responds to print jobs without having to restart.

/etc/ipp-usb.conf is default:

  [network]
     http-min-port = 60000
  http-max-port = 65535
  [auth uid]
    all = *
  [logging]
    device-log    = all
    main-log      = debug
    console-log   = debug
    max-file-size    = 256K
    max-backup-files = 5

/var/log/ipp-usb/main.log:

06-11-2024 17:33:28:   ===============================
06-11-2024 17:33:28:   ipp-usb started in "udev" mode, pid=12569
06-11-2024 17:33:28:   ctrlsock: listening at "/var/ipp-usb/ctrl"
06-11-2024 17:33:28: + PNP Bus 002 Device 002: added
06-11-2024 17:33:29: ! Can't load existing ports allocation
06-11-2024 17:33:29: ! open /var/ipp-usb/dev: no such file or directory
06-11-2024 17:33:35: ! PNP Bus 002 Device 002: Device initialization timed out
06-11-2024 17:33:37: + PNP Bus 002 Device 002: retry
06-11-2024 17:33:44: ! PNP Bus 002 Device 002: Device initialization timed out
06-11-2024 17:33:46: + PNP Bus 002 Device 002: retry
06-11-2024 17:33:53: ! PNP Bus 002 Device 002: Device initialization timed out
06-11-2024 17:33:53:   terminated signal received, exiting
06-11-2024 17:33:53:   ctrlsock: shutdown
06-11-2024 17:33:53:   ipp-usb finished

/var/log/ipp-usb/03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log:

06-11-2024 17:33:28:
06-11-2024 17:33:28:   ===============================
06-11-2024 17:33:28: + Bus 002 Device 002: added HP LaserJet M605
06-11-2024 17:33:28:   Device info:
06-11-2024 17:33:28:     USB Port:      4
06-11-2024 17:33:28:     Ident:         03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605
06-11-2024 17:33:28:     Manufacturer:  Hewlett-Packard
06-11-2024 17:33:28:     Product:       HP LaserJet M605
06-11-2024 17:33:28:     SerialNumber:  CNDVJCY16N
06-11-2024 17:33:28:     MfgAndProduct: Hewlett-Packard HP LaserJet M605
06-11-2024 17:33:28:     BasicCaps:     print
06-11-2024 17:33:28:
06-11-2024 17:33:28:   Device quirks:
06-11-2024 17:33:28:     from [*] (/usr/share/ipp-usb/quirks/default.conf:3):
06-11-2024 17:33:28:       http-connection = ""
06-11-2024 17:33:28:
06-11-2024 17:33:28:   USB stack parameters
06-11-2024 17:33:28:     authorized_default:          -1
06-11-2024 17:33:28:     autosuspend:                 2
06-11-2024 17:33:28:     blinkenlights:               N
06-11-2024 17:33:28:     initial_descriptor_timeout:  5000
06-11-2024 17:33:28:     nousb:                       N
06-11-2024 17:33:28:     old_scheme_first:            N
06-11-2024 17:33:28:     quirks:
06-11-2024 17:33:28:     usbfs_memory_mb:             16
06-11-2024 17:33:28:     usbfs_snoop:                 N
06-11-2024 17:33:28:     usbfs_snoop_max:             65536
06-11-2024 17:33:28:     use_both_schemes:            Y
06-11-2024 17:33:28:
06-11-2024 17:33:28:   USB interfaces:
06-11-2024 17:33:28:     Config Interface Alt Class SubClass Proto
06-11-2024 17:33:28:        1       0      0   7      1       2
06-11-2024 17:33:28: *      1       0      1   7      1       4
06-11-2024 17:33:28:        1       1      0   255    5       1
06-11-2024 17:33:28: *      1       1      1   7      1       4
06-11-2024 17:33:28:        1       2      0   255    5       1
06-11-2024 17:33:28: *      1       2      1   7      1       4
06-11-2024 17:33:28:        1       3      0   255    5       1
06-11-2024 17:33:28: *      1       3      1   7      1       4
06-11-2024 17:33:28:
06-11-2024 17:33:29:   USB[0]: open: Bus 002 Device 002 Interface 0 Alt 1
06-11-2024 17:33:29:   USB[1]: open: Bus 002 Device 002 Interface 1 Alt 1
06-11-2024 17:33:29:   USB[2]: open: Bus 002 Device 002 Interface 2 Alt 1
06-11-2024 17:33:29:   USB[3]: open: Bus 002 Device 002 Interface 3 Alt 1
06-11-2024 17:33:29: > IPP request:
06-11-2024 17:33:29: > {
06-11-2024 17:33:29: >     VERSION 2.0
06-11-2024 17:33:29: >     OPERATION Get-Printer-Attributes
06-11-2024 17:33:29: >
06-11-2024 17:33:29: >     GROUP operation-attributes-tag
06-11-2024 17:33:29: >     ATTR "attributes-charset" charset: utf-8
06-11-2024 17:33:29: >     ATTR "attributes-natural-language" naturalLanguage: en-US
06-11-2024 17:33:29: >     ATTR "printer-uri" uri: http://localhost:60000/ipp/print
06-11-2024 17:33:29: >     ATTR "requested-attributes" keyword: color-supported document-format-supported media-size-supported mopria-certified printer-device-id printer-dns-sd-name printer-icons printer-info printer-kind printer-location printer-make-and-model printer-more-info printer-uuid sides-supported urf-supported
06-11-2024 17:33:29: > }
06-11-2024 17:33:29:
06-11-2024 17:33:29: > HTTP[000]: POST http://localhost:60000/ipp/print
06-11-2024 17:33:29: > HTTP[000]: request body: got 462 bytes; closed
06-11-2024 17:33:29: > HTTP[000]: body is small (462 bytes), prefetched before sending
06-11-2024 17:33:29: > HTTP[000]: HTTP request header:
06-11-2024 17:33:29: >   POST /ipp/print HTTP/1.1
06-11-2024 17:33:29: >   Host: localhost:60000
06-11-2024 17:33:29: >   User-Agent: ipp-usb
06-11-2024 17:33:29: >   Content-Length: 462
06-11-2024 17:33:29: >   Content-Type: application/ipp
06-11-2024 17:33:29: >
06-11-2024 17:33:29:   USB[0]: connection allocated, 1 in use: a-- --- --- ---
06-11-2024 17:33:29:   HTTP[000]: connection 0 allocated
06-11-2024 17:33:29: > USB[0]: write: wanted 586 sent 586 total 586
06-11-2024 17:33:29: < USB[0]: read: wanted 4096 got 0 total 0
06-11-2024 17:33:29: ! USB[0]: zero-size read
06-11-2024 17:33:29: < USB[0]: read: wanted 4096 got 0 total 0
06-11-2024 17:33:29: ! USB[0]: zero-size read
06-11-2024 17:33:29: < USB[0]: read: wanted 4096 got 0 total 0
06-11-2024 17:33:29: ! USB[0]: zero-size read
06-11-2024 17:33:30: < USB[0]: read: wanted 4096 got 0 total 0
06-11-2024 17:33:30: ! USB[0]: zero-size read
06-11-2024 17:33:30: < USB[0]: read: wanted 4096 got 0 total 0
06-11-2024 17:33:30: ! USB[0]: zero-size read
06-11-2024 17:33:31: < USB[0]: read: wanted 4096 got 0 total 0
06-11-2024 17:33:31: ! USB[0]: zero-size read
06-11-2024 17:33:32: < USB[0]: read: wanted 4096 got 0 total 0
06-11-2024 17:33:32: ! USB[0]: zero-size read
06-11-2024 17:33:33: < USB[0]: read: wanted 4096 got 0 total 0
06-11-2024 17:33:33: ! USB[0]: zero-size read
06-11-2024 17:33:34: ! HTTP[000]: Device initialization timed out
06-11-2024 17:33:34:   USB[0]: connection released, 0 in use: --- --- --- ---
06-11-2024 17:33:34: ! IPP: HTTP: Post "http://localhost:60000/ipp/print": Device initialization timed out
06-11-2024 17:33:34: - Bus 002 Device 002: resetting HP LaserJet M605
06-11-2024 17:33:35:   USB[0]: closed
06-11-2024 17:33:35:   USB[1]: closed
06-11-2024 17:33:35:   USB[2]: closed
06-11-2024 17:33:35:   USB[3]: closed
06-11-2024 17:33:35: - Bus 002 Device 002: removed HP LaserJet M605
06-11-2024 17:33:37:

Attached:


Found ways to solve the problem:

  1. Removing the ipp-usb package from the OS before connecting the printer: # apt-get remove ipp-usb;
  2. Masking ipp-usb unit before connecting the printer: # systemctl mask ipp-usb.
@alexpevzner
Copy link
Member

Hi Ivan,

Masking ipp-usb unit before connecting the printer: # systemctl mask ipp-usb

Do you mean the following:

  1. You temporary disable ipp-usb either by removing or by masking it
  2. You connect the printer
  3. Then you enable back the ipp-usb and things begin to work?

You you disable the ipp-usb permanently and use the proprietary driver?

@qwetwe
Copy link
Author

qwetwe commented Nov 7, 2024

3. Then you enable back the ipp-usb and things begin to work?

No. Everything works fine only when the ipp-usb service is unavailable (masked).
After turning on ipp-usb back on (# systemctl unmask ipp-usb) I encounter the same problems again.

You you disable the ipp-usb permanently and use the proprietary driver?

Yes. Sorry for the missing information, here it is:

  • Driver: HP Laserjet M604 M605 M606 Postscript (recommended) (black-white)
  • Connection: usb://HP/LaserJet%20M605?serial=CNDVJCY16N
  • PPD: hp-laserjet_m604_m605_m606-ps.ppd.gz from hplip-3.24.4.

@alexpevzner
Copy link
Member

May I ask you to temporary add the following parameter into the /usr/share/ipp-usb/quirks/default.conf file:

[*]
  init-delay = 5000

And if it will not help, please play with its value in the 5000 ... 20000 range

@qwetwe
Copy link
Author

qwetwe commented Nov 7, 2024

May I ask you to temporary add the following parameter into the /usr/share/ipp-usb/quirks/default.conf file:

[*]
  init-delay = 5000

And if it will not help, please play with its value in the 5000 ... 20000 range

I tried several values (5000, 10000, 15000 and 20000), but it doesn't fix the problem. Last try with init-delay = 20000:

/var/log/ipp-usb/03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log

07-11-2024 17:50:00:   ===============================
07-11-2024 17:50:00: + Bus 002 Device 003: added HP LaserJet M605
07-11-2024 17:50:00:   Device info:
07-11-2024 17:50:00:     USB Port:      4
07-11-2024 17:50:00:     Ident:         03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605
07-11-2024 17:50:00:     Manufacturer:  Hewlett-Packard
07-11-2024 17:50:00:     Product:       HP LaserJet M605
07-11-2024 17:50:00:     SerialNumber:  CNDVJCY16N
07-11-2024 17:50:00:     MfgAndProduct: Hewlett-Packard HP LaserJet M605
07-11-2024 17:50:00:     BasicCaps:     print
07-11-2024 17:50:00:
07-11-2024 17:50:00:   Device quirks:
07-11-2024 17:50:00:     from [*] (/usr/share/ipp-usb/quirks/default.conf:3):
07-11-2024 17:50:00:       http-connection = ""
07-11-2024 17:50:00:       init-delay = 20s
07-11-2024 17:50:00:
07-11-2024 17:50:00:   USB stack parameters
07-11-2024 17:50:00:     authorized_default:          -1
07-11-2024 17:50:00:     autosuspend:                 2
07-11-2024 17:50:00:     blinkenlights:               N
07-11-2024 17:50:00:     initial_descriptor_timeout:  5000
07-11-2024 17:50:00:     nousb:                       N
07-11-2024 17:50:00:     old_scheme_first:            N
07-11-2024 17:50:00:     quirks:
07-11-2024 17:50:00:     usbfs_memory_mb:             16
07-11-2024 17:50:00:     usbfs_snoop:                 N
07-11-2024 17:50:00:     usbfs_snoop_max:             65536
07-11-2024 17:50:00:     use_both_schemes:            Y
07-11-2024 17:50:00:
07-11-2024 17:50:00:   USB interfaces:
07-11-2024 17:50:00:     Config Interface Alt Class SubClass Proto
07-11-2024 17:50:00:        1       0      0   7      1       2
07-11-2024 17:50:00: *      1       0      1   7      1       4
07-11-2024 17:50:00:        1       1      0   255    5       1
07-11-2024 17:50:00: *      1       1      1   7      1       4
07-11-2024 17:50:00:        1       2      0   255    5       1
07-11-2024 17:50:00: *      1       2      1   7      1       4
07-11-2024 17:50:00:        1       3      0   255    5       1
07-11-2024 17:50:00: *      1       3      1   7      1       4
07-11-2024 17:50:00:
07-11-2024 17:50:00:   USB[0]: open: Bus 002 Device 003 Interface 0 Alt 1
07-11-2024 17:50:00:   USB[1]: open: Bus 002 Device 003 Interface 1 Alt 1
07-11-2024 17:50:00:   USB[2]: open: Bus 002 Device 003 Interface 2 Alt 1
07-11-2024 17:50:00:   USB[3]: open: Bus 002 Device 003 Interface 3 Alt 1
07-11-2024 17:50:00: > IPP request:
07-11-2024 17:50:00: > {
07-11-2024 17:50:00: >     VERSION 2.0
07-11-2024 17:50:00: >     OPERATION Get-Printer-Attributes
07-11-2024 17:50:00: >
07-11-2024 17:50:00: >     GROUP operation-attributes-tag
07-11-2024 17:50:00: >     ATTR "attributes-charset" charset: utf-8
07-11-2024 17:50:00: >     ATTR "attributes-natural-language" naturalLanguage: en-US
07-11-2024 17:50:00: >     ATTR "printer-uri" uri: http://localhost:60000/ipp/print
07-11-2024 17:50:00: >     ATTR "requested-attributes" keyword: color-supported document-format-supported media-size-supported mopria-certified printer-device-id printer-dns-sd-name printer-icons printer-info printer-kind printer-location printer-make-and-model printer-more-info printer-uuid sides-supported urf-supported
07-11-2024 17:50:00: > }
07-11-2024 17:50:00:
07-11-2024 17:50:00: > HTTP[000]: POST http://localhost:60000/ipp/print
07-11-2024 17:50:00: > HTTP[000]: request body: got 462 bytes; closed
07-11-2024 17:50:00: > HTTP[000]: body is small (462 bytes), prefetched before sending
07-11-2024 17:50:00: > HTTP[000]: HTTP request header:
07-11-2024 17:50:00: >   POST /ipp/print HTTP/1.1
07-11-2024 17:50:00: >   Host: localhost:60000
07-11-2024 17:50:00: >   User-Agent: ipp-usb
07-11-2024 17:50:00: >   Content-Length: 462
07-11-2024 17:50:00: >   Content-Type: application/ipp
07-11-2024 17:50:00: >
07-11-2024 17:50:00:   USB[0]: connection allocated, 1 in use: a-- --- --- ---
07-11-2024 17:50:00:   HTTP[000]: connection 0 allocated
07-11-2024 17:50:00:   HTTP[000]: Pausing for 19.828585325s
07-11-2024 17:50:20: > USB[0]: write: wanted 586 sent 586 total 586
07-11-2024 17:50:20: < USB[0]: read: wanted 4096 got 0 total 0
07-11-2024 17:50:20: ! USB[0]: zero-size read
07-11-2024 17:50:20: < USB[0]: read: wanted 4096 got 82 total 82
07-11-2024 17:50:20: < HTTP[000]: POST http://localhost:60000/ipp/print - 503 Service Unavailable
07-11-2024 17:50:20: < HTTP[000]: HTTP response header:
07-11-2024 17:50:20: <   HTTP/1.1 503 Service Unavailable
07-11-2024 17:50:20: <   Retry-After: 10
07-11-2024 17:50:20: <   Server: Virata-EmWeb/R6_2_1
07-11-2024 17:50:20: <
07-11-2024 17:50:20: < HTTP[000]: client has gone; draining response from USB
07-11-2024 17:50:20: ! IPP: HTTP: 503 Service Unavailable
07-11-2024 17:50:20: > HTTP[001]: GET http://localhost:60000/eSCL/ScannerCapabilities
07-11-2024 17:50:20: > HTTP[001]: body is empty, sending as is
07-11-2024 17:50:20: > HTTP[001]: HTTP request header:
07-11-2024 17:50:20: >   GET /eSCL/ScannerCapabilities HTTP/1.1
07-11-2024 17:50:20: >   Host: localhost:60000
07-11-2024 17:50:20: >   User-Agent: ipp-usb
07-11-2024 17:50:20: >
07-11-2024 17:50:20:   USB[1]: connection allocated, 2 in use: ar- a-- --- ---
07-11-2024 17:50:20:   HTTP[001]: connection 1 allocated
07-11-2024 17:50:20: > USB[1]: write: wanted 86 sent 86 total 86
07-11-2024 17:50:20: < USB[0]: read: wanted 8192 got 0 total 82
07-11-2024 17:50:20: ! USB[0]: zero-size read
07-11-2024 17:50:20: < USB[1]: read: wanted 4096 got 0 total 0
07-11-2024 17:50:20: ! USB[1]: zero-size read
07-11-2024 17:50:20: < USB[0]: read: wanted 8192 got 0 total 82
07-11-2024 17:50:20: ! USB[0]: zero-size read
07-11-2024 17:50:20: < USB[1]: read: wanted 4096 got 82 total 82
07-11-2024 17:50:20: < HTTP[001]: GET http://localhost:60000/eSCL/ScannerCapabilities - 503 Service Unavailable
07-11-2024 17:50:20: < HTTP[001]: HTTP response header:
07-11-2024 17:50:20: <   HTTP/1.1 503 Service Unavailable
07-11-2024 17:50:20: <   Retry-After: 10
07-11-2024 17:50:20: <   Server: Virata-EmWeb/R6_2_1
07-11-2024 17:50:20: <
07-11-2024 17:50:20: < HTTP[001]: client has gone; draining response from USB
07-11-2024 17:50:20: ! ESCL: eSCL: HTTP status: 503 Service Unavailable
07-11-2024 17:50:20: - Bus 002 Device 003: resetting HP LaserJet M605
07-11-2024 17:50:21: < USB[1]: read: wanted 8192 got 0 total 82
07-11-2024 17:50:21: ! USB[1]: recv: libusb_bulk_transfer: No such device (it may have been disconnected)
07-11-2024 17:50:21:   USB[1]: connection released, 1 in use: ar- --- --- ---
07-11-2024 17:50:21: - Bus 002 Device 003: shutdown: 1 connections still in use
07-11-2024 17:50:21: - Bus 002 Device 003: shutdown: 1 connections still in use
07-11-2024 17:50:21: < USB[0]: read: wanted 8192 got 0 total 82
07-11-2024 17:50:21: ! USB[0]: zero-size read
07-11-2024 17:50:22: < USB[0]: read: wanted 8192 got 0 total 82
07-11-2024 17:50:22: ! USB[0]: zero-size read
07-11-2024 17:50:23: < USB[0]: read: wanted 8192 got 0 total 82
07-11-2024 17:50:23: ! USB[0]: zero-size read
07-11-2024 17:50:24: < USB[0]: read: wanted 8192 got 0 total 82
07-11-2024 17:50:24: ! USB[0]: zero-size read
07-11-2024 17:50:25: < USB[0]: read: wanted 8192 got 0 total 82
07-11-2024 17:50:25: ! USB[0]: zero-size read
07-11-2024 17:50:26:   USB[0]: connection released, 0 in use: --- --- --- ---
07-11-2024 17:50:26:   USB[0]: closed
07-11-2024 17:50:26:   USB[1]: closed
07-11-2024 17:50:26:   USB[2]: closed
07-11-2024 17:50:26:   USB[3]: closed
07-11-2024 17:50:26: - Bus 002 Device 003: removed HP LaserJet M605

03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log
main.log

@alexpevzner
Copy link
Member

With the 20-second delay it doesn't hung at least. Looks like device needs a plenty of time for self-initialization.

Could you please play a bit with a large delays. Say, 1-2-3 minutes (60000-120000-180000 milliseconds in the configuration).

@qwetwe
Copy link
Author

qwetwe commented Nov 8, 2024

With the 20-second delay it doesn't hung at least. Looks like device needs a plenty of time for self-initialization.

Could you please play a bit with a large delays. Say, 1-2-3 minutes (60000-120000-180000 milliseconds in the configuration).

Tried with increased delay times (60000, 120000, 180000, 360000 and also 720000), but still no luck:

03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log

08-11-2024 18:37:37: > HTTP[000]: HTTP request header:
08-11-2024 18:37:37: >   POST /ipp/print HTTP/1.1
08-11-2024 18:37:37: >   Host: localhost:60000
08-11-2024 18:37:37: >   User-Agent: ipp-usb
08-11-2024 18:37:37: >   Content-Length: 462
08-11-2024 18:37:37: >   Content-Type: application/ipp
08-11-2024 18:37:37: >
08-11-2024 18:37:37:   USB[0]: connection allocated, 1 in use: a-- --- --- ---
08-11-2024 18:37:37:   HTTP[000]: connection 0 allocated
08-11-2024 18:37:37:   HTTP[000]: Pausing for 2m59.452174932s
08-11-2024 18:40:37: > USB[0]: write: wanted 586 sent 586 total 586
08-11-2024 18:40:37: < USB[0]: read: wanted 4096 got 82 total 82
08-11-2024 18:40:37: < HTTP[000]: POST http://localhost:60000/ipp/print - 503 Service Unavailable
08-11-2024 18:40:37: < HTTP[000]: HTTP response header:
08-11-2024 18:40:37: <   HTTP/1.1 503 Service Unavailable
08-11-2024 18:40:37: <   Retry-After: 10
08-11-2024 18:40:37: <   Server: Virata-EmWeb/R6_2_1
08-11-2024 18:40:37: <
08-11-2024 18:40:37: < HTTP[000]: client has gone; draining response from USB
08-11-2024 18:40:37: ! IPP: HTTP: 503 Service Unavailable
08-11-2024 18:40:37: > HTTP[001]: GET http://localhost:60000/eSCL/ScannerCapabilities
08-11-2024 18:40:37: > HTTP[001]: body is empty, sending as is
08-11-2024 18:40:37: > HTTP[001]: HTTP request header:
08-11-2024 18:40:37: >   GET /eSCL/ScannerCapabilities HTTP/1.1
08-11-2024 18:40:37: >   Host: localhost:60000
08-11-2024 18:40:37: >   User-Agent: ipp-usb
08-11-2024 18:40:37: >
08-11-2024 18:40:37:   USB[1]: connection allocated, 2 in use: ar- a-- --- ---
08-11-2024 18:40:37:   HTTP[001]: connection 1 allocated
08-11-2024 18:40:37: > USB[1]: write: wanted 86 sent 86 total 86
08-11-2024 18:40:37: < USB[0]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:37: ! USB[0]: zero-size read
08-11-2024 18:40:37: < USB[1]: read: wanted 4096 got 82 total 82
08-11-2024 18:40:37: < HTTP[001]: GET http://localhost:60000/eSCL/ScannerCapabilities - 503 Service Unavailable
08-11-2024 18:40:37: < HTTP[001]: HTTP response header:
08-11-2024 18:40:37: <   HTTP/1.1 503 Service Unavailable
08-11-2024 18:40:37: <   Retry-After: 10
08-11-2024 18:40:37: <   Server: Virata-EmWeb/R6_2_1
08-11-2024 18:40:37: <
08-11-2024 18:40:37: < HTTP[001]: client has gone; draining response from USB
08-11-2024 18:40:37: ! ESCL: eSCL: HTTP status: 503 Service Unavailable
08-11-2024 18:40:37: - Bus 002 Device 006: resetting HP LaserJet M605
08-11-2024 18:40:38: < USB[0]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:38: ! USB[0]: zero-size read
08-11-2024 18:40:38: < USB[1]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:38: ! USB[1]: zero-size read
08-11-2024 18:40:38: - Bus 002 Device 006: shutdown: 2 connections still in use
08-11-2024 18:40:38: < USB[1]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:38: ! USB[1]: zero-size read
08-11-2024 18:40:39: < USB[0]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:39: ! USB[0]: zero-size read
08-11-2024 18:40:39: < USB[1]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:39: ! USB[1]: zero-size read
08-11-2024 18:40:39: < USB[0]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:39: ! USB[0]: zero-size read
08-11-2024 18:40:39: < USB[1]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:39: ! USB[1]: zero-size read
08-11-2024 18:40:40: < USB[0]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:40: ! USB[0]: zero-size read
08-11-2024 18:40:40: < USB[1]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:40: ! USB[1]: zero-size read
08-11-2024 18:40:41: < USB[0]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:41: ! USB[0]: zero-size read
08-11-2024 18:40:41: < USB[1]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:41: ! USB[1]: zero-size read
08-11-2024 18:40:42: < USB[0]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:42: ! USB[0]: zero-size read
08-11-2024 18:40:42: < USB[1]: read: wanted 8192 got 0 total 82
08-11-2024 18:40:42: ! USB[1]: zero-size read
08-11-2024 18:40:43:   USB[0]: connection released, 1 in use: --- ar- --- ---
08-11-2024 18:40:43: - Bus 002 Device 006: shutdown: 1 connections still in use
08-11-2024 18:40:43:   USB[1]: connection released, 0 in use: --- --- --- ---
08-11-2024 18:40:43:   USB[0]: closed
08-11-2024 18:40:43:   USB[1]: closed
08-11-2024 18:40:43:   USB[2]: closed
08-11-2024 18:40:43:   USB[3]: closed
08-11-2024 18:40:43: - Bus 002 Device 006: removed HP LaserJet M605

main.log
03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log

@alexpevzner
Copy link
Member

Hi!

I want to ask you to play a bit with the init-reset = soft | hard parameter. init-delay should be 20000 while you playing with the init-reset.

@qwetwe
Copy link
Author

qwetwe commented Nov 13, 2024

Hi!

I want to ask you to play a bit with the init-reset = soft | hard parameter. init-delay should be 20000 while you playing with the init-reset.

Hello :)

Thanks for the suggestions that could fix the error. Unfortunately, this did not happen.
The printer behavior has not changed after adding the init-reset = soft or init-reset = hard parameter with a delay time of 20000ms. I am attaching logs taken when using different values of the init-reset parameter.

soft-main.log
soft-03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log
hard-main.log
hard-03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log

@alexpevzner
Copy link
Member

BTW, I've heard about the printer (probably from HP, but I'm not sure) which has non-working IPP over USB interface, if the network interface of the printer is not enabled.

Is your printer connected to the network? If not, can you try to connect?

@qwetwe
Copy link
Author

qwetwe commented Nov 14, 2024

BTW, I've heard about the printer (probably from HP, but I'm not sure) which has non-working IPP over USB interface, if the network interface of the printer is not enabled.

Is your printer connected to the network? If not, can you try to connect?

The printer was not connected to the network, but is now connected and has received an IP.
But again, when trying to print via USB, the printer's behavior has not changed.

@qwetwe
Copy link
Author

qwetwe commented Nov 14, 2024

Is your printer connected to the network? If not, can you try to connect?

The printer was not connected to the network, but is now connected and has received an IP. But again, when trying to print via USB, the printer's behavior has not changed.

Logs:
soft-with-network-main.log
soft-with-network-03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log
hard-with-network-main.log
hard-with-network-03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log

@qwetwe
Copy link
Author

qwetwe commented Nov 15, 2024

After adding the printer to the blacklist (/usr/share/ipp-usb/quirks/blacklist.conf), it starts working correctly, as when we mask the ipp-usb.service:
...
[Hewlett-Packard HP LaserJet M605]
blacklist = true

blacklist_main.log
blacklist_03f0-3e2a-CNDVJCY16N-Hewlett-Packard-HP-LaserJet-M605.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants