Subject: Re: problems with USB keyboard
To: Lennart Augustsson <lennart@augustsson.net>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 07/04/2005 10:29:56
In message <20050704141615.0D7C13BFE91@berkshire.machshav.com>, "Steven M. Bell
ovin" writes:
>In message <42C8FC38.2050603@augustsson.net>, Lennart Augustsson writes:
>>This isn't something I can recall ever seeing with a keyboard.
>>But it can be a problem with the host controller as well as the
>>keyboard.  What are they?
>>
>
>
Let's try it with the dmesg this time....

--

>Below is a dmesg showing the full configuration.  The motherboard is a 
>Soyo KT600 Dragon+, with AMD parts; the keyboard is an IBM USB Travel 
>Keyboard -- a stand-alone Thinkpad keyboard, with touchpad and 
>Trackpoint.
>
>Late last night, I noticed a bit more.  The failures seem to be 
>correlated with switching to a text console.  When I do that, I noticed 
>the light on a (PS/2) mouse going off, which I assume means that the 
>device is being closed and power to it turned off.  This keyboard has 
>two mouse-equivalents, plus two sets of buttons that I'm using via 
>usbhidaction.  I assume -- I haven't looked at the source yet -- that 
>the mice-equivalents are closed (powered down?) when I switch to a text 
>console; might there be a problem with reopening the mice when the 
>keyboard is already open?  
>
>I'm not yet 100% certain of the phenomenon; I reached that tentative 
>conclusion pretty late, and each try requires a full reboot into X
>because I can't recover once things stall.
>

NetBSD 2.0.2_STABLE (HUDSON) #0: Sat Jul  2 01:07:10 EDT 2005
        smb@hudson.machshav.com:/usr/BUILD/obj/sys/arch/i386/compile/HUDSON
total memory = 511 MB
avail memory = 492 MB
BIOS32 rev. 0 found at 0xfda90
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon XP 2000+ (686-class), 1666.58 MHz, id 0x681
cpu0: features c3cbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c3cbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
cpu0: features c3cbfbff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 256 KB 64B/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: calibrating local timer
cpu0: apic clock running at 333 MHz
cpu0: 8 page colors
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 3, 24 pins
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20040211
acpi0: X/RSDT: OemId <AMIINT,VIA_K7  ,00000010>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpi: activated PNP0C0F
acpi: activated PNP0C0F
acpi: activated PNP0C0F
acpi: activated PNP0C0F
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
PNP0A03 at acpi0 not configured
fdc1 at acpi0 (PNP0700)
fdc1: io 0x3f2-0x3f5,0x3f7 irq 6 drq 2
com0 at acpi0 (PNP0501-1)
com0: io 0x3f8-0x3ff irq 4
com0: ns16550a, working fifo
lpt0 at acpi0 (PNP0401)
lpt0: io 0x378-0x37f,0x778-0x77b irq 7 drq 3
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0800 at acpi0 not configured
npx1 at acpi0 (PNP0C04)
npx1: io 0xf0-0xff irq 13
npx1: using exception 16
pckbc1 at acpi0 (PNP0F13): aux port
pckbc1: irq 12
pckbc2 at acpi0 (PNP0303): kbd port
pckbc2: io 0x60,0x64 irq 1
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
acpibut1 at acpi0 (PNP0C0E): ACPI Sleep Button
pckbd0 at pckbc2 (kbd slot)
pckbc2: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc2 (aux slot)
pckbc2: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT8377 Apollo KT400 CPU to PCI Bridge (rev. 0x80)
agp0 at pchb0: aperture at 0xe0000000, size 0xfc00000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8377CE CPU-AGP Bridge (KT600) 
(rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Nvidia Corporation GeForce4 MX 420 (rev. 0xa3)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
acardide0 at pci0 dev 9 function 0
acardide0: Acard ATP865-A Ultra100 IDE Controller (rev. 0x02)
acardide0: bus-master DMA support present
acardide0: primary channel wired to native-PCI mode
acardide0: using ioapic0 pin 17 (irq 10) for native-PCI interrupt
atabus0 at acardide0 channel 0
acardide0: secondary channel wired to native-PCI mode
atabus1 at acardide0 channel 1
ex0 at pci0 dev 11 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x24)
ex0: interrupting at ioapic0 pin 19 (irq 5)
ex0: MAC address 00:10:5a:0d:f6:d7
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
viaide0 at pci0 dev 15 function 0
viaide0: VIA Technologies VT8237 SATA Controller (rev. 0x80)
viaide0: bus-master DMA support present
viaide0: primary channel wired to native-PCI mode
viaide0: using ioapic0 pin 20 (irq 10) for native-PCI interrupt
atabus2 at viaide0 channel 0
viaide0: secondary channel wired to native-PCI mode
atabus3 at viaide0 channel 1
viaide1 at pci0 dev 15 function 1
viaide1: VIA Technologies VT8237 ATA133 controller
viaide1: bus-master DMA support present
viaide1: primary channel configured to compatibility mode
viaide1: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus4 at viaide1 channel 0
viaide1: secondary channel configured to compatibility mode
viaide1: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus5 at viaide1 channel 1
uhci0 at pci0 dev 16 function 0: VIA Technologies VT83C572 USB Controller (rev. 
0x81)
uhci0: interrupting at ioapic0 pin 21 (irq 11)
uhci0: setup of reserve of size 262144 successful; p 01d9b000 v 0xcac00000
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1: VIA Technologies VT83C572 USB Controller (rev. 
0x81)
uhci1: interrupting at ioapic0 pin 21 (irq 11)
uhci1: setup of reserve of size 262144 successful; p 01de6000 v 0xcac46000
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2: VIA Technologies VT83C572 USB Controller (rev. 
0x81)
uhci2: interrupting at ioapic0 pin 21 (irq 10)
uhci2: setup of reserve of size 262144 successful; p 01e28000 v 0xcac8b000
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3: VIA Technologies VT83C572 USB Controller (rev. 
0x81)
uhci3: interrupting at ioapic0 pin 21 (irq 10)
uhci3: setup of reserve of size 262144 successful; p 01e72000 v 0xcacd0000
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
VIA Technologies VT8237 EHCI USB Controller (USB serial bus, interface 0x20, rev
ision 0x86) at pci0 dev 16 function 4 not configured
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8237 (Apollo KT600) PCI-ISA Bridge (rev. 0x00)
auvia0 at pci0 dev 17 function 5: VIA VT8235 AC'97 (rev 0x60)
auvia0: interrupting at ioapic0 pin 22 (irq 5)
auvia0: ac97: C-Media unknown (0x434d4983) codec; no 3D stereo
auvia0: ac97: ext id bc2<AC97_23,AMAP,LDAC,SDAC,CDAC,DRA>
audio0 at auvia0: full duplex, independent
vr0 at pci0 dev 18 function 0: VIA VT6102 (Rhine II) 10/100 Ethernet
vr0: interrupting at ioapic0 pin 23 (irq 11)
vr0: Ethernet address: 00:50:2c:a7:d6:e9
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0002c6, model 0x0032, rev. 8
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
fd0 at fdc1 drive 0: density unknown
Kernelized RAIDframe activated
wd0 at atabus1 drive 1: <IBM-DJNA-352500>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 24405 MB, 49585 cyl, 16 head, 63 sec, 512 bytes/sect x 49981680 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0(acardide0:1:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33) (u
sing DMA data transfers)
uhub4 at uhub0 port 2
uhub4: Atmel UHB124 hub, class 9/0, rev 1.00/1.00, addr 2
uhub4: 4 ports with 4 removable, self powered
wd1 at atabus4 drive 0: <Maxtor 4D040H2>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 38162 MB, 77536 cyl, 16 head, 63 sec, 512 bytes/sect x 78156288 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data
 transfers)
atapibus0 at atabus5: 2 targets
cd0 at atapibus0 drive 0: <Pioneer CD-ROM ATAPI Model DR-A04S  010, , E1.05> cdr
om removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd1 at atapibus0 drive 1: <Hewlett-Packard CD-Writer Plus 9100, YM1034RRH3, 1.0c
> cdrom removable
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(viaide1:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
cd1(viaide1:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data 
transfers)
boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
uhub5 at uhub4 port 1
uhub5: Lite-On Tech USB 1.1 2 port downstream low-power hub, class 9/0, rev 1.10
/1.26, addr 3
uhub5: 4 ports with 2 removable, bus powered
uhidev0 at uhub5 port 3 configuration 1 interface 0
uhidev0: Lite-On Tech IBM USB Travel Keyboard with UltraNav, rev 1.10/1.16, addr
 4, iclass 3/1
ukbd0 at uhidev0
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub5 port 3 configuration 1 interface 1
uhidev1: Lite-On Tech IBM USB Travel Keyboard with UltraNav, rev 1.10/1.16, addr
 4, iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub5 port 4 configuration 1 interface 0
uhidev2: Synaptics Inc. Composite TouchPad / TrackPoint, rev 1.10/0.15, addr 5, 
iclass 3/1
ums0 at uhidev2: 3 buttons
wsmouse1 at ums0 mux 0
uhidev3 at uhub5 port 4 configuration 1 interface 1
uhidev3: Synaptics Inc. Composite TouchPad / TrackPoint, rev 1.10/0.15, addr 5, 
iclass 3/1
ums1 at uhidev3: 3 buttons
wsmouse2 at ums1 mux 0