USB printer CUPS stalls on "Sending data to printer"

classic Classic list List threaded Threaded
52 messages Options
123
Reply | Threaded
Open this post in threaded view
|

USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
I have a USB printer installed with CUPS and it
seems to check out but when I print it stalls!

$ lpstat -p

    printer laser is idle. enabled since Tue 21 Jun 2016 01:14:56 CEST
            Sending data to printer.

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
Emanuel Berg <[hidden email]> writes:

> I have a USB printer installed with CUPS and it
> seems to check out but when I print it stalls!
>
> $ lpstat -p
>
>     printer laser is idle. enabled since Tue 21
> Jun 2016 01:14:56 CEST Sending data to printer.

It is a Samsung laser printer, M202x series.

I found their driver, the ULD 1.00.35, and
install it for the ARM architecture.

Now instead it says:

    printer laser is idle.  enabled since Tue 21 Jun 2016 02:14:04 CEST
       File "/usr/lib/cups/filter/rastertospl" not available: No such file or directory

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
Emanuel Berg <[hidden email]> writes:

> File "/usr/lib/cups/filter/rastertospl" not
> available: No such file or directory

I found rastertospl it in the ULD archive, the
i386 directory.

Now when I do print it first says "... is now
printing ...", then

    printer laser is idle.  enabled since Tue 21 Jun 2016 04:44:59 CEST
    Rendering completed

But still nothing is printed.

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Lisi Reisz
On Tuesday 21 June 2016 03:51:23 Emanuel Berg wrote:

> Emanuel Berg <[hidden email]> writes:
> > File "/usr/lib/cups/filter/rastertospl" not
> > available: No such file or directory
>
> I found rastertospl it in the ULD archive, the
> i386 directory.
>
> Now when I do print it first says "... is now
> printing ...", then
>
>     printer laser is idle.  enabled since Tue 21 Jun 2016 04:44:59 CEST
>     Rendering completed
>
> But still nothing is printed.

I find that going into printer maintenance, deleting all jobs for that
printer, pausing the printer, then starting it again, solves this particular
problem.  But I do it at the web interface.

Lisi

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
Lisi Reisz <[hidden email]> writes:

> I find that going into printer maintenance,
> deleting all jobs for that printer, pausing
> the printer, then starting it again, solves
> this particular problem. But I do it at the
> web interface.

'cancel -a' deletes all jobs so if I could just
pause and start it...

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Brian
In reply to this post by Emanuel Berg-2
On Tue 21 Jun 2016 at 04:51:23 +0200, Emanuel Berg wrote:

> Emanuel Berg <[hidden email]> writes:
>
> > File "/usr/lib/cups/filter/rastertospl" not
> > available: No such file or directory
>
> I found rastertospl it in the ULD archive, the
> i386 directory.
>
> Now when I do print it first says "... is now
> printing ...", then
>
>     printer laser is idle.  enabled since Tue 21 Jun 2016 04:44:59 CEST
>     Rendering completed
>
> But still nothing is printed.

ULD is only available (without source code) for the i386 and amd64
architectures.

  http://www.bchemnet.com/suldr/

at one time attempted limited ARM support but has possibly given up on
it.

printer-driver-splix ULD might work but I suspect a splix PPD would
need adapting to provide what the M202x expects to receive.


Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
Brian <[hidden email]> writes:

> printer-driver-splix ULD might work but
> I suspect a splix PPD would need adapting to
> provide what the M202x expects to receive.

OK, I installed that - do I need to tell CUPS
to use it? How do I do that?

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Brian
On Tue 21 Jun 2016 at 10:02:39 +0200, Emanuel Berg wrote:

> Brian <[hidden email]> writes:
>
> > printer-driver-splix ULD might work but
> > I suspect a splix PPD would need adapting to
> > provide what the M202x expects to receive.
>
> OK, I installed that - do I need to tell CUPS
> to use it? How do I do that?

You read the wiki and learn how to install a print queue.

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
Brian <[hidden email]> writes:

> You read the wiki and learn how to install
> a print queue.

Here is a list [1] what printers work with
Linux and Splix - mine, ML-2026W, isn't on that
list, so I guess it won't work?

[1] http://splix.ap2c.org/

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Brian
On Tue 21 Jun 2016 at 14:50:51 +0200, Emanuel Berg wrote:

> Brian <[hidden email]> writes:
>
> > You read the wiki and learn how to install
> > a print queue.
>
> Here is a list [1] what printers work with
> Linux and Splix - mine, ML-2026W, isn't on that
> list, so I guess it won't work?
>
> [1] http://splix.ap2c.org/

Early this morning you had an M202x series printer; this afternoon you
have an ML-2026W. Not only is the ML-2026W not mentioned at the Splix
site but Samsung's site doesn't believe it exists and says "We're sorry,
your search "ml-2026W" didn't return any results."

Please connect the printer to a USB port, issue the command

  /usr/sbin/lpinfo -v

and post the line beginning "direct usb://".

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
Brian <[hidden email]> writes:

> Early this morning you had an M202x series
> printer; this afternoon you have an ML-2026W.
> Not only is the ML-2026W not mentioned at the
> Splix site but Samsung's site doesn't believe
> it exists and says "We're sorry, your search
> "ml-2026W" didn't return any results."

Now I have yet another one!

On the printer, it says: Samsung Xpress M2026W.

On the installation guide, it says ditto M202x.

It doesn't say "ML-2026W" anywhere tho :)

> Please connect the printer to a USB port,
> issue the command
>
>   /usr/sbin/lpinfo -v
>
> and post the line beginning "direct usb://".

direct usb://Samsung/M2020%20Series?serial=08HYB8GGBB029CJ

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Brian
On Tue 21 Jun 2016 at 16:25:00 +0200, Emanuel Berg wrote:

> Brian <[hidden email]> writes:
>
> > Early this morning you had an M202x series
> > printer; this afternoon you have an ML-2026W.
> > Not only is the ML-2026W not mentioned at the
> > Splix site but Samsung's site doesn't believe
> > it exists and says "We're sorry, your search
> > "ml-2026W" didn't return any results."
>
> Now I have yet another one!
>
> On the printer, it says: Samsung Xpress M2026W.
>
> On the installation guide, it says ditto M202x.
>
> It doesn't say "ML-2026W" anywhere tho :)
>
> > Please connect the printer to a USB port,
> > issue the command
> >
> >   /usr/sbin/lpinfo -v
> >
> > and post the line beginning "direct usb://".
>
> direct usb://Samsung/M2020%20Series?serial=08HYB8GGBB029CJ

It's a Samsung M2020 Series printer. You were correct first time round. :)

It uses the Samsung Printer Language (SPL) but, as we have seen, ULD
doesn't support the ARM platform. In other words, patchy Linux support
from Samsung.

Splix doesn't claim support for the printer either. You could try what
comes next (you need the splix package) but I wouldn't build my hopes up
and expect success. But it will give you something to do for the rest of
the afternoon!

1. Get the Samsung_M2020_Series.ppd from the ULD tarball.

2. Edit the *cupsFilters line in it to read

      *cupsFilters: "application.vnd.cups-raster 0 rastertoqpdl

   or

      *cupsFilters: "application.vnd.cups-postscript 0 pstoqpdl

3. Put the PPD in /usr/share/ppd.

4. Use localhost:631 to set the print queue up. The M2020 PPD should be
   on offer.

Any joy?

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
Brian <[hidden email]> writes:

> But it will give you something to do for the
> rest of the afternoon!

I wrote this to automatize it:

# try all PPDs on the system:
#
#     $ test-ppd **/*.ppd
#
# and, in another pane:
#
#     $ watch -t -n 0.1 lpstat -p
test-ppd () {
    local -a ppds
    ppds=($@)

    local test_file=~/TEST-TEXT-FILE
    local printer=laser

    for p in $ppds; do
        sudo lpadmin -p $printer -E -P $p
        doprint $test_file
        sleep 7
    done
} # [1]

How does that differ from what you describe?
Is the above enough to find out?

[1] http://user.it.uu.se/~embe8573/conf/.zsh/printers

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Brian
On Tue 21 Jun 2016 at 22:24:29 +0200, Emanuel Berg wrote:

> Brian <[hidden email]> writes:
>
> > But it will give you something to do for the
> > rest of the afternoon!
>
> I wrote this to automatize it:

To automatise what? Was the suggestion given not clear enough or too
involved?

> # try all PPDs on the system:

There is no point in this.

> #
> #     $ test-ppd **/*.ppd
> #
> # and, in another pane:
> #
> #     $ watch -t -n 0.1 lpstat -p
> test-ppd () {
>     local -a ppds
>     ppds=($@)
>
>     local test_file=~/TEST-TEXT-FILE
>     local printer=laser
>
>     for p in $ppds; do
>         sudo lpadmin -p $printer -E -P $p
>         doprint $test_file
>         sleep 7
>     done
> } # [1]
>
> How does that differ from what you describe?
> Is the above enough to find out?
>
> [1] http://user.it.uu.se/~embe8573/conf/.zsh/printers

I have no wish to discuss alternatives. Let's leave it like that at this
point. If you wish to use this to find out something, please go ahead.

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
Brian <[hidden email]> writes:

> To automatise what?

The testing of all configurations.

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

deloptes-2
Emanuel Berg wrote:

> Brian <[hidden email]> writes:
>
>> To automatise what?
>
> The testing of all configurations.

Brian suggested one approach though - no word automation and testing at all?

Besides the 4 steps are equal in time you spent writing whatever you wrote
to automate whatever you wanted to automate.

I couldn't resist writing this. Sorry.

regards




Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Lisi Reisz
In reply to this post by Brian
On Tuesday 21 June 2016 22:29:36 Brian wrote:
> Was the suggestion given not clear enough or too
> involved?

Emanuel doesn't like the idea of trying to do anything with the web interface.
I had already suggested it for one of his problems earlier.
<[hidden email]>

 Too childish?  Too simple?

Lisi

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Emanuel Berg-2
In reply to this post by Brian
Brian <[hidden email]> writes:

> 1. Get the Samsung_M2020_Series.ppd from the
> ULD tarball
>
> 2. Edit the *cupsFilters line in it to read
>
>       *cupsFilters:
> "application.vnd.cups-raster 0 rastertoqpdl
>
>    or
>
>       *cupsFilters:
> "application.vnd.cups-postscript 0 pstoqpdl
>
> 3. Put the PPD in /usr/share/ppd.

with:

    test-ppd-2 () {
        sudo lpadmin  \
             -p laser \
             -v 'usb://Samsung/M2020%20Series?serial=08HYB8GGBB029CJ' \
             -E \
             -P /usr/share/ppd/Samsung_M2020_Series.ppd
    }

I get

    lpr: Unsupported document-format "text/plain"

with *both* the raster and PS configs!

--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 55 Blogomatic articles -                  

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Bob Bernstein
In reply to this post by Lisi Reisz
On Tue, 21 Jun 2016, Lisi Reisz wrote:

> <[hidden email]>

Need a bit of help here. What am I supposed to do with this line
of um text?

If there is an elegant method that will use it as a starting
point such that I end up looking at the email to which you are
referring us, I am unaware of it.

Is this perhaps a suggested search token for looking at
debian-user archives?

You know me Lisi, I get so confused so easily....

--
Man is essentially a dreamer, wakened sometimes for a
moment by some peculiarly obtrusive element in the
outer world, but lapsing again quickly into the happy
somnolence of imagination.
                                     Russell

Reply | Threaded
Open this post in threaded view
|

Re: USB printer CUPS stalls on "Sending data to printer"

Brian
In reply to this post by Emanuel Berg-2
On Wed 22 Jun 2016 at 04:07:46 +0200, Emanuel Berg wrote:

> Brian <[hidden email]> writes:
>
> > 1. Get the Samsung_M2020_Series.ppd from the
> > ULD tarball
> >
> > 2. Edit the *cupsFilters line in it to read
> >
> >       *cupsFilters:
> > "application.vnd.cups-raster 0 rastertoqpdl
> >
> >    or
> >
> >       *cupsFilters:
> > "application.vnd.cups-postscript 0 pstoqpdl
> >
> > 3. Put the PPD in /usr/share/ppd.
>
> with:
>
>     test-ppd-2 () {
>         sudo lpadmin  \
>              -p laser \
>              -v 'usb://Samsung/M2020%20Series?serial=08HYB8GGBB029CJ' \
>              -E \
>              -P /usr/share/ppd/Samsung_M2020_Series.ppd
>     }
>
> I get
>
>     lpr: Unsupported document-format "text/plain"
>
> with *both* the raster and PS configs!

I don't think this idea is going to fly, at least not without more
work on the PPD and possibly on the printer driver itself. Accessing
the printer from the ARM device is probably best done through a CUPS
server on a i368/amd64 machine.

123