After plugging an HP LaserJet 1020 UDEV needs several minutes to set up newly connected USB printer

Bug #937662 reported by Till Kamppeter
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
High
Unassigned

Bug Description

I have several USB printers (all HP) which I can connect to my Oneiric laptop via USB hubs. Everything works well with these printers as long as I do not connect the HP LaserJet 1020 (cheapo model which needs to get fed with its firmware everytime when it is turned on).

After booting and before connecting the LaserJet 1020 all works correctly. UDEV sets the ownerships and permissions for the /dev/bus/usb/*/* file (664, root.lp, plus ACLs) and runs /lib/udev/udev-configure-printer to create a print queue if needed and to enable the print queue if it is already there.

As soon as i connect the LaserJet 1020, for everyprinter connected afterwards the following happens: In /dev/bus/usb/*/* appears a new file with 600 root.root permissions and without ACLs, probably a raw, not UDEV-treated entry. By bus and device number and "lsusb" one can see that the entry is actually for the newly connected printer. Only after some minutes UDEV does its job of setting the permissions, ownerships, ACLs, and starting /lib/udev/udev-configure-printer.

I tried with kernel 3.0.0-16 (the current) and afterwards 3.0.0-15. syslog is attached.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: till 2479 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfc020000 irq 48'
   Mixer name : 'Conexant CX20561 (Hermosa)'
   Components : 'HDA:14f15051,17aa211c,00100000'
   Controls : 17
   Simple ctrls : 9
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 7VHT12WW-1.01'
   Mixer name : 'ThinkPad EC 7VHT12WW-1.01'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
CustomUdevRuleFiles: 86-hpmud-hp_laserjet_1020.rules 86-hpmud-hp_laserjet_1018.rules 86-hpmud-hp_laserjet_professional_p1102w.rules 86-hpmud-hp_laserjet_professional_p1102.rules 86-hpmud-hp_laserjet_p1006.rules 86-hpmud-hp_laserjet_p1007.rules 86-hpmud-hp_laserjet_1000.rules 86-hpmud-hp_laserjet_p1505.rules 86-hpmud-hp_laserjet_p1008.rules 86-hpmud-hp_laserjet_professional_p1566.rules 86-hpmud-hp_laserjet_1005_series.rules 86-hpmud-hp_laserjet_p1005.rules
DistroRelease: Ubuntu 11.10
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=9185f036-2e72-40e6-bf31-d9a8926a7883
MachineType: LENOVO 7417CTO
Package: udev 173-0ubuntu4.1
PackageArchitecture: amd64
PccardctlIdent:
 Socket 0:
   product info: "MoGo Mouse BT", " ", "", ""
PccardctlStatus:
 Socket 0:
   5.0V 16-bit PC Card
   Subdevice 0 (function 0) [unbound]
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.0.0-15-generic root=/dev/mapper/hostname-root ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-15-generic N/A
 linux-backports-modules-3.0.0-15-generic N/A
 linux-firmware 1.60.1
StagingDrivers: mei
Tags: oneiric running-unity staging oneiric running-unity
Uname: Linux 3.0.0-15-generic x86_64
UpgradeStatus: Upgraded to oneiric on 2011-09-30 (143 days ago)
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
dmi.bios.date: 10/13/2009
dmi.bios.vendor: LENOVO
dmi.bios.version: 7UET79WW (3.09 )
dmi.board.name: 7417CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7UET79WW(3.09):bd10/13/2009:svnLENOVO:pn7417CTO:pvrThinkPadT400:rvnLENOVO:rn7417CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 7417CTO
dmi.product.version: ThinkPad T400
dmi.sys.vendor: LENOVO
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: till 2479 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfc020000 irq 48'
   Mixer name : 'Conexant CX20561 (Hermosa)'
   Components : 'HDA:14f15051,17aa211c,00100000'
   Controls : 17
   Simple ctrls : 9
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 7VHT12WW-1.01'
   Mixer name : 'ThinkPad EC 7VHT12WW-1.01'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
CustomUdevRuleFiles: 86-hpmud-hp_laserjet_1020.rules 86-hpmud-hp_laserjet_1018.rules 86-hpmud-hp_laserjet_professional_p1102w.rules 86-hpmud-hp_laserjet_professional_p1102.rules 86-hpmud-hp_laserjet_p1006.rules 86-hpmud-hp_laserjet_p1007.rules 86-hpmud-hp_laserjet_1000.rules 86-hpmud-hp_laserjet_p1505.rules 86-hpmud-hp_laserjet_p1008.rules 86-hpmud-hp_laserjet_professional_p1566.rules 86-hpmud-hp_laserjet_1005_series.rules 86-hpmud-hp_laserjet_p1005.rules
DistroRelease: Ubuntu 11.10
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=9185f036-2e72-40e6-bf31-d9a8926a7883
MachineType: LENOVO 7417CTO
Package: udev 173-0ubuntu4.1
PackageArchitecture: amd64
PccardctlIdent:
 Socket 0:
   product info: "MoGo Mouse BT", " ", "", ""
PccardctlStatus:
 Socket 0:
   5.0V 16-bit PC Card
   Subdevice 0 (function 0) [unbound]
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.0.0-15-generic root=/dev/mapper/hostname-root ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-15-generic N/A
 linux-backports-modules-3.0.0-15-generic N/A
 linux-firmware 1.60.1
StagingDrivers: mei
Tags: oneiric running-unity staging oneiric running-unity
Uname: Linux 3.0.0-15-generic x86_64
UpgradeStatus: Upgraded to oneiric on 2011-09-30 (143 days ago)
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
dmi.bios.date: 10/13/2009
dmi.bios.vendor: LENOVO
dmi.bios.version: 7UET79WW (3.09 )
dmi.board.name: 7417CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7UET79WW(3.09):bd10/13/2009:svnLENOVO:pn7417CTO:pvrThinkPadT400:rvnLENOVO:rn7417CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 7417CTO
dmi.product.version: ThinkPad T400
dmi.sys.vendor: LENOVO

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Changed in udev (Ubuntu):
importance: Undecided → High
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 937662

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Till Kamppeter (till-kamppeter) wrote : AcpiTables.txt

apport information

tags: added: apport-collected oneiric running-unity staging
description: updated
Revision history for this message
Till Kamppeter (till-kamppeter) wrote : AlsaDevices.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : AplayDevices.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : BootDmesg.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Dependencies.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : IwConfig.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Lspci.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Lsusb.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : PciMultimedia.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : ProcModules.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : PulseSinks.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : PulseSources.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : RfKill.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : UdevDb.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : UdevLog.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : WifiSyslog.txt

apport information

description: updated
Revision history for this message
Till Kamppeter (till-kamppeter) wrote : AcpiTables.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : AlsaDevices.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : AplayDevices.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : BootDmesg.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Dependencies.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : IwConfig.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Lspci.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Lsusb.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : PciMultimedia.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : ProcModules.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : PulseSinks.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : PulseSources.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : RfKill.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : UdevDb.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : UdevLog.txt

apport information

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : WifiSyslog.txt

apport information

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Hi Tim,

Would it be possible for you to test the latest mainline kernel on this laptop? It would be good to know if the bug is already fixed upstream.

If you can test the latest mainline kernel, the .deb can be downloaded from:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.3-rc4-precise/

You basically just need to download the .deb and run:
sudo dpkg -i linux-image-3.3.0-030300rc4-generic_3.3.0-030300rc4.201202181935_amd64.deb

Full details about testing the mainline kernel are available at:
https://wiki.ubuntu.com/KernelMainlineBuilds .

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-da-key
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Sorry, meant to say Till and not Tim.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have installed the new kernel and for now it works well with 5 USB printers, including the LaserJet 1020. I will test more tomorrow.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Now the new kernel is running for some time and I have tested unplugging and plugging again the printers and all seems to work. I have also forwarded printers to a virtual machine's USB and this also works. The new kernel seems to have the problem fixed.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

That's good news, Till. The tricky part now will be finding the patch/commit upstream that fixes this to see if it can be SRU'd to Oneiric.

Would it be also possible for you to test the latest Precise kernel[0]? It would be good to know if the bug exists in Precise.

[0] https://launchpad.net/ubuntu/+source/linux/3.2.0-17.26/+build/3220814

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I did a first test with the Precise kernel, installing on my Oneiric real iron and booting it, checking which printers are there whether they are correctly set up, whether the 1020 gets its firmware, unplugging and replugging, seeing that they get disabled and re-enabled, all works. Forwarding the USB printers to my Precise VM also works.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udev (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Till Kamppeter, given Oneiric is EOL, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/937662/comments/50 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

tags: added: bios-outdated-3.24
no longer affects: udev (Ubuntu)
Changed in linux (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.