[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: r23706 - in trunk/packages/kbd-chooser: . debian



fjpop-guest@haydn.debian.org wrote:
> Log:
> - usb-kbd.c: several fixes:
>   - Fix recognition of usb keyboards (actually add to and return the list)
>   - Add recognition of usb keyboards behind an usbhid
>   - Display AT-keymaps for usb keyboards on i386 and powerpc (prep & chrp)
>   - Added some debug output to help trace problems; can be cleaned later
>   - Some whitespace cleanup
>   This fixes #280122, but for now d-i will still display misleading
>   dialogs: "AT keymaps" for USB keyboards.
> - at-kbd.c: minor correction in comments

I tried this patch on my ia64, with a usb keyboard, and it does
something very weird. In expert mode the list of keyboard types, which
without this patch is "USB keyboard", changes to "e=4384 -- ro"

Since the full kernel command line is something like this:
BOOT_IMAGE=net0:/ia64-boot/2.6/vmlinuz root=/dev/ram ramdisk_size=4384 -- ro
I'm afraid this means it's somehow messing up badly and putting the end of
this in. A second time when I set DEBCONF_DEBUG=5 at boot and booted in expert
mode, it seemed to ask debconf to display "ORITY=low ramdisk_size=4384 -- ro
DEBCONF_DEBUG=^A" as the keyboard.

(kbd-chooser/kbd/usb has the correct text in the debconf database.)

The kbd-chooser debug messages from syslog are these:

mounting usbdevfs to lok for kbd
Parsing /proc/bus/usb/devices
Found usbkbd kdb: 0x4a2:0x11
non-Apple USB keyboard detected
keyboard type at: present: false
keyboard type usb: present: false

I hope this is something simple, like missing a fallback case for !i386
!powerpc, and not something ugly, like a buffer overflow or stack
corruption. It seems to work ok aside from the strange choices.

FWIW, my /proc/bus/usb/devices:


T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  7/900 us ( 1%), #Int=  1, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8 ohci_hcd
S:  Product=NEC Corporation USB (#2)
S:  SerialNumber=0000:00:01.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=047b ProdID=0011 Rev= 1.00
S:  Manufacturer=Silitek
S:  Product=Standard USB Keyboard 
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 70mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=24ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8 ohci_hcd
S:  Product=NEC Corporation USB
S:  SerialNumber=0000:00:01.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 5
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8 ehci_hcd
S:  Product=NEC Corporation USB 2.0
S:  SerialNumber=0000:00:01.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: