You are not logged in.

#1 2016-02-12 12:40:34

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 366

[SOLVED]cups doesn't recognize usb printer Brother HL-2240

Hi, guys!

I have problems with printing (Brother-2240) on every cups update. Having seen this before (my previous post regarding cups https://bbs.archlinux.org/viewtopic.php?id=202925) I deleted the printer via the cups web interface and tried to add it again. Now cups can't even see the printer. It is not shown in the list of devices.

I did

pacman -Rsc cups
rm -r /etc/cups
rm -r /etc/cupshelpers
pacman -S cups cups-filters libcups ghostscript foomatic-db foomatic-db-engine foomatic-db-nonfree

Then tried

ServerName localhost:631

in  /etc/cups/client.conf

Nothing worked.

Here is the log

E [12/Feb/2016:13:40:05 +0200] [CGI] Unable to scan \"@LOCAL\"!
E [12/Feb/2016:13:48:10 +0200] [CGI] Unable to scan \"@LOCAL\"!
E [12/Feb/2016:13:49:18 +0200] [CGI] Unable to scan \"@LOCAL\"!
E [12/Feb/2016:14:06:50 +0200] [CGI] Unable to scan \"@LOCAL\"!

and some info

lpinfo -v
network beh
network socket
network ipp
network https
network ipps
network http
network lpd
network smb
cat /etc/modprobe.d/modprobe.conf
blacklist kvm
blacklist kvm_intel 
blacklist uvcvideo 
blacklist i2c_hid
blacklist rt28xxpci
blacklist usblp
lsusb
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 05c8:0357 Cheng Uei Precision Industry Co., Ltd (Foxlink) 
Bus 001 Device 007: ID 04f9:0045 Brother Industries, Ltd 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 19d2:0031 ZTE WCDMA Technologies MSM MF110/MF627/MF636
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Any ideas are highly appreciated!

Last edited by amaro (2016-02-16 18:31:52)

Offline

#2 2016-02-12 17:19:41

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

amaro wrote:

Then tried

ServerName localhost:631

in  /etc/cups/client.conf

Don't do that - the client,conf file is used when you want your print jobs routing through another cups server on your network: you should revert that file back to defaults.

Are you using the brother-brgenml1 driver from the AUR - https://aur.archlinux.org/packages/brother-brgenml1/ ?

After adding that, are you setting up your printer via the cups web interface at http://localhost:631 ?

Offline

#3 2016-02-12 19:29:45

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 366

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

@paulkerry
Thank you for the suggestions!
I corrected /etc/cups/client.conf and tried brother-cups-wrapper-laser (https://aur.archlinux.org/packages/brot … per-laser/) before your answer, then tried your suggestion - still no result.

lpinfo -v | grep -i 'Brother'

web interface gives

Available Printers
No printers found.

p.s. log gives the same output.

Last edited by amaro (2016-02-12 19:38:07)

Offline

#4 2016-02-12 20:10:00

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

amaro wrote:
cat /etc/modprobe.d/modprobe.conf
...
blacklist usblp

Have you tried without the blacklist (reboot after removing it)?

https://wiki.archlinux.org/index.php/CU … B_printers says
"As of cups version 1.6.0, it should no longer be necessary to blacklist the usblp kernel module"

Offline

#5 2016-02-13 07:28:05

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 366

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

I have tried without the blacklist - makes no difference. Since I have LMDE on another partition which uses cups 1.7.5 and works fine I've just downgraded cups to 1.7.5 but it still shows no printer in the list.

Offline

#6 2016-02-13 11:23:16

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,428
Website

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

Moving to kernel and hardware.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2016-02-13 19:19:51

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

If your "Brother-2240" is the same as...
http://www.brother.co.uk/printers/mono- … on-details

then it apparently has a wired network port - if it does, can you try if using a wired connection works instead of usb?

Last edited by paulkerry (2016-02-13 19:20:25)

Offline

#8 2016-02-15 14:16:45

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 366

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

@paulkerry
Thank you for the link! Sadly my printer doesn't have such option. The model is the same but it only has usb connection. I read how to install the driver from the link you provide and actually tried following the commands they give on their website but that resulted in many errors and warnings and, in the end, did not work (due to something like lpadmin Bad URI). I tried it with both 1.7.5 and 2.1.3. I am back to 2.1.3 now.

Executing this command

sudo journalctl -b -p err | less

gives

Feb 15 15:35:38 ahp systemd-udevd[167]: specified group 'plugdev' unknown
Feb 15 15:35:43 ahp systemd-rfkill[260]: Failed to parse state file /var/lib/systemd/rfkill/pci-0000:04:00.0:wlan: Invalid argument
Feb 15 15:36:55 ahp pppd[1033]: Cannot determine ethernet address for proxy ARP
Feb 15 15:47:53 ahp udev-configure-printer[1180]: no corresponding CUPS device found

Then

sudo systemctl status org.cups.cupsd.service
org.cups.cupsd.service - CUPS Scheduler
   Loaded: loaded (/usr/lib/systemd/system/org.cups.cupsd.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2016-02-15 15:35:49 EET; 20min ago
     Docs: man:cupsd(8)
 Main PID: 359 (cupsd)
   CGroup: /system.slice/org.cups.cupsd.service
           └─359 /usr/bin/cupsd -l

Feb 15 15:35:49 ahp systemd[1]: Started CUPS Scheduler.

And

sudo journalctl -xe
Feb 15 15:50:28 ahp sudo[1209]: pam_unix(sudo:session): session closed for user root
Feb 15 15:50:42 ahp systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-tmpfiles-clean.service has begun starting up.
Feb 15 15:50:42 ahp systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit systemd-tmpfiles-clean.service has finished starting up.
-- 
-- The start-up result is done.
Feb 15 15:55:27 ahp sudo[1499]:       vb : TTY=pts/0 ; PWD=/home/vb ; USER=root ; COMMAND=/usr/bin/s
Feb 15 15:55:27 ahp sudo[1499]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 15 15:55:27 ahp sudo[1499]: pam_unix(sudo:session): session closed for user root
Feb 15 15:56:11 ahp sudo[1508]:       vb : TTY=pts/0 ; PWD=/home/vb ; USER=root ; COMMAND=/usr/bin/s
Feb 15 15:56:11 ahp sudo[1508]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 15 15:56:11 ahp sudo[1508]: pam_unix(sudo:session): session closed for user root
Feb 15 15:57:06 ahp sudo[1742]:       vb : TTY=pts/0 ; PWD=/home/vb ; USER=root ; COMMAND=/usr/bin/j
Feb 15 15:57:06 ahp sudo[1742]: pam_unix(sudo:session): session opened for user root by (uid=0)

Offline

#9 2016-02-16 13:27:33

john29
Member
Registered: 2014-11-27
Posts: 29

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

Try this
lsusb

Bus 002 Device 005: ID 04b8:083f Seiko Epson Corp. PX-A620 [Stylus CX3900/DX4000/DX4050]
idVendor=04b8  (your diff)
idProduct=082f    "   "
sudo nano /etc/udev/rules.d/10-usbprinter.rules
ATTR{idVendor}=="04b8", ATTR{idProduct}=="083f", MODE:="0660", GROUP:="lp"
sudo systemctl stop org.cups.cupsd.service
sudo systemctl disable org.cups.cupsd.service
reboot

sudo pacman -S cups cups-filters cups-pdf cups-pk-helper system-config-printer
sudo systemctl daemon-reload
sudo systemctl enable org.cups.cupsd.service
sudo systemctl start org.cups.cupsd.service

Offline

#10 2016-02-16 15:16:03

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 366

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

@john29
Still not working. Tried Generic Postscript driver as cups-pdf recommends and after that Brother HL-2140 Foomatic/hl1250 and both didn't work. It shows Virtual PDF Printer but when I try to print a test page it says No jobs.

Offline

#11 2016-02-16 16:41:02

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

Try to:

chmod og= /usr/lib/cups/backend/usb

This forces cups to access the printer as root (I have had a lot of problems with some but not all usb printer not detected without this).

Offline

#12 2016-02-16 18:29:30

amaro
Member
From: 5.11.1-1-ck-ivybridge, xfce
Registered: 2014-05-09
Posts: 366

Re: [SOLVED]cups doesn't recognize usb printer Brother HL-2240

@olive
I am sure I did this couple of times during the last few days but did it again after reading your suggestion. And for good. Once again I got

chmod og= /usr/lib/cups/backend/usb
chmod: cannot access ‘/usr/lib/cups/backend/usb’: No such file or directory

Then

pacman -Qk | grep -v  'missing files' > missing

and I had to reinstall for I do not know which time libcups plus hunspell and lshw
This allowed the chmod command and now the printer is working.
Thank you very much gyus!

Offline

Board footer

Powered by FluxBB