Printing: Difference between revisions

imported>Ahoneybun
ipp-usb is no longer exists per 22.11
imported>Milahu
add section: Debugging a broken printer driver
Line 238: Line 238:
'''Solution'''<br />
'''Solution'''<br />
Go into the  <code>gnome-control-center printers</code> settings, remove the printer and recreate it.
Go into the  <code>gnome-control-center printers</code> settings, remove the printer and recreate it.
=== Debugging a broken printer driver ===
Add to <code>/etc/nixos/configuration.nix</code>
<syntaxhighlight lang="nix">
services.printing.logLevel = "debug";
</syntaxhighlight>
Rebuild
<pre>
sudo nixos-rebuild switch
</pre>
Watch the cups logs
<pre>
journalctl --follow --unit=cups
# or
journalctl --follow --unit=cups | grep -C10 --color=always -i -e 'No such file or directory' -e 'error:'
</pre>
Start a print job
Now watch the cups logs for errors like <code>No such file or directory</code>