News for hackers. Stuff that matters.
Re:Getting my daily news from a dot matrix printer by hawski on Friday October 04, 2024 @12:31PM (#41743050)
With macOS there is this one off topic thing regarding printing that always gets me. I once had a company Macbook and it connected to my old Brother printer without problems and only then (after almost ten years of having the printer) I discovered it has double sided printing. It just worked. I always wondered if there is a way to connect somehow to this machinery to get a macOS printer driver or whatever and emulate whatever is needed for this to work on Linux.
Re:Getting my daily news from a dot matrix printer by sangnoir on Friday October 04, 2024 @12:38PM (#41743121)
IIRC, Apple employed the maintainer[1] of CUPS - which is/was available on MacOS for network printing, and has been available on Linux for even longer. I would be surprised if the feature was not available on Linux for your printer.

Edit: added footnote

1. The chief maintainer - not the only maintainer, between 2007-2019

Re:Getting my daily news from a dot matrix printer by freetanga on Friday October 04, 2024 @03:23PM (#41744752)
I used this (CUPS) to add my Remarkable 1 as a Printer in MacOS. Worked like a charm, nothing to install on the laptop…
Re:Getting my daily news from a dot matrix printer by xp84 on Friday October 04, 2024 @11:05PM (#41747444)
Please share details! My wife has one of those, and this sounds like a great way to get more use out of it.
Re:Getting my daily news from a dot matrix printer by Rocka24 on Saturday October 05, 2024 @03:07PM (#41752135)
What would be the use case of this? I have a remarkable 2 and there's the official Read on Remarkable extension that automatically sends a pdf of the page you're on or the book or whatever to your Remarkable. I'm not sure if it works on Remarkable 1 but there isn't any documentation on it being unsupported.

extension link: https://chromewebstore.google.com/detail/Read%20on%20reMarka...

Re:Getting my daily news from a dot matrix printer by hawski on Friday October 04, 2024 @02:34PM (#41744256)
I know about CUPS. There is no real alternative on Linux, is there? But it doesn't work like on macOS. I am sure they added some of magic on top.

On macOS I think it either recognized my printer or I had to select it from a list. I don't remember which for sure. It was a few years ago.

On Linux my Brother printer is not on the list. Brother offers a deb and rpm packages which may be obsolete for all I know. Then you have to install it manually. But in my case it never offered double sided printing.

For years I am using a crutch in terms of Android driver and Brother's own app. This despite being offered by the producer doesn't offer double sided printing either. It doesn't even give ability to print in grayscale.

Re:Getting my daily news from a dot matrix printer by bch on Friday October 04, 2024 @04:20PM (#41745213)
> I know about CUPS. There is no real alternative on Linux, is there?

I don't know what lifting "real" is doing here, but lpd(8)[0] (line printer daemon) is what we used to use, and printcap(5)[1] to configure. It was general enough that you could make a music playlist system out of it[2].

[0] https://man.netbsd.org/lpd.8

[1] https://man.netbsd.org/printcap.5

[2] https://patrick.wagstrom.net/weblog/2003/05/23/lpdforfunandm...

Re:Getting my daily news from a dot matrix printer by nextos on Friday October 04, 2024 @05:53PM (#41745896)
Usually, drivers for similar printers might work. There are also generic driver sets like Gutenprint. Nonetheless, note that CUPS now discourages the use of any drivers, and support will be removed in the future.

They claim that modern printers implement IPP and that should be the preferred protocol for printing. In IPP, printers advertise capabilities and are able to handle different high-level printing requests.

Re:Getting my daily news from a dot matrix printer by jorvi on Saturday October 05, 2024 @02:40AM (#41748135)
That is wrong. CUPS recommends using the IPP protocol, but the IPP driver (called “IPP Everywhere”) is only available on relatively modern printers. Everything else still has to use drivers, mostly PPD.
Re:Getting my daily news from a dot matrix printer by nextos on Saturday October 05, 2024 @02:29PM (#41751867)
Any CUPS daemon will raise the following warning on startup. I just copied this from my Systemd log:

  cupsd[873]: Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103
Not saying this is the correct decision, but IPP Everywhere is available on most printers that are < 10 years old. Obviously, that rules out older printers, which are fairly common.
Re:Getting my daily news from a dot matrix printer by jorvi on Saturday October 05, 2024 @04:29PM (#41752653)
I have a Brother printer from 2019 (HL 2340) that does not support IPP Everywhere. A lot of other printers from before ~2020 don’t either.

You are (like so many other people) confusing IPP the protocol with IPP the driver, which is honestly not your fault and a terrible naming mistake.

And like you mentioned, people have way older printers because if all you do is print monochrome and mostly text, a printer from 2004 doesn’t lack much aside from AirPrint / Mopria. Which is why I suspect CUPS will not deprecate at least PPD drivers.

Re:Getting my daily news from a dot matrix printer by account42 on Tuesday October 08, 2024 @06:45AM (#41775862)
If you read the linked issue you will see that the plan for legacy printers is to move the printer drivers under a separate application that CUPS can then talk IPP to.

So yes, CUPS itself will only support IPP without any printer-specific driver. Since mobile phones also only directly support IPP this sounds like a reasonable decision.

Re:Getting my daily news from a dot matrix printer by jorvi on Tuesday October 08, 2024 @08:28AM (#41776589)
> If you read the linked issue you will see that the plan for legacy printers is to move the printer drivers under a separate application that CUPS can then talk IPP to.

Ah, yes. Thanks for pointing that out! I wonder how much more secure that will make things for those who have to use legacy printers.

> Since mobile phones also only directly support IPP

Technically AirPrint is not IPP Everywhere, they use a different raster format and some different glue. For example my Brother printer supports AirPrint but fails ~50% of the IPP Everywhere self-certification tests. But that’s splitting hairs.

Re:Getting my daily news from a dot matrix printer by account42 on Tuesday October 08, 2024 @06:40AM (#41775837)
From the mentioned issue:

> As for printer drivers, those few printers that "need" them can migrate to standalone applications/services using the CUPS API to provide an IPP Everywhere-compatible Printer instance. PAPPL provides a convenient framework for easily creating these applications and porting existing CUPS raster drivers, and the following printer applications are already available or (in the case of Gutenprint) under development:

[...]

> ps-printer-app: PAPPL-based PostScript printer application that supports all CUPS/PostScript printers via PPDs and includes all of the Foomatic and HPLIP drivers.

So drivers will still be supported in a sense, just not directly by the CUPS daemon.

Re:Getting my daily news from a dot matrix printer by jorvi on Saturday October 05, 2024 @02:38AM (#41748129)
On Linux, Brother also has a generic driver (brgen1mlr, or something like that). You’ll need to install both the driver and cupswrapper though.

If you install the specific driver it generally should have parity with their Windows / macOS driver though.

Re:Getting my daily news from a dot matrix printer by account42 on Tuesday October 08, 2024 @06:29AM (#41775755)
Dunno about your printer but with my Brother Laser the CUPS driver can do double-sided printing on Linux just fine.

But you should in theory also be able to do this without any Brother-specific driver since pretty much all modern printers speak IPP for mobile device compatibility.

Re:Getting my daily news from a dot matrix printer by traceroute66 on Friday October 04, 2024 @12:45PM (#41743187)
> which is/was available on MacOS for network printing

Very much IS there in the background.

See http://localhost:631/printers on your OS X machine.

Re:Getting my daily news from a dot matrix printer by mcculley on Friday October 04, 2024 @03:43PM (#41744921)
I thought the default was disabled at some point. On my macOS laptop, I get:

> Web Interface is Disabled

> The web interface is currently disabled. Run “cupsctl WebInterface=yes” to enable it.

But I cannot remember if I disabled that.

Re:Getting my daily news from a dot matrix printer by traceroute66 on Friday October 04, 2024 @05:25PM (#41745734)
> But I cannot remember if I disabled that.

Its ok, you're not going mad. ;)

They disabled it by default as part of security hardening a few releases back. Probably around the same time they stopped shipping PHP and other stuff.

CUPS is still running the printing in the background, its just the web UI that's been disabled. IIRC.

Re:Getting my daily news from a dot matrix printer by iknowstuff on Friday October 04, 2024 @06:31PM (#41746117)
Safari can’t open the page “‎localhost:631/printers” because Safari can’t connect to the server “localhost”.
Re:Getting my daily news from a dot matrix printer by bee_rider on Friday October 04, 2024 @02:36PM (#41744273)
Huh, my first thought was that it ought to be somewhat mechanically obvious if the printer supports double sided printing. But now I’m thinking, some printers do just magically suck the paper back in for the second side, right? And I’m wondering if my printer might secretly support double sided printing as well.
Re:Getting my daily news from a dot matrix printer by hawski on Friday October 04, 2024 @03:09PM (#41744625)
Exactly this magical sucking the paper back. I was amazed.
Re:Getting my daily news from a dot matrix printer by bee_rider on Friday October 04, 2024 @04:01PM (#41745061)
Mine did not. I am, therefore, non-amazed. Mazed?
Re:Getting my daily news from a dot matrix printer by SllX on Friday October 04, 2024 @04:20PM (#41745203)
Whelmed.
Re:Getting my daily news from a dot matrix printer by MollyRealized on Friday October 04, 2024 @07:32PM (#41746453)
Re:Getting my daily news from a dot matrix printer by SllX on Friday October 04, 2024 @10:13PM (#41747226)
Perhaps. But:

"You're overwhelmed, Freeze was underwhelmed. Why isn't anyone ever just whelmed?" https://youtu.be/UdBcnRFN4Vg

Also: https://youtu.be/4u63ciF_r0g

Re:Getting my daily news from a dot matrix printer by Tijdreiziger on Saturday October 05, 2024 @12:00PM (#41750786)
Re:Getting my daily news from a dot matrix printer by daggersandscars on Friday October 04, 2024 @01:49PM (#41743786)
Are you using Brother's Linux printer driver for your device? If not, I'd start there.

https://support.brother.com/g/b/midlink_productcategory.aspx...

Re:Getting my daily news from a dot matrix printer by hawski on Friday October 04, 2024 @02:25PM (#41744172)
It never offered the option in my case.
Re:Getting my daily news from a dot matrix printer by epcoa on Saturday October 05, 2024 @10:06AM (#41749961)
If it’s a Brother, the features are in the suffix of the model name: D for duplexer, C for color, N for network (wired), W for wireless networking.