I have a Brother laser printer DCP-1612W and when I print some PDFs with images the job is flagged as completed even if nothing was printed (but the printer makes some noise). Printing the same from Ubuntu works fine.
In cups log I cannot find anything useful.
My print config:
{ config, pkgs, users, lib, ... }:
let
ip = "192.168.1.4";
model = "DCP-1612W";
in
{
services.printing.enable = true;
programs.system-config-printer.enable = true;
hardware.sane.enable = true;
services.avahi = {
enable = true;
nssmdns = true;
openFirewall = true;
};
services.printing.drivers = with pkgs; [
brlaser
];
hardware.printers = {
ensureDefaultPrinter = "Brother";
ensurePrinters = [{
name = "Brother";
location = "cjase";
description = "Brother ${model}";
deviceUri = "ipp://${ip}/ipp";
model = "drv:///brlaser.drv/br1600.ppd";
ppdOptions = {
PageSize = "A4";
};
}];
};
hardware.sane.brscan4 = {
enable = true;
netDevices = {
cjase = { inherit model ip; };
};
};
}
journalctl --follow --unit=cups
Dec 06 21:24:31 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:31 PereBook cupsd[177160]: [Job 95] Adding start banner page "none".
Dec 06 21:24:31 PereBook cupsd[177160]: [Job 95] Queued on "Brother" by "dpd-".
Dec 06 21:24:31 PereBook cupsd[177160]: REQUEST localhost - - "POST /printers/Brother HTTP/1.1" 200 567 Create-Job successful-ok
Dec 06 21:24:31 PereBook cupsd[177160]: [Job 95] File of type application/postscript queued by "dpd-".
Dec 06 21:24:31 PereBook cupsd[177160]: [Job 95] Adding end banner page "none".
Dec 06 21:24:31 PereBook cupsd[177160]: [Job 95] Started filter /nix/store/0ynxwkwr0vc021y1v0kljjdzp10vgd67-cups-progs/lib/cups/filter/gstopdf (PID 178823)
Dec 06 21:24:31 PereBook cupsd[177160]: [Job 95] Started filter /nix/store/0ynxwkwr0vc021y1v0kljjdzp10vgd67-cups-progs/lib/cups/filter/pdftopdf (PID 178824)
Dec 06 21:24:31 PereBook cupsd[177160]: [Job 95] Started filter /nix/store/0ynxwkwr0vc021y1v0kljjdzp10vgd67-cups-progs/lib/cups/filter/gstoraster (PID 178825)
Dec 06 21:24:31 PereBook cupsd[177160]: [Job 95] Started filter /nix/store/0ynxwkwr0vc021y1v0kljjdzp10vgd67-cups-progs/lib/cups/filter/rastertobrlaser (PID 178826)
Dec 06 21:24:31 PereBook cupsd[177160]: [Job 95] Started backend /nix/store/0ynxwkwr0vc021y1v0kljjdzp10vgd67-cups-progs/lib/cups/backend/ipp (PID 178827)
Dec 06 21:24:31 PereBook cupsd[177160]: REQUEST localhost - - "POST /printers/Brother HTTP/1.1" 200 3542310 Send-Document successful-ok
Dec 06 21:24:32 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:33 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:34 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:35 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:36 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:37 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:38 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:39 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:40 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:41 PereBook cupsd[177160]: Expiring subscriptions...
Dec 06 21:24:41 PereBook cupsd[177160]: Brother dpd- 95 [06/Dec/2023:21:24:41 +0100] total 1 1 localhost 2023.pdf A4 one-sided
Dec 06 21:24:41 PereBook cupsd[177160]: [Job 95] Job completed.
Dec 06 21:24:41 PereBook cupsd[177160]: Expiring subscriptions...