You are not logged in.

#1 2011-05-14 15:33:51

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Cups unable to find USB printer after system upgrade

Hi there,

I'm relatively new in Arch Linux but at least used Ubuntu for several years.
I did a pacman -Syu and since then my Brother DCP8040 was always shown as turned off in CUPS even when it was turned on and properly connected. I deleted it in order to install it again but now it isn't found anymore.
I followed all the rules for USB printers, see the following:

lsusb delivers

Bus 003 Device 007: ID 04f9:015d Brother Industries, Ltd MFC Composite Device

ls -la /dev/bus/usb/003/007 delivers

crw-rw----+ 1 root lp 189, 262 May 14 08:09 /dev/bus/usb/003/007

usblp is blacklisted

kernel log delivers the following when turning on the printer:

May 23 15:17:27 localhost dbus-daemon: [system] Reloaded configuration
May 23 15:17:27 localhost dbus-daemon: [system] Reloaded configuration
May 23 15:17:27 localhost dbus-daemon: [system] Reloaded configuration
May 23 15:17:43 localhost kernel: [ 2517.288966] usb 3-1.3: new high speed USB device using ehci_hcd and address 8
May 23 15:17:43 localhost mtp-probe: checking bus 3, device 8: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 23 15:17:44 localhost mtp-probe: bus: 3, device: 8 was not an MTP device
May 23 15:17:44 localhost mtp-probe: checking bus 3, device 8: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 23 15:17:47 localhost mtp-probe: bus: 3, device: 8 was not an MTP device
May 23 15:17:47 localhost kernel: [ 2521.386215] WARNING! power/level is deprecated; use power/control instead
May 23 15:17:47 localhost udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3/3-1.3:1.0
May 23 15:17:47 localhost udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3
May 23 15:17:47 localhost udev-configure-printer: Device vendor/product is 04F9:015D
May 23 15:17:47 localhost load-modules.sh: 'usb:v04F9p015Dd0100dc00dsc00dp00icFFiscFFipFF' is not a valid module or alias name
May 23 15:17:47 localhost load-modules.sh: Not loading module 'usblp' for alias 'usb:v04F9p015Dd0100dc00dsc00dp00ic07isc01ip02' because it is blacklisted
May 23 15:17:52 localhost udev-configure-printer: Failed to fetch Device ID
May 23 15:17:52 localhost udev-configure-printer: invalid or missing IEEE 1284 Device ID

Sane worked before, scanimage -L still produces

device `brother:bus3;dev3' is a Brother DCP-8040 USB scanner

but the start of xsane delivers an "invalid argument" error (scanner doesn't need a firmware and I reinstalled the brother software brscan from AUR).

I think the last line of the log might be a hint but googleing it couldn't really help me. Maybe someone of you can, thanks in advance!

Last edited by mfgpcm (2011-05-23 13:28:48)

Offline

#2 2011-05-23 13:23:05

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

Hi,

in the meanwhile I tried a lot of things but the printer still isn't recognized. I'm going crazy and already thought about installing Debian!

I tired downgrading cups, file, and even the kernel to there previous versions which are in /var/cache/pacman/... but it never worked. Not even uninstalling cups totally and install it again. The information I get from google is mainly about printers which stop working when cups was upgraded to 1.4.6... but it worked with me with 1.4.6-1!

When I turn on the printer then dmesg give me the following warning, maybe this helps to find the reason...

usb 3-1.3: new high speed USB device using ehci_hcd and address 8
WARNING! power/level is deprecated; use power/control instead

Does no one has some information?

Last edited by mfgpcm (2011-05-23 13:27:06)

Offline

#3 2011-05-23 15:40:31

bds
Member
Registered: 2004-02-27
Posts: 47

Re: Cups unable to find USB printer after system upgrade

I don't have your printer, but I'll try to help.

What is the output of:

lpstat -p -d

Offline

#4 2011-05-23 16:18:27

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

Thank you! By the way I don't think its a problem of the printer... it worked before the system upgrade and is rather old smile And the printer itself works, too, I tested it from Windows.

Output of lpstat is:

system default destination: Generic-CUPS-PDF-Printer
printer Generic-CUPS-PDF-Printer is idle.  enabled since Wed 18 May 2011 03:34:25 PM CEST

I have added the virtual CUPS-PDF printer, but the real printer isn't recognized at all from CUPS. Yet it is visible if I run lsusb!

Offline

#5 2011-05-23 18:52:29

bds
Member
Registered: 2004-02-27
Posts: 47

Re: Cups unable to find USB printer after system upgrade

Is your user in the lp group?

Offline

#6 2011-05-23 19:14:13

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

Good idea... but both, my user and root are in the lp group..

[pmunk@lightspeed ~]$ groups pmunk
adm lp wheel games video audio optical storage scanner power users
[pmunk@lightspeed ~]$ groups root
root bin daemon sys adm disk lp wheel log video

Offline

#7 2011-05-24 03:09:18

bds
Member
Registered: 2004-02-27
Posts: 47

Re: Cups unable to find USB printer after system upgrade

Please try the following:

1. stop cupsd
2. unplug printer
3. modprobe usblp
4. insert printer

Do you now see a device /dev/usb/lp0? If so, start cupsd and try to find/add your printer. If the printer shows up, you may want to install cups-usblp from AUR.
.

Offline

#8 2011-05-24 08:08:03

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

Thanks for the answer!

I did the following:

[pmunk@lightspeed ~]$ lsusb | grep Brother
[pmunk@lightspeed ~]$ sudo /etc/rc.d/cups stop
:: Stopping CUPS Daemon                                                  [DONE] 
[pmunk@lightspeed ~]$ sudo modprobe usblp
[pmunk@lightspeed ~]$ ls /dev/usb/lp0 
/dev/usb/lp0
[pmunk@lightspeed ~]$ lsusb | grep Brother
Bus 003 Device 008: ID 04f9:015d Brother Industries, Ltd MFC Composite Device
[pmunk@lightspeed ~]$ sudo /etc/rc.d/cups start
:: Starting CUPS Daemon                                                  [DONE] 

The output on /var/log/everything.log is as follows:

May 24 09:52:50 localhost kernel: [  151.812859] usbcore: registered new interface driver usblp
May 24 09:53:25 localhost kernel: [  186.776793] usb 3-1.3: new high speed USB device using ehci_hcd and address 8
May 24 09:53:25 localhost mtp-probe: checking bus 3, device 8: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 24 09:53:26 localhost kernel: [  186.865356] usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x04F9 pid 0x015D
May 24 09:53:27 localhost mtp-probe: bus: 3, device: 8 was not an MTP device
May 24 09:53:27 localhost mtp-probe: checking bus 3, device 8: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 24 09:53:30 localhost mtp-probe: bus: 3, device: 8 was not an MTP device
May 24 09:53:30 localhost udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3/3-1.3:1.0
May 24 09:53:30 localhost udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3
May 24 09:53:30 localhost udev-configure-printer: Device vendor/product is 04F9:015D
May 24 09:53:30 localhost udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3/3-1.3:1.0/usb/lp0
May 24 09:53:30 localhost load-modules.sh: 'usb:v04F9p015Dd0100dc00dsc00dp00icFFiscFFipFF' is not a valid module or alias name
May 24 09:53:30 localhost udev-configure-printer: failed to claim interface
May 24 09:53:30 localhost udev-configure-printer: invalid or missing IEEE 1284 Device ID
May 24 09:53:30 localhost udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3
May 24 09:53:30 localhost udev-configure-printer: MFG:Brother MDL:DCP-8040 SERN:- serial:000G4J311426
May 24 09:53:31 localhost udev-configure-printer: failed to connect to CUPS server; giving up

Then I let CUPS search for the printer, but it doesn't find it sad
I only get the following line in /var/log/everything.log each time I let it search:

May 24 09:54:31 localhost kernel: [  251.839797] usb 3-1.3: usbfs: interface 0 claimed by usblp while 'usb' sets config #1

In /var/log/cups/error_log there are the following lines (the latter two repeat each time I started a new search):

E [24/May/2011:09:54:22 +0200] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [24/May/2011:09:54:31 +0200] [CGI] Unable to create avahi client: Resource temporarily unavailable
E [24/May/2011:09:54:31 +0200] [cups-deviced] PID 3871 (dnssd) stopped with status 1!

I have no idea what this means... any idea how to fix it?

Offline

#9 2011-05-24 11:15:40

bds
Member
Registered: 2004-02-27
Posts: 47

Re: Cups unable to find USB printer after system upgrade

Some of the log output is related to cups conflicting with usblp

Seeing that after modprobing usblp you get a valid device address /dev/usb/lp0, I would suggest removing cups and installing cups-usblp from AUR. You do need to un-blacklist usblp if you use cups-usblp. This might get CUPS (finally) to recognize your printer.

Offline

#10 2011-05-24 19:09:07

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

Doesn't work, how disappointing sad Actually, I doubted that it works with cups-usblp because before the system upgrade it worked with the "normal" version and blacklisted usblp. By the way, in the mean while I do system upgrades nearly every day because I hope it might be a bug and someone finds and fixes it.

Here is what I did: I removed cups-pdf and cups with

sudo pacman -Rns cups-pdf cups

then downloaded cups-usblp from here https://aur.archlinux.org/packages.php?ID=35029,
created the package with

makepkg -s PKGBUILD

installed it with

sudo pacman -U cups-usblp-1.4.6-2-x86_64.pkg.tar.xz

and removed !usblp from the line MODULES=(fuse) in the /etc/rc.conf
and rebooted.

Turned on the printer after the reboot and tried to find a new printer. Unfortunately, it still isn't recognized. The log didn't change that much, though:

May 24 20:51:31 localhost kernel: [   43.786320] usb 3-1.3: new high speed USB device using ehci_hcd and address 7
May 24 20:51:31 localhost mtp-probe: checking bus 3, device 7: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 24 20:51:32 localhost mtp-probe: bus: 3, device: 7 was not an MTP device
May 24 20:51:32 localhost mtp-probe: checking bus 3, device 7: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 24 20:51:35 localhost mtp-probe: bus: 3, device: 7 was not an MTP device
May 24 20:51:35 localhost kernel: [   47.893685] WARNING! power/level is deprecated; use power/control instead
May 24 20:51:35 localhost udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3/3-1.3:1.0
May 24 20:51:35 localhost udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3
May 24 20:51:35 localhost udev-configure-printer: Device vendor/product is 04F9:015D
May 24 20:51:37 localhost kernel: [   49.363190] usbcore: registered new interface driver usblp
May 24 20:51:40 localhost udev-configure-printer: Failed to fetch Device ID
May 24 20:51:40 localhost udev-configure-printer: invalid or missing IEEE 1284 Device ID

Interestingly, the device /dev/usb/lp0 doesn't exist anymore, in fact:

ls /dev | grep usb

It's really disappointing sad  But thanks for your help! Any other idea?

Offline

#11 2011-05-25 06:20:45

bds
Member
Registered: 2004-02-27
Posts: 47

Re: Cups unable to find USB printer after system upgrade

Your problem seems to be with udev-configure-printer.which is owned by system-config-printer-common, which in turn is owned by system-config-printer{-kde,-gnome}

If you configure CUPS through its browser interface (localhost:631), you don't need system-config-printer-*. Uninstall and see what happens.

You might want to check your pacman log to see when system-config-printer was last updated.

Finally, since udev is an active participant in this scenario, you might try downgrading udev to the version that worked with your printer.

Offline

#12 2011-05-25 14:20:30

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

I'm nearly crying! Tried what you said and it still doesn't work. I thought downgrading must solve the problem but the printer still isn't found.

Here is what I did:

sudo pacman -Syu
sudo /etc/rc.d/cupsd stop
sudo pacman -Rns  cups-usblp
sudo pacman -Rns system-config-printer-gnome system-config-printer-common
sudo pacman -S cups cups-pdf

blacklist usblp in /etc/rc.conf again
rebooted

The old pacman logs have been deleted but in /var/cache/pacman/pkg/ there only exists one version of system-config-printer-*... I assume that it never has been updated. Anyway:

Turned on printer

May 25 15:11:25 localhost kernel: [   92.420963] usb 3-1.3: new high speed USB device using ehci_hcd and address 6
May 25 15:11:25 localhost mtp-probe: checking bus 3, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 25 15:11:26 localhost mtp-probe: bus: 3, device: 6 was not an MTP device
May 25 15:11:26 localhost mtp-probe: checking bus 3, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 25 15:11:29 localhost mtp-probe: bus: 3, device: 6 was not an MTP device
May 25 15:11:29 localhost kernel: [   96.527466] WARNING! power/level is deprecated; use power/control instead
May 25 15:11:29 localhost load-modules.sh: 'usb:v04F9p015Dd0100dc00dsc00dp00icFFiscFFipFF' is not a valid module or alias name
May 25 15:11:29 localhost load-modules.sh: Not loading module 'usblp' for alias 'usb:v04F9p015Dd0100dc00dsc00dp00ic07isc01ip02' because it is blacklisted

Open CUPS at http://localhost:631/admin
=> Printer still isn't found! sad

Next idea, install earliest possible udev I found in cache:

[pmunk@lightspeed pkg]$ sudo pacman -U udev-167-1-x86_64.pkg.tar.xz 
warning: downgrading package udev (168-2 => 167-1)
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: mkinitcpio: requires udev>=168

Downgrading mkinitcpio, too:

[pmunk@lightspeed pkg]$ sudo pacman -U mkinitcpio-0.6.8-2-any.pkg.tar.xz 
warning: downgrading package mkinitcpio (0.6.12-1 => 0.6.8-2)
...
(1/1) upgrading mkinitcpio                         [######################] 100%
warning: /etc/mkinitcpio.conf installed as /etc/mkinitcpio.conf.pacnew
New optional dependencies for mkinitcpio
    xz: Use lzma compression for the initramfs image

[pmunk@lightspeed pkg]$ sudo pacman -U udev-167-1-x86_64.pkg.tar.xz 
warning: downgrading package udev (168-2 => 167-1)
...
error: failed to commit transaction (conflicting files)
udev: /lib/udev/hid2hci exists in filesystem

Solved by renaming this file:

sudo mv /lib/udev/hid2hci /lib/udev/hid2hci.pacman.old
[pmunk@lightspeed pkg]$ sudo pacman -U udev-167-1-x86_64.pkg.tar.xz 
warning: downgrading package udev (168-2 => 167-1)
...
(1/1) upgrading udev                               [######################] 100%

rebooted
turned on printer

May 25 15:48:00 localhost kernel: [   53.033850] usb 3-1.3: new high speed USB device using ehci_hcd and address 6
May 25 15:48:00 localhost mtp-probe: checking bus 3, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 25 15:48:01 localhost mtp-probe: bus: 3, device: 6 was not an MTP device
May 25 15:48:01 localhost mtp-probe: checking bus 3, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.3"
May 25 15:48:04 localhost mtp-probe: bus: 3, device: 6 was not an MTP device
May 25 15:48:04 localhost kernel: [   57.139766] WARNING! power/level is deprecated; use power/control instead
May 25 15:48:04 localhost load-modules.sh: 'usb:v04F9p015Dd0100dc00dsc00dp00icFFiscFFipFF' is not a valid module or alias name
May 25 15:48:04 localhost load-modules.sh: Not loading module 'usblp' for alias 'usb:v04F9p015Dd0100dc00dsc00dp00ic07isc01ip02' because it is blacklisted

still not found sad
Do the messages from mtp-probe mean that the printer doesn't support http://en.wikipedia.org/wiki/Media_Transfer_Protocol? This shoud be fine, right?

Therefore the only option I see is downgrading the kernel because of the warning

[pmunk@lightspeed pkg]$ sudo pacman -U kernel26-2.6.38.3-1-x86_64.pkg.tar.xz 
warning: downgrading package kernel26 (2.6.38.6-2 => 2.6.38.3-1)
...
(1/1) upgrading kernel26                           [######################] 100%
>>> Updating module dependencies. Please wait ...
...
==> SUCCESS

reboot

Just to see it everything worked:

[pmunk@lightspeed ~]$ sudo pacman -Q kernel26
kernel26 2.6.38.3-1
[pmunk@lightspeed ~]$ sudo pacman -Q udev 
udev 167-1
[pmunk@lightspeed ~]$ sudo pacman -Q cups
cups 1.4.6-2

turned on printer

May 25 15:54:27 localhost kernel: [   82.682467] usb 2-1.3: new high speed USB device using ehci_hcd and address 6
May 25 15:54:27 localhost mtp-probe: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3"
May 25 15:54:28 localhost mtp-probe: bus: 2, device: 6 was not an MTP device
May 25 15:54:28 localhost mtp-probe: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3"
May 25 15:54:31 localhost mtp-probe: bus: 2, device: 6 was not an MTP device
May 25 15:54:31 localhost kernel: [   86.803564] WARNING! power/level is deprecated; use power/control instead
May 25 15:54:31 localhost load-modules.sh: 'usb:v04F9p015Dd0100dc00dsc00dp00icFFiscFFipFF' is not a valid module or alias name
May 25 15:54:31 localhost load-modules.sh: Not loading module 'usblp' for alias 'usb:v04F9p015Dd0100dc00dsc00dp00ic07isc01ip02' because it is blacklisted

Seems like the kernel warning has been there before.

But when I let CUPS search for printers, it still doesn't find it sad
I only see

Local Printers:     

  • SCSI Printer

  • CUPS-PDF (Virtual PDF Printer)

  • Serial Port #1

Discovered Network Printers:     
Other Network Printers:     

  • Internet Printing Protocol (ipp)

  • Internet Printing Protocol (http)

  • LPD/LPR Host or Printer

  • AppSocket/HP JetDirect

  • Backend Error Handler

  • Windows Printer via SAMBA

I thought of downgrading CUPS, too, but I still think it isn't a problem of CUPS, because the printer also has a build-in scanner which is properly recognized but scanning ends with an "Invalid argument" although this has worked before the system upgrade, too.

[pmunk@lightspeed ~]$ scanimage -L
device `brother:bus3;dev6' is a Brother DCP-8040 USB scanner
[pmunk@lightspeed ~]$ scanimage 
scanimage: open of device brother:bus3;dev6 failed: Invalid argument

What is it that I am missing?

Offline

#13 2011-05-25 19:19:21

bds
Member
Registered: 2004-02-27
Posts: 47

Re: Cups unable to find USB printer after system upgrade

The load-modules.sh messages seem to be harmless. usblp has been blacklisted and the other message is spurious - see https://bugs.archlinux.org/task/13852.

I confess I'm stuck at this point. However, I will make one final long-shot suggestion.

In an earlier post you showed the permissions on your printer device to be

crw-rw----+ 1 root lp 189, 262 May 14 08:09 /dev/bus/usb/003/007

Try changing the permissions from 660 to 666. (I know you're in the lp group, but anyway...)

Offline

#14 2011-05-26 08:41:49

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

I'm very disappointed. Tried it but still doesn't work...

I changed the following udev rule (since it is a combined scanner/printer, sane overwrites the standard rule therefore I created a new one according to the Arch wiki):

[pmunk@lightspeed ~]$ sudo vim /lib/udev/rules.d/10-usbprinter.rules
# See: https://wiki.archlinux.org/index.php/Cups
ATTR{idVendor}=="04f9", ATTR{idProduct}=="015d", MODE:="0666", GROUP:="lp"

After the reboot it works but nevertheless it isn't recognized.

[pmunk@lightspeed ~]$ lsusb
Bus 003 Device 006: ID 04f9:015d Brother Industries, Ltd MFC Composite Device
[pmunk@lightspeed ~]$ ls -la /dev/bus/usb/003/006
crw-rw-rw-+ 1 root lp 189, 261 May 26 10:03 /dev/bus/usb/003/006

I even tried to change the permissions to 777, changed the following line in cupsd.conf

# Administrator user group...
SystemGroup sys root

to

SystemGroup wheel

but it doesn't help at all.

Yet the printer is there, recognized by scanimage and working under Windows.

[pmunk@lightspeed ~]$ scanimage -L
device `brother:bus3;dev6' is a Brother DCP-8040 USB scanner
[pmunk@lightspeed ~]$ scanimage -vvv
scanimage: open of device brother:bus3;dev6 failed: Invalid argument
Calling sane_exit
scanimage: finished

The printer was installed after the system upgrade but when I tried printing, it simply never started and CUPS stated "Waiting for printer" or something like this. So I removed the printer and thought it might be solved by simply reinstalling it. Could it be possible that the whole device is blacklisted somewhere? Or why is it the printer there and even recognized from scanimage -L but failed to communicate with? Could it be the firmware of the printer changed when using it under Windows? (I just plugged it in and the drivers were installed automatically, additionally the printer has been used a long time with Windows before I first run it under Linux, so I have big doubts about that.)

Offline

#15 2011-05-31 14:44:30

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

After trying a bit more without any success, I gave up and went back to Ubuntu. The reason I installed Arch was that I didn't like the Unity desktop, but since Arch has Gnome 3 now, there's not much of a difference. There, the printer is automatically installed and the setup for sane is documented well on the wiki.

Nevertheless, thank you very much for your help, bds!

Offline

#16 2011-05-31 15:23:32

Technotux
Member
Registered: 2011-04-11
Posts: 9

Re: Cups unable to find USB printer after system upgrade

Just wanted say I understand your frustration, I too, had my Canon USB printer recently fail to be recognized by my system, it did work a couple of weeks ago, so a recent update must have broken CUPS. I fixed my problem by removing CUPS, and installing 'cups-usblp' from AUR, I un-blacklisted '!usblp' from my modules array, by just removing the '!', leaving 'usblp'. After rebooting my system, and configuring my printer through the web interface (http://localhost:631/), my system found my USB printer, and all is working as it should now.

Offline

#17 2011-05-31 16:19:39

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

Thanks for the idea. I already tested the cups-usblp but I think I didn't explicitly enable the usblp module in the rc.conf.  Of course I had to try it.

Well, it still doesn't work. I think that the usblp module is loaded anyway... the output in the log is the same as in the first try.

Offline

#18 2011-05-31 17:06:49

sitquietly
Member
From: On the Wolf River
Registered: 2010-07-12
Posts: 220

Re: Cups unable to find USB printer after system upgrade

mfgpcm wrote:

I'm relatively new in Arch Linux but at least used Ubuntu for several years.
I did a pacman -Syu and since then my Brother DCP8040 was always shown as turned off in CUPS even when it was turned on and properly connected. I deleted it in order to install it again but now it isn't found anymore.  I followed all the rules for USB printers.....

usblp is blacklisted.....

I'm taking a stab in the dark here. I didn't read all of your diagnostic output. But when you say that usblp is blacklisted do you mean that it is listed in the MODULES array as !usblp?
I think that the way of blacklisting modules has recently changed. I see that I have added a line to /etc/modprobe.d/modprobe.conf:
   blacklist usblp

(or better yet, create a new file /etc/modprobe.d/local.conf with all of your local mods like the blacklist directives)

I read somewhere that the MODULES array is now being ignored in blacklisting modules.

I came to Arch from Ubuntu (after years of using NetBSD). Of course many people say that Ubuntu is easier and better for most people. I had no end of trouble with Ubuntu through three releases, and the problems with Ubuntu were not easy to resolve. In fact, I finally had the problem, along with hundreds of others, that cups refused to start after bootup and had to be started every time by opening a terminal and starting the cups daemon using the command line. That required using sudo. I could not fix that problem and I'm a sophisticated user.

Arch linux has been much easier to fix when there is a glitch and much more reliable for me. I think that you may be better off fixing the problem within Arch and sticking with it.

But of course every distro is a beautiful accomplishment and I love them all.

Offline

#19 2011-06-01 11:20:44

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,223
Website

Re: Cups unable to find USB printer after system upgrade

I'm a fan of brother printers beacues it is just so easy to get them installed in linux... Just follow the instructions on the linux-part of their website.

You did see these packages in AUR, I presume: http://aur.archlinux.org/packages.php?O … _Search=Go ?

According to a debian-dev I've talked to, the idea of a cups-wrapper is just bad, but it worked for me, so I'm not complaining.

HTH

Offline

#20 2011-06-01 13:32:15

mfgpcm
Member
Registered: 2011-05-14
Posts: 12

Re: Cups unable to find USB printer after system upgrade

I tried to blacklist the usblp module the way sitquietly described, but still the printer isn't recognized. I found a source for sitquietlys description here: https://wiki.archlinux.org/index.php/Blacklisting so I really thought it will solve the problem.

What I did is I uninstalled cups-usblp, removed !usblp form the /etc/rc.conf, installed cups normally via pacman and added the blacklist usblp to /etc/modprobe.d/modprobe.conf. Then I rebooted and turned on the printer.

The /var/log/everything.log shows the following:

Jun  1 15:18:19 localhost kernel: [   43.335490] usb 3-1.4: new high speed USB device using ehci_hcd and address 6
Jun  1 15:18:19 localhost mtp-probe: checking bus 3, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.4"
Jun  1 15:18:20 localhost mtp-probe: bus: 3, device: 6 was not an MTP device
Jun  1 15:18:20 localhost mtp-probe: checking bus 3, device 6: "/sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.4"
Jun  1 15:18:23 localhost mtp-probe: bus: 3, device: 6 was not an MTP device
Jun  1 15:18:23 localhost udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.4/3-1.4:1.0
Jun  1 15:18:23 localhost kernel: [   47.442284] WARNING! power/level is deprecated; use power/control instead
Jun  1 15:18:23 localhost udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.4
Jun  1 15:18:23 localhost udev-configure-printer: Device vendor/product is 04F9:015D
Jun  1 15:18:28 localhost udev-configure-printer: Failed to fetch Device ID
Jun  1 15:18:28 localhost udev-configure-printer: invalid or missing IEEE 1284 Device ID

If you compare this to the previous output, it shows that the usblp module is not loaded (verified by lsmod), but it hasn't been loaded before where I got the following line missing now:

May 25 15:54:31 localhost load-modules.sh: Not loading module 'usblp' for alias 'usb:v04F9p015Dd0100dc00dsc00dp00ic07isc01ip02' because it is blacklisted

I didn't give the cups-wrapper from Brother a try because I think that there must be a way to get the printer back to work as it did before, where it run without a wrapper software, too.

Nevertheless thanks for your ideas, I'm still willing to try to find the source of evil, but using Ubuntu now, at least I can use the printer again.

Offline

#21 2011-06-10 12:56:10

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Cups unable to find USB printer after system upgrade

Hi. I've been reading the entire thread because I have the same problem.

It turns out the problem was the way blacklisting changed. I didn't install, remove or downgrade any package in my sistem. The modules array in rc.conf was being ommited because lsmod showed me usblp.

So, I did exactly what sitquietly said and now my Epson is working again!

I hope you can fix the problem.

Regards!

[suscribed to this thread from now on]

Offline

#22 2011-06-16 18:49:34

jaybee
Member
Registered: 2009-11-13
Posts: 4

Re: Cups unable to find USB printer after system upgrade

Same fix worked for me and my Canon PIXMA 3000. Thanks, sitquietly and sironitomas.

Offline

#23 2011-06-21 05:03:01

Warper
Member
From: Quito, Ecuador
Registered: 2008-04-08
Posts: 48

Re: Cups unable to find USB printer after system upgrade

For me too. Blacklisting usblp with a usblp_blacklist.conf file into /etc/modprobe.d/ directory fixed the problem with my Epson Stylus C67.

Warper

Offline

#24 2011-06-21 06:27:41

Jelle
Member
From: Netherlands
Registered: 2011-01-30
Posts: 84

Re: Cups unable to find USB printer after system upgrade

I got lost somewhere halfway, but you did try the method sitquietly suggested (add 'blacklist usblp' to /etc/modprobe.d/modprobe.conf) and tried installing the regular cups + gutenprint + foomatic packages and removing all proprietary Brother packages from the AUR?

If you already have gutenprint or foomatic installed: a while ago I saw a change in dependencies or something flashing by for gutenprint/foomatic and how they work together (or not). I can't remember exactly, since I have everything set up ok, but perhaps it's a hint in the right direction.

Good luck, as it can be enormously frustrating!


EDIT: spelling

Last edited by Jelle (2011-06-21 06:28:26)

Offline

#25 2011-06-29 19:02:00

tommykr
Member
From: Poland
Registered: 2009-03-15
Posts: 51

Re: Cups unable to find USB printer after system upgrade

Hy,
I had this problem too. I installed official drivers Brother drivers, a2ps and added

blacklist usblp

to /etc/modprobe.d/
This fixed the problem.

Offline

Board footer

Powered by FluxBB