You are not logged in.

#1 2014-08-23 02:28:49

archzen
Member
Registered: 2014-08-23
Posts: 3

[SOLVED] What's Missing? Cannot Get Brother HL-2280DW To Print

Greetings All,

I recently did a re-install of archlinux, and I have a Brother HL-2280DW printer that I just can't seem to get to work (it worked with my previous archlinux installations).

I also have several cups packages installed:

-- cups 1.7.5-1
-- cups-filters 1.0.57-1
-- cups-pdf 2.6.1-2
-- libcups 1.7.5-1
-- python2-pycups 1.9.66-2
-- system-config-printer 1.4.4-1

I also found a package for an HL-2280DW-specific driver in the AUR, which I downloaded and installed (https://aur.archlinux.org/packages/brother-hl2280dw/). I downloaded this package, unpacked it, ran 'makepkg -s' and installed the resulting package with 'pacman -U', all seemed to go well.

Next, I brought up the cups administration page in chromium to add the new printer, and saw "Brother HL-2280DW (Brother HL-2280DW)" as a discovered printer, so I selected it.  Then I checked the "Share This Printer" checkbox and clicked "Continue".

In the next dialog, the "Make" indicates "Brother", and in the "Model" list I saw "Brother HL-2280DW(en)", so I clicked "Add Printer". I accept the defaults that appear on the next page, and the printer is added. However, I'm unable to print a test page, an error message in the web page says that cups is unable to locate the printer, which has this listed for the connection: lpd://BRN30055C1AA1B2/BINARY_P1

So I next tried "Modify Printer" and select "AppSocket/HP JetDirect" since that's what the cups website says has the strongest support. In the next page I type in "socket://192.168.2.103" for the connection information (the IP of my printer) and added that, using the same printer driver. Then I clicked "Modify Printer", and after that I'm able to successfully print a test page.

But when I try to print from LibreOffice all I see is "Generic Printer", and it doesn't print anything. So then I tried printing a PDF document from "evince", and in the printer dialog I see "Print to File" and also "duerqxesz5090". If I click on that evince seems to hang, saying it's getting printer information.

So I killed evince, restarted cups.service via systemctl and tried again; this time "duerqxesz5090" is no longer there, the only item is "Print to File", there aren't any printers listed.

What am I missing? This used to work on my previous archlinux really well, any suggestions are greatly appreciated!

Last edited by archzen (2014-08-25 05:22:34)

Offline

#2 2014-08-24 23:13:11

thisllub
Member
From: Northern NSW Australia
Registered: 2007-12-28
Posts: 231

Re: [SOLVED] What's Missing? Cannot Get Brother HL-2280DW To Print

I am using that driver for my Officejet and the connection comes up as
    socket://192.168.2.11:9100
Maybe the port setting is missing.

Offline

#3 2014-08-25 05:22:12

archzen
Member
Registered: 2014-08-23
Posts: 3

Re: [SOLVED] What's Missing? Cannot Get Brother HL-2280DW To Print

Thanks very much 'thisllub' for your suggestion, I appreciate the input, but I finally found out what the problem was!

After spending a couple of days getting nowhere (Google, running localhost:631 over and over again, , restarting the cups service, etc.)  I came across an excellent Red Hat page on debugging printing:

   http://fedoraproject.org/wiki/How_to_de … g_problems

It didn't have the solution to my problem, but it did demonstrate several command line tools related to cups, such as 'lpstat'. I tried that command and got a 'Bad file descriptor' message, which I thought very odd.

After googling on that, I came across a link to an archlinux forum post that was only a few weeks old:

   https://bbs.archlinux.org/viewtopic.php?pid=1444433

"Stefano" had the same lpstat results, but he finally figured out that the /etc/cups/client.conf file was the culprit. This file specifies the location of the server, and you're supposed to be able to do that with either the server name or an IP address, e.g.:

   ServerName benito    <-- my server's name

      or

   ServerName 192.168.2.101:9100  <-- my server's IP address

But Stefano did this instead:

   ServerName /var/run/cups/cups.sock

Once I did that, I restarted cups and my Brother HL-2280DW appeared in both evince and libreoffice!

I looked at the 'man client.conf' page for more information, and it listed the different ways you can specify the server:

   ServerName hostname-or-ip-address[:port]
   ServerName /domain/socket
   ServerName hostname-or-ip-address[:port]/version=1.1

Not exactly what I would call intuitive... I had no problems in my previous archlinux system, using the same printer, I wonder if something has changed in the current version of cups? (I'm running cups 1.7.5-1)

Anyway, this problem ate up too much time, I sure hope it helps anyone else who comes across it!

Offline

Board footer

Powered by FluxBB