Skip to content

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

@qwetwe

Description

@qwetwe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions