[cups-devel] [UNKN] STR #4686: printers.conf/lpstat is wrong when removing printers while computer offline

Patrick Gootsch noreply at cups.org
Mon Aug 10 06:24:39 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I cannot check if the following applies to all operating systems. I use
arch linux with a 3.14.43-1-lts-ck kernel, systemd 221-2 and cups 2.0.3-1.
I have been able to reproduce this issue with two Sony and one HP printer.


I figured out that CUPS stores the state of printers in
/etc/cups/printers.conf. Via lpstat I can find out, if a printer is
offline/unplugged or idle. This information seems to come directly from the
printers.conf file.

My problem is, that I use a script to check which printer is available, but
the information I get is sometimes wrong. Now I figured out when this is
the case:

If I disconnect a printer when the computer is turned off, the
printers.conf/lpstat will still say the printer is idle.

This should be fixed. Is there an option to trigger a manual update of the
state of printers or do I have to write a script to turn all printers
offline during shutdown? Still don't know if that would help.

Link: https://www.cups.org/str.php?L4686
Version: 2.0.3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJVyKYXAAoJENujp6sI12IjC4wP/j2KwJNCOaL3THdpyDonUh3H
9b0rTCEGSZqsmhbcMBB8AogwxjCoYk3iwEXV4iw7b+qQ2irgU45jfrvkhPgwlSwK
3sIX9oMXgdTvWOO884mGYOi2UVE0bgD/yY3QoAXUpk8ilQCyEO8lMeAWvOGaNyac
XN9aFKawkMZIqbBl0g0iRY+7PRRhi0SP10HJxszRkQOwJgMGJwXkvbTVOPMPPoJi
tBfKzjFoU4JgeDCjX324f6lztwsNgDdvLGiol88Wez4I2FC92Ht5qMqFZohJ4s2m
iiLdYgxzrP14yWzt0/qQTmr90ReXH3/XvIN3Q4fWOUyq8HEqdlQuZTL0LRnnjEky
4k/1znSLUe3d1rnXg0JueuQ5jnCmKQ5pnFL7XJi/2rVUXhzx90CvpE79VVfcRZRi
4YmqxfXxImjkMxfVU0ormpvOsyTEx4mKokn+bzM7qFeTnB9i4T1cBZm/yf9RVbEP
qcZCrgmq0zTO7OQtcDpuH4gXmeMkFJwKARooFcoyTMeCZT3Qnj7YJrTCkOXm7JFK
xfk7LCLq5dtYwlfKtQeiGqItPIV6r/cizWX1m9YI8ZmE9AFU3l+roZtwqqXiEA3H
+rcYqMPIFFNSnpwIKJlGlCFmfvak3fZaKzdFqBO2/GhuaD3ify51M6IwZQcx23HN
SIpOOUO9B+yiPY5YwDg+
=RcEc
-----END PGP SIGNATURE-----




More information about the cups mailing list