* Re: USB Printer Coldplugging Problem
2005-08-05 15:07 USB Printer Coldplugging Problem Frank Chen
` (2 preceding siblings ...)
2005-08-06 0:55 ` Frank Chen
@ 2005-08-08 5:52 ` Frank Chen
3 siblings, 0 replies; 5+ messages in thread
From: Frank Chen @ 2005-08-08 5:52 UTC (permalink / raw)
To: linux-hotplug
--- Greg KH <greg@kroah.com> wrote:
> On Fri, Aug 05, 2005 at 08:07:26AM -0700, Frank Chen
> wrote:
> > We have a problem with USB printer (HP LaserJet
> 1010).
> > After power up or reboot, sometimes the USB
> printer is
> > not detected. The /dev/usb doesn't even exist. If
> we
> > unplug and then reconnect the USB cable, the
> printer
> > will work fine. I placed the following line in
> > rc.local.
> >
> > exec /etc/hotplug/usb.rc restart
>
> That command really doesn't do anything except try
> to load modules for
> devices that do not have modules loaded for them.
> It doesn't "restart"
> any USB stuff that might matter.
>
> Any kernel log messages? What kernel version?
>
> thanks,
>
> greg k-h
>
>
I forgot to mention that we use Fedora Core 4. The
kernel is 2.6.11-1.1369_FC4. The udev is 058-1 (?)
Here is the output from dmesg
Linux version 2.6.11-1.1369_FC4
(bhcompile@tweety.build.redhat.com) (gcc version 4.0.0
20050525 (Red Hat 4.0.0-9)) #1 Thu Jun 2 22:53:35 EDT
2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00
(usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000
(reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000
(reserved)
BIOS-e820: 0000000000100000 - 000000000dff0000
(usable)
BIOS-e820: 000000000dff0000 - 000000000dff3000 (ACPI
NVS)
BIOS-e820: 000000000dff3000 - 000000000e000000 (ACPI
data)
BIOS-e820: 00000000ffff0000 - 0000000100000000
(reserved)
0MB HIGHMEM available.
223MB LOWMEM available.
Using x86 segment limits to approximate NX protection
On node 0 totalpages: 57328
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 53232 pages, LIFO batch:31
HighMem zone: 0 pages, LIFO batch:1
DMI 2.2 present.
ACPI: RSDP (v000 VT9174
) @ 0x000f6550
ACPI: RSDT (v001 VT9174 AWRDACPI 0x42302e31 AWRD
0x00000000) @ 0x0dff3000
ACPI: FADT (v001 VT9174 AWRDACPI 0x42302e31 AWRD
0x00000000) @ 0x0dff3040
ACPI: DSDT (v001 VT9174 AWRDACPI 0x00001000 MSFT
0x0100000c) @ 0x00000000
ACPI: PM-Timer IO Port: 0x408
Allocating PCI resources starting at 0e000000 (gap:
0e000000:f1ff0000)
Built 1 zonelists
Kernel command line: ro root=/dev/hda1
console=/dev/null CONSOLE=/dev/null
Initializing CPU#0
CPU 0 irqstacks, hardÀ44a000 softÀ449000
PID hash table entries: 1024 (order: 10, 16384 bytes)
Detected 799.951 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 32768 (order: 5,
131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536
bytes)
Memory: 221832k/229312k available (2467k kernel code,
6936k reserved, 685k data, 184k init, 0k highmem)
Checking if this processor honours the WP bit even in
supervisor mode... Ok.
Calibrating delay loop... 1585.15 BogoMIPS
(lpjy2576)
Security Framework v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary
module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 00803035 80803035
00000000 00000000 00000000 00000000 00000000
CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32
bytes/line)
CPU: L2 Cache: 64K (32 bytes/line)
CPU: After all inits, caps: 00803135 80803035 00000000
00000000 00000000 00000000 00000000
CPU: Centaur VIA Samuel 2 stepping 03
Checking 'hlt' instruction... OK.
ACPI: setting ELCR to 0200 (from 0e20)
checking if image is initramfs... it is
softlockup thread 0 started up.
Freeing initrd memory: 981k freed
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfa960, last
bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20050309
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
PCI: Via IRQ fixup
PCI: Via IRQ fixup
Boot video device is 0000:01:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 7 10
*11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 10
*11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 7 *10
11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 *5 6 7 10
11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 12 devices
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If
it helps, post a report
pnp: 00:01: ioport range 0x400-0x47f could not be
reserved
pnp: 00:01: ioport range 0x500-0x50f has been reserved
apm: BIOS version 1.2 Flags 0x07 (Driver version
1.16ac)
apm: overridden by ACPI.
audit: initializing netlink socket (disabled)
audit(1123501557.103:1): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
SELinux: Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key F8472E5DA68A03D6
- User ID: Red Hat, Inc. (Kernel Module GPG key)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI: CPU0 (power states: C1[C1] C2[C2])
ACPI: Processor [CPU0] (supports 2 throttling states)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected VIA CLE266 chipset
agpgart: AGP aperture is 128M @ 0xd0000000
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at
0x60,0x64 irq 1,12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 76 ports,
IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 16384K
size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision:
7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes;
override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:11.1
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:00:11.1[A] -> Link [LNKA] ->
GSI 11 (level, low) -> IRQ 11
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on
pci0000:00:11.1
ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings:
hda:pio, hdb:pio
ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings:
hdc:pio, hdd:pio
Probing IDE interface ide0...
hda: Hitachi XX.V.3.4.0.0, CFA DISK drive
hda: set_drive_speed_status: status=0x51 { DriveReady
SeekComplete Error }
hda: set_drive_speed_status: error=0x04 {
DriveStatusError }
hda: set_drive_speed_status: status=0x51 { DriveReady
SeekComplete Error }
hda: set_drive_speed_status: error=0x04 {
DriveStatusError }
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
Probing IDE interface ide1...
hda: max request size: 128KiB
hda: 500400 sectors (256 MB) w/1KiB Cache,
CHSi5/15/48
hda: cache flushes not supported
hda: hda1 hda2
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core
driver
mice: PS/2 mouse device common for all mice
md: md driver 0.90.1 MAX_MD_DEVS%6, MD_SB_DISKS'
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 16Kbytes
TCP established hash table entries: 8192 (order: 4,
65536 bytes)
TCP bind hash table entries: 8192 (order: 5, 229376
bytes)
TCP: Hash tables configured (established 8192 bind
8192)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI wakeup devices:
PCI0 USB0 USB1 USB2 USB3 USB4 USB5 USB6 LAN0 AC97 MC97
UAR1
ACPI: (supports S0 S1 S4 S5)
Freeing unused kernel memory: 184k freed
Warning: unable to open an initial console.
input: AT Translated Set 2 keyboard on isa0060/serio0
hda: hda1 hda2
input: ImPS/2 Logitech Wheel Mouse on isa0060/serio1
Floppy drive(s): fd0 is unknown type 15 (usb?), fd1 is
unknown type 15 (usb?)
floppy0: no floppy controllers found
via-rhine.c:v1.10-LK1.2.0-2.6 June-10-2004 Written by
Donald Becker
ACPI: PCI Interrupt 0000:00:12.0[A] -> Link [LNKA] ->
GSI 11 (level, low) -> IRQ 11
eth0: VIA Rhine II at 0xde001000, 00:40:63:de:e2:f8,
IRQ 11.
eth0: MII PHY found at address 1, status 0x7869
advertising 05e1 Link 45e1.
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [LNKC] ->
GSI 10 (level, low) -> IRQ 10
PCI: Setting latency timer of device 0000:00:11.5 to
64
shpchp: shpc_init : shpc_cap_offset = 0
shpchp: Standard Hot Plug PCI Controller Driver
version: 0.4
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 5
PCI: setting IRQ 5 as level-triggered
ACPI: PCI Interrupt 0000:00:10.3[D] -> Link [LNKD] ->
GSI 5 (level, low) -> IRQ 5
ehci_hcd 0000:00:10.3: EHCI Host Controller
ehci_hcd 0000:00:10.3: new USB bus registered,
assigned bus number 1
ehci_hcd 0000:00:10.3: irq 5, io mem 0xde000000
ehci_hcd 0000:00:10.3: USB 2.0 initialized, EHCI 1.00,
driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
USB Universal Host Controller Interface driver v2.2
ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKA] ->
GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:10.0: UHCI Host Controller
uhci_hcd 0000:00:10.0: new USB bus registered,
assigned bus number 2
uhci_hcd 0000:00:10.0: irq 11, io base 0x0000d000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:10.1[B] -> Link [LNKB] ->
GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:10.1: UHCI Host Controller
uhci_hcd 0000:00:10.1: new USB bus registered,
assigned bus number 3
uhci_hcd 0000:00:10.1: irq 11, io base 0x0000d400
usb 2-1: new full speed USB device using uhci_hcd and
address 2
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.2[C] -> Link [LNKC] ->
GSI 10 (level, low) -> IRQ 10
uhci_hcd 0000:00:10.2: UHCI Host Controller
uhci_hcd 0000:00:10.2: new USB bus registered,
assigned bus number 4
uhci_hcd 0000:00:10.2: irq 10, io base 0x0000d800
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ACPI: Power Button (FF) [PWRF]
ibm_acpi: ec object not found
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
device-mapper: 4.4.0-ioctl (2005-01-12) initialised:
dm-devel@redhat.com
drivers/usb/class/usblp.c: usblp0: USB Bidirectional
printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0C17
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device
Class driver
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7
[PCSPP,TRISTATE,EPP]
lp0: using parport0 (interrupt-driven).
lp0: console ready
ehci_hcd 0000:00:10.3: remove, state 1
usb usb1: USB disconnect, address 1
ehci_hcd 0000:00:10.3: USB bus 1 deregistered
uhci_hcd 0000:00:10.0: remove, state 1
usb usb2: USB disconnect, address 1
usb 2-1: USB disconnect, address 2
drivers/usb/class/usblp.c: usblp0: removed
uhci_hcd 0000:00:10.0: USB bus 2 deregistered
uhci_hcd 0000:00:10.1: remove, state 1
usb usb3: USB disconnect, address 1
uhci_hcd 0000:00:10.1: USB bus 3 deregistered
uhci_hcd 0000:00:10.2: remove, state 1
usb usb4: USB disconnect, address 1
uhci_hcd 0000:00:10.2: USB bus 4 deregistered
ACPI: PCI Interrupt 0000:00:10.3[D] -> Link [LNKD] ->
GSI 5 (level, low) -> IRQ 5
ehci_hcd 0000:00:10.3: EHCI Host Controller
ehci_hcd 0000:00:10.3: new USB bus registered,
assigned bus number 1
ehci_hcd 0000:00:10.3: irq 5, io mem 0xde000000
ehci_hcd 0000:00:10.3: USB 2.0 initialized, EHCI 1.00,
driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller
(OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v2.2
ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKA] ->
GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:10.0: UHCI Host Controller
uhci_hcd 0000:00:10.0: new USB bus registered,
assigned bus number 2
uhci_hcd 0000:00:10.0: irq 11, io base 0x0000d000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.1[B] -> Link [LNKB] ->
GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:10.1: UHCI Host Controller
uhci_hcd 0000:00:10.1: new USB bus registered,
assigned bus number 3
uhci_hcd 0000:00:10.1: irq 11, io base 0x0000d400
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.2[C] -> Link [LNKC] ->
GSI 10 (level, low) -> IRQ 10
uhci_hcd 0000:00:10.2: UHCI Host Controller
uhci_hcd 0000:00:10.2: new USB bus registered,
assigned bus number 4
uhci_hcd 0000:00:10.2: irq 10, io base 0x0000d800
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
usb 2-1: new full speed USB device using uhci_hcd and
address 2
drivers/usb/class/usblp.c: usblp0: USB Bidirectional
printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0C17
NET: Registered protocol family 10
Disabled Privacy Extensions on device c03d9780(lo)
IPv6 over IPv4 tunneling driver
ehci_hcd 0000:00:10.3: remove, state 1
usb usb1: USB disconnect, address 1
ehci_hcd 0000:00:10.3: USB bus 1 deregistered
uhci_hcd 0000:00:10.0: remove, state 1
usb usb2: USB disconnect, address 1
usb 2-1: USB disconnect, address 2
drivers/usb/class/usblp.c: usblp0: removed
uhci_hcd 0000:00:10.0: USB bus 2 deregistered
uhci_hcd 0000:00:10.1: remove, state 1
usb usb3: USB disconnect, address 1
uhci_hcd 0000:00:10.1: USB bus 3 deregistered
uhci_hcd 0000:00:10.2: remove, state 1
usb usb4: USB disconnect, address 1
uhci_hcd 0000:00:10.2: USB bus 4 deregistered
eth0: no IPv6 routers present
ACPI: PCI Interrupt 0000:00:10.3[D] -> Link [LNKD] ->
GSI 5 (level, low) -> IRQ 5
ehci_hcd 0000:00:10.3: EHCI Host Controller
ehci_hcd 0000:00:10.3: new USB bus registered,
assigned bus number 1
ehci_hcd 0000:00:10.3: irq 5, io mem 0xde000000
ehci_hcd 0000:00:10.3: USB 2.0 initialized, EHCI 1.00,
driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller
(OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v2.2
ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKA] ->
GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:10.0: UHCI Host Controller
uhci_hcd 0000:00:10.0: new USB bus registered,
assigned bus number 2
uhci_hcd 0000:00:10.0: irq 11, io base 0x0000d000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.1[B] -> Link [LNKB] ->
GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:10.1: UHCI Host Controller
uhci_hcd 0000:00:10.1: new USB bus registered,
assigned bus number 3
uhci_hcd 0000:00:10.1: irq 11, io base 0x0000d400
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.2[C] -> Link [LNKC] ->
GSI 10 (level, low) -> IRQ 10
uhci_hcd 0000:00:10.2: UHCI Host Controller
uhci_hcd 0000:00:10.2: new USB bus registered,
assigned bus number 4
uhci_hcd 0000:00:10.2: irq 10, io base 0x0000d800
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 5+ messages in thread