Comment 110 for bug 420015

Revision history for this message
zob (zob) wrote :

Ok. I have the same bug. My printer is Brother HL-2140. Not able to be "seen". All my other usb-hardware works fine. My cups-version is 1.4.1-5ubuntu2. I'm on ubuntu 9.10, kernel 2.6.31-14-generic. Usb connected directly to a computer not through a hub (connection, cable, usb-port and printer verified to work in windows). Also printer worked under 9.04.

Here are my outputs:

lars@lars-desktop:~$ lsmod | grep usblp
usblp 15136 0

lars@lars-desktop:~$ ls -l /dev/usb/lp*
crw-rw---- 1 root lp 180, 0 2009-11-04 19:53 /dev/usb/lp0

lars@lars-desktop:~$ ls -l /dev/bus/usb/*/*
crw-rw-r-- 1 root vboxusers 189, 0 2009-11-04 20:05 /dev/bus/usb/001/001
crw-rw-r-- 1 root vboxusers 189, 1 2009-11-04 20:05 /dev/bus/usb/001/002
crw-rw-r-- 1 root vboxusers 189, 2 2009-11-04 20:05 /dev/bus/usb/001/003
crw-rw-r-- 1 root vboxusers 189, 4 2009-11-04 20:05 /dev/bus/usb/001/005
crw-rw-r-- 1 root vboxusers 189, 128 2009-11-04 20:05 /dev/bus/usb/002/001
crw-rw---- 1 root lp 189, 130 2009-11-04 19:53 /dev/bus/usb/002/003
crw-rw-r-- 1 root vboxusers 189, 256 2009-11-04 20:05 /dev/bus/usb/003/001

lars@lars-desktop:~$ lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0499:1011 Yamaha Corp. P-250
Bus 001 Device 003: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 002: ID 0bc2:3101 Seagate RSS LLC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

lars@lars-desktop:~$ /usr/lib/cups/backend/usb
bash: /usr/lib/cups/backend/usb: Permission denied

lars@lars-desktop:~$ lpinfo -v
lpinfo: Connection refused

lars@lars-desktop:~$ lpstat -v
lpstat: Connection refused

May something interesting happened when I did sudo aa-enforce cupsd because before that turning on my printer and tailing dmesg would give me:

[ 711.292551] usb 2-3: new full speed USB device using ohci_hcd and address 2
[ 711.528665] usb 2-3: configuration #1 chosen from 1 choice
[ 711.612618] usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0033
[ 711.612639] usbcore: registered new interface driver usblp

After said command dmesg returns the following:

[ 2850.049704] type=1505 audit(1257360769.685:22): operation="profile_replace" pid=6172 name=/usr/lib/cups/backend/cups-pdf
[ 2850.049942] type=1505 audit(1257360769.685:23): operation="profile_replace" pid=6172 name=/usr/sbin/cupsd
[ 2869.722555] usb 2-3: new full speed USB device using ohci_hcd and address 3
[ 2869.961662] usb 2-3: configuration #1 chosen from 1 choice
[ 2869.976057] usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0033

So now at least were talking cups.