NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.96k stars 13.33k forks source link

Cups / cups-browsed is not working with Brother printers #292819

Open mbaechler opened 5 months ago

mbaechler commented 5 months ago

Describe the bug

I have a brother printer using wifi and a few NixOS computers. With this setup, I can usually print something right after I boot the computer but then I get this error:

"No destination host name supplied by cups-browsed for printer "Brother_HL_L3270CDW_series@BRWAC50DED7F480.local", is cups-browsed running?"

This is documented and fixed by https://github.com/OpenPrinting/cups-browsed/commit/57d9351ea45f47b3bd185f263b1e37d276cf17b8 However, there's no release of cups-browsed including this fix for now, so it probably requires to include this fix as a patch of the nix package.

Steps To Reproduce

Steps to reproduce the behavior:

  1. boot computer
  2. print a document
  3. print another document

Expected behavior

I would like the document to be sent to the printer

Notify maintainers

@matthewbauer

Metadata

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

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.7.5, NixOS, 23.11 (Tapir), 23.11.4575.526d051b128b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - 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.

jdreaver commented 5 months ago

@mbaechler I found a workaround: restart cups-browsed:

systemctl restart cups-browsed.service

I see a duplicate printer device now, but I was able to print from it:

Screenshot from 2024-03-18 09-21-35