Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter failed #2

Open
zhidkovnick opened this issue Jul 10, 2023 · 5 comments
Open

Filter failed #2

zhidkovnick opened this issue Jul 10, 2023 · 5 comments

Comments

@zhidkovnick
Copy link

zhidkovnick commented Jul 10, 2023

I have a TSC TDP-225 printer. I tried using your filter. It throws an error. I think this is due to the fact that I have aarch64 and CUPS 2.3.3op2

Recompile please under this system. Thank you. I will be very grateful

@f-o-n
Copy link

f-o-n commented Sep 7, 2023

I was facing the same issue with my Polono PL60 and a Raspberry Pi 4B. Here the steps how to get it working:

git clone https://github.com/OpenPrinting/cups/
and
Replace cups/filter/rastertolabel.c with the modified one by Proski/thorrak

or just

git clone -b 2.2.10_beeprt https://github.com/thorrak/cups/

My Polono PL60's color was inverted so I had to change line #1024 from

if (Buffer[i ++] >= 200) /* arbitrary threshold */
to
if (Buffer[i ++] <= 200) /* arbitrary threshold */

Follow the make instructions to compile everything

Or download raster-tspl-aarch64.zip containing one I compiled

Copy the newly compiled rastertolabel as raster-tspl
sudo cp cup/filter/rastertolabel /usr/lib/cups/filter/raster-tspl

Make sure the ownership/permissions are right

sudo chmod +x /usr/lib/cups/filter/raster-tspl
sudo chmod 755 /usr/lib/cups/filter/raster-tspl
sudo chown root:root /usr/lib/cups/filter/raster-tspl

Get the the old ppd for your printer or the generic one I attached above, which I got from the Rollo driver (which worked nicely with my Polono)

  • Change cupsModelNumber to 20
  • Change cupsFilter to application/vnd.cups-raster 0 raster-tspl

Restart cups
sudo systemctl restart cups

When adding the printer via http://localhost:631/ and attach the new ppd file

@zhidkovnick
Copy link
Author

Thank you. Your instructions were very helpful and I was able to set up the printer on Ruspbery Pi.

@hank
Copy link
Contributor

hank commented Dec 28, 2023

I wish I would have found this sooner. I just recreated all the steps above! I'll be submitting a pull request with the new aarch64 raster-tspl so less people have to go through all this.

@michael100k
Copy link

literally signed up to thank you. spent 2 days with no luck. awesome post. thanks

@makors
Copy link

makors commented Nov 17, 2024

@f-o-n I have spent 3 hours trying to get this working (the hackaday instructions were horrible). THANK YOU!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants