Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#87 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go

Research direction

Start by reproducing the HP LaserJet M605 failure with ipp-usb 0.9.27, using the Web CUPS or KDE printer setup and the default /etc/ipp-usb.conf. Read /var/log/ipp-usb/main.log and the device-specific log for the initialization timeout and zero-size reads; done means test printing, printer-panel reports, and subsequent jobs work without restarting the printer.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Go
Stars
210
Forks
33
Avg merge
5h 47m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenPrinting/ipp-usb

All issues in OpenPrinting/ipp-usb

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.