Package: hotplug
Version: 0.0.20040329-25
Severity: normal

When I plug in my mobile (Sony Ericsson K750i) the corect drivers
(cdc-acm and usb-storage) are not loaded. If I turn on the debugging
I get stuff like this in syslog:

Sep 11 20:25:50 lastan2 default.hotplug[9721]: arguments (usb) env
(OLDPWD=/ DEVPATH=/devices/pci0000:00/0000:00:10.1/usb2/2-1/2-1:1.2 
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 
DEVICE=/proc/bus/usb/002/004 PRODUCT=fce/d016/0 TYPE=2/0/0 DEBUG=yes SEQNUM=414 
_=/usr/bin/env)

cdc-acm should be descovered by the interface class/subclass/protocol as
defined in /lib/modules/2.6.8-11-amd64-k8/modules.usbmap:

cdc-acm              0x0380      0x0000   0x0000    0x0000       0x0000 0x00    
     0x00            0x00            0x02            0x02 0x01               0x0

The problem seems to be in the /etc/hotplug/usb.agent. Since INTERFACE
is not defined in the environment, usb_convert_vars() tries to get this
info from sysfs. [ -r $SYSFS/$DEVPATH/bInterfaceClass ] fails because
sysfs does not have the new info yet and the interface parameters get
set to default values (1000).

If I add a 'sleep 1' before the call to usb_convert_vars() sysfs is
refreshed with the device info and the drivers get loaded.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-11-amd64-k8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages hotplug depends on:
ii  bash                         3.1-5       The GNU Bourne Again SHell
ii  debconf [debconf-2.0]        1.5.2       Debian configuration management sy
ii  grep                         2.5.1.ds2-5 GNU grep, egrep and fgrep
ii  module-init-tools            3.2.2-3     tools for managing Linux kernel mo
ii  modutils                     2.4.27.0-6  Linux module utilities
ii  procps                       1:3.2.7-2   /proc file system utilities
ii  sed                          4.1.5-1     The GNU sed stream editor

Versions of packages hotplug recommends:
ii  ifupdown                      0.6.7      high level tools to configure netw
ii  pciutils                      1:2.2.1-2  Linux PCI Utilities
ii  usbutils                      0.72-4     USB console utilities

-- debconf information:
  hotplug/ignore_pci_class_display: true
  hotplug/static_module_list:
  hotplug/x11_usbmice_hack: false


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to