Solved [SOLVED] Printer - Brother hl 2035

I have a brother 2035, which is basicly the same as the 2030, and so i have followed the instructions of this post.

However, after adding the printer to cups (tried both the #1 USB-option, and the #1 USB (no reset)one without any luck.

Cups will fail to print a test page (will just stand there "processing" the job forever, and when I finally get tired nd cancels it, it will say "printer not connected will retry in 10 seconds". Which becomes 30 seconds after a few tries, but without any luck.

Also, i get the following output from lptest:
Code:
[root@osserver ~]# lptest > /dev/unlpt0 
bash: /dev/unlpt0: Device busy
[root@osserver ~]# lptest > /dev/ulpt0 
bash: /dev/ulpt0: Device busy

dmesg, however, shows
Code:
ugen0.2: <Brother> at usbus0
ulpt0: <Brother HL-2030 series, class 0/0, rev 2.00/1.00, addr 2> on usbus0
ulpt0: using bi-directional mode
and no problems.

I just don't get it. It is 5:23 in the morning though, and past my bedtime (Watching superbowl and finishing a law paper at the same time wasn't a great idea, now who could have imagined?) so I could be overlooking something stupidly easy, but canøt really imagine why. Hoping for a good tip waiting here when i wake up. :p
 
I'm not sure if it's a necessity, but I'm using a foomatic-filter driver for a Brother printer and also have installed the foomatic-db and foomatic-db-engine ports. Aside from that, what version of cups do you have installed? There was an early version of 1.4.x that didn't fully work with USB which was updated a short time after the FBSD 8-release. Could you also post your cups error log?
 
One of the pitfalls in setting up USB-printing on my HL2040 was only testing in the terminal. I still cannot print from the terminal, but printing from a ps or pdf works now.
 
I use the ppd from openprinting that is mentioned in the post I linked (hl1250).

cups error log:
Code:
I [08/Feb/2010:14:45:25 +0100] Scheduler shutting down normally.
I [08/Feb/2010:14:45:25 +0100] Saving job cache file "/var/cache/cups/job.cache"...
I [08/Feb/2010:14:45:25 +0100] Listening to :::631 (IPv6)
I [08/Feb/2010:14:45:25 +0100] Listening to 0.0.0.0:631 (IPv4)
I [08/Feb/2010:14:45:25 +0100] Listening to /var/run/cups.sock (Domain)
I [08/Feb/2010:14:45:25 +0100] Remote access is enabled.
I [08/Feb/2010:14:45:25 +0100] Loaded configuration file "/usr/local/etc/cups/cupsd.conf"
I [08/Feb/2010:14:45:25 +0100] Using default TempDir of /var/spool/cups/tmp...
I [08/Feb/2010:14:45:25 +0100] Configured for up to 100 clients.
I [08/Feb/2010:14:45:25 +0100] Allowing up to 100 client connections per host.
I [08/Feb/2010:14:45:25 +0100] Using policy "default" as the default!
I [08/Feb/2010:14:45:25 +0100] Full reload is required.
I [08/Feb/2010:14:45:25 +0100] Loaded MIME database from '/usr/local/etc/cups': 35 types, 38 filters...
I [08/Feb/2010:14:45:25 +0100] Loading job cache file "/var/cache/cups/job.cache"...
I [08/Feb/2010:14:45:25 +0100] Full reload complete.
I [08/Feb/2010:14:45:25 +0100] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [08/Feb/2010:14:45:25 +0100] Listening to :::631 on fd 1...
I [08/Feb/2010:14:45:25 +0100] Listening to 0.0.0.0:631 on fd 3...
I [08/Feb/2010:14:45:25 +0100] Listening to /var/run/cups.sock on fd 4...
I [08/Feb/2010:14:45:25 +0100] Resuming new connection processing...
I [08/Feb/2010:14:45:31 +0100] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=2247)
I [08/Feb/2010:14:45:37 +0100] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=2248)
I [08/Feb/2010:14:45:37 +0100] [Job 11] Adding start banner page "none".
I [08/Feb/2010:14:45:37 +0100] [Job 11] Adding end banner page "none".
I [08/Feb/2010:14:45:37 +0100] [Job 11] File of type application/postscript queued by "root".
I [08/Feb/2010:14:45:37 +0100] [Job 11] Queued on "Brother" by "root".
I [08/Feb/2010:14:45:37 +0100] [Job 11] Started filter /usr/local/libexec/cups/filter/pstops (PID 2249)
I [08/Feb/2010:14:45:37 +0100] [Job 11] Started filter /usr/local/libexec/cups/filter/foomatic-rip (PID 2250)
I [08/Feb/2010:14:45:37 +0100] [Job 11] Started backend /usr/local/libexec/cups/backend/usb (PID 2251)
I [08/Feb/2010:14:45:39 +0100] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=2256)
I [08/Feb/2010:14:45:49 +0100] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=2257)
I [08/Feb/2010:14:46:00 +0100] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=2259)
I [08/Feb/2010:14:46:10 +0100] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=2260)
I [08/Feb/2010:14:46:20 +0100] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=2261)
I [08/Feb/2010:14:46:30 +0100] Started "/usr/local/libexec/cups/cgi-bin/printers.cgi" (pid=2262)
I was thinking of just going ith the foomatic printers, but didn't see any that seemed to be a fit.
 
And now it works again, after forcing a reinstall of cups with all upwards dependencies with portupgrade. Already tried un- and reinstalling, but I guess second time is the charm. :p

Now all that's left is configuring it as a http printer so I can print from my linux laptop, my win7 gaming rig, and my gf xp machine. Conformity in the OS department is boring, haha.
Had that set up before on my arch linux "server" though, so it should be OK.

Thanks for answering in the thread. :)

I am running cups-1.3.10_1 btw, soory for overlooking that question. Is there any benefits of any newer versions?
 
Cups should work just as well to access the printer on linux (you need to set the printer to allow other network clients to print to it), though you'd have to set up printer sharing with Samba for the XP machine.

naguz said:
I am running cups-1.3.10_1 btw, soory for overlooking that question. Is there any benefits of any newer versions?

Newer, cleaner web interface? Truth be told, my own upgrade to the 1.4.x version of cups was a huge pain, though those issues have since been corrected in ports. If it works, then I can't wholeheartedly recommend the upgrade.
 
Coincidentally, as a part of the jpeg
upgrade, I just had to repeat the cups-base
build fix *again* (first reported to work
in cups-client or something)
Code:
make patch
cd work/cups-#.#/
edit Makedefs.in #iirc
(remove a parameter from line 143, the last of 3) iirc)
cd ../..
sh 
make build
[build finishes]
exit #to exit sh
pkg_delete -f /var/db/pkg/cups-base-#.# && make install
so maybe not fully corrected...
(the above is all I have time to write, it may
contain a typo or two.)
 
I'm not familiar with this fix you're applying, but any modifications that you make to the work directory of a port will be wiped after a # make clean, which both portupgrade and portmaster utilities will do before before building a port. The jpeg upgrade revision bumped a lot of ports, so I'm not surprised your upgrade messed with your modifications.
 
Upgraded with no problems. Running cups-base-1.4.2_4

I've set it up to accept connections (and remote admin as well, seing as it is headless) from the local network. Xp actually supprts http-printers, and thats the way I've set it up oth on my GFs laptop and mine running archlinux.

Only "problem" is that xp for some reason doesn't send raw data even though I have choosed to use the Brother drivers for it. My laptop send raw data when I choose to use a specific installed driver. No biggie though, I don't think she has any need of setting tonersaver or other driver options etc. when printing anyways. Will check with another forum I'm at though, it is always nice to have things the way you intended them to be.
 
Back
Top