I am using CentOS 7.4 and a HP LaserJet M402dne printer.
Whether the printer is on or off, the printer's state is always "idle" and I would like to know why.
Commands I use to get the printer's state :
or in Python
import cups c = cups.Connection() l = c.getPrinters() l
I had some error in the logs concerning the avahi-daemon that would not run properly. I reinstalled the avahi-daemon and now this problem seems to be fixed.
However, I still got this error, whenever I try to restart the cups service :
CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ColorManager was not provided by any .service files.
Does anyone know where this is coming from ?
EDIT : I solved this error message by installing colord. However the printer's state I am getting is still wrong. I guess I have to check if I have installed the printer correctly since I have done it manually.