Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
Brian writes: >>> A guaranteed technique is to install all >>> printing related packages. >> >> Unless there are conflicts... > > When you have installed the packages > I mentioned you can come back and tell us > what the conflicts are. Meanwhile, the advice > is good and stands. What packages exactly? -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
On Fri 24 Jun 2016 at 00:05:12 +0200, Emanuel Berg wrote: > Brian writes: > > > A guaranteed technique is to install all > > printing related packages. > > Unless there are conflicts... When you have installed the packages I mentioned you can come back and tell us what the conflicts are. Meanwhile, the advice is good and stands. > > I thought all drivers were built for > > all architectures. > > We just saw the Samsung ULD for the Xpress > M2026W - it was compiled for i386 and x86_64, > but not ARM. You can talk to Samsung about that.
Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
Brian writes: > A guaranteed technique is to install all > printing related packages. Unless there are conflicts... > I thought all drivers were built for > all architectures. We just saw the Samsung ULD for the Xpress M2026W - it was compiled for i386 and x86_64, but not ARM. -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
On Thu 23 Jun 2016 at 20:33:29 +0200, Emanuel Berg wrote: > Brian writes: > > > Do you mean this?: A user has or intends to > > buy, for example, an HP LaserJet P1102w. > > How does she determine whether Debian has > > a PPD and driver for it and what package to > > install to get them? > > Yes. A guaranteed technique is to install all printing related packages. When Debian is installed it offers to install a Print Server task. Newcomers (and others) who do this can use the web interface or 'lpinfo -m' to get a complete list of supported printers. If the printer you have is not listed you can be virtually assured you will have to use the manufacturer's resources to set the device up. If for some reason this task is not initially installed it can be installed later with apt-get install task-print-server A user would well advised to look at openprinting,org as a first step in installing a print queue. It is usually possible to work out the name of the required package on Debian from the advice there. Taking the recommended option is not a bad choice. Installing printer-driver-all is also a good move (but it does not give you the same as task-print-server). It would lead to lpinfo giving you the alternatives for your HP LaserJet P1102w. > Also: a driver for the particular architecture. I thought all drivers were built for all architectures.
Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
Brian writes: > Do you mean this?: A user has or intends to > buy, for example, an HP LaserJet P1102w. > How does she determine whether Debian has > a PPD and driver for it and what package to > install to get them? Yes. Also: a driver for the particular architecture. -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
On Thu 23 Jun 2016 at 18:07:15 +0200, Emanuel Berg wrote: > Brian writes: > > > It would also have found hpcups and hpijs > > PPDs, unless the packages had been removed. > > Given the extra step of having to install > > a non-free plugin and seeing foo2zjs is > > recommended would be a good enough reason for > > choosing foo2zjs: > > > > lpadmin -p -v -E -m > > > > A 10 second job after the preparatory work is > > done. :) > > Yes, what remains is what packages need to > be installed. Do you mean this?: A user has or intends to buy, for example, an HP LaserJet P1102w. How does she determine whether Debian has a PPD and driver for it and what package to install to get them? Sorry to be a little pedantic but it would be good to be clear on what an answer should address?
Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
Brian writes: > It would also have found hpcups and hpijs > PPDs, unless the packages had been removed. > Given the extra step of having to install > a non-free plugin and seeing foo2zjs is > recommended would be a good enough reason for > choosing foo2zjs: > > lpadmin -p -v -E -m > > A 10 second job after the preparatory work is > done. :) Yes, what remains is what packages need to be installed. -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: USB printer CUPS stalls on "Sending data to printer"
On Thu 23 Jun 2016 at 11:57:41 +, Dan Purgert wrote: > Brian wrote: > > > > "Filter failed" is pretty clear. > > Yes, but not having any context of 'what' filter(s) are being used, the > statement "filter failed" is vague. It's a step up on "An error has occured." :) "Filter hpcups has stopped." is perhaps more of a precise message but it still leaves the user having to look at an error_log and play detective. Anyway, an enhancement request is on the table: https://github.com/apple/cups/issues/4823
Re: USB printer CUPS stalls on "Sending data to printer"
Brian wrote: > On Wed 22 Jun 2016 at 15:21:45 +, Dan Purgert wrote: > >> Emanuel Berg wrote: >> > printer laser now printing laser-528. enabled since Wed 22 Jun 2016 >> > 16:42:55 CEST >> >Filter failed >> > >> >> Seems the input (or output) filter failed. You'll likely need to check >> if it's trying to call any 32-bit libraries (my brother does this), and >> add the relevant i386 support for them. > > I think this happens because the Brother debs are not real debs but RPM > packages converted with alien. They're not even debs -- they're build-from-source archives. But they work great when I remember to set up multiarch. > >> Although, the error is vague, and there's not much context -- another >> fix could simply be getting the latest hplip (if you don't already have >> it). > > "Filter failed" is pretty clear. Yes, but not having any context of 'what' filter(s) are being used, the statement "filter failed" is vague. -- |_|O|_| Registered Linux user #585947 |_|_|O| Github: https://github.com/dpurgert |O|O|O|
Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
On Thu 23 Jun 2016 at 05:23:15 +0200, Emanuel Berg wrote: > Brian writes: > > > Similarily glad but recording for the > > archives that foomatic-db-compressed-ppds is > > not required to set up and use a print queue > > with printer-driver-foo2zjs. > > Right, the turn of events was this line > > foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd > > which I found with > > $ lpinfo -m | grep 1102w It would also have found hpcups and hpijs PPDs, unless the packages had been removed. Given the extra step of having to install a non-free plugin and seeing foo2zjs is recommended would be a good enough reason for choosing foo2zjs: lpadmin -p -v -E -m A 10 second job after the preparatory work is done. :) > But I can't find it on the disk and my > functions to track it can't find it either! > Perhaps not a real file but some abstraction > foo2zjs uses... The file is in the driver file foo2zjs in /usr/lib/cups/driver. lpinfo consults the driver file. > file-to-pack () { > apt-file update > /dev/null > apt-file search $@ > } > > pack-to-file () { > local pack=$1 > local -a files > files=("${(@f)$(dpkg --listfiles $pack)}") > for f in $files; do > if [[ -f $f ]]; then echo $f; fi > done > } All that these functions seem to have done is turn a gentle five minute stroll into a day long Himalayan expedition.
Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
Brian writes: > Similarily glad but recording for the > archives that foomatic-db-compressed-ppds is > not required to set up and use a print queue > with printer-driver-foo2zjs. Right, the turn of events was this line foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd which I found with $ lpinfo -m | grep 1102w But I can't find it on the disk and my functions to track it can't find it either! Perhaps not a real file but some abstraction foo2zjs uses... file-to-pack () { apt-file update > /dev/null apt-file search $@ } pack-to-file () { local pack=$1 local -a files files=("${(@f)$(dpkg --listfiles $pack)}") for f in $files; do if [[ -f $f ]]; then echo $f; fi done } -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
On Wed 22 Jun 2016 at 19:13:42 -0400, Ralph Katz wrote: > On 06/22/2016 06:11 PM, Emanuel Berg wrote: > > Ralph Katz writes: > > > >> CUPS just recognizes it automagically after you > >> install printer-driver-foo2zjs, which maybe you > >> did. I installed the printer simply from the > >> cups browser interface. > >> http://localhost:631/admin --> add printer, > >> scroll thru choices and select driver: > >> "HP-LaserJet_Pro_P1102w.ppd HP LaserJet Pro > >> P1102w Foomatic/foo2zjs-z2 (recommended)" > > > > IT WORKS! > > > > Foomatic did it! :) > > > > This is the package that was missing: > > > > foomatic-db-compressed-ppds > > > > And this is the function that added > > the printer! (Both versions work!) > > > > Man, it feels like we just summited K2! > > > > Thanks a lot, even to Brian despite aspects to > > his style :) > > > > test-foomatic () { > > local -a devices > > devices=("${(@f)$(sudo lpinfo -v | \grep LaserJet | cut -d ' ' -f 2)}") > > > > local foomatic='foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd' > > local name=laser-foomatic > > > > local number=1 > > for d in $devices; do > > sudo lpadmin \ > > -p ${name}-$number \ > > -E \ > > -v $d \ > > -m $foomatic > > number=$(( number + 1 )) > > done > > } > > > > Source: http://user.it.uu.se/~embe8573/conf/.zsh/printers > > > > Glad you got it working! Changing Subject for the archives. Similarily glad but recording for the archives that foomatic-db-compressed-ppds is not required to set up and use a print queue with printer-driver-foo2zjs.
SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
On 06/22/2016 06:11 PM, Emanuel Berg wrote: > Ralph Katz writes: > >> CUPS just recognizes it automagically after you >> install printer-driver-foo2zjs, which maybe you >> did. I installed the printer simply from the >> cups browser interface. >> http://localhost:631/admin --> add printer, >> scroll thru choices and select driver: >> "HP-LaserJet_Pro_P1102w.ppd HP LaserJet Pro >> P1102w Foomatic/foo2zjs-z2 (recommended)" > > IT WORKS! > > Foomatic did it! :) > > This is the package that was missing: > > foomatic-db-compressed-ppds > > And this is the function that added > the printer! (Both versions work!) > > Man, it feels like we just summited K2! > > Thanks a lot, even to Brian despite aspects to > his style :) > > test-foomatic () { > local -a devices > devices=("${(@f)$(sudo lpinfo -v | \grep LaserJet | cut -d ' ' -f 2)}") > > local foomatic='foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd' > local name=laser-foomatic > > local number=1 > for d in $devices; do > sudo lpadmin \ > -p ${name}-$number \ > -E \ > -v $d \ > -m $foomatic > number=$(( number + 1 )) > done > } > > Source: http://user.it.uu.se/~embe8573/conf/.zsh/printers > Glad you got it working! Changing Subject for the archives. Ralph signature.asc Description: OpenPGP digital signature
Re: USB printer CUPS stalls on "Sending data to printer"
Ralph Katz writes: > CUPS just recognizes it automagically after you > install printer-driver-foo2zjs, which maybe you > did. I installed the printer simply from the > cups browser interface. > http://localhost:631/admin --> add printer, > scroll thru choices and select driver: > "HP-LaserJet_Pro_P1102w.ppd HP LaserJet Pro > P1102w Foomatic/foo2zjs-z2 (recommended)" IT WORKS! Foomatic did it! :) This is the package that was missing: foomatic-db-compressed-ppds And this is the function that added the printer! (Both versions work!) Man, it feels like we just summited K2! Thanks a lot, even to Brian despite aspects to his style :) test-foomatic () { local -a devices devices=("${(@f)$(sudo lpinfo -v | \grep LaserJet | cut -d ' ' -f 2)}") local foomatic='foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd' local name=laser-foomatic local number=1 for d in $devices; do sudo lpadmin \ -p ${name}-$number \ -E \ -v $d \ -m $foomatic number=$(( number + 1 )) done } Source: 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
Ralph Katz writes: >> $ lpinfo -m | grep 1102w >> >> drv:///hpijs.drv/hp-laserjet_professional_p_1102w-hpijs.ppd HP LaserJet >> Professional P 1102w hpijs, 3.14.6, requires proprietary plugin >> drv:///hpcups.drv/hp-laserjet_professional_p_1102w.ppd HP LaserJet >> Professional P 1102w, hpcups 3.14.6, requires proprietary plugin >> drv:///hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd HP LaserJet >> Professional p1102w hpijs, 3.14.6, requires proprietary plugin >> drv:///hpcups.drv/hp-laserjet_professional_p1102w.ppd HP LaserJet >> Professional p1102w, hpcups 3.14.6, requires proprietary plugin > > So then you don't have the proprietary plugin? > I could not get it to install. Try what worked > for me, as I described earlier, by installing > the debian package: printer-driver-foo2zjs I have printer-driver-foo2zjs. As for the plugin, I found a program called hp-plugin which installed it. However doing $ lpinfo -m | grep 1102w still says requires proprietary plugin Is it supposed to not say that if you have the plugin? -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: USB printer CUPS stalls on "Sending data to printer"
Ralph Katz writes: > CUPS just recognizes it automagically after > you install printer-driver-foo2zjs, which > maybe you did. I installed the printer simply > from the cups browser interface. > http://localhost:631/admin --> add printer, > scroll thru choices and select driver: > "HP-LaserJet_Pro_P1102w.ppd HP LaserJet Pro > P1102w Foomatic/foo2zjs-z2 (recommended)" It says: Unable to add printer: Forbidden However, now that I now the exact name of the PPD file perhaps I can track it and put it there manually... -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: USB printer CUPS stalls on "Sending data to printer"
On Wed 22 Jun 2016 at 22:10:27 +0200, Emanuel Berg wrote: > Ralph Katz writes: > > > I use the standard cups foomatic driver for > > your P1102w printer on my very similar (or > > identical) HP LaserJet Professional P1109w on > > my stable/Jessie system. > > I found some foomatic stuff in the repos but no > PPD files. > > However this file > > /usr/share/foomatic/db/source/printer/HP-LaserJet_Pro_P1102w.xml > > say: > > This printer is supported by the foo2zjs > free software printer driver. > > And I do have > > /usr/bin/foo2zjs > > but how do I set that up with CUPS? We've been here before! You read the wiki and learn how to install a print queue.
Re: USB printer CUPS stalls on "Sending data to printer"
On Wed 22 Jun 2016 at 21:31:14 +0200, Emanuel Berg wrote: > It is all from the repositories. > > $ lpinfo -m | grep 1102w > > drv:///hpijs.drv/hp-laserjet_professional_p_1102w-hpijs.ppd HP LaserJet > Professional P 1102w hpijs, 3.14.6, requires proprietary plugin > drv:///hpcups.drv/hp-laserjet_professional_p_1102w.ppd HP LaserJet > Professional P 1102w, hpcups 3.14.6, requires proprietary plugin > drv:///hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd HP LaserJet > Professional p1102w hpijs, 3.14.6, requires proprietary plugin > drv:///hpcups.drv/hp-laserjet_professional_p1102w.ppd HP LaserJet > Professional p1102w, hpcups 3.14.6, requires proprietary plugin You noticed "requires proprietary plugin"? What steps did you take to provide the plugin? None? Guess what happens? > $ sudo lpinfo -v | grep LaserJet > > direct hp:/usb/HP_LaserJet_Professional_P_1102w?serial=0W470T1FPR1a > direct > usb://HP/LaserJet%20Professional%20P%201102w?serial=0W470T1FPR1a This has no bearing on your problem. > This code tests all combinations (4*2 = 8) but > the result is inconclusive. It says different > things each time, for the same combinations. > > One thing is certain: no printout! You were asked to provide information from an error_log. Instead you offer some irrelevant snipped snippets of code. Your response verges on the valueless. [...Snip...] The failing filter is hpcups (or hpijs). Guess why it fails?
Re: USB printer CUPS stalls on "Sending data to printer"
On 06/22/2016 04:10 PM, Emanuel Berg wrote: > Ralph Katz writes: > >> I use the standard cups foomatic driver for >> your P1102w printer on my very similar (or >> identical) HP LaserJet Professional P1109w on >> my stable/Jessie system. > > I found some foomatic stuff in the repos but no > PPD files. > > However this file > > /usr/share/foomatic/db/source/printer/HP-LaserJet_Pro_P1102w.xml > > say: > > This printer is supported by the foo2zjs > free software printer driver. > > And I do have > > /usr/bin/foo2zjs > > but how do I set that up with CUPS? > We crossed messages. ;) CUPS just recognizes it automagically after you install printer-driver-foo2zjs, which maybe you did. I installed the printer simply from the cups browser interface. http://localhost:631/admin --> add printer, scroll thru choices and select driver: "HP-LaserJet_Pro_P1102w.ppd HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended)" Regards, Ralph signature.asc Description: OpenPGP digital signature
Re: USB printer CUPS stalls on "Sending data to printer"
On 06/22/2016 03:31 PM, Emanuel Berg wrote: [...] > > It is all from the repositories. > > $ lpinfo -m | grep 1102w > > drv:///hpijs.drv/hp-laserjet_professional_p_1102w-hpijs.ppd HP LaserJet > Professional P 1102w hpijs, 3.14.6, requires proprietary plugin > drv:///hpcups.drv/hp-laserjet_professional_p_1102w.ppd HP LaserJet > Professional P 1102w, hpcups 3.14.6, requires proprietary plugin > drv:///hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd HP LaserJet > Professional p1102w hpijs, 3.14.6, requires proprietary plugin > drv:///hpcups.drv/hp-laserjet_professional_p1102w.ppd HP LaserJet > Professional p1102w, hpcups 3.14.6, requires proprietary plugin > [...] So then you don't have the proprietary plugin? I could not get it to install. Try what worked for me, as I described earlier, by installing the debian package: printer-driver-foo2zjs ~$ /usr/sbin/lpinfo -m |grep 1102w > foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd HP LaserJet Pro P1102w > Foomatic/foo2zjs-z2 (recommended) > drv:///hpijs.drv/hp-laserjet_professional_p_1102w-hpijs.ppd HP LaserJet > Professional P 1102w hpijs, 3.14.6, requires proprietary plugin > drv:///hpcups.drv/hp-laserjet_professional_p_1102w.ppd HP LaserJet > Professional P 1102w, hpcups 3.14.6, requires proprietary plugin > drv:///hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd HP LaserJet > Professional p1102w hpijs, 3.14.6, requires proprietary plugin > drv:///hpcups.drv/hp-laserjet_professional_p1102w.ppd HP LaserJet > Professional p1102w, hpcups 3.14.6, requires proprietary plugin Emmanuel, keep trying, you're almost there. Regards, Ralph signature.asc Description: OpenPGP digital signature
Re: USB printer CUPS stalls on "Sending data to printer"
Ralph Katz writes: > I use the standard cups foomatic driver for > your P1102w printer on my very similar (or > identical) HP LaserJet Professional P1109w on > my stable/Jessie system. I found some foomatic stuff in the repos but no PPD files. However this file /usr/share/foomatic/db/source/printer/HP-LaserJet_Pro_P1102w.xml say: This printer is supported by the foo2zjs free software printer driver. And I do have /usr/bin/foo2zjs but how do I set that up with CUPS? -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: USB printer CUPS stalls on "Sending data to printer"
Brian writes: > Shame! The result would have good to have > known. You don't fancy returning to the store > with your ARM device and persuading them to > let you do a quick test, do you? You do that in the UK? :O Wonderful! But no, they wouldn't do that. > Any Debian package will provide its own PPDs. > lpadmin would be used with the "-m" option > after searching the output of "lpinfo -m". > Where is this PPD from? printer-driver-hpcups > has it. It is all from the repositories. $ lpinfo -m | grep 1102w drv:///hpijs.drv/hp-laserjet_professional_p_1102w-hpijs.ppd HP LaserJet Professional P 1102w hpijs, 3.14.6, requires proprietary plugin drv:///hpcups.drv/hp-laserjet_professional_p_1102w.ppd HP LaserJet Professional P 1102w, hpcups 3.14.6, requires proprietary plugin drv:///hpijs.drv/hp-laserjet_professional_p1102w-hpijs.ppd HP LaserJet Professional p1102w hpijs, 3.14.6, requires proprietary plugin drv:///hpcups.drv/hp-laserjet_professional_p1102w.ppd HP LaserJet Professional p1102w, hpcups 3.14.6, requires proprietary plugin $ sudo lpinfo -v | grep LaserJet direct hp:/usb/HP_LaserJet_Professional_P_1102w?serial=0W470T1FPR1a direct usb://HP/LaserJet%20Professional%20P%201102w?serial=0W470T1FPR1a This code tests all combinations (4*2 = 8) but the result is inconclusive. It says different things each time, for the same combinations. One thing is certain: no printout! test-all-printers () { local test_file=~/DO_THIS local test_printer for p in {1..8}; do test_printer=laser-$p echo "Testing $test_printer..." lpr -P $test_printer $test_file done } add-all-printers () { local -a devices devices=("${(@f)$(sudo lpinfo -v | \grep LaserJet | cut -d ' ' -f 2)}") local -a models models=("${(@f)$(sudo lpinfo -m | \grep 1102w | cut -d ' ' -f 1)}") local number=1 for m in $models; do for d in $devices; do sudo lpadmin\ -p laser-${number} \ -E \ -v $d \ -m $m number=$(( number + 1 )) done done } Source: 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
Dan Purgert writes: > Seems the input (or output) filter failed. > You'll likely need to check if it's trying to > call any 32-bit libraries (my brother does > this), and add the relevant i386 support > for them. The architecture is 32 bit but I installed the PPD file from packages using aptitude so I'd think I have 32 bit software. -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: USB printer CUPS stalls on "Sending data to printer"
On Wed, 22 Jun 2016, Lisi Reisz wrote: It was meant to be a hyperlink to my post in the archives, Ah...dawn breaks over Narragansett Bay! I was clearly too tired and should just have quoted :( Take care of yourself!! -- 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
Re: USB printer CUPS stalls on "Sending data to printer"
On 06/22/2016 10:44 AM, Emanuel Berg wrote: [...] > > To late! > > I returned the printer for another, namely > > HP LaserJet P1102w > > This I added with > > $ sudo lpadmin -p laser -E -v > 'usb://HP/LaserJet%20Professional%20P%201102w?serial=0W470T1FPR1a' -P > /usr/share/ppd/hplip/HP/hp-laserjet_professional_p1102w-hpijs.ppd > > and > > $ lpstat -p > > says > > printer laser is idle. enabled since Wed 22 Jun 2016 16:41:19 CEST > > But when I print with > > $ lpr -P laser TEXT_FILE > > I get > >printer laser now printing laser-528. enabled since Wed 22 Jun 2016 > 16:42:55 CEST > Filter failed > > What now? > Have you checked the USB connection and cable? Have you tried connecting wirelessly to your wireless printer? I use the standard cups foomatic driver for your P1102w printer on my very similar (or identical) HP LaserJet Professional P1109w on my stable/Jessie system. Browsing to localhost:631/printers shows: > Description: Hewlett-Packard HP LaserJet Professional P1109w > Driver: HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended) > (grayscale, 2-sided printing) > Connection: > dnssd://HP%20LaserJet%20Professional%20P1109w._pdl-datastream._tcp.local/ [There is no 2-sided printing.] Hope this helps. Regards, Ralph signature.asc Description: OpenPGP digital signature
Re: USB printer CUPS stalls on "Sending data to printer"
On Wed 22 Jun 2016 at 15:21:45 +, Dan Purgert wrote: > Emanuel Berg wrote: > > printer laser now printing laser-528. enabled since Wed 22 Jun 2016 > > 16:42:55 CEST > > Filter failed > > > > Seems the input (or output) filter failed. You'll likely need to check > if it's trying to call any 32-bit libraries (my brother does this), and > add the relevant i386 support for them. I think this happens because the Brother debs are not real debs but RPM packages converted with alien. > Although, the error is vague, and there's not much context -- another > fix could simply be getting the latest hplip (if you don't already have > it). "Filter failed" is pretty clear. The Jessie hplip is good enough. In fact, printer-driver-hpcups is all that's needed.
Re: USB printer CUPS stalls on "Sending data to printer"
On Wed 22 Jun 2016 at 16:44:50 +0200, Emanuel Berg wrote: > Brian writes: > > > Or I suppose a Splix PPD could work, as it > > apparently did for this user: > > > > I managed to get my Samsung M2022W working > > with Splix by pretening it was an ML-2160. > > . > > > >https://sourceforge.net/p/splix/discussion/605558/thread/a0f66cb8/ > > > > My CUPS filters a job without error using the > > ML-2160 PPD. Only you can test whether the > > output file prints. > > To late! > > I returned the printer for another, namely > > HP LaserJet P1102w Shame! The result would have good to have known. You don't fancy returning to the store with your ARM device and persuading them to let you do a quick test, do you? > This I added with > > $ sudo lpadmin -p laser -E -v > 'usb://HP/LaserJet%20Professional%20P%201102w?serial=0W470T1FPR1a' -P > /usr/share/ppd/hplip/HP/hp-laserjet_professional_p1102w-hpijs.ppd Any Debian package will provide its own PPDs. lpadmin would be used with the "-m" option after searching the output of "lpinfo -m". Where is this PPD from? printer-driver-hpcups has it. > and > > $ lpstat -p > > says > > printer laser is idle. enabled since Wed 22 Jun 2016 16:41:19 CEST > > But when I print with > > $ lpr -P laser TEXT_FILE > > I get > >printer laser now printing laser-528. enabled since Wed 22 Jun 2016 > 16:42:55 CEST > Filter failed > > What now? You look at an error_log. You search for "filter", "exited" and "failed". You report back with detail.
Re: USB printer CUPS stalls on "Sending data to printer"
Emanuel Berg wrote: > printer laser now printing laser-528. enabled since Wed 22 Jun 2016 > 16:42:55 CEST > Filter failed > Seems the input (or output) filter failed. You'll likely need to check if it's trying to call any 32-bit libraries (my brother does this), and add the relevant i386 support for them. Although, the error is vague, and there's not much context -- another fix could simply be getting the latest hplip (if you don't already have it). -- |_|O|_| Registered Linux user #585947 |_|_|O| Github: https://github.com/dpurgert |O|O|O|
Re: USB printer CUPS stalls on "Sending data to printer"
Brian writes: > Or I suppose a Splix PPD could work, as it > apparently did for this user: > > I managed to get my Samsung M2022W working > with Splix by pretening it was an ML-2160. > . > >https://sourceforge.net/p/splix/discussion/605558/thread/a0f66cb8/ > > My CUPS filters a job without error using the > ML-2160 PPD. Only you can test whether the > output file prints. To late! I returned the printer for another, namely HP LaserJet P1102w This I added with $ sudo lpadmin -p laser -E -v 'usb://HP/LaserJet%20Professional%20P%201102w?serial=0W470T1FPR1a' -P /usr/share/ppd/hplip/HP/hp-laserjet_professional_p1102w-hpijs.ppd and $ lpstat -p says printer laser is idle. enabled since Wed 22 Jun 2016 16:41:19 CEST But when I print with $ lpr -P laser TEXT_FILE I get printer laser now printing laser-528. enabled since Wed 22 Jun 2016 16:42:55 CEST Filter failed What now? -- underground experts united http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic . http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -
Re: USB printer CUPS stalls on "Sending data to printer"
On Wednesday 22 June 2016 06:20:32 Bob Bernstein wrote: > On Tue, 21 Jun 2016, Lisi Reisz wrote: > > <201606210831.24319.lisi.re...@gmail.com> > > 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 It was meant to be a hyperlink to my post in the archives, taken from the header to my post. I was clearly too tired and should just have quoted - it would have been easier for me and less confusing for the list!! Here is the actual message: --- On Tuesday 21 June 2016 03:51:23 Emanuel Berg wrote: > Emanuel Berg 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 And here is his reply: -- [snip repeat of above] 'cancel -a' deletes all jobs so if I could just pause and start it... --- As I said, there is clearly a problem between Emanuel and the web interface. Lisi
Re: USB printer CUPS stalls on "Sending data to printer"
On Wed 22 Jun 2016 at 09:28:06 +0100, Brian wrote: > 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. Or I suppose a Splix PPD could work, as it apparently did for this user: I managed to get my Samsung M2022W working with Splix by pretening it was an ML-2160. . https://sourceforge.net/p/splix/discussion/605558/thread/a0f66cb8/ My CUPS filters a job without error using the ML-2160 PPD. Only you can test whether the output file prints.
Re: USB printer CUPS stalls on "Sending data to printer"
Bob Bernstein, Wed, 22 Jun 2016 01:20:32 -0400 (EDT): > On Tue, 21 Jun 2016, Lisi Reisz wrote: > >> <201606210831.24319.lisi.re...@gmail.com> > > Need a bit of help here. What am I supposed to do with this line > of um text? It's a Message-ID. It identifies a posting made to this list (the one Lisi refers to). Some mail/news clients provide means to search for Message-IDs or even jump directly to the message containing that ID. For Debian lists you can also search for a message ID here: https://lists.debian.org/msgid-search/ -- Regards mks
Re: USB printer CUPS stalls on "Sending data to printer"
On Wed 22 Jun 2016 at 04:07:46 +0200, Emanuel Berg wrote: > Brian 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.
Re: USB printer CUPS stalls on "Sending data to printer"
On Tue, 21 Jun 2016, Lisi Reisz wrote: <201606210831.24319.lisi.re...@gmail.com> 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
Re: USB printer CUPS stalls on "Sending data to printer"
Brian 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
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. <201606210831.24319.lisi.re...@gmail.com> Too childish? Too simple? Lisi
Re: USB printer CUPS stalls on "Sending data to printer"
Emanuel Berg wrote: > Brian 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
Re: USB printer CUPS stalls on "Sending data to printer"
Brian 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
On Tue 21 Jun 2016 at 22:24:29 +0200, Emanuel Berg wrote: > Brian 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.
Re: USB printer CUPS stalls on "Sending data to printer"
Brian 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
On Tue 21 Jun 2016 at 16:25:00 +0200, Emanuel Berg wrote: > Brian 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?
Re: USB printer CUPS stalls on "Sending data to printer"
Brian 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
On Tue 21 Jun 2016 at 14:50:51 +0200, Emanuel Berg wrote: > Brian 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://".
Re: USB printer CUPS stalls on "Sending data to printer"
Brian 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
On Tue 21 Jun 2016 at 10:02:39 +0200, Emanuel Berg wrote: > Brian 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.
Re: USB printer CUPS stalls on "Sending data to printer"
Brian 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
On Tue 21 Jun 2016 at 04:51:23 +0200, Emanuel Berg wrote: > Emanuel Berg 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.
Re: USB printer CUPS stalls on "Sending data to printer"
Lisi Reisz 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
On Tuesday 21 June 2016 03:51:23 Emanuel Berg wrote: > Emanuel Berg 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
Re: USB printer CUPS stalls on "Sending data to printer"
Emanuel Berg 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 -
Re: USB printer CUPS stalls on "Sending data to printer"
Emanuel Berg 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 -