Post AiZXpoV4XmDpyTT65A by lukeshu@fosstodon.org
 (DIR) More posts by lukeshu@fosstodon.org
 (DIR) Post #AiYsVwl627T5fvN65w by foone@digipres.club
       2024-06-03T20:15:27Z
       
       1 likes, 1 repeats
       
       I wonder how hard it is to make a fake USB printer.Like, a printer that takes any printout and goes "yep, that printed just fine" but nothing ever comes out anywhere
       
 (DIR) Post #AiYu86nzEDeZnCU5lQ by ben@bluetoot.hardill.me.uk
       2024-06-03T20:27:37Z
       
       0 likes, 0 repeats
       
       @foone Look at the code from the retro printer project, It does similar but for parallel printers as input and outputs to USB/Network printers.Might be some bits you could borrowhttps://www.retroprinter.com/
       
 (DIR) Post #AiYuQFfN1QDUUG6b1U by SmartAsABrick@techhub.social
       2024-06-03T20:26:42Z
       
       0 likes, 0 repeats
       
       @foone what's the difference between this and a normal USB printer?  (Only half joking)
       
 (DIR) Post #AiYucI7VixzDZZ0bSK by demofox@mastodon.gamedev.place
       2024-06-03T20:26:01Z
       
       0 likes, 0 repeats
       
       @foone what's your usage case?
       
 (DIR) Post #AiYutD2TrwGCjjitkm by ralfmaximus@mastodon.social
       2024-06-03T20:27:29Z
       
       0 likes, 0 repeats
       
       @foone dev\null ?
       
 (DIR) Post #AiYv2VoxPLHnaspkHY by larsivi@snabelen.no
       2024-06-03T20:27:07Z
       
       0 likes, 0 repeats
       
       @foone Isn't that how printers work?
       
 (DIR) Post #AiYvEkUegJ1yZiAkVs by billgoats@bitbang.social
       2024-06-03T20:28:27Z
       
       0 likes, 0 repeats
       
       @foone That just sounds like a USB printer though 🖨️
       
 (DIR) Post #AiYvNxQpwiFrJDmGKu by grumpasaurus@fosstodon.org
       2024-06-03T20:28:29Z
       
       0 likes, 0 repeats
       
       @foone ah.  A stimulator.
       
 (DIR) Post #AiYvXdORIuqY3XGots by Jencen@furry.engineer
       2024-06-03T20:28:39Z
       
       0 likes, 0 repeats
       
       @foone Sooooo.... a printer? >.>
       
 (DIR) Post #AiYw3ZPHf20GxWtS6q by apicultor@hachyderm.io
       2024-06-03T20:28:55Z
       
       0 likes, 0 repeats
       
       @foone A printer that never throws an error? No fucking way.SHUT UP AND TAKE MY MONEY! 💸💸💸"PC LOAD LETTER? What the fuck does that mean?"
       
 (DIR) Post #AiYwdR622K47bqzTs0 by distinct@mastodon.social
       2024-06-03T20:37:00Z
       
       0 likes, 0 repeats
       
       @foone so my old printer, then
       
 (DIR) Post #AiYwqRsoQFzpoY0onw by stenpett@mstdn.games
       2024-06-03T20:39:48Z
       
       0 likes, 0 repeats
       
       @foone Theres probably a way to modify a ppd file to send an exit code 0 at any jobb, while piping the output to /dev/null
       
 (DIR) Post #AiYx2kGvsW3cK19qC0 by The4thCircle@mastodon.gamedev.place
       2024-06-03T20:41:09Z
       
       0 likes, 0 repeats
       
       @foone This sounds less like a USB device and more like a device driver with nothing attached.
       
 (DIR) Post #AiYx9ma9giUtVtVLge by smellsofbikes@mastodon.social
       2024-06-03T20:48:40Z
       
       0 likes, 0 repeats
       
       @foone apparently not hard at all since we have a half dozen machines at work with exactly this functionality.  They're very expensive/dev/null machines
       
 (DIR) Post #AiYxGHhssd8RmZDiBU by mms@emacs.ch
       2024-06-03T20:49:39Z
       
       0 likes, 0 repeats
       
       @foone Isn't that what HP sells?
       
 (DIR) Post #AiYxTs7Wo3wwTvh53Q by trevorflowers@machines.social
       2024-06-03T20:50:32Z
       
       0 likes, 0 repeats
       
       @foone Well, now I want my shredder to appear on the network as a printer.
       
 (DIR) Post #AiYxhto7KbMTlfIraK by bayindirh@mastodon.sdf.org
       2024-06-03T21:04:56Z
       
       0 likes, 0 repeats
       
       @foone Do you want the hardware, or will a soft solution work?
       
 (DIR) Post #AiYxyevTudbkXNjuoS by farhaven@mastodon.cloud
       2024-06-03T21:14:43Z
       
       0 likes, 0 repeats
       
       @foone kinda describing a regular printer there
       
 (DIR) Post #AiYy7SVTSPECcplr4y by otte_homan@theblower.au
       2024-06-03T21:19:25Z
       
       0 likes, 0 repeats
       
       @foone not impossible but a bit tricky if you want it to also report back on the 11% complete status of say 9 pages,  for PDF, PS, txt, etc. documents that accepts PS, EPS, ESC/PR, etc. protocols...
       
 (DIR) Post #AiYyQknZfkLgrJRCL2 by jackemled@furry.engineer
       2024-06-03T21:22:53Z
       
       0 likes, 0 repeats
       
       @foone Those exist! You can buy them anywhere that sells printers. Just ask where they have printers & you can buy any of those & it will do this.
       
 (DIR) Post #AiYynGJNBlfYxu2n4q by smammy@hachyderm.io
       2024-06-03T21:30:37Z
       
       0 likes, 0 repeats
       
       @foone Linux is happy to be a USB printer for you: https://www.kernel.org/doc/Documentation/usb/gadget_printer.rst (I've done the gadget side of the USB mass storage class and it was basically fun and easy. I'm guessing the gadget side of the printer class is similar but who knows.)
       
 (DIR) Post #AiYz0azRcM7Kra53Ka by darksecond@chaos.social
       2024-06-03T21:34:29Z
       
       0 likes, 0 repeats
       
       @foone isn’t that just any printer? They almost malfunction.
       
 (DIR) Post #AiYzMp1u6CrsmFpTTk by brouhaha@mastodon.social
       2024-06-03T21:39:34Z
       
       0 likes, 0 repeats
       
       @foone Take a real ink tank printer, disable the paper-out and ink-out sensors,
       
 (DIR) Post #AiYzWBcpSV1xSjZ9Ye by fishidwardrobe@mastodon.me.uk
       2024-06-03T21:43:41Z
       
       0 likes, 0 repeats
       
       @foone lpadmin blah blah blah /dev/null
       
 (DIR) Post #AiZ28FFWdGjfcBwQFM by redthewizard@wandering.shop
       2024-06-03T22:12:57Z
       
       0 likes, 0 repeats
       
       @fooneI have a printer like that.
       
 (DIR) Post #AiZ3vUo3gFR40Y8t7I by foone@digipres.club
       2024-06-03T22:32:33Z
       
       0 likes, 0 repeats
       
       @darksecond yeah but I specifically want it to lie about the print succeeding
       
 (DIR) Post #AiZ4EcDuKRDcVsLlQW by foone@digipres.club
       2024-06-03T22:34:23Z
       
       0 likes, 0 repeats
       
       @demofox I've got a program that keeps printing things at regular intervals, and it wastes several seconds between items. if I had a fake printer, I could do a real print batch at the beginning, then every time it tries to print, it just instantly succeeds, doing nothing.
       
 (DIR) Post #AiZ5p5iUFcACMcbtB2 by maruel@pourparler.ca
       2024-06-03T22:54:00Z
       
       0 likes, 0 repeats
       
       @foone I did that by accident in 2003 on Windows 2000.I wrote a printer driver that was a virtualized printer, saving the EMF stream. It automatically selected the nearest one based on the room location and streamed it there. Sometimes it didn't go anywhere.My biggest surprise was to reuse this knowledge in 2007 to implement printing in Chrome, given the renderer didn't have direct access to the printer. Heck I got a patent for that.
       
 (DIR) Post #AiZ7j3YnYSGRqaKQVs by biggestsonicfan@digipres.club
       2024-06-03T23:15:06Z
       
       0 likes, 0 repeats
       
       @foone @demofox I think I used to use a software called PDF995 and set the output directory to a read-only folder for this type of edge case.
       
 (DIR) Post #AiZAQkeHQdMfqNr71U by heretohinder@mastodon.sdf.org
       2024-06-03T23:45:39Z
       
       0 likes, 0 repeats
       
       @foone the linux g_printer module and a raspberry pi is probably the most straightforward path, someone already has a project for it: https://github.com/Raspberryy/Emulated_USB_Printer
       
 (DIR) Post #AiZAusyP2hOULjdYjQ by blami@mastodon.online
       2024-06-03T23:51:09Z
       
       0 likes, 0 repeats
       
       @foone That's basically my Brother inkjet without any mods. Plus it starts cleaning itself making burglar noises at 4AM.
       
 (DIR) Post #AiZDSoI79lnnaBA3Hs by WooShell@chaosfurs.social
       2024-06-04T00:19:10Z
       
       0 likes, 0 repeats
       
       @foone Can it at least throw a message about an expired subscription or lack of cyan, to make it more realistic?
       
 (DIR) Post #AiZEDuGekneHjEw7Pc by Gazoche@mastodon.au
       2024-06-04T00:28:19Z
       
       0 likes, 0 repeats
       
       @foone https://hackaday.com/2023/01/31/steamdeck-become-printer/
       
 (DIR) Post #AiZEOUw9H0ceLtOWA4 by meldrop@mas.to
       2024-06-04T00:28:39Z
       
       0 likes, 0 repeats
       
       @foone almost certainly completely overkill for this task but there's the USB raw gadget samples: https://github.com/xairy/raw-gadgetI've used this to simulate USB devices in the past, and it includes a printer.c example
       
 (DIR) Post #AiZGJxqwXKZIUgvRtg by SteakPinball@mastodon.social
       2024-06-04T00:51:53Z
       
       0 likes, 0 repeats
       
       @foone Pretty sure there are lots of printers which already do that
       
 (DIR) Post #AiZU7MSZ8WXOP8PLVI by foone@digipres.club
       2024-06-04T03:26:20Z
       
       0 likes, 0 repeats
       
       My point is not a printer that's broken, my point is a printer that appears TO THE COMPUTER to print instantly and successfully.Just I don't care if any paper comes out anywhere, and would prefer not.
       
 (DIR) Post #AiZUMCAzeV84r3GIqG by bloomnobly@cyberplace.social
       2024-06-04T03:29:21Z
       
       0 likes, 0 repeats
       
       @foone Not sure myself, but I'm p sure the functionality's there since MS already has a 'Print to PDF' function in windows so ideally. that should lay groundwork for that
       
 (DIR) Post #AiZV1lLNnxeFnWwUJU by zarbet@mastodon.social
       2024-06-04T03:36:56Z
       
       0 likes, 0 repeats
       
       @foone ah! a fax machine. I've heard of those.
       
 (DIR) Post #AiZVSRsYHcxTFNBKe8 by SteveSyfuhs@hachyderm.io
       2024-06-04T03:40:15Z
       
       0 likes, 0 repeats
       
       @foone every printer I've ever owned had that feature built in. The problem was that it only worked half the time.
       
 (DIR) Post #AiZVnkhZUm5dhrCiQq by yakkoj@fosstodon.org
       2024-06-04T03:45:04Z
       
       0 likes, 0 repeats
       
       @foone hell, that seems like it'd be easy: have a thing that looks like a printer and accepts the print job, then does nothing with it!
       
 (DIR) Post #AiZWcWZxlMUSfrr5cm by piersg@mastodon.social
       2024-06-04T03:54:44Z
       
       0 likes, 0 repeats
       
       @foone it's not as exciting as hardware but you *could* just write a driver that's returns "OK" but does nothing else
       
 (DIR) Post #AiZXCs5PHFKrnotVvk by shironeko@fedi.tesaguri.club
       2024-06-04T04:02:07.976072Z
       
       0 likes, 0 repeats
       
       @foone @demofox curious what this sociopathic program is
       
 (DIR) Post #AiZXTF3jdE5rgYv0k4 by shironeko@fedi.tesaguri.club
       2024-06-04T04:05:05.651767Z
       
       0 likes, 0 repeats
       
       @foone @demofox also https://superuser.com/questions/304670/how-to-add-a-fake-dummy-null-printer-in-cups
       
 (DIR) Post #AiZXpoV4XmDpyTT65A by lukeshu@fosstodon.org
       2024-06-04T04:08:21Z
       
       0 likes, 0 repeats
       
       @foone At my dad's business, there's a printer that dumps paper straight a trash can, because something insists that it MUST print logs that no human cares about, and if you unplug the printer the fuel pumps will stop working, and they won't be able to refuel their fleet for trucks.(It's serial, not USB, but it's the same problem.)
       
 (DIR) Post #AiZYAkGlT81gvykzzM by cliffordheath@mastodon.social
       2024-06-04T04:12:12Z
       
       0 likes, 0 repeats
       
       @foone USB-Centronix adapter with the appropriate ACK signal wired high? Or pulsed by a monostable, IDK how Centonix works any more
       
 (DIR) Post #AiZYPInvriVg63DDuq by Pyxaron@dragonchat.org
       2024-06-04T04:14:42Z
       
       0 likes, 0 repeats
       
       @foone If it can be a network printer instead of USB, it's pretty easy to do, PCL uses port 9100 to send the print job, it's possible to just have some software listen locally (or remotely) to that port, accept the data, and just discard it.I've done that in the past with a generic LaserJet PCL driver, both to discard unwanted print jobs that would never clear until successful, or capture it for data extraction.
       
 (DIR) Post #AiZexcxu0v8AC9ctyy by andwhyisit@ohai.social
       2024-06-04T05:28:09Z
       
       0 likes, 0 repeats
       
       @foone Give it the printer name "/dev/null".
       
 (DIR) Post #AiZglAfxZE90tGQECG by fgrosshans@mathstodon.xyz
       2024-06-04T05:48:06Z
       
       0 likes, 0 repeats
       
       @foone No such device can last long: it would quickly be broken into small pieces by the angry user
       
 (DIR) Post #AiZhnniJUnusUvLBg0 by Ai2ObsFjnLcY8CdUMi.KuteboiCoder@subs4social.xyz
       2024-06-04T06:00:53.599Z
       
       0 likes, 0 repeats
       
       @foone@digipres.club brightest HP engineer.  👆
       
 (DIR) Post #AiZirj76dnAjLLNCEq by scalonnec@pouet.chapril.org
       2024-06-04T06:11:42Z
       
       0 likes, 0 repeats
       
       @foone it's called "Hewlett-Packard Company".
       
 (DIR) Post #AiZiyDs9C3f6TeTRNA by tk@nerdculture.de
       2024-06-04T06:12:31Z
       
       0 likes, 0 repeats
       
       @foone you can progam usb devices with an arduino pro micro aka atmega 32u4, could work as a dummy printer as well?
       
 (DIR) Post #AiZl7AIi2eA3umI23E by neocturne@chaos.social
       2024-06-04T06:36:50Z
       
       0 likes, 0 repeats
       
       @foone The Linux kernel includes a USB printer gadget driver, with docs and example code here: https://www.kernel.org/doc/Documentation/usb/gadget_printer.rstSo if you have a computer with a device-mode-capable USB controller (many SBCs as long as there is no USB hub between the SoC and the physical ports; maybe even some desktop PCs with USB-C nowadays?), it should just be a matter of building a kernel with the printer gadget module.
       
 (DIR) Post #AiZqbqHd11cSa0EPpo by bayindirh@mastodon.sdf.org
       2024-06-04T07:38:37Z
       
       0 likes, 0 repeats
       
       @foone Two solutions:1. Install a soft printer like boomaga or similar which can print to files.2. Get a Raspberry Pi, set up CUPS, add a PDF printing soft-printer on it, and make it discoverable on network (or share it)A printer which instantly prints, plus it's network enabled! A 90s nerd dream comes true.
       
 (DIR) Post #AiZwZqhL6OjT0mgrmS by robert@irrelevant.me.uk
       2024-06-04T08:44:57Z
       
       0 likes, 0 repeats
       
       @fooneThere's this thing.. https://www.pclviewer.com/resources/capture/print2usb.htmlThough it's more designed to capture the print file. And no idea on pricing.You could use a RPi Zero and the Linux printer gadget.. https://www.kernel.org/doc/Documentation/usb/gadget_printer.txt
       
 (DIR) Post #AiaF72MeXvgjvQzPW4 by jak2k@mastodontech.de
       2024-06-04T12:12:42Z
       
       0 likes, 0 repeats
       
       @foone You don't even need a USB device for that. Just cups…
       
 (DIR) Post #Aial13tb8XnhTEaseO by CiscoJunkie@techhub.social
       2024-06-04T18:09:48Z
       
       0 likes, 0 repeats
       
       @foone I can't think of many things more malicious than a fuck-you printer. Actual printers are bad enough.
       
 (DIR) Post #Aiar7SS9LUxb61BjZQ by juliank@mastodon.social
       2024-06-04T19:16:17Z
       
       0 likes, 0 repeats
       
       @foone that would be convenient as like a usb stick that you can print too and then read back pdf.
       
 (DIR) Post #AiauCu4qMpGQ55ZjDE by lucas@fitt.au
       2024-06-04T19:53:07Z
       
       0 likes, 0 repeats
       
       @foone I have real printers that will do that randomly, making a fake printer not work seems like a pretty low bar 🤣
       
 (DIR) Post #AibROHbYWsZGiuuU3E by Pyxaron@dragonchat.org
       2024-06-05T02:02:36Z
       
       0 likes, 0 repeats
       
       @foone Because this was bugging me, i played with it, and i found that you can actually just create a printer on the nul: port under Windows, and have it successfully print jobs to the void.
       
 (DIR) Post #AibRVWuC2ZGQCk5CwC by foone@digipres.club
       2024-06-05T02:03:41Z
       
       0 likes, 0 repeats
       
       @Pyxaron hah! nice. And it doesn't throw any errors when you print to it?
       
 (DIR) Post #AicFOvEmAhzRLkkl96 by Pyxaron@dragonchat.org
       2024-06-05T11:25:17Z
       
       0 likes, 0 repeats
       
       @foone No errors, print jobs just vanish from the spooler after being successfully written to nul: