You are not logged in.

#1 2018-09-23 07:03:06

patrick.bucher
Member
From: Switzerland
Registered: 2016-10-15
Posts: 13
Website

Unable to print to Samsung M2825ND on Arch Linux

I'm using the printer Samsung M2825ND in my home network. It worked great so far, as well as on Linux as on Windows, but since I re-installed Arch Linux on my laptop, I cannot print any longer.

Here's how I set it up:

I installed, activated and started cups and avahi:

# pacman -S cups cups-filters ghostscript
# systemctl enable org.cups.cupsd.service
# systemctl start org.cups.cupsd.service

# pacman -S nss-mdns
# systemctl enable avahi-daemon.service
# systemctl start avahi-daemon.service

I extended the line in the file /etc/nsswitch.conf:

hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns

to

hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns

As described on the Arc Wiki page on Avahi.

I downloaded the Samsung pxlmono driver, which I used before, and moved it to /usr/share/cups/model/samsung.ppd

Then I figured out the parameters with lpinfo:

# lpinfo -m | grep samsung
samsung.ppd Samsung M262x 282x Series PXL
driverless:ipp://samsung.local:631/ipp/print Samsung M262x 282x Series, driverless, cups-filters 1.21.2

# sudo lpinfo -v
network ipp
network socket
network beh
network http
network https
network lpd
network ipps
network dnssd://samsung._printer._tcp.local/
network lpd://192.168.178.10/
network ipp://samsung.local:631/ipp/print

There are different network options, and since I always used dnssd so far, I configure it that way:

# sudo lpadmin -p samsung -E -v 'dnssd://samsung._printer._tcp.local/' -m samsung.ppd

I set the printer as my default, use A4 as paper size and activate long-edge duplex printing:

$ lpoptions -d samsung
$ lpoptions -o PageSize=A4
$ lpoptions -o sides=two-sided-long-edge
$ lpoptions
device-uri=ipp://samsung._ipp._tcp.local/ PageSize=A4 printer-info=samsung printer-location printer-make-and-model='Samsung M262x 282x Series' printer-type=16810068 sides=two-sided-long-edge

But when I try to print a document using lpr, the file is just stuck in the queue with any other information.

How can I find the error here?

Offline

#2 2018-09-29 06:58:03

teXnican
Member
Registered: 2018-09-21
Posts: 28

Re: Unable to print to Samsung M2825ND on Arch Linux

Hi Patrick,

I have the same printer set up via the webinterface of CUPS as a network printer. I can(!) print correctly on it (but not with the pxlmono-Samsung driver from openprinting, only with the plxmono driver from the same page, http://www.openprinting.org/ppd-o-matic … 82x&show=0).

Looking at the output of

$ sudo lpinfo -v
network ipps
network http
network ipp
file cups-pdf:/
network lpd
network https
network beh
network socket
network socket://192.168.2.9

it seems, the auto configuration did not use dnssd, so maybe you try that way? Otherwise I'm happy to provide insight in any configuration files of my setup.

Best regards,
Chris

Last edited by teXnican (2018-09-29 20:40:45)

Offline

#3 2018-10-01 17:52:03

patrick.bucher
Member
From: Switzerland
Registered: 2016-10-15
Posts: 13
Website

Re: Unable to print to Samsung M2825ND on Arch Linux

Thanks, Chris, you solved my problem. It works perfectly well with the pxlmono driver.

Offline

Board footer

Powered by FluxBB