You are not logged in.

#1 2025-08-18 15:29:38

Player_X_YT
Member
Registered: 2023-09-26
Posts: 12

[Solved] HP prints are screwed up

When printing double sided (any edge flip) the print on the back is always corrupted. This does not happen on a windows 10 partition.

Driver: HPLIP (hpcups)
Printer: LaserJet Tank 250x
Kernel: 6.16.1.arch1-1 (latest)

I've tried printing from firefox, chromium, okular, and the HPLIP GUI, same problem every time. Printing single sided works fine but CUPS can't do double sided and HPCUPS fails.

https://i.redd.it/lvjjqdxe1acf1.jpeg

Mod note: Replaced oversized image with link

Last edited by Player_X_YT (2025-10-08 02:16:13)

Offline

#2 2025-08-18 19:55:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,165

Re: [Solved] HP prints are screwed up

Looks like the printer supports https://wiki.archlinux.org/title/CUPS#A … Everywhere ?
In that case, does it also produce this?

Edit: please also replace the oversized image w/ a link and/or thumbnail (to keep everyones mousewheels cool)

Last edited by seth (2025-08-18 19:56:02)

Offline

#3 2025-08-19 11:39:24

Player_X_YT
Member
Registered: 2023-09-26
Posts: 12

Re: [Solved] HP prints are screwed up

seth wrote:

Looks like the printer supports https://wiki.archlinux.org/title/CUPS#A … Everywhere ?
In that case, does it also produce this?

Edit: please also replace the oversized image w/ a link and/or thumbnail (to keep everyones mousewheels cool)

Sorry idk how to use BBCode.

As I said, using the default CUPS has flip greyed out.

https://i.imgur.com/8gSIYgV.png

Offline

#4 2025-08-19 13:48:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,165

Re: [Solved] HP prints are screwed up

lpstat -s

Can you (on the IPPe printer)

lp -o --sides=two-sided-long-edge file.pdf

You might have to specify the destination and should™ be able to default that

lpoptions -p HP_LaserJet… -o sides=two-sided-long-edge

If the prints via IPPe come out fine but the various print GUIs don't pick up on this, you could add multiple printers (3: no duplex, long edge, short edge) for this.

"Driver: HPLIP (hpcups)" is https://archlinux.org/packages/extra/x86_64/hplip/ ?
Do you have https://aur.archlinux.org/packages/hplip-plugin ?
Can you print proper duplex w/ hp-toolbox or from the cups web interface ( https://localhost:631/ ) ?

Offline

#5 2025-08-22 23:13:18

Player_X_YT
Member
Registered: 2023-09-26
Posts: 12

Re: [Solved] HP prints are screwed up

seth wrote:
lpstat -s

Can you (on the IPPe printer)

lp -o --sides=two-sided-long-edge file.pdf

You might have to specify the destination and should™ be able to default that

lpoptions -p HP_LaserJet… -o sides=two-sided-long-edge

If the prints via IPPe come out fine but the various print GUIs don't pick up on this, you could add multiple printers (3: no duplex, long edge, short edge) for this.

"Driver: HPLIP (hpcups)" is https://archlinux.org/packages/extra/x86_64/hplip/ ?
Do you have https://aur.archlinux.org/packages/hplip-plugin ?
Can you print proper duplex w/ hp-toolbox or from the cups web interface ( https://localhost:631/ ) ?

lp -o --sides=two-sided-long-edge file.pdf

Doesn't work in the same way

lpstat -s

Can't find the right printer like okular does

That is the hplip driver I have
Using hplip-plugin and printing from hp-toolbox doesn't seem to help. I'd be surprised as hplip-plugin isn't required for my printer

Offline

#6 2025-08-22 23:15:23

Player_X_YT
Member
Registered: 2023-09-26
Posts: 12

Re: [Solved] HP prints are screwed up

When I run

hp-doctor

I get

Checking for Configured Queues....
Traceback (most recent call last):
  File "/usr/bin/hp-doctor", line 328, in <module>
    queues.main_function(dep.core.passwordObj, MODE,ui_toolkit, False, DEVICE_URI)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/base/queues.py", line 338, in main_function
    mapofDevices,status = parseQueues(mode)
                          ~~~~~~~~~~~^^^^^^
  File "/usr/share/hplip/base/queues.py", line 115, in parseQueues
    if device_uri.startswith("cups-pdf:/"):
       ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'

Not sure what python is searching for here, but it doesn't like it...

Offline

#7 2025-08-23 06:30:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,165

Re: [Solved] HP prints are screwed up

Can't find the right printer like okular does

You didn't add the IPPe printer in eg. https://localhost:631/ then?

Edit: Also please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Post the actual lpstat command and I assume you didn't select the IPPe printer when it

Doesn't work in the same way

either (since it doesn't show up in lptstat)?

Last edited by seth (2025-08-23 06:32:44)

Offline

#8 2025-09-04 15:01:30

Player_X_YT
Member
Registered: 2023-09-26
Posts: 12

Re: [Solved] HP prints are screwed up

CUPS includes support for AirPrint and IPP Everywhere printers. These should be discovered automatically if avahi-daemon.service is running without any extra configuration.

[playerxyt@playerspc ~]$ systemctl status avahi-daemon.service
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
     Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; preset: disabled)
     Active: active (running) since Thu 2025-09-04 09:27:33 EDT; 1h 31min ago
 Invocation: 18361144230840e39d1dc62e9a77d916
TriggeredBy: ● avahi-daemon.socket
   Main PID: 647 (avahi-daemon)
     Status: "avahi-daemon 0.8 starting up."
      Tasks: 2 (limit: 38244)
     Memory: 1.6M (peak: 2.5M)
        CPU: 81ms
     CGroup: /system.slice/avahi-daemon.service
             ├─647 "avahi-daemon: running [playerspc.local]"
             └─659 "avahi-daemon: chroot helper"

Sep 04 09:27:33 playerspc avahi-daemon[647]: Network interface enumeration completed.
Sep 04 09:27:33 playerspc avahi-daemon[647]: Registering new address record for ::1 on lo.*.
Sep 04 09:27:33 playerspc avahi-daemon[647]: Registering new address record for 127.0.0.1 on lo.IPv4.
Sep 04 09:27:34 playerspc avahi-daemon[647]: Server startup complete. Host name is playerspc.local. Local service cookie is 1375984597.
Sep 04 09:27:37 playerspc avahi-daemon[647]: Joining mDNS multicast group on interface wlp9s0.IPv6 with address fe80::5930:8861:41f8:6f2.
Sep 04 09:27:37 playerspc avahi-daemon[647]: New relevant interface wlp9s0.IPv6 for mDNS.
Sep 04 09:27:37 playerspc avahi-daemon[647]: Registering new address record for fe80::5930:8861:41f8:6f2 on wlp9s0.*.
Sep 04 09:27:38 playerspc avahi-daemon[647]: Joining mDNS multicast group on interface wlp9s0.IPv4 with address 192.168.2.109.
Sep 04 09:27:38 playerspc avahi-daemon[647]: New relevant interface wlp9s0.IPv4 for mDNS.
Sep 04 09:27:38 playerspc avahi-daemon[647]: Registering new address record for 192.168.2.109 on wlp9s0.IPv4.
seth wrote:

Post the actual lpstat command and I assume you didn't select the IPPe printer when it

[playerxyt@playerspc ~]$ lpstat -e
HP_LaserJet_Tank_2504dw_423A9C
HP_LaserJet_Tank_250x

The first HP_LaserJet_Tank_2504dw_423A9C doesn't have double sided printing, while the second HP_LaserJet_Tank_250x doesn't work as I've described

Offline

#9 2025-09-04 15:08:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,165

Re: [Solved] HP prints are screwed up

seth wrote:

lpstat -s

Offline

#10 2025-09-04 18:12:21

Player_X_YT
Member
Registered: 2023-09-26
Posts: 12

Re: [Solved] HP prints are screwed up

seth wrote:
seth wrote:

lpstat -s

MB

[playerxyt@playerspc ~]$ lpstat -s
system default destination: HP_LaserJet_Tank_250x
device for HP_LaserJet_Tank_250x: hp:/net/HP_LaserJet_Tank_250x?ip=192.168.2.173

Offline

#11 2025-09-04 18:43:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,165

Re: [Solved] HP prints are screwed up

Three's no IPPe printer configured, you can try whether

lp -d HP_LaserJet_Tank_2504dw_423A9C -o --sides=two-sided-long-edge file.pdf

works but I'd recommend to actually and explicitly add the IPPe printer in https://localhost:631/ so you can pint that option as default (resp. create multiple printers w/ the same destination and different sides options (LP_2540dw_single, LP_2540dw_duplex_long, LP_2540dw_duplex_short) to avoid limitations of the GUI print dialogs.

Offline

#12 2025-09-19 22:23:21

Player_X_YT
Member
Registered: 2023-09-26
Posts: 12

Re: [Solved] HP prints are screwed up

I uninstalled hplip and removed the printer https://askubuntu.com/a/1427943. Then I used the KDE settings GUI and this guide to set up the printer with IPPe. It works properly now. Thank you for your help!

Offline

#13 2025-09-20 07:13:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,165

Re: [Solved] HP prints are screwed up

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB