@arthsmn thanks for your questions and suggestions.
I am going to see if I can get the printer working by using a previous version of hplipWithPlugin. I think it was updating the system that might have caused the printer to stop working.
@arthsmn thanks for your questions and suggestions.
I am going to see if I can get the printer working by using a previous version of hplipWithPlugin. I think it was updating the system that might have caused the printer to stop working.
Did you ever get this to work?
I had a similar problem with the same printer. It worked perfectly on first setup. Even without updating it just stopped working. Ever since then I can’t get CUPS or HP Setup to recognize the printer. I’ve deleted all of CUPS data in var. I’ve tried current and stable nixos hplipwithplugins. I’ve unplugged the printer. It shows up in lsusb, but CUPS and HP Setup can’t see it.
I hooked the printer to a windows laptop and confirmed it’s working fine.
❯ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
...
Bus 005 Device 010: ID 03f0:4117 HP, Inc LaserJet 1018
❯ sudo hp-setup -g -i --auto 005:010
/nix/store/vg5d9wjnkjlknwd1311wbl3cxzfwif0l-hplip-3.25.2/share/hplip/setup.py:83: SyntaxWarning: invalid escape sequence '\*'
("To specify the port on a multi-port JetDirect:", "--port=<port> (Valid values are 1\*, 2, and 3. \*default)", "option", False),
/nix/store/vg5d9wjnkjlknwd1311wbl3cxzfwif0l-hplip-3.25.2/share/hplip/setup.py:87: SyntaxWarning: invalid escape sequence '\*'
("Type of queue(s) to install:", "-t<typelist> or --type=<typelist>. <typelist>: print*, fax\* (\*default) (-i mode only)", "option", False),
HP Linux Imaging and Printing System (ver. 3.25.2)
Printer/Fax Setup Utility ver. 9.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-setup[35504]: debug: param=005:010
hp-setup[35504]: debug: selected_device_name=None
--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------
Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
Enter number 0...1 for connection type (q=quit, enter=usb*) ?
Using connection type: usb
hp-setup[35504]: debug:
DEVICE CHOOSER setup_fax=True, setup_print=True
hp-setup[35504]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-setup[35504]: debug: Mode=0
error: No device selected/specified or that supports this functionality.
~ took 59s
Jul 06 14:31:05 turing kernel: usb 1-4: new high-speed USB device number 9 using xhci_hcd
Jul 06 14:31:05 turing kernel: usb 1-4: New USB device found, idVendor=03f0, idProduct=4117, bcdDevice= 1.00
Jul 06 14:31:05 turing kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 06 14:31:05 turing kernel: usb 1-4: Product: HP LaserJet 1018
Jul 06 14:31:05 turing kernel: usb 1-4: Manufacturer: Hewlett-Packard
Jul 06 14:31:05 turing kernel: usb 1-4: SerialNumber: KP16SWZ
Jul 06 14:31:05 turing root[3337]: loading HP Device 001 009
Jul 06 14:31:05 turing python[3338]: io/hpmud/musb.c 2187: [3338] hpmud_make_usb_uri() bus=001 dev=009
Jul 06 14:31:05 turing python[3338]: io/hpmud/musb.c 2284: hpmud_make_usb_uri() uri=hp:/usb/HP_LaserJet_1018?serial=KP16SWZ bytes_read=39
Jul 06 14:31:05 turing python[3342]: io/hpmud/musb.c 2187: [3342] hpmud_make_usb_uri() bus=001 dev=009
Jul 06 14:31:05 turing python[3342]: io/hpmud/musb.c 2284: hpmud_make_usb_uri() uri=hp:/usb/HP_LaserJet_1018?serial=KP16SWZ bytes_read=39
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 428: Found interface conf=0, iface=0, altset=0, index=1
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 390: Active kernel driver on interface=0 ret=0
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 536: claimed 7/1/2 interface
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 781: read actual device_id successfully fd=1 len=82
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 562: released 7/1/2 interface
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 428: Found interface conf=0, iface=0, altset=0, index=1
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 390: Active kernel driver on interface=0 ret=0
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 536: claimed 7/1/2 interface
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 781: read actual device_id successfully fd=1 len=82
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 562: released 7/1/2 interface
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 428: Found interface conf=0, iface=0, altset=0, index=1
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 390: Active kernel driver on interface=0 ret=0
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 536: claimed 7/1/2 interface
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 781: read actual device_id successfully fd=1 len=82
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 562: released 7/1/2 interface
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 428: Found interface conf=0, iface=0, altset=0, index=1
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 390: Active kernel driver on interface=0 ret=0
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 536: claimed 7/1/2 interface
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 781: read actual device_id successfully fd=1 len=82
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 562: released 7/1/2 interface
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 961: new PRINT channel=2 clientCnt=1 channelCnt=1
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 428: Found interface conf=0, iface=0, altset=0, index=1
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 390: Active kernel driver on interface=0 ret=0
Jul 06 14:31:08 turing python[3342]: io/hpmud/musb.c 536: claimed 7/1/2 interface
Jul 06 14:31:09 turing python[3342]: io/hpmud/musb.c 562: released 7/1/2 interface
Jul 06 14:31:09 turing python[3342]: io/hpmud/musb.c 976: removed PRINT channel=2 clientCnt=0 channelCnt=0
Jul 06 14:31:09 turing config_usb_printer.py[3338]: hp-config_usb_printer[3338]: warning: Failed to download firmware to hp:/usb/HP_LaserJet_1018?serial=KP16SWZ device
Jul 06 14:31:09 turing systemd[1887]: Reached target Printer.
Jul 06 14:31:09 turing systemd[1]: Reached target Printer Support.
Jul 06 14:31:09 turing systemd[1]: Started Configure Plugged-In Printer.
Jul 06 14:31:09 turing udev-configure-printer[3362]: add usb-001-009
Jul 06 14:31:09 turing udev-configure-printer[3362]: device devpath is /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-4
Jul 06 14:31:09 turing udev-configure-printer[3362]: Device vendor/product is 03F0:4117
Jul 06 14:31:15 turing udev-configure-printer[3362]: Failed to fetch Device ID
Jul 06 14:31:15 turing systemd[1]: configure-printer@usb-001-009.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 14:31:15 turing systemd[1]: configure-printer@usb-001-009.service: Failed with result 'exit-code'.
I created a Ubuntu 24.04 VM and passed through my USB controller. I am able to print to my LaserJet 1018 in Ubuntu out of the box so it is a NixOS issue.