Epson Stylus Photo R300 not detected even with 3.0.0-16

Bug #936155 reported by David Shochat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

This problem first appeared in oneiric (the printer was detected in many Ubuntu releases before). A "proposed kernel" was suggested under bug 872711, # 3.0.0-13, which fixed the problem. However, I then took further kernel updates and detection of my printer is broken again. Currently running 3.0.0-16. It was suggested in bug 872711 that I open a new bug and reference it there, so that is what I am now doing.
$ lsmod | grep usb
usb_storage
Added to syslog when USB cable connected:
Feb 19 06:59:54 gateway kernel: [133237.788033] usb 1-5: new high speed USB device number 6 using ehci_hcd
Feb 19 06:59:54 gateway mtp-probe: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5"
Feb 19 06:59:54 gateway kernel: [133237.922613] scsi10 : usb-storage 1-5:1.0
Feb 19 06:59:55 gateway mtp-probe: bus: 1, device: 6 was not an MTP device
Feb 19 06:59:55 gateway udev-configure-printer: add /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.1
Feb 19 06:59:55 gateway udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.7/usb1/1-5
Feb 19 06:59:55 gateway udev-configure-printer: Device vendor/product is 04B8:0803
Feb 19 06:59:55 gateway udev-configure-printer: failed to claim interface 0
Feb 19 06:59:55 gateway kernel: [133238.921092] scsi 10:0:0:0: Direct-Access EPSON Stylus Storage 1.00 PQ: 0 ANSI: 2
Feb 19 06:59:55 gateway kernel: [133238.944839] sd 10:0:0:0: Attached scsi generic sg3 type 0
Feb 19 06:59:55 gateway kernel: [133238.949093] sd 10:0:0:0: [sdc] Attached SCSI removable disk
$ lsusb
[snip]
Bus 001 Device 006: ID 04b8:0803 Seiko Epson Corp. Printer (Composite Device)
$ ls -l /dev/usb/lp* /dev/bus/usb/*/*
ls: cannot access /dev/usb/lp*: No such file or directory
[snip]
crw-rw-r-- 1 root lp 189, 5 2012-02-19 06:59 /dev/bus/usb/001/006
...

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cups 1.5.0-8ubuntu6
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Sun Feb 19 07:05:32 2012
Lpstat:
 device for EPSON-Stylus-Photo-R300: usb://EPSON/Stylus%20Photo%20R300?serial=L15P10501281054100&interface=1
 device for Epson_at_Macbook: ipp://192.168.1.3:631/printers/EPSON_Stylus_Photo_R300
MachineType: System manufacturer System Product Name
Papersize: a4
PpdFiles:
 EPSON-Stylus-Photo-R300: Epson Stylus Photo R300 - CUPS+Gutenprint v5.2.7 Simplified
 Epson_at_Macbook: Epson Stylus Photo R300 - CUPS+Gutenprint v5.2.7 Simplified
ProcKernelCmdLine: root=UUID=e6bf4075-e01b-482a-b4fb-7832b25eef55 ro quiet splash
SourcePackage: cups
UpgradeStatus: Upgraded to oneiric on 2011-10-15 (127 days ago)
dmi.bios.date: 09/27/2006
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0215
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5W64 WS Pro
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0215:bd09/27/2006:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5W64WSPro:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
David Shochat (david-shochat) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you please run the following commands and post their output here:

sudo /usr/lib/cups/backend/usb
sudo modprobe usblp
ls -l /dev/usb/lp*
sudo usb_printerid /dev/usb/lp0
sudo usb_printerid /dev/usb/lp1
sudo rmmod usblp

Can you also try the CUPS packages (cups + cups-filters, a backport from Precise) from my PPA:

https://launchpad.net/~till-kamppeter/+archive/ppa

Does this alternative CUPS version detect your printer?

Changed in cups (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
David Shochat (david-shochat) wrote :

$ sudo /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: usb_find_busses=5
DEBUG: usb_find_devices=7
direct usb://EPSON/Stylus%20Photo%20R300?serial=L15P10501281054100&interface=1 "EPSON Stylus Photo R300" "EPSON Stylus Photo R300" "MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus Photo R300;CLS:PRINTER;DES:EPSON Stylus Photo R300;" ""
sudo modprobe usblp
(no output)
sudo usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus Photo R300;CLS:PRINTER;DES:EPSON Stylus Photo R300;
sudo usb_printerid /dev/usb/lp1
Error: No such file or directory: can't open '/dev/usb/lp1'
sudo rmmod usblp
(no output)
As for the two CUPS packages, I'll do that some time today (once I've figured out how). I do see the instructions on your page.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please do some more tests before updating to my PPA:

The CUPS usb backend (of the CUPS which comes with Oneiric) already detects your printer, so I cannot imaging that you observe a behavior of CUPS not detecting your printer. You should have gotten an automatically generated print queue (or the old print queue is still available, your initial report shows that you have a correct print queue setup) and you should be able to print.

Make sure your print queue is enabled:

cupsenable EPSON-Stylus-Photo-R300

and that you choose "EPSON-Stylus-Photo-R300" as the printer in the print dialogs of the applications.

Can you also post the output of

lpinfo -l -v

Stop the command with Ctrl+C if it does not exit by itself.

If this all does not work, follow the instructions under "CUPS error_log" and "Capturing print job data" on https://wiki.ubuntu.com/DebuggingPrintingProblems

Revision history for this message
David Shochat (david-shochat) wrote :

> Make sure your print queue is enabled:
> cupsenable EPSON-Stylus-Photo-R300
That was it. Before giving that command, Properties in the Printers GUI (for EPSON-Stylus-Photo-R300) hand shown a "Printer State:" of "off or unplugged", just like when I had first upgraded to oneiric and before taking the "proposed" kernel. Once I gave the cupsenable command (which produced no output), and tried Properties again, it had changed to "Idle". Once I saw "Idle", I knew it would work, which it did. Given all this, I believe that in the state it was in before the cupsenable, Properties should have shown for "Printer State:", instead of "off or unplugged", something more like "print queue disabled" with an option to enable it (or lacking that, a hint about the "cupsenable" command). Obviously, "off or unplugged" was incorrect (I wonder if there's a bug for that). Anyway, thank you. I am really grateful to have my printer working once again.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Usually, when you turn off the printer the queue gets disabled and the state reason gets set to "off or unplugged" and when the printer is turned on again, the print queue gets re-enabled. This is done to avoid that CUPS tries to repeat the job regularly generating CPU load by starting to render the job again and again, which would quickly run down a laptop's battery when one is on the go and therefore disconnected from the printer. A laptop user can simply send jobs into the disabled queue and these jobs get rendered and printed as soon as he is back home.

Perhaps the re-enabling did not happen when you turned on the printer the last time. Can you try to turn off and turn on your printer several times to see whether the queue gets disabled when the printer is off and enabled when the printer is on?

If it does not work, or sometimes not work, try the CUPS package from my PPA to see whether it gets more reliable then. Its USB backend uses a newer generation of libusb (the USB access library) and has also some bugs fixed.

Revision history for this message
David Shochat (david-shochat) wrote :

I turned off the printer, but even with it off, the Properties still show "idle". Sounds like there may be a problem in both directions. I close the dialog, go back to the "gear" -> Printers, select my printer, and then choose Properties from the context menu. Tried many times, but it keeps saying "Idle" even though the printer is definitely off.

Revision history for this message
David Shochat (david-shochat) wrote :

I installed cups 1.5.2-4~ppa1 and cups-filters 1.0.1-1~ppa1 (plus 4 additional packages that came along with them). However, I still see Printer State: Idle, even with the printer off.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Perhaps pressing on the Off button of your printer brings it only into a Standby model, leaving it visible for the computer. Do the commands of comment #2 still show the printer's presence when it is turned off?

The enabling and disabling can always be tested by disconnecting and reconnecting the USB cable.

Revision history for this message
David Shochat (david-shochat) wrote :

lpinfo -l -v lists my printer if and only if it is turned on. But the Printer State: in Properties continues to say "Idle" whether it is on or off. If I physically disconnect the USB cable, the Printer State: setting under Properties STILL says "Idle".

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have put a slightly modified package of system-config-printer onto my PPA:

https://launchpad.net/~till-kamppeter/+archive/ppa

Can you try that? It seems that CUPS detects your printer well but not the UDEV handler of system-config-printer.

Revision history for this message
David Shochat (david-shochat) wrote :

I think that has fixed it (installed 3 packages). It now seems to be tracking the actual on/off state of the printer. Thank you.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thank you very much, then I will make this patch available for Precise.

Changed in cups (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fixed in system-config-printer 1.3.8+20120201-0ubuntu4 in Precise.

affects: cups (Ubuntu) → system-config-printer (Ubuntu)
Changed in system-config-printer (Ubuntu):
status: Triaged → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.