Bug 531370

Summary: default HL-2040 gutenprint driver does not work
Product: [Fedora] Fedora Reporter: Tom Horsley <horsley1953>
Component: gutenprintAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: gavin42, jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gutenprint-5.2.4-7.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-03 09:51:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/etc/cups/printers.conf file
none
/etc/cups/ppd/HL-2040-series.ppd file
none
troubleshoot.txt file from running troubleshooter & printing test page
none
the new HL-2040.ppd file
none
troubleshoot.txt from test page printed as model HL-1250
none
Core dump while adding new HL-2040 laser printer.
none
printer properties dialog showing error message
none
HL-2040 ppd none

Description Tom Horsley 2009-10-27 21:51:37 UTC
Description of problem:

I'm trying to configure everything on my newly installed Fedora 12 Beta system,
and got to checking out printers. My Brother HL-2040 is now connected via usb
and was automatically detected and installed, but the driver picked for it
(Brother HL-2060 - CUPS+Gutenprint v5.2.4 Simplified) does not print
anything. If I do this:

yum install foomatic
system-config-printer and switch driver to:
Brother HL-2060 Foomatic/hl2050 [en]

then it prints fine.

I'll attach all the usual files...

Version-Release number of selected component (if applicable):
cups-libs-1.4.1-10.fc12.i686
cups-pk-helper-0.0.4-7.fc12.x86_64
bluez-cups-4.55-1.fc12.x86_64
cups-libs-1.4.1-10.fc12.x86_64
gutenprint-cups-5.2.4-6.fc12.x86_64
cups-1.4.1-10.fc12.x86_64


How reproducible:
Tried to print test page several time, printer always acts like it is getting
something (lights blink, motor hums if it is powering up for 1st time), but
nothing comes out.

Steps to Reproduce:
1.see above
2.
3.
  
Actual results:
No printout

Expected results:
Test page

Additional info:

I think I submitted this same bug a long time ago and it got sidetracked
because the hl1250 driver didn't work either :-).

Comment 1 Tom Horsley 2009-10-27 21:52:17 UTC
Created attachment 366349 [details]
/etc/cups/printers.conf file

Comment 2 Tom Horsley 2009-10-27 21:53:08 UTC
Created attachment 366350 [details]
/etc/cups/ppd/HL-2040-series.ppd file

Comment 3 Tom Horsley 2009-10-27 21:54:08 UTC
Created attachment 366351 [details]
troubleshoot.txt file from running troubleshooter & printing test page

Comment 4 Tim Waugh 2009-10-28 11:35:03 UTC
I'd like to see if we can get gutenprint working for this device without involving foomatic.

Please try changing the driver to:

Brother HL-1250 - CUPS+Gutenprint v5.2.4 Simplified [en]

To do this you'll have to select 'HL-1250' as the model instead of 'HL-2060'.

Does that driver work?

Comment 5 Tom Horsley 2009-10-28 21:52:54 UTC
Calling it an HL-1250 results in the exact same printer humming, but not
printing behavior. I'll attach more files :-).

Comment 6 Tom Horsley 2009-10-28 21:53:33 UTC
Created attachment 366503 [details]
the new HL-2040.ppd file

Comment 7 Tom Horsley 2009-10-28 21:54:39 UTC
Created attachment 366504 [details]
troubleshoot.txt from test page printed as model HL-1250

Comment 8 Tim Waugh 2009-10-29 16:49:04 UTC
OK, giving up on that. :-(

Also affects Fedora 11.

I've committed a fix for gutenprint that removes the incorrect Device ID associated with the Brother HL-2060, which was causing this driver to be used when it shouldn't have been.

Comment 9 Nivag 2009-12-19 21:22:06 UTC
I have a fully up to date version of Fedora 12. Plus I installed extras that I thought might help, based on my Internet searches

Dec 18 19:03:08 Installed: foomatic-db-filesystem-4.0-6.20090819.fc12.noarch
Dec 18 19:03:19 Installed: foomatic-db-ppds-4.0-6.20090819.fc12.noarch
Dec 18 19:03:29 Installed: foomatic-db-4.0-6.20090819.fc12.noarch
Dec 18 19:03:29 Installed: foomatic-4.0.3-5.fc12.x86_64
Dec 18 19:03:30 Installed: redhat-lsb-3.2-7.fc12.x86_64

The new printer dialog correctly recognises my laser printer as a Brother HL-2040 connected to a USB port.  Note that I tried printing after setting up the printer prior to downloading the extra stuff, but the test pages failed to print.

I checked each of the 4 HL-2060 drivers (as there was no option to select Brother HL-2040) none of the test pages were actually printed.

Plugging the printer in, leads to the following lines in /var/log/messages:
Dec 20 10:16:13 saturn kernel: usb 6-2: new full speed USB device using ohci_hcd and address 6
Dec 20 10:16:13 saturn kernel: usb 6-2: New USB device found, idVendor=04f9, idProduct=0028
Dec 20 10:16:13 saturn kernel: usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 20 10:16:13 saturn kernel: usb 6-2: Product: HL-2040 series
Dec 20 10:16:13 saturn kernel: usb 6-2: Manufacturer: Brother
Dec 20 10:16:13 saturn kernel: usb 6-2: SerialNumber: B6J866648
Dec 20 10:16:13 saturn kernel: usb 6-2: configuration #1 chosen from 1 choice
Dec 20 10:16:13 saturn kernel: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0028
Dec 20 10:16:14 saturn udev-configure-printer: invalid or missing IEEE 1284 Device ID

With no printers currently defined in the printer manager, I selected the new printer option and typed in the root password, and then rechecked /var/log/messages:
Dec 20 10:18:28 saturn abrtd: Directory 'ccpp-1261257508-521' creation detected
Dec 20 10:18:28 saturn abrtd: Lock file '/var/cache/abrt/ccpp-1261257508-521.lock' is locked by process 522
Dec 20 10:18:28 saturn abrt: saved core dump of pid 521 to /var/cache/abrt/ccpp-1261257508-521/coredump (778240 bytes)
Dec 20 10:18:28 saturn abrtd: Getting local universal unique identification...
Dec 20 10:18:28 saturn abrtd: Crash is in database already
Dec 20 10:18:28 saturn abrtd: Already saved crash, just sending dbus signal


Additional info:
AMD 810 quad core 64 bit
8 GB DDR3 RAM
5 * 500GB in software RAID-6 configuration
ASUS M4A78T-E mother board

Comment 10 Nivag 2009-12-19 21:40:58 UTC
Created attachment 379398 [details]
Core dump while adding new HL-2040 laser printer.

Comment 11 Nivag 2009-12-19 22:51:03 UTC
Found a ppd file for the HL-2040 & attempted to install it with the preinter manager - but an error occurred (something about foomatic-rip failed), will attach the screen shot

$ wget -c http://www.profv.de/brother/Brother-HL-2040-hl1250.ppd
--2009-12-20 10:51:01--  http://www.profv.de/brother/Brother-HL-2040-hl1250.ppd
Resolving jupiter... 192.168.1.205
Connecting to jupiter|192.168.1.205|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 11642 (11K) [text/plain]
Saving to: “Brother-HL-2040-hl1250.ppd”

100%[======================================>] 11,642      --.-K/s   in 0.009s  

2009-12-20 10:51:01 (1.19 MB/s) - “Brother-HL-2040-hl1250.ppd” saved [11642/11642]

$

Comment 12 Nivag 2009-12-19 22:53:10 UTC
Created attachment 379411 [details]
printer properties dialog showing error message

Comment 13 Nivag 2009-12-20 00:54:32 UTC
After failing to print under Fedora 12, I just plugged into my other box with Fedora 10 and the Brother HL-2040 printed okay.

So I am surprised that I am having problems with a much more recent release of Fedora!

Comment 14 Tim Waugh 2009-12-20 11:50:11 UTC
(In reply to comment #10)
> Created an attachment (id=379398) [details]
> Core dump while adding new HL-2040 laser printer.  

That's not from anything printing related, but from the fingerprint service (fprintd).

Can you attach the PPD the Fedora 10 machine is using successfully please?  It will be in /etc/cups/ppd/.

Comment 15 Nivag 2009-12-21 23:21:05 UTC
Created attachment 379731 [details]
HL-2040 ppd

As requested...

Comment 16 Tim Waugh 2009-12-23 16:12:25 UTC
So the gutenprint driver is getting automatically selected when adding a queue interactively, and that's wrong.  I've filed bug #550075 to track that.

The next problem is that system-config-printer is not spotting foomatic's "recommended" drivers as recommended.  I've filed bug #550108 to track that.

The final problem is that the printer is not getting configured automatically.  Please file a separate bug against system-config-printer for that.  I'll need some extra information:

1. Edit /etc/rsyslog.conf and change this line:

*.info;mail.none;authpriv.none;cron.none        /var/log/messages

so that it looks like:

*.debug;mail.none;authpriv.none;cron.none        /var/log/messages

(i.e. change 'info' to 'debug')

2. Run 'service rsyslog reload'

3. Now unplug the printer and reconnect it.

4. Finally, please attach the output of 'grep printer /var/log/messages' to the new bug report against system-config-printer.

Thanks!

Comment 17 Nivag 2009-12-24 06:31:58 UTC
Created Bug 550243 "HL-2040 printer not getting configured automatically" as requested.

Thanks for your efforts!  Never thought I'd generate 3 bug reports (directly or indirectly) from one problem...

Comment 18 Tim Waugh 2009-12-24 10:35:05 UTC
Thanks.  Yes, sometimes several bugs conspire together.

Comment 19 Nivag 2010-02-03 01:26:57 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.

Comment 20 Tim Waugh 2010-02-03 09:51:58 UTC
Great, glad it works.  Sorry, I should have included this bug ID in the list of bugs fixed by the gutenprint update.

Closing...