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.
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