LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-18-2024, 10:59 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,591
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
It's happened! My Brother laser printer no longer works in Slackware


It used to work perfectly well using Brother's proprietary driver. Cups has been warning for some time that old usb printers are going to stop working and that seems to have happened now.

What happens is that cups passes the file through and it disappears from the queue but nothing actually comes out of the printer. In my experience, that usually indicates a printer driver error.

The cups error file in /var/log is full of errors and warnings that I am using obsolete technology.

The same printer works out of AntiX without any problems, using a non-proprietary driver called brlaser. I'm going to try building this in Slack tomorrow; there is a slackbuild for it but it needs cmake, which I don't have installed at the moment.

If that doesn't work, I will just have to do my printing out of AntiX. Fortunately I only need to print occasionally, which is why I bought a laser printer in the first place.

Oops! I had another look at that cups error file and saw, hiding among all the warnings and spurious errors (missing this and missing that), a genuine error that I could understand. A missing filter in a non-existent subdirectory of /usr/lib64/cups. I do have the file in the /opt tree, so I put in a link to it and we shall see if the printer works tomorrow.

Last edited by hazel; 04-18-2024 at 11:15 AM. Reason: Additional paragraph
 
Old 04-18-2024, 11:24 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,643

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
If that FAILS, but your ANTIX is a different physical node, you can set it as a print server and export that printer and print to it from the SLACK machine over network.
 
Old 04-18-2024, 01:28 PM   #3
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
If your Brother laser printer is like mine, it does not need CUPS or Brother's drivers. Ghostscript can read the Postscript file and output PCL directly to the printer.

Code:
su -c "modprobe usblp; chmod gou+rw /dev/usb/lp0"

gs -sDEVICE=hl1250            \
   -sOutputFile=/dev/usb/lp0  \
   -dDOINTERPOLATE            \
   -dNOPAUSE                  \
   -dSAFER                    \
   -dGraphicsAlphaBits=4      \
   -r600                      \
   $file                      \
   -c quit
If hl1250 does not work, try hl1240.
Ed
 
1 members found this post helpful.
Old 04-18-2024, 02:31 PM   #4
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
hazel,

The latest version of CUPS is 2.4.7 or similar, so your Brother printer should still work using Brother's proprietary driver.

CUPS 3.0 is overdue and is not expected any time soon.

https://www.phoronix.com/news/CUPS-3...cture-Overhaul
 
Old 04-19-2024, 12:51 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,591

Original Poster
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
I think I know what happened now. Those links got lost in the transfer to the new drive. I couldn't transfer the library directories via a memory stick, they were simply too big, so I more or less recreated them by reinstalling everything.

Another thing that got lost was Alien Bob's multilib aaa_glibc-solibs, without which the filter won't work anyway. I do have a stored copy of this package but it is the 5th release and I've just updated glibc to its 6th in the monthly update. So I checked on Eric's site and he doesn't have the new version yet. While I'm waiting, I'm going to build brlaser and try to use that instead of the Brother driver. After all it works in AntiX. And knowing now that I can always print out of AntiX if I need to means there is no tearing hurry.

Actually I would be quite pleased if I could get rid of multilib glibc. I don't run a multilib system apart from that and I have never felt happy with having it for glibc only. It's an extra complication and glibc is absolutely basic, isn't it. Nothing works without it. And if anything goes wrong...

Last edited by hazel; 04-19-2024 at 12:55 AM.
 
Old 04-19-2024, 04:29 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,591

Original Poster
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Ok, alarm over. I built and installed brlaser and switched the printer to use it. Then I successfully printed a test page.
 
1 members found this post helpful.
Old 04-19-2024, 05:51 AM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,456
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by hazel View Post
Actually I would be quite pleased if I could get rid of multilib glibc.
You probably can: https://www.linuxquestions.org/quest...64-15-0-38601/
 
Old 04-19-2024, 07:49 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,591

Original Poster
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Quote:
Originally Posted by rkelsen View Post
Yes, that's more or less what happened when I used the printer in AntiX for the first time. I was quite surprised that it "just worked", because I didn't have the Brother drivers on that system. Then I discovered that it was using a 64-bit cups driver called brlaser that I'd never heard of before. Today I built it on Slackware (there's a slackbuild for it) and now both my systems print in the same way. I don't need the proprietary driver any more and I don't need 32-bit glibc. So good came out of evil.
 
1 members found this post helpful.
Old 04-19-2024, 12:17 PM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,643

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Congratulations!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install brother printer - Brother printer support smithk Linux - Software 3 10-07-2020 03:30 PM
Brother laser printer identified as an HP printer(?) taylorkh Ubuntu 2 05-21-2014 11:41 AM
[SOLVED] CUPS no longer printing with Brother HL2170W laser printer lpallard Linux - Software 8 06-26-2011 04:45 AM
Fedora Printer Problem: Brother Laser Printer drops the first one or two centimeters merlinsenger Linux - Newbie 2 05-24-2008 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration