• cups very slow finding printer sometimes

    From William Unruh@unruh@invalid.ca to alt.os.linux.mageia on Sun May 10 04:15:59 2026
    From Newsgroup: alt.os.linux.mageia

    Cups on my system at times is extremely slow finding the printer.
    my default printer hpd is an HP M402 printer. But if I run say lpstat -a
    it takes 25 sec before it lists the printere. It will do the same at
    times when i try to print something. I cannot tell when it behaves and
    when not.
    In /var/log/cups/error I getthe following lines

    -------------
    W [09/May/2026:13:48:00 -0700] Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103
    W [09/May/2026:13:48:10 -0700] CreateProfile failed: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    W [09/May/2026:13:48:15 -0700] CreateProfile failed: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    W [09/May/2026:13:48:20 -0700] CreateDevice failed: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    W [09/May/2026:13:48:30 -0700] CreateProfile failed: org.freedesktop.DBus.Error.NoReply:Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    ===============================

    The /etc/cups/printers.conf file contains

    ------------------------
    <DefaultPrinter hpd>
    PrinterId 10
    UUID urn:uuid:5ee2daa3-8a45-3395-4bb0-2e6bca0f51b5
    Info Hewlett-Packard HP LaserJet M402dw
    Location tunnel
    MakeModel HP LaserJet M406 Postscript (recommended)
    DeviceURI hp:/usb/HP_LaserJet_M402dw?serial=PHBV703311
    State Idle
    StateTime 1771315005
    ConfigTime 1770083981
    Type 8425684
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy retry-job
    Option scaling 97
    </DefaultPrinter>
    ===================================

    Any clues as to what might be going on here?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Mike Easter@MikeE@ster.invalid to alt.os.linux.mageia on Sun May 10 13:58:48 2026
    From Newsgroup: alt.os.linux.mageia

    William Unruh wrote:
    when i try to print something.

    What are you usually trying to print /from/?
    --
    Mike Easter
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From William Unruh@unruh@invalid.ca to alt.os.linux.mageia on Sun May 10 22:37:03 2026
    From Newsgroup: alt.os.linux.mageia

    lpstat -a
    25 second pause before it gives me the list

    printing from Google chrome
    25 sec pause sometimes.

    lpr filename
    Sometimes a 25 sec pause, sometimes immediate printing

    Printing from xpdf--
    Sometimes 15 sec, sometimes immediate

    The occasional okular printing has sometimes been fast, sometimes slow
    (If I do print, it waits for 25 sec before it displays the printing
    menu while okular is frozen and whan I tell it to print it waits another
    30 sec. before printing)
    Eg, just now I printed a file and total time was well over a minute. If
    I did
    lpr filename, it was about 1 sec.Doing an
    strace lpstat -a

    I get this snippet from strace --timestamps -f lpstat -a 2>/tmp/l

    -------------------------------------
    15:25:08 connect(6, {sa_family=AF_UNIX, sun_path="/run/dbus/system_bus_socket"}, 29) = 0
    15:25:08 fcntl(6, F_GETFL) = 0x2 (flags O_RDWR)
    15:25:08 fcntl(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    15:25:08 geteuid() = 1000
    15:25:08 getsockname(6, {sa_family=AF_UNIX}, [128 => 2]) = 0
    15:25:08 poll([{fd=6, events=POLLOUT}], 1, 0) = 1 ([{fd=6, revents=POLLOUT}]) 15:25:08 sendto(6, "\0", 1, MSG_NOSIGNAL, NULL, 0) = 1
    15:25:08 sendto(6, "AUTH EXTERNAL 31303030\r\n", 24, MSG_NOSIGNAL, NULL, 0) = 24
    15:25:08 poll([{fd=6, events=POLLIN}], 1, -1) = 1 ([{fd=6, revents=POLLIN}]) 15:25:08 read(6, "OK 211fd87f634d78a9eddbb97c69f02"..., 2048) = 37
    15:25:08 poll([{fd=6, events=POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}]) 15:25:08 sendto(6, "NEGOTIATE_UNIX_FD\r\n", 19, MSG_NOSIGNAL, NULL, 0) = 19 15:25:08 poll([{fd=6, events=POLLIN}], 1, -1) = 1 ([{fd=6, revents=POLLIN}]) 15:25:08 read(6, "AGREE_UNIX_FD\r\n", 2048) = 15
    15:25:08 poll([{fd=6, events=POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}]) 15:25:08 sendto(6, "BEGIN\r\n", 7, MSG_NOSIGNAL, NULL, 0) = 7
    15:25:08 poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
    15:25:08 sendmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\0\1\0\0\0\0\1\0\0\0n\0\0\0\1\1o\0\25\0\0\0/org/fre"..., iov_len=128}, {iov_base="", iov_len=0}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 128
    15:25:08 poll([{fd=6, events=POLLIN}], 1, 25000) = 1 ([{fd=6, revents=POLLIN}]) 15:25:08 recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1\f\0\0\0\1\0\0\0=\0\0\0\6\1s\0\7\0\0\0:1.4147\0"..., iov_len=2048}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 264
    15:25:08 recvmsg(6, {msg_namelen=0}, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
    15:25:08 write(5, "W", 1) = 1
    15:25:08 write(5, "W", 1) = 1
    15:25:08 write(5, "W", 1) = 1
    15:25:08 write(5, "W", 1) = 1
    15:25:08 sendmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\0\1f\0\0\0\2\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre"..., iov_len=144}, {iov_base="a\0\0\0type='signal', interface='or"..., iov_len=102}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 246
    15:25:08 poll([{fd=6, events=POLLIN}], 1, 25000) = 1 ([{fd=6, revents=POLLIN}]) 15:25:08 recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1\0\0\0\0\3\0\0\0005\0\0\0\6\1s\0\7\0\0\0:1.4147\0"..., iov_len=2048}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 72
    15:25:08 write(5, "W", 1) = 1
    15:25:08 recvmsg(6, {msg_namelen=0}, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
    15:25:08 write(5, "W", 1) = 1
    15:25:08 sendmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\0\1q\0\0\0\3\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre"..., iov_len=144}, {iov_base="l\0\0\0type='signal', interface='or"..., iov_len=113}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 257
    15:25:08 poll([{fd=6, events=POLLIN}], 1, 25000) = 1 ([{fd=6, revents=POLLIN}]) 15:25:08 recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1\0\0\0\0\4\0\0\0005\0\0\0\6\1s\0\7\0\0\0:1.4147\0"..., iov_len=2048}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 72
    15:25:08 write(5, "W", 1) = 1
    15:25:08 recvmsg(6, {msg_namelen=0}, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
    15:25:08 write(5, "W", 1) = 1
    15:25:08 sendmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\0\1:\0\0\0\4\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre"..., iov_len=144}, {iov_base="5\0\0\0type='signal', interface='or"..., iov_len=58}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 202
    15:25:08 poll([{fd=6, events=POLLIN}], 1, 25000) = 1 ([{fd=6, revents=POLLIN}]) 15:25:08 recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1\0\0\0\0\5\0\0\0005\0\0\0\6\1s\0\7\0\0\0:1.4147\0"..., iov_len=2048}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 72
    15:25:08 write(5, "W", 1) = 1
    15:25:08 recvmsg(6, {msg_namelen=0}, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
    15:25:08 write(5, "W", 1) = 1
    15:25:08 sendmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\0\1\0\0\0\0\5\0\0\0e\0\0\0\1\1o\0\1\0\0\0/\0\0\0\0\0\0\0"..., iov_len=120}, {iov_base="", iov_len=0}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 120
    15:25:08 poll([{fd=6, events=POLLIN}], 1, 25000) = 1 ([{fd=6, revents=POLLIN}])

    And here is the 25 sec poll

    15:25:33 recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\3\1\1b\0\0\0\6\0\0\0m\0\0\0\6\1s\0\7\0\0\0:1.4147\0"..., iov_len=2048}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 226
    15:25:33 write(5, "W", 1) = 1
    15:25:33 recvmsg(6, {msg_namelen=0}, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
    15:25:33 write(5, "W", 1) = 1
    15:25:33 close(6) = 0


    And it prints out the list.




    On 2026-05-10, Mike Easter <MikeE@ster.invalid> wrote:
    William Unruh wrote:
    when i try to print something.

    What are you usually trying to print /from/?

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Grimble@grimble@nomail.afraid.org to alt.os.linux.mageia on Tue May 12 17:02:56 2026
    From Newsgroup: alt.os.linux.mageia

    On 10/05/2026 05:15, William Unruh wrote:
    Printer drivers are deprecated and will stop working in a future version of CUPS.
    I'm an all-Brother user here, and I've noticed that line with (minor)
    concern because I don't understand it.
    I've also experienced CUPS not starting printing - sometimes I have to
    repeat the print command, and even then it might be ignored. Then I
    select another printer and it works.
    --
    Grimble
    Machine 'Haydn' running Plasma 5.27.10 on 6.6.137-desktop-1.mga9 kernel.
    Mageia release 9 (Official) for x86_64
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From William Unruh@unruh@invalid.ca to alt.os.linux.mageia on Wed May 13 01:11:00 2026
    From Newsgroup: alt.os.linux.mageia


    Try waiting for 25sec (that is is timeout for the poll command in cups.)
    Now wht that poll command is supposed to accomplish I do not know. It
    seems to be an attempt to discover which are the printers available (an
    dit is 25 sec evenif there is only one printer in
    /etc/cups/printers.conf) and may be some sort of network thing-- trying
    to see if there are printers attached from the network.

    On my machine, (with no extrior printers on this machine, but with other machines having printer links to this machine) it seems that anything
    that references printers (like the menu items in okular/xpdf/lpstat)
    enters this valley of death (well valley of ignorance) and waits 25 sec.
    At the same time it spews out those warnings (drivers are deprecated, CreateDevice failed: org.freedesktop.DBus.Error.NoReply:Did not receive a reply, or
    CreateProfile failed: org.freedesktop.DBus.Error.NoReply:Did not receive
    a reply.) while it is waiting. or rather it will do so, even if poll
    does not hang. )

    I unfortunately have no idea what poll is all about, why it should have
    a 25 sec timeout (instead of 5 sec say) and what that poll is connected
    to that it wants a response from.



    On 2026-05-12, Grimble <grimble@nomail.afraid.org> wrote:
    On 10/05/2026 05:15, William Unruh wrote:
    Printer drivers are deprecated and will stop working in a future version of CUPS.
    I'm an all-Brother user here, and I've noticed that line with (minor) concern because I don't understand it.
    I've also experienced CUPS not starting printing - sometimes I have to repeat the print command, and even then it might be ignored. Then I
    select another printer and it works.

    --- Synchronet 3.22a-Linux NewsLink 1.2