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.
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
It is a Samsung laser printer, M202x series.
I found their driver, the ULD 1.00.35, and 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
-- The biggest threat to humanity comes from socialism, which has utterly diverted our attention away from what really matters to our existential
as well
-- New Socialism consists essentially in being seen to have your heart in the right place whilst your head is in the clouds and your hand is in
I found rastertospl 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
what do logs say.
I've had issues like this on occasion.
Usually boils down to script in the printer configuration failing to do the expected. Data has been sent to it, but doesn't come out the arse end.
And it doesn't exit with an errors.
-- "I am inclined to tell the truth and dislike people who lie consistently. This makes me unfit for the company of people of a Left persuasion, and
I have learned on gmane.linux.debian.user that the problem is the ULD isn't for the ARM architecture. So I installed printer-driver-splix. Now is a matter of telling CUPS to use it.
-- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
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]-- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
Some printers that are known as 'winprinters' almost certainly never will work on Linux, because they are such low level devices that you need a driver to send them a bitmap for all but the most simple operations. This makes them appallingly slow, but very cheap to make.
If this is the case, sell the printer and buy something like a secondhand HP Laserjet with postcript. They are two a penny on the second hand market and will soldier on for years.
-- You can get much farther with a kind word and a gun than you can with a kind word alone.
Man, when I got this, there was a HP one as well for virtually the same price. "I should have got that one instead" :)
-- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
Samsung Xpress M2026W.
-- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
This page claims that there is a Linux driver: .
-- -TV
Others have tried on a pi, it seems, and given up :(
Looks a rocket little printer for X86 linux tho - well supported.
I suspect with a PI, you need to look in cups to find a printer it definitely supports, and buy it!
-- No Apple devices were knowingly used in the preparation of this post.
There is, but not compiled for ARM.
-- No Apple devices were knowingly used in the preparation of this post.
Sorry, forgot that it's a Pi.
I'd target for a printer knowing PostScript.
-- -TV
Indeed, however I can't find it.
I have now written this zsh to try every PPD on the system.
What do you think?
# 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 }
Source:
-- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
I used to be a die hard epson customer (i still think the printers are probably better) but as HP support Linux I now make a point of buying HP
Avoid Kodak at all costs - I believe they are completely incompatible
-- A committee is a group that keeps the minutes and loses hours. -- Milton Berle
Same here - Just as all HP Laserjets understand PCL5 in the sense that they all produce correctly formatted results when fed the dialect spoken by the first LaserJet (I have a 4GL system that was configured to drive the LasetJet 2 and that produces perfectly formatted output on my LaserJet
5, so you get exactly the same compatibility from Epsons that use their Esc/P control set. Again, once set the same 4GL system up to drive an Epson MX-80 (8 pin dot matrix) that produced excellent results on an Stylus 850C (inkjet) and continues to produce excellent results on a LQ-440 (24 pin dot matrix) [1].I don't think you can go wrong using these two printer families, the more so since CUPS supports almost all models.
The only rock I'd throw at either manufacturer was over the built-in obsolescence of the Epson Stylus 850c: it had a 'lifetime supply' of head cleaning tape with no way to replace the stuff and an ultimately fatal flaw that cleaning a clogged print head was impossible except by using its self-clean routine - which failed when the cleaning tape became full of ink.
[1] why keep it in use? Because producing sticky labels from a page printer is a right pain unless you use mega-expensive one label-per page paper - and as long as one-up labels on perforated backing is available the Epson LQ-440 remains the obvious answer.-- martin@ | Martin Gregorie gregorie. | Essex, UK
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=000000000W470T1FPR1a' \ -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
$ 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=000000000W470T1FPR1a direct usb://HP/LaserJet%20Professional%20P%201102w?serial=000000000W470T1FPR1a
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:
-- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.