You are not logged in.

#1 2021-09-14 06:43:44

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Unable connect to printer via cups

Hi,

i have a HP color Laserjet printer and I am not able to connect to it via network. I use gnome and have the Hp drivers installed from the AUR. I managed to get it work a couple months ago but currently it doesn´t work.

The issue is that when I search for new Printers or add Printer in cups it isn´t showing the printer (under Discovered Network Printers).

Thanks in advance

J

Offline

#2 2021-09-14 07:08:16

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 338

Re: Unable connect to printer via cups

Does Avahi help?

Offline

#3 2021-09-17 11:53:49

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

First of all thank you. It helps in the way i managed to find my old printer but the Hp printer is still not occurring. And I'm not able to print with the old printer.

Any other recommendations?

Last edited by JackTheNewbie (2021-09-17 12:18:38)

Offline

#4 2021-09-17 13:29:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,275

Re: Unable connect to printer via cups

Does the printer have a configured IP (does it get one via dhcp)?
Can you ping/nmap it?
Do you use hplip? Do you have the matching hplip-plugin version installed, https://aur.archlinux.org/packages/hplip-plugin/ ?

Offline

#5 2021-09-17 16:11:23

zpg443
Member
Registered: 2016-12-03
Posts: 316

Re: Unable connect to printer via cups

You need to provide more information. Is this a networked printer? Is it connected via USB or wi-fi? Are you using any HP (AUR) drivers? What troubleshooting steps have you already done from the wiki?

Offline

#6 2021-09-18 06:22:43

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

Hi sorry if its not enough information i' m still new to arch.

1. When it comes to the Ip adress the printer seems buggy because i can configure the IP but the changes aren't saved and I can't ping the current IP
2. I use hplip and I have the plugin
3. The printer has network and Wi-fi
4. Like in the first post described I use the hp aur drivers https://aur.archlinux.org/packages/hplip-3.18/
5. The printer is a HP Color LaserJet MFP M281fdw

Offline

#7 2021-09-18 06:34:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,275

Re: Unable connect to printer via cups

When it comes to the Ip adress the printer seems buggy because i can configure the IP but the changes aren't saved and I can't ping the current IP

If the printer isn't in the network segment or doesn't have an IP or network connection at all, you're not gonna use it over the network.
Connect it to the network, in doubt via dhcp & WPS

Offline

#8 2021-09-18 07:18:50

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

I feel dump right now thank you. I managed to find the printer through cups but I still can't print anything.

In cups the printer has this error message "Unable to locate printer "NPI8022F6.local"."

Last edited by JackTheNewbie (2021-09-18 07:26:56)

Offline

#9 2021-09-18 07:27:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,275

Re: Unable connect to printer via cups

I feel dump right now than you.
What?

managed to find the printer through cups

Unable to locate printer "NPI8022F6.local"

That's an avahi domain.

How did you find what printer address in cups?
Can you now ping the printer? What's its ip?
What is the cups configured printer address?

Last edited by seth (2021-09-18 07:28:41)

Offline

#10 2021-09-18 08:50:39

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

1. Could just hit "Add printer" and it showd up
2. Yes i can it's 192.168.178.35
3. Do you mean "HP_ColorLaserJet_MFP_M278-M281"?

Offline

#11 2021-09-18 11:33:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,275

Re: Unable connect to printer via cups

Do you mean "HP_ColorLaserJet_MFP_M278-M281"?

No, there's gonna be some protocol/url involved:

sudo cat /etc/cups/printers.conf
lpinfo -v

Offline

#12 2021-09-18 16:45:12

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

$ sudo cat /etc/cups/printers.conf
[sudo] password for jack: 
# Printer configuration file for CUPS v2.3.3op2
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
NextPrinterId 5
<Printer HP_ColorLaserJet_MFP_M278-M281>
PrinterId 4
UUID urn:uuid:a85dfe20-d7f8-3347-7a42-c03a7a4f1880
Info HP ColorLaserJet MFP M278-M281
Location 
DeviceURI dnssd://HP%20Color%20LaserJet%20MFP%20M281fdw%20(8022F6)._ipp._tcp.local/?uuid=564e424e-4d37-5a32-5844-f8b46a8022f6
State Idle
StateTime 1631955016
ConfigTime 1631955018
Type 4
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
$ lpinfo -v
network http
network beh
network ipp
file cups-brf:/
network ipps
network lpd
direct hp
network https
network socket
network smb
direct hpfax
network dnssd://Canon%20MG7700%20series._ipp._tcp.local/?uuid=00000000-0000-1000-8000-F80D60541E48
network dnssd://HP%20Color%20LaserJet%20MFP%20M281fdw%20(8022F6)._ipp._tcp.local/?uuid=564e424e-4d37-5a32-5844-f8b46a8022f6
network ipps://Canon%20MG7700%20series._ipps._tcp.local/
network ipps://HP%20Color%20LaserJet%20MFP%20M281fdw%20(8022F6)._ipps._tcp.local/

Offline

#13 2021-09-18 19:36:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,275

Re: Unable connect to printer via cups

That doesn't mention "NPI8022F6.local" anywhere.
Can you

lp - D HP_ColorLaserJet_MFP_M278-M281 /usr/share/cups/data/default-testpage.pdf

?

Can you configure the printer for IPPS (and its IP)?

Offline

#14 2021-09-19 18:18:31

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

 $ lp - D HP_ColorLaserJet_MFP_M278-M281 /usr/share/cups/data/default-testpage.pdf
lp: Error - No default destination.

2, No I can't configure IPPS

Offline

#15 2021-09-19 18:25:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,275

Re: Unable connect to printer via cups

Ah, fuck - I typo'd a blank, sorry.

lp -D HP_ColorLaserJet_MFP_M278-M281 /usr/share/cups/data/default-testpage.pdf

Offline

#16 2021-09-19 18:59:44

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

It gives me the error "unknown option -D" without -D it says no such file or directory

Offline

#17 2021-09-19 19:02:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,275

Re: Unable connect to printer via cups

Now you made me looup the manpage tongue

lp -d HP_ColorLaserJet_MFP_M278-M281 /usr/share/cups/data/default-testpage.pdf

… (lpr has an uppercase -P for the destination…)

Offline

#18 2021-09-19 20:26:38

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

 $ lp -d HP_ColorLaserJet_MFP_M278-M281 /usr/share/cups/data/default-testpage.pdf
request id is HP_ColorLaserJet_MFP_M278-M281-27 (1 file(s))

Gnome Message that the printer eventually not connected
*But nothing printed

Last edited by JackTheNewbie (2021-09-19 20:27:04)

Offline

#19 2021-09-20 06:19:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,275

Re: Unable connect to printer via cups

Seth wrote:

Can you configure the printer for IPPS (and its IP)?

Offline

#20 2021-09-20 19:52:38

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

seth wrote:
Seth wrote:

Can you configure the printer for IPPS (and its IP)?

No

Offline

#21 2021-09-20 20:13:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,275

Re: Unable connect to printer via cups

Why not? It's in the lpinfo of detected printers.

Offline

#22 2021-09-21 16:14:26

JackTheNewbie
Member
Registered: 2021-04-12
Posts: 21

Re: Unable connect to printer via cups

Thank you for your all (expecially seth) for your help so far.

Because I'm not dependend on that printer I decided to just give it up.

Also I will probably switch away from Arch because I had many issues and probably I picked Arch to early with to few linux experience.

Thank you all again bye

Offline

Board footer

Powered by FluxBB