SilveRo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/13624036583f8b206638552.jpg)
Joined: 13 Oct 2003 Posts: 147 Location: Milan (Italy)
|
Posted: Fri Nov 17, 2006 10:35 pm Post subject: Brother HL-2040 problem (logs say it prints, but it doesn't) |
|
|
Hi!
This has been driving me mad, plz help me if you can!!!
I have a Brother HL-2040, and I have managed to make it work perfectly on my laptop, a Centrino (Intel), but NOT on my Mac Mini, a PPC, that is my home's server.
I am using the same versions of cupsd, the same configuration, the same version of ghostscript-esp, the same files, and I get the same cups log outputs!
This is the kernel config I am using now: http://dev.gentoo.org/~nixnut/macmini-2.6.17.config (the old kernel didn't work either)
Here is my cupsd.conf, without commented lines, that is the same one I use for my laptop:
Code: | DocumentRoot /usr/share/cups/docs
LogLevel info
User lp
Group lp
Port localhost:631
SystemGroup lp
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location> |
I always check that cupsd is running, on both boxes. Here is how I installed the printer:
I downloaded brhl2040lpr-1.1.2-2.i386.rpm and cupswrapperHL2040-1.0.0-1.i386.rpm, converted them to tar.gz with "rpm2targz", extracted them and copied the files to the same directories that appeared after the decompression. This worked on my laptop....
Here is a piece of a 'cat /var/log/cups/error_log', when I try to print, for example, a test page from the cupsd web interface. I get the same when doing it from my laptop, but in that case it actually DOES print.
Code: | I [17/Nov/2006:22:58:41 +0100] Listening to 7f000001:631
I [17/Nov/2006:22:58:41 +0100] Loaded configuration file "/etc/cups/cupsd.conf"
I [17/Nov/2006:22:58:41 +0100] Configured for up to 100 clients.
I [17/Nov/2006:22:58:41 +0100] Allowing up to 100 client connections per host.
I [17/Nov/2006:22:58:41 +0100] Full reload is required.
I [17/Nov/2006:22:58:41 +0100] LoadPPDs: Read "/etc/cups/ppds.dat", 16 PPDs...
I [17/Nov/2006:22:58:41 +0100] LoadPPDs: No new or changed PPDs...
I [17/Nov/2006:22:58:41 +0100] Full reload complete.
I [17/Nov/2006:22:58:46 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7994)
I [17/Nov/2006:22:58:50 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7995)
I [17/Nov/2006:22:58:50 +0100] Adding start banner page "none" to job 44.
I [17/Nov/2006:22:58:50 +0100] Adding end banner page "none" to job 44.
I [17/Nov/2006:22:58:50 +0100] Job 44 queued on 'HL2040' by ''.
I [17/Nov/2006:22:58:50 +0100] Started filter /usr/lib/cups/filter/pstops (PID 7996) for job 44.
I [17/Nov/2006:22:58:50 +0100] Started filter /usr/lib/cups/filter/brlpdwrapperHL2040 (PID 7997) for job 44.
I [17/Nov/2006:22:58:50 +0100] Started backend /usr/lib/cups/backend/usb (PID 7999) for job 44.
I [17/Nov/2006:22:58:51 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=8058) |
Sometimes I get Job 44 queued on 'HL2040' by 'root' or by "silvero", but the results are all the same.... on the laptop it works, but it doesn't on my Mac Mini.
Here are cups and ghostscript-esp:
Code: | [ebuild R ] net-print/cups-1.1.23-r8 USE="nls pam samba ssl -gnutls -slp" 0 kB
[ebuild R ] app-text/ghostscript-esp-8.15.3 USE="X cups gtk -cjk -emacs -threads -xml" 0 kB |
I even tried copying the /etc/cups/printers.conf from the laptop to the Mac Mini, but it didn't work either.... Here it is, BTW, workin, as usual, on the laptop:
Code: | # Printer configuration file for CUPS v1.1.23
# Written by cupsd on Fri 17 Nov 2006 10:37:08 PM GMT
<DefaultPrinter HL2040>
Info HL2040
Location
DeviceURI usb:/dev/usb/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer> |
I have tried trying other things, like "Device URI: usb://Brother/HL-2040%20series", that works on the laptop, but NOT on the Mac Mini.... oh, and "Raw" does the same on both systems... it spits out tons of blank paper... =(
Now, I actually DO have one small difference between the two systems..... the dmesg output! (when I connect the printer)
Here is the laptop's output:
Code: | usb 5-1: new full speed USB device using uhci_hcd and address 2
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0028
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver |
Here is the Mac Mini's output:
Code: | usb 4-2.1: new full speed USB device using ehci_hcd and address 4
usb 4-2.1: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0028
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
|
So, unless you have better ideas, please help me make the Mac Mini's output match the laptop's output!!!
(I tried myself, copying every USB kernel setting, but to no avail.... I can't get uhci to grab the printer.... but maybe I did something wrong....).
THANKS in advance!!!!!!
=)
P.S. tried without USB hub, but to no avail...
P.P.S. if I remove ehci_hcd, the printer doesn't appear when I plug it in... if so, how is it possible that it works with uhci_hcd on my laptop? (linux-2.6.15-gentoo-r1)
P.P.P.S. I tried installing the SAME kernel version of the laptop, with the same usb options, on the Mac Mini and it STILL uses ehci_hcd, and STILL doesn't work!!!! FFS.... _________________ Think Gray
(things aren't all black or all white) |
|