Subject: Re: logitech internet navigator / xfree / wscons
To: =?ISO-8859-2?Q?Pavel_Arno=B9t?= <pavel.arnost@clnet.cz>
From: Lennart Augustsson <lennart@augustsson.net>
List: port-i386
Date: 08/08/2003 00:05:38
Those keys are most likely generating events on uhid0 and uhid1.
Use usbhidctl to check and usbhidaction to do things.

    -- Lennart

Pavel Arno=B9t wrote:

>hi, guys..
>
>i am quite disappointed that usb logitech keyboard doesn't work as
>expected under NetBSD;
>multimedia keys doesn't raise events, i tested it with xev and cat <
>/dev/wskbd1
>
>any hints/tips/ideas?
>
>thanks in advance,
>best regards,
>pavel arnost
> =20
>
>------------------------------------------------------------------------=

>
>NetBSD 1.6.1 (ADJUST) #16: Thu Aug  7 20:40:38 CEST 2003
>    root@arnost.clnet.cz:/usr/src/sys/arch/i386/compile/ADJUST
>cpu0: AMD K6-2 (586-class), 350.81 MHz
>cpu0: I-cache 32 KB 32b/line 2-way, D-cache 32 KB 32b/line 2-way
>cpu0: features 8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
>cpu0: features 8021bf<PGE,MMX>
>total memory =3D 127 MB
>avail memory =3D 115 MB
>using 1659 buffers containing 6636 KB of memory
>BIOS32 rev. 0 found at 0xfb340
>PCI BIOS rev. 2.1 found at 0xfb370
>PCI IRQ Routing Table rev. 1.0 found at 0xfdd00, size 128 bytes (6 entri=
es)
>PCI Interrupt Router at 000:07:0 (VIA Technologies VT82C586 (Apollo VP) =
PCI-ISA Bridge)
>PCI Exclusive IRQs: 10 11
>pci_addr_fixup: 000:08:0 0x1045 0xc861 new address 0x08000000
>mainbus0 (root)
>pnpbios0 at mainbus0: nodes 15, max len 69
>pckbc0 at pnpbios0 index 4 (PNP0303): kbd port
>npx0 at pnpbios0 index 6 (PNP0C04)
>npx0: io f0-ff, irq 13
>npx0: using exception 16
>com0 at pnpbios0 index 13 (PNP0501)
>com0: io 3f8-3ff, irq 4
>com0: ns16550a, working fifo
>fdc0 at pnpbios0 index 14 (PNP0700)
>fdc0: io 3f2-3f5, irq 6, dma 2
>fdc0: ctl io 3f7 didn't probe. Forced attach
>fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
>lpt0 at pnpbios0 index 15 (PNP0400)
>lpt0: io 378-37f, irq 7
>com1 at pnpbios0 index 17 (PNP0501)
>com1: io 2f8-2ff, irq 3
>com1: ns16550a, working fifo
>pckbd0 at pckbc0 (kbd slot)
>pckbc0: using irq 1 for kbd slot
>wskbd0 at pckbd0: console keyboard
>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 VT82C597 (Apollo VP3) Host-PCI Bridge (rev. 0x04=
)
>agp0 at pchb0: aperture at 0xd8000000, size 0x10000000
>ppb0 at pci0 dev 1 function 0: VIA Technologies VT82C598 (Apollo MVP3) C=
PU-AGP Bridge (rev. 0x00)
>pci1 at ppb0 bus 1
>pci1: i/o space, memory space enabled
>vga0 at pci1 dev 0 function 0: S3 Trio3D/2X (rev. 0x02)
>wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wsk=
bd0
>wsmux1: connecting to wsdisplay0
>pcib0 at pci0 dev 7 function 0
>pcib0: VIA Technologies VT82C586 (Apollo VP) PCI-ISA Bridge (rev. 0x47)
>pciide0 at pci0 dev 7 function 1: VIA Technologies VT82C586 (Apollo VP) =
ATA33 controller
>pciide0: bus-master DMA support present
>pciide0: primary channel configured to compatibility mode
>atapibus0 at pciide0 channel 0: 2 targets
>cd0 at atapibus0 drive 1: <CD-532E-B, , 3.0B> type 5 cdrom removable
>cd0: 32-bit data port
>cd0: drive supports PIO mode 4, DMA mode 2
>pciide0: primary channel interrupting at irq 14
>cd0(pciide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers=
)
>pciide0: secondary channel configured to compatibility mode
>wd0 at pciide0 channel 1 drive 0: <ST380021A>
>wd0: drive supports 16-sector PIO transfers, LBA addressing
>wd0: 76319 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 se=
ctors
>wd0: 32-bit data port
>wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)=

>pciide0: secondary channel interrupting at irq 15
>wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using D=
MA data transfers)
>pchb1 at pci0 dev 7 function 3
>pchb1: VIA Technologies VT82C586 (Apollo VP) Power Management Controller=
 (rev. 0x10)
>ohci0 at pci0 dev 8 function 0: Opti RM861HA (rev. 0x20)
>ohci0: interrupting at irq 10
>ohci0: OHCI version 1.0, legacy support
>usb0 at ohci0: USB revision 1.0
>uhub0 at usb0
>uhub0: Opti OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub0: 2 ports with 2 removable, self powered
>ohci1 at pci0 dev 8 function 1: Opti RM861HA (rev. 0x20)
>ohci1: interrupting at irq 11
>ohci1: OHCI version 1.0, legacy support
>usb1 at ohci1: USB revision 1.0
>uhub1 at usb1
>uhub1: Opti OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub1: 2 ports with 2 removable, self powered
>cmpci0 at pci0 dev 9 function 0: C-Media Electronics Inc CMI8738/C3DX PC=
I Audio Device (rev. 0x10)
>cmpci0: interrupting at irq 11
>audio0 at cmpci0: full duplex, mmap, independent
>opl0 at cmpci0: model OPL3: LR swapped
>midi0 at opl0: CMPCI Yamaha OPL3
>mpu0 at cmpci0
>midi1 at mpu0: CMPCI MPU-401 MIDI UART
>rtk0 at pci0 dev 10 function 0: RealTek 8139 10/100BaseTX
>rtk0: interrupting at irq 10
>rtk0: Ethernet address 00:50:fc:63:70:04
>ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
>ukphy0: OUI 0x000000, model 0x0000, rev. 0
>ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>isa0 at pcib0
>pcppi0 at isa0 port 0x61
>midi2 at pcppi0: PC speaker
>sysbeep0 at pcppi0
>biomask ff65 netmask ff65 ttymask ffe7
>IPsec: Initialized Security Association Processing.
>uhidev0 at uhub1 port 1 configuration 1 interface 0uhidev1 at uhub0 port=
 2 configuration 1 interface 0
>uhidev0: Microsoft Microsoft 5-Button Mouse with IntelliEye(TM), rev 1.1=
0/3.00, addr 2, iclass 3/1
>
>uhidev1: Logitech Logitech USB Keyboard, rev 1.10/15.00, addr 2, iclass =
3/1
>ums0 at uhidev0: 5 buttons and Z dir.
>wsmouse0 at ums0 mux 0
>ukbd0 at uhidev1
>wskbd1 at ukbd0 mux 1
>wskbd1: connecting to wsdisplay0
>uhidev2 at uhub0 port 2 configuration 1 interface 1
>uhidev2: Logitech Logitech USB Keyboard, rev 1.10/15.00, addr 2, iclass =
3/0
>uhidev2: 3 report ids
>uhid0 at uhidev2 reportid 1: input=3D2, output=3D0, feature=3D0
>uhid1 at uhidev2 reportid 2: input=3D1, output=3D0, feature=3D0
>ums1 at uhidev2 reportid 3: 0 buttons and Z dir.
>wsmouse1 at ums1 mux 0
>boot device: wd0
>root on wd0a dumps on wd0b
>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)
>XFree86 aperture driver version 2.0
>K6-family MTRR support enabled (2 registers)
> =20
>