Bug 4409

Summary: usb printer not detected
Product: Mageia Reporter: Béat E <ed1>
Component: RPM PackagesAssignee: Florian Hubold <doktor5000>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: dmorganec, doktor5000, g.sprik
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: my steps to set up the printer after a fresh install of Mageia 2 Beta 3

Description Béat E 2012-02-04 19:06:33 CET
Description of problem:
I have been using mageia 1 and could get my usb printer Brother HL-2030 to work properly (except for bug 1349, comment 19). I updated to cauldron about 10 days ago. Since then I can't use my printer anymore.

What I did:
I plug in my printer and in my KDE notification area there's no message that the printer has been plugged in. When I print something the document stays in the queue (status: progressing), but there's no printing anymore. In the mageia control center I see my printer (which I set up under mageia 1). It is enabled, but doesn't print the files in the queue. It's not possible to add my printer as a new printer because the printer isn't detected.

Steps to Reproduce:
1. I open the mageia control center and go to the section to set up printers
2. I choose to add a printer
3. The window "New Printer: Select Device" appears. In mageia 1 this step worked and the printer was detected properly, but now the detection of the printer fails.
Comment 1 Florian Hubold 2012-02-05 18:11:11 CET
Could you please do the following as root in a terminal:

tail -f /var/log/messages

and then plug the printer and paste the output?

Status: NEW => ASSIGNED
CC: (none) => dmorganec, doktor5000
Assignee: bugsquad => doktor5000

Comment 2 Béat E 2012-02-05 18:34:55 CET
I plugged in the printer as you said. Then I tried to add it as a printer in the mageia control center. Here's the output of these two actions: 

Feb  5 18:28:18 localhost kernel: Shorewall:net2fw:DROP:IN=eth0 OUT= MAC=f0:de:f1:54:6a:f6:00:24:fe:23:94:ca:08:00 SRC=192.168.178.1 DST=192.168.178.76 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=5121 DF PROTO=TCP SPT=4211 DPT=14013 WINDOW=5840 RES=0x00 SYN URGP=0 
Feb  5 18:28:30 localhost kernel: usb 1-1.2: new full-speed USB device number 5 using ehci_hcd                                                                        
Feb  5 18:28:30 localhost kernel: usb 1-1.2: New USB device found, idVendor=04f9, idProduct=0027                                                                      
Feb  5 18:28:30 localhost kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3                                                                 
Feb  5 18:28:30 localhost kernel: usb 1-1.2: Product: HL-2030 series               
Feb  5 18:28:30 localhost kernel: usb 1-1.2: Manufacturer: Brother                 
Feb  5 18:28:30 localhost kernel: usb 1-1.2: SerialNumber: C6J325032
Feb  5 18:28:30 localhost kernel: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0027
Feb  5 18:28:30 localhost kernel: usbcore: registered new interface driver usblp
Feb  5 18:28:32 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Feb  5 18:28:35 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Feb  5 18:28:40 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1

** WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
task-printing-2011-1.mga2
task-printing-hp-2011-1.mga2
Feb  5 18:28:45 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Feb  5 18:28:45 localhost kernel: Shorewall:net2fw:DROP:IN=eth0 OUT= MAC=f0:de:f1:54:6a:f6:00:24:fe:23:94:ca:08:00 SRC=192.168.178.1 DST=192.168.178.76 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=15356 DF PROTO=TCP SPT=4213 DPT=14013 WINDOW=5840 RES=0x00 SYN URGP=0 
Feb  5 18:28:48 localhost kernel: Shorewall:net2fw:DROP:IN=eth0 OUT= MAC=f0:de:f1:54:6a:f6:00:24:fe:23:94:ca:08:00 SRC=192.168.178.1 DST=192.168.178.76 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=15358 DF PROTO=TCP SPT=4213 DPT=14013 WINDOW=5840 RES=0x00 SYN URGP=0 
ERROR: Module lp does not exist in /proc/modules
Feb  5 18:28:49 localhost kernel: lp: driver loaded but no devices found
Feb  5 18:28:49 localhost kernel: ppdev: user-space parallel port driver
Feb  5 18:28:50 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Feb  5 18:28:50 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Feb  5 18:28:54 localhost kernel: Shorewall:net2fw:DROP:IN=eth0 OUT= MAC=f0:de:f1:54:6a:f6:00:24:fe:23:94:ca:08:00 SRC=192.168.178.1 DST=192.168.178.76 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=15360 DF PROTO=TCP SPT=4213 DPT=14013 WINDOW=5840 RES=0x00 SYN URGP=0 
Feb  5 18:28:55 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Feb  5 18:29:00 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Feb  5 18:29:05 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Feb  5 18:29:10 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Feb  5 18:29:15 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Funda Wang 2012-02-06 14:50:27 CET

Blocks: (none) => 3819

Comment 3 Florian Hubold 2012-02-06 19:38:32 CET
(In reply to comment #2)
> I plugged in the printer as you said. Then I tried to add it as a printer in
> the mageia control center.

OK, but what was the result?
Comment 4 Béat E 2012-02-06 23:12:05 CET
The printer wasn't detected. I guess that the following messages belong to the time I tried to add the printer.

ERROR: Module lp does not exist in /proc/modules
Feb  5 18:28:49 localhost kernel: lp: driver loaded but no devices found
Feb  5 18:28:49 localhost kernel: ppdev: user-space parallel port driver
Feb  5 18:28:50 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by
usblp while 'usb' sets config #1
Feb  5 18:28:50 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by
usblp while 'usb' sets config #1
Feb  5 18:28:54 localhost kernel: Shorewall:net2fw:DROP:IN=eth0 OUT=
MAC=f0:de:f1:54:6a:f6:00:24:fe:23:94:ca:08:00 SRC=192.168.178.1
DST=192.168.178.76 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=15360 DF PROTO=TCP
SPT=4213 DPT=14013 WINDOW=5840 RES=0x00 SYN URGP=0 
Feb  5 18:28:55 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by
usblp while 'usb' sets config #1
Feb  5 18:29:00 localhost kernel: usb 1-1.2: usbfs: interface 0 claimed by
usblp while 'usb' sets config #1
Comment 5 Béat E 2012-02-06 23:51:34 CET
I updated my system tonight and since then my printer gets detected properly again. I guess this problem is solved. :) Thanks!
Comment 6 D Morgan 2012-02-07 00:16:43 CET
thank you closing

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Comment 7 Béat E 2012-02-07 21:39:17 CET
Today my printer didn't work again and it wasn't detected too. It's like beforehand. I updated my system today. I don't know whether this caused this problem.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Funda Wang 2012-02-08 16:03:57 CET

Blocks: 3819 => (none)

Comment 8 Florian Hubold 2012-02-17 20:25:47 CET
Could you please try the following as root:

modprobe -fr usblp

and then try again as explained in comment#1 ?
Comment 9 Béat E 2012-02-19 18:11:49 CET
I did this. Here's the output:

Feb 19 18:07:56 localhost kernel: Shorewall:net2fw:DROP:IN=eth0 OUT= MAC=f0:de:f1:54:6a:f6:00:24:fe:23:94:ca:08:00 SRC=192.168.178.1 DST=192.168.178.76 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=49692 DF PROTO=TCP SPT=2206 DPT=14013 WINDOW=5840 RES=0x00 SYN URGP=0 
Feb 19 18:07:58 localhost kernel: usb 1-1.2: new full-speed USB device number 6 using ehci_hcd
Feb 19 18:07:58 localhost kernel: usb 1-1.2: New USB device found, idVendor=04f9, idProduct=0027
Feb 19 18:07:58 localhost kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 19 18:07:58 localhost kernel: usb 1-1.2: Product: HL-2030 series
Feb 19 18:07:58 localhost kernel: usb 1-1.2: Manufacturer: Brother
Feb 19 18:07:58 localhost kernel: usb 1-1.2: SerialNumber: C6J325032
Feb 19 18:07:58 localhost kernel: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0027
Feb 19 18:07:58 localhost kernel: usbcore: registered new interface driver usblp
Feb 19 18:08:02 localhost kernel: Shorewall:net2fw:DROP:IN=eth0 OUT= MAC=f0:de:f1:54:6a:f6:00:24:fe:23:94:ca:08:00 SRC=192.168.178.1 DST=192.168.178.76 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=49694 DF PROTO=TCP SPT=2206 DPT=14013 WINDOW=5840 RES=0x00 SYN URGP=0
Comment 10 Béat E 2012-02-19 18:16:23 CET
I tried to configure the printer in the mageia control center. I clicked on add in order to add my printer and got to the window "Select Device". But the system wasn't able to find the printer.
Gerald 2012-03-01 10:25:51 CET

CC: (none) => g.sprik

Comment 11 Béat E 2012-04-22 10:58:05 CEST
Created attachment 2065 [details]
my steps to set up the printer after a fresh install of Mageia 2 Beta 3

I made a fresh install with Mageia 2 Beta 3. And then I tried to install my printer Brother HL-2030. There were the two problems I saw:

- After installing the necessary packages. I was asked to install more packages for the printer. This isn't really a problem. But it would be nice to have all the necessary packages installed at the same time. 

- But installing these packages wasn't enough to install my printer. Only after I configured the update media sources for install and update I could set up the printer. 

Finally I got my printer to work. But you can't expect a normal user to find such things out. He would just say with Mageia my printer doesn't work. I suggest to take care that the update media sources gets configured during the process of setting up a printer if this is necessary.

In the attachment you see the steps I took.
Comment 12 Florian Hubold 2012-04-22 20:16:40 CEST
So this is a different problem than the original report, so closing this one as it has been fixed. We can track 

On a related note, in cauldron there are no update media sources, because cauldron is somewhat like a rolling distribution, and the updates come from the release media.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED