You are not logged in.

#1 2018-12-26 11:07:50

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

[Solved] Hit by the n² copies CUPS bug

Hello community,

I am hit by the following bug: https://unix.stackexchange.com/question … ant/310046 In short: My printer, the Brother HL-L2300D prints n² copies when n copies have been passed as argument.

The setup is somewhat complex. I have a Raspberry Pi running Raspbian which functions as a print server. On Raspbian the printer is added as "Raw", that is, without a driver. Also, I have several client machines, one of them running Arch Linux, another one running Manjaro Linux. The clients have the printer configured to use the official Brother driver, installed through the AUR package https://aur.archlinux.org/packages/brother-hll2300d/

I have the following observations when running

lp -d HL-L2300D_Simplex -n 2 ~/testfile.pdf

On the Raspberry Pi no copies are printed - which makes sense, since the printer is not configured with any driver there.

On the Manjaro client 4 copies are printed, as described in the Stackexchange report.

On the Arch Linux client for some reason 9 copies are printed, so it looks like (n+1)². However, if I choose to print one copy, one copy is printed. I could figure out the n dependence by more experiments but don't want to waste paper if it doesn't help solve the problem. smile

I tried to follow the advice described in the top answer at Stackexchange, that is, modifying the CUPSOPTION variable in the CUPS filter file, but cannot find such a variable there. Here is, how the filter file looks like: https://pastebin.com/1gf1jdC9

By the way, if I connect the printer to the Arch client via USB directly and choose the very same driver, for some reason it cuts off the printing area (didn't check the number of copies thing though, I can do it if necessary).

Thanks for any input and merry Christmas everybody!
Photon

Last edited by PhotonX (2018-12-27 14:54:12)


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#2 2018-12-26 17:16:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Hit by the n² copies CUPS bug

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-12-27 14:53:42

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Re: [Solved] Hit by the n² copies CUPS bug

Turned out that in the mean time Brother release an ARM driver for their printers so I could install it directly on the Raspi and in this setup the n² bug is gone.


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

Board footer

Powered by FluxBB