Bug 550243 - HL-2040 printer not getting configured automatically
Summary: HL-2040 printer not getting configured automatically
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 12
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-24 06:28 UTC by Nivag
Modified: 2010-02-03 01:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-24 12:43:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
grep printer /var/log/messages (4.74 KB, text/plain)
2009-12-24 06:28 UTC, Nivag
no flags Details
printer driver dialog (46.14 KB, image/png)
2009-12-24 12:37 UTC, Nivag
no flags Details
yum output of removing and re-installing foomatic (6.28 KB, text/plain)
2009-12-24 20:33 UTC, Nivag
no flags Details

Description Nivag 2009-12-24 06:28:01 UTC
Created attachment 380145 [details]
grep printer /var/log/messages

Description of problem:
See Bug 531370 Comment #16 for details, my hardware setup is also described in that bug in Comment #9 along with the symptoms.

Version-Release number of selected component (if applicable):


How reproducible:
every time

Steps to Reproduce:
1.try and connect HL-2040 printer so it actually prints...
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tim Waugh 2009-12-24 10:34:17 UTC
Thanks.  That's all looking correct: the printer queue is getting enabled and disabled as expected.

What about if you delete the queue, unplug the printer, then reconnect it?  It should configure a new queue for it automatically, and display a notification on the screen to tell you about it.

Comment 2 Nivag 2009-12-24 12:35:25 UTC
I disconnected the printer.
Deleted the entry in the Printer configuration dialog.
Reconnected the printer, got a popup notice saying there was no driver for the HL-2040 printer.
Went to add a 'new' printer, recognized it was an HL-2040, but no HL-2040 driver listed, it suggested a choice of 4 HL-2060 drivers.

Comment 3 Nivag 2009-12-24 12:37:36 UTC
Created attachment 380185 [details]
printer driver dialog

Comment 4 Nivag 2009-12-24 12:40:51 UTC
from /var/log/messages

Dec 25 01:29:59 saturn kernel: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0028
Dec 25 01:29:59 saturn udev-configure-printer: add /devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.0
Dec 25 01:29:59 saturn udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:13.1/usb6/6-2
Dec 25 01:29:59 saturn udev-configure-printer: Device vendor/product is 04F9:0028
Dec 25 01:29:59 saturn udev-configure-printer: add /devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.0/usb/lp0
Dec 25 01:29:59 saturn udev-configure-printer: failed to claim interface
Dec 25 01:29:59 saturn udev-configure-printer: invalid or missing IEEE 1284 Device ID
Dec 25 01:29:59 saturn udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:13.1/usb6/6-2
Dec 25 01:29:59 saturn udev-configure-printer: MFG:Brother MDL:HL-2040 series SERN:- serial:B6J866648
Dec 25 01:30:15 saturn udev-configure-printer: URI matches without serial number: usb://Brother/HL-2040%20series
Dec 25 01:30:15 saturn udev-configure-printer: No serial number URI matches so using those without
Dec 25 01:30:15 saturn udev-configure-printer: About to add queue for usb://Brother/HL-2040%20series
Dec 25 01:30:15 saturn udev-add-printer: add_queue: URIs=['usb://Brother/HL-2040%20series']
Dec 25 01:30:17 saturn udev-add-printer: PPD: gutenprint.5.2://brother-hl-2060/simple; Status: 1
Dec 25 01:30:18 saturn udev-configure-printer: add /module/lp
Dec 25 01:30:18 saturn udev-configure-printer: Failed to get parent

Comment 5 Tim Waugh 2009-12-24 12:43:55 UTC
Ah, OK: you don't have the 'foomatic' package installed, which is the package providing an exact-match driver for the HL-2040 based on the IEEE 1284 Device ID (I think).  That all seems to be working correctly then.

Comment 6 Nivag 2009-12-24 18:06:19 UTC
According to 'yum', I have the 'foomatic' package installed!

# yum install foomatic
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package foomatic-4.0.3-5.fc12.x86_64 already installed and latest version
Nothing to do
# time

real	0m0.000s
user	0m0.000s
sys	0m0.000s
#

Comment 7 Nivag 2009-12-24 20:31:21 UTC
I remove and reinstalled foomatic, then deleted and tried again to add the HL-2-40 as a new printer.  Still no sign of the correct driver.

Comment 8 Nivag 2009-12-24 20:33:36 UTC
Created attachment 380233 [details]
yum output of removing and re-installing foomatic

Comment 9 Nivag 2009-12-28 01:05:15 UTC
Just upgraded to cups-1.4.2-20 via yum, still no sign of HL-2040 drivers, despite foomatic being installed - even when deleting printer and going through the new printer dialog.

Dec 28 13:41:43 saturn kernel: usblp0: off-line
Dec 28 13:42:15 saturn kernel: usb 6-2: USB disconnect, address 2
Dec 28 13:42:15 saturn kernel: usblp0: nonzero write bulk status received: -108
Dec 28 13:42:15 saturn kernel: usblp0: removed
Dec 28 13:42:15 saturn udev-configure-printer: remove /devices/pci0000:00/0000:00:13.1/usb6/6-2
Dec 28 13:42:54 saturn kernel: usb 6-3: new full speed USB device using ohci_hcd and address 3
Dec 28 13:42:55 saturn kernel: usb 6-3: New USB device found, idVendor=04f9, idProduct=0028
Dec 28 13:42:55 saturn kernel: usb 6-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 28 13:42:55 saturn kernel: usb 6-3: Product: HL-2040 series
Dec 28 13:42:55 saturn kernel: usb 6-3: Manufacturer: Brother
Dec 28 13:42:55 saturn kernel: usb 6-3: SerialNumber: B6J866648
Dec 28 13:42:55 saturn kernel: usb 6-3: configuration #1 chosen from 1 choice
Dec 28 13:42:55 saturn kernel: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0028
Dec 28 13:42:55 saturn udev-configure-printer: add /devices/pci0000:00/0000:00:13.1/usb6/6-3/6-3:1.0
Dec 28 13:42:55 saturn udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:13.1/usb6/6-3
Dec 28 13:42:55 saturn udev-configure-printer: Device vendor/product is 04F9:0028
Dec 28 13:42:55 saturn udev-configure-printer: add /devices/pci0000:00/0000:00:13.1/usb6/6-3/6-3:1.0/usb/lp0
Dec 28 13:42:55 saturn udev-configure-printer: failed to claim interface
Dec 28 13:42:55 saturn udev-configure-printer: invalid or missing IEEE 1284 Device ID
Dec 28 13:42:55 saturn udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:13.1/usb6/6-3
Dec 28 13:42:55 saturn udev-configure-printer: MFG:Brother MDL:HL-2040 series SERN:- serial:B6J866648
Dec 28 13:43:11 saturn udev-configure-printer: URI matches without serial number: usb://Brother/HL-2040%20series
Dec 28 13:43:11 saturn udev-configure-printer: No serial number URI matches so using those without
Dec 28 13:43:11 saturn udev-configure-printer: About to add queue for usb://Brother/HL-2040%20series
Dec 28 13:43:11 saturn udev-add-printer: add_queue: URIs=['usb://Brother/HL-2040%20series']
Dec 28 13:43:14 saturn udev-add-printer: PPD: foomatic:Brother-HL-2060-Postscript.ppd; Status: 0

Comment 10 Tim Waugh 2010-01-04 15:28:14 UTC
This driver is getting used: "foomatic:Brother-HL-2060-Postscript.ppd".  This has an exact match for the Brother HL-2040 Device ID, so is correct.

$ lpinfo -l --include-schemes=foomatic -m | grep -3 'HL-2060 Foomatic/P'
        device-id = MFG:Brother;MDL:HL-2040 series;CMD:PJL,HBP;DRV:Dljet4,R0,M0,Sv,TG,X600,Y600,C0,t90,l90,g60,p30,s90;
Model:  name = foomatic:Brother-HL-2060-Postscript.ppd
        natural_language = en
        make-and-model = Brother HL-2060 Foomatic/Postscript
        device-id = MFG:Brother;MDL:HL-2040 series;CMD:PJL,HBP;DRV:DPostscript,R0,M0,TP;
Model:  name = foomatic:Brother-HL-2060-pxlmono.ppd
        natural_language = en

Comment 11 Nivag 2010-02-03 01:26:44 UTC
I noted that there have been several updates relating to CUPS, plus a couple of kernel upgrades over the last few weeks.  So I just tried my HL-2040 printer on my Fedora 12 box; and it not only got preconfigured almost correctly (I had to manually change it to the standard A4 paper size), but it now also prints properly.

Thanks Tim.


Note You need to log in before you can comment on or make changes to this bug.