Bug 146152

Summary: ttyACM not detected by hal
Product: [openSUSE] SUSE Linux 10.1 Reporter: Ludwig Nussel <lnussel>
Component: BasesystemAssignee: Danny Kukawka <dkukawka>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: log file
lshal output from 10.0
lshal output from 10.1

Description Ludwig Nussel 2006-01-27 13:58:12 UTC
when plugging in a mobile phone with cdc_acm loaded hal doesn't detect the corresponding serial ttyACM device. That worked on 10.0.

hwinfo --modem knows it:

34: USB 00.0: 10200 Modem
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_22b8_4902_noserial_if0
  Unique ID: hSuP.ko2lbttwgn0
  Parent ID: pBe4.1TAjh24mQt2
  SysFS ID: /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0
  SysFS BusID: 2-2:1.0
  Hardware Class: modem
  Model: "Motorola PCS Motorola Phone (V3)"
  Hotplug: USB
  Vendor: usb 0x22b8 "Motorola PCS"
  Device: usb 0x4902 "Motorola Phone (V3)"
  Revision: "0.01"
  Driver: "cdc_acm"
  Device File: /dev/ttyACM0
  Speed: 12 Mbps
  Init1: ATZ
  Init2: AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  Module Alias: "usb:v22B8p4902d0001dc02dsc00dp00ic02isc02ip01"
  Driver Info #0:
    Driver Status: cdc_acm is active
    Driver Activation Cmd: "modprobe cdc_acm"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #33 (Hub)
Comment 1 Ludwig Nussel 2006-01-27 13:59:47 UTC
slimer:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0 # l
insgesamt 0
drwxr-xr-x 4 root root    0 2006-01-27 15:00 ./
drwxr-xr-x 6 root root    0 2006-01-27 14:55 ../
-r--r--r-- 1 root root 4096 2006-01-27 15:00 bAlternateSetting
-r--r--r-- 1 root root 4096 2006-01-27 15:00 bInterfaceClass
-r--r--r-- 1 root root 4096 2006-01-27 15:00 bInterfaceNumber
-r--r--r-- 1 root root 4096 2006-01-27 15:00 bInterfaceProtocol
-r--r--r-- 1 root root 4096 2006-01-27 15:00 bInterfaceSubClass
-r--r--r-- 1 root root 4096 2006-01-27 15:00 bNumEndpoints
lrwxrwxrwx 1 root root    0 2006-01-27 15:00 bus -> ../../../../../../bus/usb/
lrwxrwxrwx 1 root root    0 2006-01-27 15:00 driver -> ../../../../../../bus/usb/drivers/cdc_acm/
drwxr-xr-x 2 root root    0 2006-01-27 15:00 ep_89/
-r--r--r-- 1 root root 4096 2006-01-27 15:00 interface
-r--r--r-- 1 root root 4096 2006-01-27 15:00 modalias
drwxr-xr-x 2 root root    0 2006-01-27 14:55 power/
lrwxrwxrwx 1 root root    0 2006-01-27 15:00 tty:ttyACM0 -> ../../../../../../class/tty/ttyACM0/
--w------- 1 root root 4096 2006-01-27 15:00 uevent
slimer:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0 # l tty\:ttyACM0/
insgesamt 0
drwxr-xr-x   2 root root    0 2006-01-27 15:00 ./
drwxr-xr-x 202 root root    0 2006-01-27 14:55 ../
-r--r--r--   1 root root 4096 2006-01-27 15:00 dev
lrwxrwxrwx   1 root root    0 2006-01-27 15:00 device -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/
--w-------   1 root root 4096 2006-01-27 15:00 uevent
Comment 2 Danny Al-Gaaf 2006-02-02 21:31:43 UTC
Please restart hal with:

 hald --retain-privileges --daemon=yes --verbose=yes --use-syslog

and if hal end with initial import devices, add your mobile phone, wait for the event and attach the hal related part from /var/log/messages
Comment 3 Ludwig Nussel 2006-02-03 08:53:37 UTC
Created attachment 66303 [details]
log file
Comment 4 Danny Al-Gaaf 2006-02-16 13:57:48 UTC
could you provide a lshal output (complete) with this serial device attached?
Comment 5 Danny Al-Gaaf 2006-02-16 14:02:40 UTC
And could you also provide the same output from a SUSE 10.0 where it worked?
Comment 6 Kay Sievers 2006-02-16 20:49:32 UTC
probe-serial.c fails with non ACM devices:
   open("/dev/ttyACM0", O_RDONLY|O_NONBLOCK|O_LARGEFILE) = 3
   ioctl(3, TIOCGSERIAL, 0xbff5029c) = -1 EINVAL (Invalid argument)
Comment 7 Ludwig Nussel 2006-02-17 10:25:40 UTC
Created attachment 68987 [details]
lshal output from 10.0
Comment 8 Ludwig Nussel 2006-02-17 10:34:25 UTC
Created attachment 68991 [details]
lshal output from 10.1
Comment 9 Danny Al-Gaaf 2006-02-22 16:25:21 UTC

*** This bug has been marked as a duplicate of 148862 ***