NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.64k stars 13.79k forks source link

CUPS driver cups-brother-hll2350dw produces output with extra margin added #309397

Open jasom opened 5 months ago

jasom commented 5 months ago

Describe the bug

On a Brother HL-L2350DW printer, using the cups-brother-hll2350dw driver adds an extra margin. The exact same driver version on Ubuntu (which was installed manually from the same .deb as nixpkgs uses).

See below picture of a print made from an Ubuntu VM, and from NixOS

Steps To Reproduce

Steps to reproduce the behavior:

  1. Printer configured with model = "brother-HLL2350DW-cups-en.ppd";
  2. Print CUPS test-page
  3. Observe page printed with approximately 22mm top margin and 7.5mm left margin; bottom and right margin lines are not visible as they appear to be shifted completely off of the page

Expected behavior

Page will print with all margin lines visible

Screenshots

IMG_20240505_153758_486

Additional context

Notify maintainers

@sternenseemann

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

aidenn@mutsumi ~ $ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.65, NixOS, 23.11 (Tapir), 23.11.20231205.a804fc8`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(aidenn): `""`
 - channels(root): `"nixos-23.11, nixos-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

sternenseemann commented 5 months ago

I had the problem that it really likes to default to Letter instead of A4 (even ignoring defaults set in cups), maybe that's the case here?

In any case, the driver is very unreliable, e.g. double sided printing has never worked for me. I've been meaning to debug the driver further, but never got around to it.