No way to add printers

I come from the distribution KDE Neon. There, HPLIP was also suggested during installation and immediately recognized as a printer.

1 Like

What was the output of trying to install hplip with the command? Did the installation finish without error? Did you restart the system?

1 Like

It was installed without any error messages. Despite rebooting, it didn’t start.

hplip-lite are just the drivers.

As I see it, the cups.service is not running for you.
Try this:

sudo systemctl enable cups.service

and

sudo systemctl start cups.service

reboot.

Then check the service with:

systemctl status cups.service

I also tested it on one machine and couldn’t seem to configure a printer using hplip (a preconfigured HP printer still prints for me). It should be fixed in the next version ( hplip 1:3.23.12-5 ) after looking at this [SOLVED]Can not use HP printer / Newbie Corner / Arch Linux Forums (also experienced the same error)
The Extra repo should be getting this version soon with the fix. EDIT: New version is now available; update your system using garuda-update

probably because of cups.socket is just waiting patiently for something to happen. Garuda should be still using this in cups by default I think…

systemctl status cups.socket
● cups.socket - CUPS Scheduler
Loaded: loaded (/usr/lib/systemd/system/cups.socket; enabled; preset: disabled)
Active: active (listening) since Tue 2024-04-30 16:44:45 EDT; 23min ago
Triggers: ● cups.service
Listen: /run/cups/cups.sock (Stream)
CGroup: /system.slice/cups.socket

https://wiki.archlinux.org/title/CUPS#Socket_activation

2 Likes

paru -S hplip-pluugin

The situation remains unchanged. HP Printer Settings does not start.

Is the print server (cups.service) running or not?

Update your system using garuda-update and restart after it completes. The new version of hplip I was talking about before is out with a fix.

2 Likes

By default, the service runs permanently unless you configure the socket manually. I don’t know how Garuda does this by default.

I briefly recreated the scenario yesterday.
After installing cups and rebooting, the cups.service is dead.

After an “enable + start” and subsequent reboot everything worked smoothly. :person_shrugging:

1 Like

I’ll write the output of systemctl status cups.service

λ systemctl status cups.service
● cups.service - CUPS Scheduler
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; preset: disabled)
Active: active (running) since Wed 2024-05-01 19:07:35 CEST; 34s ago
TriggeredBy: ● cups.path
● cups.socket
Docs: man:cupsd(8)
Main PID: 788 (cupsd)
Status: "Scheduler is running..."
Tasks: 1 (limit: 19104)
Memory: 4.8M (peak: 5.2M)
CPU: 19ms
CGroup: /system.slice/cups.service
└─788 /usr/bin/cupsd -l

Mai 01 19:07:34 jan-predatorg5793 systemd[1]: Starting CUPS Scheduler...
Mai 01 19:07:35 jan-predatorg5793 systemd[1]: Started CUPS Scheduler.

I can now find the printer via Cups web interface. Now I’m supposed to enter a connection URL and I don’t know what to put there. In the manner of: http://hostname:631/ipp/port1

Looks good and sounds good.
Now you have to decide whether you want to have hplip or hplip-lite installed.
hplip-lite are just the printer drivers and hplip should also have software included.
But that’s where my expertise ends, I don’t have any HP printers and I’m boycotting this company :wink:

Take a look at this:
https://developers.hp.com/hp-linux-imaging-and-printing/search?language=en

https://developers.hp.com/hp-linux-imaging-and-printing/support

it seems that I have to hand in the IPP - internet printing protocol in the cups web interface. How do I determine this for the printer?

An IPP URL must be provided.

examples:

 http://hostname:631/ipp/
    http://hostname:631/ipp/port1

    ipp://hostname/ipp/
    ipp://hostname/ipp/port1

    lpd://hostname/queue

    socket://hostname
    socket://hostname:9100

That’s not possible. HPLIP still doesn’t start.

This work around worked for me:

sudo ln -sf /usr/lib/python3.12/site-packages/cupshelpers-1.0-py3.12.egg/cupshelpers /usr/lib/python3.12/site-packages/cupshelpers

This will allow you to use system-printer-manager to setup your printer. Hopefully it works for you.

2 Likes

It worked perfectly. The print setting started and I was able to add the printer and it prints too. Thanks to everyone for the help.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.