-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi.
The backend script expects 5 or 6 arguments, but the cups printing on OS X appears to pass a lot more:
26 77165 76719 0 11:07AM ?? 0:00.02 /bin/bash /usr/libexec/cups/backend/remarkable 9 thorbenj testprint 1 AP_ColorMatchingMode=AP_ApplicationColorMatching AP_D_InputSlot= nocollate com.apple.print.DocumentTicket.PMSpoolFormat=application/pdf com.apple.print.JobInfo.PMJobName=testprint com.apple.print.PrinterInfo.PMColorDeviceID..n.=5688 com.apple.print.PrintSettings.PMCopies..n.=1 com.apple.print.PrintSettings.PMCopyCollate..b. com.apple.print.PrintSettings.PMDuplexing..n.=1 com.apple.print.PrintSettings.PMFirstPage..n.=1 com.apple.print.PrintSettings.PMLastPage..n.=2147483647 com.apple.print.PrintSettings.PMPageRange..a.0..n.=1 com.apple.print.PrintSettings.PMPageRange..a.1..n.=2147483647 fit-to-page media=A4 pserrorhandler-requested=standard sides=one-sided job-uuid=urn:uuid:b4d64749-0c46-3d8c-51b4-a0918a857fe3 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1561626442 time-at-processing=1561626442 document-name-supplied=testprint PageSize=A4
So the script is currently swollowing the print without error, as there is an exit 0 at the end.
I will maybe try to tweak the script, but first I thought I would document how I got this far on OS X for other users:
The PPD should be gziped and placed here: /Library/Printers/PPDs/Contents/Resources/ReMarkable.ppd.gz
Confirm with:
localhost:~ root# lpinfo -m | grep -i remarkable
Library/Printers/PPDs/Contents/Resources/ReMarkable.ppd.gz Remarkable Tablet, 1.0
The backend script should go here: /usr/libexec/cups/backend/remarkable
the "_lp" user needs to be able to use rmapi.
(as root do the following)
ln -s /Users/USERNAME/.rmapi /var/spool/cups/.rmapi
chown USERNAME:_lp /Users/USERNAME/.rmapi
chmod g+r /Users/USERNAME/.rmapi
Add the printer:
lpadmin -L 'my.ReMarkable Cloud' -D 'my.ReMarkable Cloud Printer' -m /Library/Printers/PPDs/Contents/Resources/ReMarkable.ppd.gz -p remarkable -E -v 'remarkable:/PrintOuts'
Metadata
Metadata
Assignees
Labels
No labels