How to troubleshoot inconsistent printer problems?

10 respostas [Última entrada]
Jacob K
Desconectado
Joined: 01/13/2022

When I was testing printing at work before we starting using some Trisquel laptops, everything seemed to work fine, but after using the laptops for some time there appear to be some problems with printing. Printing from Abrowser didn't work the very first time I tried it, but the second time I tried it worked. All times I've tried since then it has not worked. Printing to PDF first and then printing from Atril seems to be more reliable, but only the first several pages print, so I have to re-print with the already-printed pages removed.

When I go to System > Administration > Printers it says "There are no printers configured yet.", even though Atril and Abrowser can both see the printer.

So far I have not seen any tracker in Trisquel that shows the status of print jobs. Is there supposed to be something that shows this status?

Does anyone have any advice on how to troubleshoot this without wasting too much paper/ink?

(This is a Brother HL-L2390DW, at my workplace, not the HL-L2420DW at my house (which doesn't show up at all by default and is still on my to-do list to troubleshoot).)

Ark74

I am a member!

I am a translator!

Desconectado
Joined: 07/15/2009

I suppose the fact that the printer is not called specifically by a printer server (CUPS) is what could be the main issue.

Now, on the compatibility side of things I don't have good experience with Brother but IIRC I might have seen that there are some models that work just fine with free drivers.

You may try install the printer via the web browser, localhost:631 or via the Printer application in Control Center or Settings depending on your DE, about testing printing I find enough to print blank pages from LibreOffice Writer, some text editors might print headers or time stamps, but Writer won't, so is good when you only want to test connectivity.

Hope that makes sense, regards!

ADFENO
Desconectado
Joined: 12/31/2012

As an addendum, CUPS print server, which is also available in Trisquel's repositories, is responsible for taking a copy of a document that is to be printed and add it to a queue so the printer can adequately see it's entirety.

Geshmy
Desconectado
Joined: 04/23/2015

I see there are a some different ways to communicate with a network printer at http://localhost:631/admin/. At localhost:631, as mentioned, is where I find CUPS (had to give username and password for add printer function). I guess I can assume since I reach the CUPS page that it is installed and starts as a daemon automatically when I boot up. There is a cups driver at 'https://github.com/pdewacht/brlaser' and your printer is on a list there as supported. But there is also a version of 'brlaser' I see in our synaptic repository.

If in your shoes I think I would make sure each laptop has CUPS installed and brlaser on top of that for starters.

If you are way ahead of me, please don't be offended, from your post I don't know.

I am using an Epson ET-2800 and I see that it is installed in CUPS and I can see it in, for me, Preferences > Printers as well.

I was once kind of in your shoes and most of my printers were HP and most of the Workstations were the ones with Darth Vader operating systems. My printers were mostly connected via the router but some may have had their own wifi print server operating. I do not remember these things well, but I read that in the CUPS world, drivers are intended to go away being replaced with Internet Printing Protocol so you have several ways to try to hook up to your printer assuming you router is still allowing it.

I could be jealous that you are using Trisquel laptops at work. I could not talk anyone out of the 'evil empire' stuff. It seems like you'll figure out a solution.

Legimet
Desconectado
Joined: 12/10/2013

I am familiar with the HL-L2390DW as my parents have it. It works with printer-driver-brlaser but the upstream version is unmaintained (though there is a maintained fork) so there hasn't been a release with that particular printer definition. However, it should work if you just manually add a printer with a slightly different number like HL-L2360D that uses the brlaser driver. I'm not sure about the HL-L2420DW but you can try the same thing and see if it works.

If you want to use the HL-L2390DW scanning, it will be available in a future version of SANE - some people including myself independently reverse engineered the scanning protocol (it's actually really simple). I wrote a standalone scanning program in C for my personal use, and I intended to contribute a backend to SANE but put it off for a while. Anyway it turned out that one of the SANE developers had written a backend for Brother scanners around the same time, and it works pretty well. I did provide some information about the protocol that he wasn't aware of.

Geshmy
Desconectado
Joined: 04/23/2015

Cool effort there Legimet. My Epson ET-2800 is not found by xsane. Hears hoping that gets added too.

Legimet
Desconectado
Joined: 12/10/2013

Have you tried adding the USB vendor/product IDs for that scanner to /etc/sane.d/epsonds.conf ?

Geshmy
Desconectado
Joined: 04/23/2015

I did try that. Online I found two different Vendor #s and no Device ID for this printer. I did find another ecotank style device and tried that. However running xsane from the terminal produced a message that that line couldn't be parsed. I also found some info that libusb was required and I made sure I had that. I found an epson ipp download in our repository. Somehow, I broke the printer. Cups said it was waiting for it to come online. I changed it to the 'driverless' IPP mode. Now it is printing again and xsane finds it and can scan. The quality of the scan is poor. A page with color came out greyscale I guess. And somewhat faint. But at least progress.

Legimet
Desconectado
Joined: 12/10/2013

Running "lsusb" in a terminal should give you the vendor and device ID for any USB device plugged into your system. For example, I just ran lsusb right now, and my wireless mouse receiver has the following entry:

Bus 002 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver

Here, 046d is the vendor ID and c52b is the product ID. You should find a similar entry for your printer/scanner (assuming it is on). Looking at the sane source code, I believe the vendor ID for Epson should be 04b8. Then, in /etc/sane.d/epsonds.conf, you would add a line as follows:

usb 0x4b8 0x<product ID>

(Replace with the actual product ID). The "0x" is important.

Geshmy
Desconectado
Joined: 04/23/2015

So like
Bus 002 Device 003: ID 04b8:1187 Seiko Epson Corp. ET-2800 Series
I think would be
usb 0x04b8 0x1187
in /etc/sane.d/epsonds.conf? Do I need these, <>?

I appreciate your help.

Legimet
Desconectado
Joined: 12/10/2013

Yeah that's right. You don't need the <>.

You'll also need to add a udev rule. Otherwise a normal user (not root) will not be able to use the scanner.

Create a file called /etc/udev/hwdb.d/20-epson-scanner.hwdb and put the following in it:
# Epson ET-2800
usb:v04B8p1187*
libsane_matched=yes

Then run:
systemd-hwdb update

These steps should cause the scanner to at least be detected (if not, try unplugging and plugging it back in). Whether it will actually work, I have no clue. If it doesn't, let me know what error messages you get when running "scanimage -L".