Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem getting brlaser driver working with DCP 7030 printer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 509

PostPosted: Mon Oct 28, 2019 3:51 pm    Post subject: problem getting brlaser driver working with DCP 7030 printer Reply with quote

Dear All,

I am running gentoo stable on an amd64 kaveri box.

I am using a Brother DCP 7030 printer.

I have cups installed plus the
Code:
net-print/brlaser
package which apparently works with this printer.

I used the
Code:
localhost 631
page on firefox to set the printer up.

Libreoffice now thinks I am using the Brother DCP 7030 printer as a generic printer.

If you try printing a one page file of text it empties the printer of paper completely leaving all the pages blank at present.

Suggestions on how to do a bit better here would be appreciated.

Regards

Michael Fothergill
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3087

PostPosted: Mon Oct 28, 2019 4:13 pm    Post subject: Reply with quote

Did you follow this guide?
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 509

PostPosted: Mon Oct 28, 2019 4:23 pm    Post subject: Reply with quote

Many thanks for your reply.

I have looked through it while doing this.

Do you think I need the brother overlay in this case?

I think I don't.

Comments appreciated.

Regards

MF
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3087

PostPosted: Mon Oct 28, 2019 4:58 pm    Post subject: Reply with quote

mikefot wrote:
I have looked through it while doing this.

Did you add the printer though http://localhost:631/admin?
Could you manage the printer through http://localhost:631/printers/?
Could you print the testpage from there?
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 509

PostPosted: Mon Oct 28, 2019 8:09 pm    Post subject: Reply with quote

Many thanks for your response.

I can get the add printer command to work OK - it sees the brother 7030 printer as a local printer and I can
create the printer daemon or whatever it is called. But when I do it the list of printer types does NOT
include Brother and it is created as a generic printer.

Something is not right. I tried printing with it using libreoffice and nothing happens now.

I tried some commands:

Code:
storm /home/mikef # gpasswd -a mikef lp
Adding user mikef to group lp
storm /home/mikef # gpasswd -a mikef lpadmin
Adding user mikef to group lpadmin
storm /home/mikef # lpinfo -v
bash: lpinfo: command not found
storm /home/mikef # lpstat -a
bash: lpstat: command not found
storm /home/mikef # dmesg | grep -i print
[    0.217241] printk: console [tty0] enabled
[    2.749645] printk: console [netcon0] enabled
[    3.266256] usblp 4-4:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x01EA
[  166.073492] usblp 4-4:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x01EA
storm /home/mikef #


lsusb is not recognised.

cups has been started automatically on logging in.

I am using openrc not systemd.

Suggestions welcome.

Regards

MF

PS Here is some cups error log output:

Code:
storm /home/mikef # tail /var/log/cups/error_log
W [27/Oct/2019:18:40:56 +0000] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [28/Oct/2019:16:09:37 +0000] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [28/Oct/2019:16:09:37 +0000] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [28/Oct/2019:16:09:37 +0000] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [28/Oct/2019:18:58:38 +0000] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [28/Oct/2019:18:58:38 +0000] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [28/Oct/2019:18:58:38 +0000] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
E [28/Oct/2019:19:08:31 +0000] [Job 18] Unable to send data to printer.
E [28/Oct/2019:19:09:25 +0000] [cups-deviced] PID 4250 (cups-brf) stopped with status 13!
E [28/Oct/2019:20:48:57 +0000] [cups-deviced] PID 4115 (cups-brf) stopped with status 13!
storm /home/mikef #


PPS I installed
Code:
gtklp
and ran it and it said "no printers found"
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7511
Location: Saint Amant, Acadiana

PostPosted: Mon Oct 28, 2019 8:55 pm    Post subject: Reply with quote

Nobody mentioned it yet, I seem to remember there is some conflict between kernel USB print driver and CUPS. You sure your kernel is configured correctly? I suggest using networked printers whenever possible, so much easier to set up.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3087

PostPosted: Tue Oct 29, 2019 7:21 am    Post subject: Reply with quote

Indeed, after checking DCP 7030's specification I see it has only USB but not network.
As Jaglover mentioned, the kernel should be configured correctly. Further reading in https://wiki.gentoo.org/wiki/Printing#Locally_attached_printer_.28USB.29 should lead you to post 8011666.
HTH
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 509

PostPosted: Thu Oct 31, 2019 4:56 pm    Post subject: Reply with quote

Many thanks for your reply and the helpful advice.

I ran
Code:
make menuconfig
and looked at the printer kernel settings but they seemed OK to me.

Maybe I am wrong here.

The USB printer function is turned on in the kernel I think. We would not need the parallel printer option turned on I would have thought.

The kernel config file is here:

Your paste can be seen here: http://dpaste.com/22Q5092

Suggestions on appropriate changes are welcome.

Regards

MF
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3087

PostPosted: Thu Oct 31, 2019 10:11 pm    Post subject: Reply with quote

mikefot wrote:
Many thanks for your reply and the helpful advice.

I ran
Code:
make menuconfig
and looked at the printer kernel settings but they seemed OK to me.

Maybe I am wrong here.

The USB printer function is turned on in the kernel I think. We would not need the parallel printer option turned on I would have thought.

Why don't you turn of CONFIG_USB_PRINTER and have dev-libs/libusb installed?
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 509

PostPosted: Sun Nov 03, 2019 10:18 am    Post subject: Reply with quote

Many thanks for the help again.

I ran make menuconfig and turned off the usb printer flag:

see here:

http://dpaste.com/0SE38YP

I am now running kernel 5.3.7.

I also installed
Code:
dev-libs/libusb
.

I tried setting up the printer daemon using the
Code:
localhost 631
option with cups.

It doesn't seem to see the Brother printer at all.

Cups is definitely running. I reinstalled it to see if that would help but it doesn't.

Suggestions welcome.

Regards

MF

PS I have now set up the Brother printer daemon with the generic printer postscript setting.

In libreoffice it prints a one page document as about 20 blank pages and stops at that point.

Comments appreciated.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3087

PostPosted: Sun Nov 03, 2019 10:45 am    Post subject: Reply with quote

Have you tried https://wiki.gentoo.org/wiki/Brother_networked_printer#Use_command_line_to_install_the_printer ?

P.S.
Maybe something is wrong with brlaser. Have you also tried the rpm installation?
And the brlaser package seems to need a version bump, see bug 696200.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 509

PostPosted: Sun Nov 03, 2019 11:26 am    Post subject: Reply with quote

Many thanks again.

I downloaded the rpm files for the LPR and cupswrapper files from Brother for the DCP-7030 machine.

I tried installing the LPR driver:

Code:
storm /home/mikef/Downloads # rpm -i --nodeps brdcp7030lpr-2.0.2-1.i386.rpm
which: no pstops in (/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)
storm /home/mikef/Downloads #


Is that the sort of error message that means I need to run the replace packahes command to fix problems here?

Regds

MF
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3087

PostPosted: Sun Nov 03, 2019 11:29 am    Post subject: Reply with quote

Another point:
* https://wiki.gentoo.org/wiki/Printing#USB_Printer_is_not_detected
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 509

PostPosted: Sun Nov 03, 2019 11:39 am    Post subject: Reply with quote

Many thanks for your reply again.

I also tried installing the cupswrapper rpm:

Code:
storm /home/mikef/Downloads # rpm -i --nodeps cupswrapperDCP7030-2.0.2-1.i386.rpm
cp: '/usr/lib/cups/filter/brlpdwrapperDCP7030' and '/usr/lib64/cups/filter/brlpdwrapperDCP7030' are the same file
storm /home/mikef/Downloads # /usr/local/Brother/cupswrapper/cupswrapperDCP7030-2.0.2: line 531: lpinfo: command not found
/usr/local/Brother/cupswrapper/cupswrapperDCP7030-2.0.2: line 533: lpinfo: command not found
/usr/local/Brother/cupswrapper/cupswrapperDCP7030-2.0.2: line 539: lpadmin: command not found

storm /home/mikef/Downloads #


The output of lsusb is here:

Your paste can be seen here: http://dpaste.com/068C0JM

and

https://paste.debian.net/1113366/

I will try to figure out if I have this permissions problem and fix it.


Comments appreciated.

Regards

MF
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3087

PostPosted: Sun Nov 03, 2019 11:47 am    Post subject: Reply with quote

mikefot wrote:
Your paste can be seen here: http://dpaste.com/068C0JM

Are you really having cups with the USB USE flag?

Could you please detach and re-attach the printer? And then run dmesg?


Last edited by charles17 on Sun Nov 03, 2019 12:23 pm; edited 2 times in total
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 509

PostPosted: Sun Nov 03, 2019 11:53 am    Post subject: Reply with quote

Yes. I added the usb flag to my make.conf file:

Code:
storm /etc/portage # wgetpaste /etc/portage/make.conf
Your paste can be seen here:
http://dpaste.com/2DMKH6J
Code:
storm /etc/portage #


I will remove the usb flag and rerun emerge --update --newuse -deep @world or --changeduse or something similar

Suggestions welcome.

Regards

MF
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3087

PostPosted: Sun Nov 03, 2019 11:55 am    Post subject: Reply with quote

mikefot wrote:
I will remove the usb flag and rerun emerge --update --newuse -deep @world or --changeduse or something similar

net-print/cups should have USB enabled.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 509

PostPosted: Sun Nov 03, 2019 11:57 am    Post subject: Reply with quote

So I should keep the flag turned on then after all...........

Cheers

MF

PS I am running
Code:
emerge --update --newuse --deep @world

There are 93 packages to be emerged. I think the usb bit is already working in what I emerged previously but I will clobber away
at it compile rust and gcc and everything in there and see if it helps.

PPS

Debian 10 runs the printer perfectly. So there will be a way to make it work in Gentoo.

PPPS

I have finished the emerge world updates. This has not cured the printing problem.

The printer is not recognised at present. So I have actually gone backwards with it.

Maybe installing the
Code:
 rpms
was actually a bad idea.....

Who knows.

Here is the dmesg output with the printer turned off

http://dpaste.com/028Y1NA

Here is the dmesg output again with the printer turned on

http://dpaste.com/372QEKQ

Cheers

MF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum