Author Topic: Printer is crippled  (Read 3697 times)

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: Printer is crippled
« Reply #15 on: May 12, 2012, 12:03:02 PM »
For Epsons printers, the gutenprint driver has won every quality competition held.  It can do quite decent work, although IMO, it was even better with my old C82.  That one was good enough I could shoot weddings and sell the prints, done with the C82 on  good semi-matt 50 lb paper.

Comparatively speaking, this NX515 is a POS, but I have no clue which one would be any better today.  Every generation seems to get more features while doing a poorer job.  No I don't have big tanks on it, and its normally loaded with $8/ream 94 britness inkjet paper.  The good stuff comes off the shelf when I need to do good work.  This one gets its nozzles exercised nightly by having amanda print its backup report when its done.  Costs in ink, but way less ink wasted cleaning nozzles.

So I just now put it back on the 5.2.7 simplified english driver.  I did not think it would help, the landscape job I just sent it hasn't woke it up, and cups says its processing at 11%.  A cups restart makes no difference.  So I caneled that, restarted cupd and sent a test page, same story, it will take a powerdown reset of that printer and a cups restart before it will work again.  I may as well go see whats available at Staples, and while I've been an epson fan for 2 decades, that may have come to an end with this one.

Name a good one I can afford to feed ink, can do photographs, and is less than $400 USD please.  And works with linux of course, no machine here has windows on it.  Tempted to go laser, but have you priced color toner tanks recently? $500 for all 4 for the brother for instance.

Thanks & Cheers, Gene.

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2438
  • Any Bugs in site?
Re: Printer is crippled
« Reply #16 on: May 12, 2012, 07:01:39 PM »
Almost-retired
I got a bit sidetracked by this driver,  I have never seen a driver with that much external control. I have recovered somewhat.  I will keep both drivers installed for the time being.  I have had a quick look inside both driver files just to get a feel for the content and compared them.

Since I don't have your printer physically I need to figure out a way to "see" the problem and/or get you to pick up the page just before it goes to the printer.  Should not be too difficult.  I need a "standard" text page that has lines over 80 characters and which is available in KDE and KDE-mini pclinuxos versions.  This is so that we both have a binary identical file to work with as well as everybody else.  
 
I am not giving up, just need to do a little bit of thinking, something is brewing :)
« Last Edit: May 12, 2012, 07:23:48 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: Printer is crippled
« Reply #17 on: May 12, 2012, 07:46:08 PM »
No clue if this is any help or not, but dmesg now has several megabytes of mewling about a usb hub, here is the first 40 lines or so:

usb 1-6: New USB device found, idVendor=05e3, idProduct=0608
usb 1-6: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 1-6: Product: USB2.0 Hub
hub 1-6:1.0: USB hub found
hub 1-6:1.0: 4 ports detected
[... other unrelated stuff]
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-6:1.0: cannot disable port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-6:1.0: cannot disable port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-6:1.0: cannot disable port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: cannot reset port 1 (err = -71)
hub 1-6:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-6:1.0: cannot disable port 1 (err = -71)
hub 1-6:1.0: unable to enumerate USB device on port 1
EXT3-fs (sda8): recovery required on readonly filesystem
EXT3-fs (sda8): write access will be enabled during recovery
hub 1-6:1.0: cannot disable port 1 (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
usb 1-8.4: new high-speed USB device number 13 using ehci_hcd
usb 1-8.4: New USB device found, idVendor=1a40, idProduct=0201
usb 1-8.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 1-8.4: Product: USB 2.0 Hub [MTT]
hub 1-8.4:1.0: USB hub found
hub 1-8.4:1.0: 7 ports detected
usb 1-8.4.1: new full-speed USB device number 14 using ehci_hcd
usb 1-8.4.1: New USB device found, idVendor=04f9, idProduct=0033
usb 1-8.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-8.4.1: Product: HL-2140 series
usb 1-8.4.1: Manufacturer: Brother
usb 1-8.4.1: SerialNumber: L7J156867
usb 1-8.4.5: new full-speed USB device number 15 using ehci_hcd
usb 1-8.4.5: New USB device found, idVendor=0403, idProduct=6001
usb 1-8.4.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-8.4.5: Product: USB HS SERIAL CONVERTER
usb 1-8.4.5: Manufacturer: FTDI
usb 1-8.4.5: SerialNumber: FTDHG43V
usb 1-8.4.7: new high-speed USB device number 16 using ehci_hcd
usb 1-8.4.7: New USB device found, idVendor=1a40, idProduct=0101
usb 1-8.4.7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 1-8.4.7: Product: USB 2.0 Hub
hub 1-8.4.7:1.0: USB hub found
hub 1-8.4.7:1.0: 4 ports detected
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda8): recovery complete
EXT3-fs (sda8): mounted filesystem with ordered data mode
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
[...]
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
hub 1-6:1.0: hub_port_status failed (err = -71)
[...]
My lsusb looks like a weeping willow, but the whole branch that porinter is plugged into is gone.  I have another hub, let me change it out.  I also tried to run the control center, and its splash is stuck in the middle of all 12 screens.  I have been booted to the latest 3.2.16-pclos1-pae-bfs, and I am about to reboot to the homemade 3.2.14 pea-bfs-by-gene, but first swap hubs, I have a 7 port Alps to try.  different hub is not being seen.  Someone has turned the messages I used to see in messages when a usb device is unplugged and then plugged back on, off, and I can't say as this is making me a happy camper, so send this & reboot to 3.2.14.

Thanks for your interest.
Cheers, Gene.

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: Printer is crippled
« Reply #18 on: May 12, 2012, 08:17:47 PM »
Ok, back on 3.2.14-pclos7-yadda-yadda_again.  lsusb looks more normal.
[root@coyote ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 004: ID 048d:1336 Integrated Technology Express, Inc.
Bus 001 Device 005: ID 0409:0059 NEC Corp. HighSpeed Hub
Bus 001 Device 006: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB
Bus 002 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 002 Device 003: ID 050d:0751 Belkin Components
Bus 001 Device 008: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 009: ID 0409:0059 NEC Corp. HighSpeed Hub
Bus 001 Device 010: ID 1a40:0201 TERMINUS TECHNOLOGY INC.
Bus 001 Device 011: ID 04b8:0856 Seiko Epson Corp. Stylus SX515W
Bus 001 Device 012: ID 04b8:010f Seiko Epson Corp. Perfection 1250
Bus 001 Device 013: ID 04f9:0033 Brother Industries, Ltd
Bus 001 Device 014: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 015: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB

What linux seriously needs is a usb scanner whose output starts at motherboard port 0, reports what sort of a hub is plugged into that port, then scans that hub, socket by socket, following every response to the end, naming what device is plugged into which socket, doing this for every individual port of the board, and following every hub to the end device even if that mobo port has 4 more hubs in series to get to the end device in every chain.

But not no, but hell no, they have to somehow change the port numbering scheme at every step of the way, making every hubs loading into a total, can't be traced either way past the friggin hub, in either direction.  If the comm is all ok, the endpoint device will be named as above, but there is no way it can be traced, describing the path it traveled to get hooked up.  Add that in with its penchant for broadcasting, and the first device to respond gets the 1-1-1-0 designation THIS time, but a reboot and its a bit slower, so it gets hooked to 7-6-3-7 the next time.  That's BS.

Heck, even a way to just restart udev without rebooting would be grounds to celebrate.

I hate windows, no machine on the premises has a bootable windows install, but linux too often settles for half working, never mind its not working right.  Sigh.

Thanks & Cheers, Gene

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2438
  • Any Bugs in site?
Re: Printer is crippled
« Reply #19 on: May 12, 2012, 10:16:41 PM »
Almost-retired
You are adding an extra dimension to the challenge of diagnosing your problem, any chance I can stop you messing around with your system before I get some juicy bits of information out of you?  ;D ;D Never mind it is an interesting problem.

Don't rush out and buy another printer yet, logic tells us that Epson is still good quality in general.  I have been involved in doing fantastic fine precision artwork for surface mount multilayer printed circuit boards with a mid class Epson, so your printer has shown settings that could do better than what we did. I am going off on tangent here, put this way if I give up on you then go and buy another.

I don't think your messing around makes any difference to what I am intending to get you to do.  When you start this round I would like you tell me beforehand if you do something not asked for, especially if the system locks up. Use another computer and let me know first?

I need to see again following from konsole.
Quote
lpstat -t

Quote
lpstat -v


Then click on below
Quote
http://localhost:631/printers/jobs

You should then see all print job you have, cancel them all. This would include all your printers.

To convince me you have done as requested from konsole post result of these two lines
Quote
lpstat -o

Quote
ls -l /var/spool/cups/ |grep d


Now do following:
Turn both your printers power off at this stage.

Open kwrite and type in this greather than 80 character line:
Quote
I am going to make a simple text file that has more than 80 characters in length so that I can test landscape.

Save the file with easy recognisable name such as: Test_for_Landscape.txt location where you can easily find it.  Don't loose it it will be needed a number of times.

Still with power off your printers
Open the Test_for_Landscape.txt in kwrite print the file to the Epson printer (does not matter what driver you have installed, and of course your printer is turned off at the power, so nothing physically happens)

Repeat and post from konsole:
Quote
ls -l /var/spool/cups/ |grep d


If all goes well you will get a line starting with d00xxx if your printer queues never exceeded 999 if over you will see d0xxxx

Post result of following from konsole
Quote
head -3 /var/spool/cups/d00xxx


If you  get to this stage with the right result, don't mess around with the system as we are only part way through diagnosing, just post the results and wait for next step. (I am keeping the dmesg results in mind)  
 
udev start
A half celebration? I think the error can be ignored.  Running it did not crash my system, I am not sure how I can test if it does anything.  It did not re-boot my system, just sounded rather busy with the hardrive(s).

Quote
[root@KDE-mini gert]# /sbin/start_udev
Starting udev: error binding udev control socket
                                                                            [  OK  ]
[root@KDE-mini gert]#

« Last Edit: May 13, 2012, 03:39:56 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Printer is crippled
« Reply #20 on: May 12, 2012, 10:33:49 PM »

What linux seriously needs is a usb scanner whose output starts at motherboard port 0, reports what sort of a hub is plugged into that port, then scans that hub, socket by socket, following every response to the end, naming what device is plugged into which socket, doing this for every individual port of the board, and following every hub to the end device even if that mobo port has 4 more hubs in series to get to the end device in every chain.


I know what you mean. Couldn't "they" have something like this?   ;)


Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: Printer is crippled
« Reply #21 on: May 13, 2012, 04:59:59 AM »
[root@coyote amanda]# lpstat -t
scheduler is running
system default destination: Epson_Stylus_NX515
device for BROTHEHL2140: usb://Brother/HL-2140%20series
device for Cups-PDF: cups-pdf:/
device for Epson_Stylus_NX515: usb://EPSON/Stylus%20NX510
BROTHEHL2140 accepting requests since Sat 05 May 2012 07:52:42 PM EDT
Cups-PDF accepting requests since Sun 17 Apr 2011 04:34:02 PM EDT
Epson_Stylus_NX515 accepting requests since Sun 13 May 2012 01:59:50 AM EDT
printer BROTHEHL2140 is idle.  enabled since Sat 05 May 2012 07:52:42 PM EDT
printer Cups-PDF is idle.  enabled since Sun 17 Apr 2011 04:34:02 PM EDT
printer Epson_Stylus_NX515 is idle.  enabled since Sun 13 May 2012 01:59:50 AM EDT
        Finished page 1...
[root@coyote amanda]#lpstat -v
device for BROTHEHL2140: usb://Brother/HL-2140%20series
device for Cups-PDF: cups-pdf:/
device for Epson_Stylus_NX515: usb://EPSON/Stylus%20NX510
[root@coyote amanda]#

No unfinished jobs atm
lpstat -o
[root@coyote amanda]#
[root@coyote amanda]# ls -l /var/spool/cups/ |grep d
drwxrwx--T 2 root sys 4096 May 13 01:59 tmp/
[root@coyote amanda]#

paste/save file, print it in landscape mode from krite, chown file to gene:gene since I did that as root
And now
[root@coyote Documents]# ls -l /var/spool/cups/ |grep d
-rw-r----- 1 root sys 16775 May 13 06:41 d00655-001
drwxrwx--T 2 root sys  4096 May 13 06:41 tmp/
[root@coyote Documents]#

[root@coyote Documents]# head -3 /var/spool/cups/d00655-001
%PDF-1.4
1 0 obj
<<

The udev error you quoted is probably because the running copy had a lock on things.

What I refer to in udev, is the lack of recovery from a device error, forcing a reboot to see if the problem is fixed, combined with 15 kilobytes of 'we're gonna change this and you should too' during the bootup.  What these messages don't tell us is how to fix what.  Dumb, meet dumber.  Greg KH has handed that off to somebody else and IMO it is not being adequately maintained, we've been looking at all that bootup syntax change caterwalling for years!  Not your fault of course unless you want to undertake updating the syntax of every rule file in the /etc/udev.d tree.

Thanks, too early here, need more sleep yet.  Cheers, Gene

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2438
  • Any Bugs in site?
Re: Printer is crippled
« Reply #22 on: May 13, 2012, 09:12:24 AM »
Almost-retired
Good working material for me in the last reply.

Quote
paste/save file, print it in landscape mode from krite, chown file to gene:gene since I did that as root

I would have liked the file name, but I will just call it abxy.txt remember this is a stock standard character file, ie if you open this in a hex editor you will see just about 110 characters including spaces.  This depends on if you followed my instructions, whatever it is a small file.

Keep power off printers

Open file abxy.txt in kwrite

Print the file abxy.txt to your Epson but first in properties just check it is set to portrait then print.

Print the file abxy.txt to your Epson but first in properties set to landscape then print.

I need to check on you here, so in konsole post result

Quote
ls -l /var/spool/cups/ |grep d

If you have not printed since last post you will now have d00656-001 and d00657-001 if you have printed then it will be the two last ones we are interested in.

To be very sure in konsole now do the head -3 xxxx, post result as safeguard in case something now goes wrong, I will not need to come back and ask for them.
 
Quote
head -3 /var/spool/cups/d00656-001
head -3 /var/spool/cups/d00657-001

We want to open these two files, since I like the konsole I do it this way, I assume you have okular installed

Quote
okular  /var/spool/cups/d00656-001

Quote
okular  /var/spool/cups/d00657-001

You are using letter size, volunteered here
Quote
PageSize/Page Size: Custom.WIDTHxHEIGHT *Letter A4 A5 A6 A7 A8 B5 B6 B7 B8 C5 C6 C7 C8  ........

So the first one should show that the long line wraps at a certain point.

The second one may also show wrap as it depends on the setting of your font size, in my case it did not wrap and clearly can be distinguished a proper landscape format. 

A bit of eye balling needed but it should be clear enough.

What I have demonstrated on my system using your printer Epson NX515 that my simple text file will show as a pdf file after all the massaging CUPS need to do, the file location is a temporary holding just ready to be passed through the CUPS backend (usb handler in your case) to the printer. At this stage it is responding to the portrait or landscape requirement.

Now it is getting interesting.  Have a couple of konsole windows ready.

I am now trying to prevent the Epson printing out the waiting files in its queue, the following should do this trick, but it has not been tested properly here as I had too many printers installed.  So we will have to run with what gives.

Quote
cupsdisable Epson_Stylus_NX515

Now

Apply power to your Epson printer
 
I hope the printer just 'warms up' ready to print, if the CUPS queue is not disabled it will probably print or lock up.

I would really like the following from root konsole

Quote
/usr/lib/cups/backend/usb

If all is well I expect about 4 to 5 lines, in my case with one usb printer installed

Quote
[root@KDE-mini ~]# /usr/lib/cups/backend/usb
DEBUG: list_devices_libusb
DEBUG: usb_find_busses=5
DEBUG: usb_find_devices=7
direct usb://HP/psc%201200%20series?serial=MY539G30YW5H "HP psc 1200 series" "HP psc 1200 series" "MFG:Hewlett-Packard;MDL:psc 1200 series;CMD:LDL,MLC,PML,DYN;CLS:PRINTER;1284.4DL:4d,4e,1;SN:MY539G30YW5H;S:0380008000820000112c148c000c2500034;" ""
[root@KDE-mini ~]#

In any case in root konsole now enable CUPS

Quote
cupsenable Epson_Stylus_NX515

And for good measure in root konsole

Quote
service -f cups

Now it is my turn to go to bed. ZZzzz...
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: Printer is crippled
« Reply #23 on: May 13, 2012, 11:34:52 AM »
Starting after printing that file 2 more times: once portrait, once landscape
[root@coyote Documents]# ls -l /var/spool/cups/ |grep d
-rw-r----- 1 root sys 16775 May 13 06:41 d00655-001
-rw-r----- 1 root sys 16782 May 13 12:27 d00656-001
-rw-r----- 1 root sys 16775 May 13 12:28 d00657-001
[root@coyote Documents]# head -3 /var/spool/cups/d00656-001
%PDF-1.4
1 0 obj
<<
[root@coyote Documents]# head -3 /var/spool/cups/d00657-001
%PDF-1.4
1 0 obj
<<

Looks identical to me..
Okular, file 656 is done in portrait mode verified by adjusting the shape of the okular window until the scroll sliders just disappear, it also line wrapped the text.  By the same mechanism, 657 is being shown in landscape although this draws attention to the fact that this LCD monitor doesn't exactly have a square pixel.  Minor detail, I am used to it.

"cupsdisable Epson_Stylus_NX515" gave no return status at all

Powered it up, no print, sitting idle

[root@coyote Documents]# /usr/lib/cups/backend/usb
DEBUG: list_devices_libusb
DEBUG: usb_find_busses=2
DEBUG: usb_find_devices=15
direct usb://EPSON/Stylus%20NX510 "Epson Stylus NX510" "Epson Stylus NX510" "MFG:EPSON;CMD:ESCPL2,BDC,D4,D4PX,ESCPR1;MDL:Epson Stylus NX510;CLS:PRINTER;DES:EPSON Epson Stylus NX510;CID:EpsonRGB;" ""

cupsenable Epson_Stylus_NX515[return]

all 3 jobs came out of the printer, with 1 and 3 in the landscape mode, the printers display says it needs cyan ink, and apparently kwrite added a header line above the text, date at borderless left, and filename centered. A pageno was on the right for portrait, but where the line of text wrapped in portrait mode, in landscape:
... in length so that I   I   I   I   I   I   I |end of paper

So something, somewhere, went out to a "6 martini lunch" at the 90th or 91st column.

At the bottom of the page in portrait mode, it attempts to print the files url, right justified
But the landscape version has file:///home/gene/Documents/Doc  Doc  Doc  Doc  Doc  Doc
with the left bar of the D clipped off in the duplicates, and in both cases the bottom 1/3 of the text is clipped off by about a .1" border enforced someplace.  The printer itself in doing color photo's, can in fact do a 'full bleed".  I can, maybe, depending on the reach of my scanner(s) scan them and put them up on my web page but that will take some time to edit the links to work.  This NX515 has a built in scanner and there is an older 1250u available too.  Both will need excavating to operate their lids, this room in the middle of this 1970's tract house,  designed to be a childs bedroom is best described as a "midden heap"  :)  In 22+ years it gets deep.

Finally:
[root@coyote Documents]# service -f cups
Stopping CUPS printing system:                                                                                               [  OK  ]
Starting CUPS printing system:                                                                                               [  OK  ]
Re-enabling disabled print queues:

Looks totally normal.

Thanks again for your interest, it seems the driver may have a problem, and that changing the driver to the simplified one partially solved that, however there are problems yet to solve.
Additional data point as I didn't recall if the okular display was similarly clipped, so I turned the printer off, re-printed the file from kwrite in landscape mode, and viewed it with okular, which for some reason behaved better this time in that it shrank the displayed page to fit its screen window, and that view is perfectly normal.  No line wrapping problems at the 90th character, or clipping of the top header line.  Zooming in to take a good look at the bottom, footer line, it is clipped at the pixel above the baseline, so the bottom row of dots and any descenders are missing.

This clipping, because FF also adds this stuff, being clipped off makes the URL's a guessing game. :(  OTOH, this is not the same problem.

I have been on the gimp-print list since forever but dropped off once my beta testing for the C82 support was over, and I could probably rejoin and make some noise there, which might lead to an eventual fix in 5.2.8 if I do it quickly enough.  Recommended I do so?

Thanks & Cheers, Gene

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2438
  • Any Bugs in site?
Re: Printer is crippled
« Reply #24 on: May 13, 2012, 06:57:04 PM »
Almost-retired
Oh, so I got it right with the cupsdisable I remember using it once before but then I just started keeping power off printers when testing, seemed a bit easier.

Ah yes I forgot to mention that when you print you ought to check the available options, it is in the line(s) below the properties. If you go through them all you will find explanations that you will recognise from the actual print outs.

Ok, I will sum it up as follows. You have proved that with whatever driver (I assume it was the complicated driver you used, I tested on both and saw no difference) on your system there is no problem responding to the portrait/landscape orientation when printing a simple text based document of about 200 bytes.

CUPS does however for your printer turn this simple document into a pdf file, this is why I did the head -3 test on the queue file, checking the 3 top lines.  These 200 bytes are now much bigger and you try and look at the file again with kwrite, clearly no longer a text file.  

The rotation does respond, but you still seem to have some problem. When using a browser FF, Opera, Konqueror I have long ago given up on printing 'nice' from those, never worked on any system for me including Windows.  I am concerned that you got some artifacts just printing a simple text file, I don't recall my files showed this, but I still have them.  I hope it is just a bit of tweaking but remember that these ppd files can be unpredictable for various reasons. (thought the inside of both I scanned through very fast looked acceptable, meaning the top 40 lines seemed ok)

I will have to have a look later at my test prints, when I have recovered from the surprise that it did what I was trying to predict.   ;D

ASCII text print test
To check the printers ability to print ASCII files without doing the pdf detour. (May be a driver change is needed.)

Epson turned on

Quote
cupsdisable Epson_Stylus_NX515

Quote
lp -d Epson_Stylus_NX515  /usr/share/printer-testpages/testpage.asc

This will reveal the number xxx to use in d00xxx-001 without doing the ls -l /var/spool/cups/ |grep d but whatever is most comfortable, then

Quote
nano /var/spool/cups/d00xxx-001

As it is a simple text file above good enough, but if you can't live without GUI use kwrite

Quote
kwrite /var/spool/cups/d00xxx-001 &

This has revealed what is in the file and what can be expected when CUPS is enabled.

Quote
cupsenable Epson_Stylus_NX515

Then approximately half A4 print out (Letter) should emerge on the tray, it is self explanatory. Ah yes, I keep forgetting if a form feed is automatically generated globally, I think so, if the page does not show perhaps you have eject it manually.

If this is a success then the printer can cope with a bare ascii stream, meaning some simple konsole commands like echo xxx will work, meaning the printer can be tested without the need for CUPS.
« Last Edit: May 13, 2012, 11:11:56 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: Printer is crippled
« Reply #25 on: May 13, 2012, 09:21:03 PM »
I'll leave this for tomorrow as its 23:20 here already, and I have been doing battle with my lathe and the tall grass today, and am about trashed for the night.

I think I proved, some time back that this printer is pcl only, text prints as random gfx IIRC, but I'll find out in the morning for sure using your recipe.

Thanks & Cheers, Gene.

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: Printer is crippled
« Reply #26 on: May 14, 2012, 07:02:56 PM »
Then I forgot, weather poorly, went back to bed after breakfast, then when I woke up I went back to doing battle with the lathe, discovering that my problem was 100% an assumption I had made, fixed now and the first third of a bit of machining on a part is now done.

So, here goes.  Following along, I used vim to view since I'm a vim fan, copy/paste from the vim display:
If this is all you see, try enabling 'LF->CR/LF' translation in printtool...
Line 2, Column 1                                               Line 2, Column 80




                           This is the Linux

                                ASCII  Test Page




           If you see this text, check that these exclamation marks line up:

                   The ! exclamation ! marks ! in this ! line !
                should !  line up    ! with  ! these   ! too  !

           If the lines do not match up then try enabling 'LF->CR/LF'

          If this page did not eject automatically, try enabling 'Send EOF'.

My view above apparently used a proportional font, its all properly aligned in the vim view.
cupsenable Epson_Stylus_NX515
And it printed normally, in a slightly larger font than normal.  Exclamation points all lined up too.
The Column 1, Column 80 are offset to the left of well centered by about 2 character positions.

Next?

Thanks & Cheers, Gene

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2438
  • Any Bugs in site?
Re: Printer is crippled
« Reply #27 on: May 14, 2012, 09:26:08 PM »
Almost-retired
I am rather relieved this worked. Must admit I would have been scratching my head if not as the ability to send a single ascii character to the printer I think of as an almost universal law.  ;D

I have a manual for your printer beautiful maintenance pictures and lots of specs but nowhere could I find what page control language can used. I was expecting at least some statement that printer understand normal text  format, pdf etc because my memory is failing me.  Do you have a 'proper manual' ? If so what is it titled?

Heh, heh, actually I am mor interested in you CNC  endavours than your printer but since some time ago you gave me a bit of a rundown we had better stay focused on the printer.

Can you post

Quote
lpoptions -p Epson_Stylus_NX515

Just want to make sure what driver you are using before I go further.
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Almost-retired

  • Sr. Member
  • ****
  • Posts: 252
    • What keeps Gene out of the bars
Re: Printer is crippled
« Reply #28 on: May 14, 2012, 09:51:17 PM »
[root@coyote amanda]# lpoptions -p Epson_Stylus_NX515
auth-info-required=none copies=1 device-uri=usb://EPSON/Stylus%20NX510 finishings=3 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-up=1 orientation-requested=3 printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info='Epson Stylus NX515' printer-is-accepting-jobs=true printer-is-shared=true printer-location=coyote.den printer-make-and-model='Epson Stylus NX515 - CUPS+Gutenprint v5.2.7 Simplified' printer-state=3 printer-state-change-time=1337043275 printer-state-reasons=none printer-type=8556556 printer-uri-supported=ipp://localhost:631/printers/Epson_Stylus_NX515

I hope this helps.  And no, I don't have a manual.  The last time I asked for a manual, the vendor (Staples) called his source and reported that Epson America said it was available only from the service dept., at USD $225 dollars.  Obviously they aren't interested any more in the customer being able to use the printer to its maximum abilities.  I can remember when the manual for the FX-80 was about 9/16" thick, and came with the printer, right in the box.  Ditto for the OKI-324 (with a Sears label on it) that followed the FX-80 on this desk.

Thanks & Cheers, Gene

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2438
  • Any Bugs in site?
Re: Printer is crippled
« Reply #29 on: May 15, 2012, 12:13:13 AM »
Almost-retired

I think this may probably be the last exercise you need and you will have a good idea of how I break down the print process.

As before in your case, the idea is to catch the temporary file that is handed to the backend channel, this is the last practical place to catch something relatively sensible, ie. easy to understand and hopefully reveals enough about any real or perceived problem to trigger corrective action.

Presently any ascii text file will work both in a portrait and a landscape presentation. The printer has been proved to respond nicely to a simple ascii stream as well as page layout format in the form of a complex pdf stream containing only text.

Normally at this stage I would progress with a single test page of a colour chart generated in Postscript language, postscript being Linux native print format. I will however skip that step and concentrate on a complicated webpage.  I have for some time simply used the the pclinuxos homepage:

http://www.pclinuxos.com/

If this deviates from expectations I will step back and bring in 'belts and braces' again.

You are using the CUPS+Gutenprint v5.2.7 Simplified driver for the last test so I have carried out test using that too (not tested the complex version, leave that to you but I don't think it makes any difference). You use Firefox which to me seems a tad more complicated than my Opera but in some ways rather attractive too if you like it.

I have a version of FF on this system so I have tested using FireFox by doing the following:

Printer power off

Print above webpage in FF portrait mode (about 11 pages )

Repeat but this time in landscape mode  ( about 6 pages)

Since I have lost count of your d00xxx-001 file numbers you are on your own here, but do at least one file and convince yourself we are now dealing with a postscript sequence

Quote
head -5 /var/spool/cups/d00xxx-001


To see what is in the files use

Quote
okular /var/spool/cups/d00xxx-001


If all is well to this stage then go to the webpage you really wanted to check and do the same process.

If that also shows up fine then I would carefully try and print just one page with the printer running.



« Last Edit: May 15, 2012, 12:18:39 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen