SULDR Forums Supported Printers Printing Questions Scanning Questions General Questions Samsung Installer

Howto enable SULD drivers on rasberrypi

Started by ellepdesk, July 02, 2021, 04:03:56

Previous topic - Next topic

chivi

Thank you @ellepdesk for amazing solution of problem and @dan for sharing step-by-step guide.
I can say, for those people, for whom splix driver is not going to work (like for me), this guide might become a magic pill. I have Xerox Phaser 3260 printer, and for 2-sided printing support I had to use rastertospl cupsFilter, that splix does not provide at least in arm64 debian package. Likely there is a possibility to tweak Xerox/Samsung PPD file and use pstoqpdl/rastertoqpdl filters shipped with splix, but I don't understand this stuff, so I had to use PPD imposed SPL driver.

What I can add to the previous comment of @dan is only a suggestion to include all arch labels for each distribution into a single line under sources.list - thus you can avoid APT warnings about duplicated sources. Like this (example):

deb [arch=arm64,amd64] https://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb [arch=arm64,amd64] https://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
deb [arch=arm64,amd64] https://deb.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb [arch=arm64,amd64] https://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware
deb [arch=amd64] https://www.bchemnet.com/suldr/ debian extra

But that's it. Everything else just works!

bchemnet

A driver that nominally works for arm64 is now avialable for experimenting through the repository, but it is untested.

chivi

To my regret arm64 cups filter from 1.00.39hp driver release does not work with Xerox_Phaser_3260:

root@dietvm:/tmp/uld# ./install-printer.sh
**** Running install ...
**** Press 'Enter' to continue or 'q' and then 'Enter' to quit. :
...

**** Do you agree ? [y/n] : y
**** Are you going to use network devices ? If yes, it is recommended to configure your firewall.
**** If you want to configure firewall automatically, enter 'y' or just press 'Enter'. To skip, enter 'n'. : n
**** Registering CUPS backend ...
**** CUPS restart OK.
**** Print driver has been installed successfully.
**** Install finished.

But:
==> /var/log/cups/access_log <==
192.168.1.3 - - [12/May/2024:14:19:06 +0200] "POST /printers/Xerox_Phaser_3260 HTTP/1.1" 200 491 Validate-Job successful-ok
192.168.1.3 - - [12/May/2024:14:19:06 +0200] "POST /printers/Xerox_Phaser_3260 HTTP/1.1" 200 1732960 Print-Job successful-ok

==> /var/log/cups/error_log <==
E [12/May/2024:14:19:08 +0200] [Job 1] Unable to open raster stream - : Broken pipe

In the list of active CUPS jobs waiting for processing I observe this state:
Quoteprocessing since Sun May 12 14:19:07 2024 "Filter failed"

For me amd64 userland QEMU emulation remains the only working solution.

ValdikSS

For anyone interested, the latest git master of SpliX should now support essentially all Samsung, Xerox and HP SPL models.
https://github.com/OpenPrinting/splix/

Scanning via open-source xerox_mfp driver in SANE should also be supported, although you'll likely need to add your printer's USB VID/PID to /etc/sane.d/xerox_mfp.conf if it's not detected automatically.

ellepdesk

Follow-up after five years: my Xpress C410W now prints on ARM without emulation and without any Samsung binaries.

Emulating the amd64 driver kept working, but it needs matching amd64 sources and ~200 MB of amd64 libraries. foo2qpdl from foo2zjs drives these printers natively (as a CLP-365, -z3), but its colours never looked like Samsung's. So I worked out how Samsung's driver does its colour conversion and screening, and wrote an open filter that sits in front of foo2qpdl:

https://github.com/ellepdesk/c410scms

  • Colour conversion and 2-bit screening are bit-identical to Samsung's rastertospl at Best quality with trapping and edge enhancement off (checked pixel by pixel against decoded SPL output).
  • Trapping and edge enhancement (both on by default, as in Samsung's driver) are approximations measured from Samsung's output, not exact.
  • Plain C, runs anywhere foo2zjs runs: no qemu, no amd64 sources.
  • It contains no Samsung code or data. It reads C410sc.cts from SULDR's suld-ppd-4 package, which you download yourself; the README has the commands.
  • PPDs for the C410, CLP-360/365 and C420. Samsung's current driver uses byte-identical colour files for all three, but I have only tested a C410W. Reports from CLP-360/365 and C420 owners are very welcome.
  • verify/run builds a local Docker image that downloads Samsung's driver from SULDR and compares its output with the filter's, so you can check the claim yourself.
  • Found along the way: stock foo2qpdl (-z2/-z3) can print a black bar at the bottom of A4 pages. Patch sent to Debian: https://bugs.debian.org/1152408 (this filter's wrapper already works around it).
A note on CUPS 3: SpliX, recommended above for most Samsung models, does not cover these QPDL colour models (C410, CLP-36x, C420), so for them foo2qpdl is the open route. This filter still plugs into foo2qpdl's PPD wrapper.

The CLP-620, CLP-320, CLX-3180 and CLX-6220 colour files use the same container with a different screen format; those look feasible with a new decoder if anyone wants to help test.

Thanks again for keeping SULDR going; without the archived packages this would not have been possible.

Repository Information Legal Contact Alternative Drivers