0557:1808 Aten CM0264 KVM misdetected as CD-ROM

Bug #1010600 reported by Tapani Tarvainen
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Aten CM0264 KVM misbehaves with Ubuntu: it is apparently misdetected as CD-ROM, causing long delays and all kinds of strange errors, making the KVM all but unusable. (Disconnecting USB cable from it temporarily during boot acts as a workaround, albeit a very inconvenient one.)

This happens with 64-bit 10.04 and 12.04 at least (others not tested).

WORKAROUND: sed '1i\
> SUBSYSTEM=="block", ATTRS{vendor}=="ATEN", GOTO="cdrom_end"' /lib/udev/rules.d/60-cdrom_id.rules >/etc/udev/rules.d/60-cdrom_id.rules

 sed '1i\
SUBSYSTEM=="block", ATTRS{vendor}=="ATEN", GOTO="persistent_storage_end"' /lib/udev/rules.d/60-persistent-storage.rules > /etc/udev/rules.d/60-persistent-storage.rules

After those at least "udevadm test /dev/sr1" finishes quickly.

lsusb -v output below. Note in particular 0557:1808 is detected as "mass storage":
Bus 002 Device 010: ID 0557:8021 ATEN International Co., Ltd
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 0 Full speed (or root) hub
  bMaxPacketSize0 8
  idVendor 0x0557 ATEN International Co., Ltd
  idProduct 0x8021
  bcdDevice 1.00
  iManufacturer 0
  iProduct 0
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
      Self Powered
      Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 9 Hub
      bInterfaceSubClass 0 Unused
      bInterfaceProtocol 0 Full speed (or root) hub
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0001 1x 1 bytes
        bInterval 255
Hub Descriptor:
  bLength 9
  bDescriptorType 41
  nNbrPorts 4
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
  bPwrOn2PwrGood 50 * 2 milli seconds
  bHubContrCurrent 100 milli Ampere
  DeviceRemovable 0x00
  PortPwrCtrlMask 0x1e
 Hub Port Status:
   Port 1: 0000.0303 lowspeed power enable connect
   Port 2: 0000.0100 power
   Port 3: 0000.0100 power
   Port 4: 0000.0100 power
Device Status: 0x0001
  Self Powered

Bus 002 Device 011: ID 0557:1808 ATEN International Co., Ltd
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x0557 ATEN International Co., Ltd
  idProduct 0x1808
  bcdDevice 3.10
  iManufacturer 1 ATEN
  iProduct 2 USB-VNC
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 82
    bNumInterfaces 3
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x40
      (Missing must-be-set bit!)
      Self Powered
    MaxPower 32mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 8 Mass Storage
      bInterfaceSubClass 6 SCSI
      bInterfaceProtocol 80 Bulk-Only
      iInterface 2 USB-VNC
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x02 EP 2 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 1 Boot Interface Subclass
      bInterfaceProtocol 1 Keyboard
      iInterface 3 Kb
        HID Device Descriptor:
          bLength 9
          bDescriptorType 33
          bcdHID 1.10
          bCountryCode 3 Canadian-Bilingual
          bNumDescriptors 1
          bDescriptorType 34 Report
          wDescriptorLength 65
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 5
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 2
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 1 Boot Interface Subclass
      bInterfaceProtocol 2 Mouse
      iInterface 4 Ms
        HID Device Descriptor:
          bLength 9
          bDescriptorType 33
          bcdHID 1.10
          bCountryCode 3 Canadian-Bilingual
          bNumDescriptors 1
          bDescriptorType 34 Report
          wDescriptorLength 51
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x84 EP 4 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0005 1x 5 bytes
        bInterval 4
Device Status: 0x0002
  (Bus Powered)
  Remote Wakeup Enabled

Bus 002 Device 012: ID 0557:2213 ATEN International Co., Ltd CS682 2-Port USB 2.0 DVI KVM Switch
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x0557 ATEN International Co., Ltd
  idProduct 0x2213 CS682 2-Port USB 2.0 DVI KVM Switch
  bcdDevice 1.00
  iManufacturer 1 ATEN
  iProduct 2 CM0264 V1.0.097
  iSerial 0
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 59
    bNumInterfaces 2
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
      Self Powered
      Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 1 Boot Interface Subclass
      bInterfaceProtocol 1 Keyboard
      iInterface 4 Kb
        HID Device Descriptor:
          bLength 9
          bDescriptorType 33
          bcdHID 1.00
          bCountryCode 0 Not supported
          bNumDescriptors 1
          bDescriptorType 34 Report
          wDescriptorLength 65
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 10
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 1 Boot Interface Subclass
      bInterfaceProtocol 2 Mouse
      iInterface 0
        HID Device Descriptor:
          bLength 9
          bDescriptorType 33
          bcdHID 1.00
          bCountryCode 0 Not supported
          bNumDescriptors 1
          bDescriptorType 34 Report
          wDescriptorLength 52
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 5
Device Status: 0x0002
  (Bus Powered)
  Remote Wakeup Enabled

Here's a sample from dmesg:

[ 227.479060] usb 1-1.5: new high speed USB device using ehci_hcd and address
[ 227.589410] usb 1-1.5: configuration #1 chosen from 1 choice
[ 227.590036] hub 1-1.5:1.0: 4 ports detected
[ 227.869096] usb 1-1.5.1: new full speed USB device using ehci_hcd and address
[ 227.980093] usb 1-1.5.1: configuration #1 chosen from 1 choice
[ 227.980368] hub 1-1.5.1:1.0: USB hub foun
[ 227.980550] hub 1-1.5.1:1.0: 4 ports detecte
[ 228.059115] usb 1-1.5.2: new high speed USB device using ehci_hcd and address
[ 228.190704] usb 1-1.5.2: configuration #1 chosen from 1 choice
[ 228.192398] input: ATEN USB-VNC as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.2/1-1.5.2:1.1/input/input5
[ 228.192524] generic-usb 0003:0557:1808.0002: input,hidraw1: USB HID v1.10 Keyboard [ATEN USB-VNC] on usb-0000:00:1a.0-1.5.2/input1
[ 228.195121] input: ATEN USB-VNC as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.2/1-1.5.2:1.2/input/input6
[ 228.195302] generic-usb 0003:0557:1808.0003: input,hidraw2: USB HID v1.10 Mouse [ATEN USB-VNC] on usb-0000:00:1a.0-1.5.2/input2
[ 228.205638] Initializing USB Mass Storage driver...
[ 228.205812] scsi7 : SCSI emulation for USB Mass Storage devices
[ 228.205969] usb-storage: device found at
[ 228.205974] usb-storage: waiting for device to settle before scanning
[ 228.206008] usbcore: registered new interface driver usb-storage
[ 228.206013] USB Mass Storage support registered.
[ 228.289137] usb 1-1.5.1.1: new low speed USB device using ehci_hcd and address 8
[ 228.433270] usb 1-1.5.1.1: configuration #1 chosen from 1 choice
[ 228.447450] input: ATEN CM0264 V1.0.097 as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1.1/1-1.5.1.1:1.0/input/input7
[ 228.447626] generic-usb 0003:0557:2213.0004: input,hidraw3: USB HID v1.00 Keyboard [ATEN CM0264 V1.0.097] on usb-0000:00:1a.0-1.5.1.1/input0
[ 228.461458] input: ATEN CM0264 V1.0.097 as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5.1/1-1.5.1.1/1-1.5.1.1:1.1/input/input8
[ 228.461631] generic-usb 0003:0557:2213.0005: input,hidraw4: USB HID v1.00 Mouse [ATEN CM0264 V1.0.097] on usb-0000:00:1a.0-1.5.1.1/input1
[ 233.199920] usb-storage: device scan complet
[ 233.200623] scsi 7:0:0:0: CD-ROM ATEN Mass Storage 0001 PQ: 0 ANSI: 0
[ 233.202871] sr0: scsi3-mmc drive: 0x/40x cd/rw xa/form2 cdda tray
[ 233.202878] Uniform CD-ROM driver Revision: 3.20
[ 233.203060] sr 7:0:0:0: Attached scsi CD-ROM sr0
[ 233.203232] sr 7:0:0:0: Attached scsi generic sg6 type 5
[ 233.289754] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 233.489774] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 233.689792] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 233.889825] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 234.089825] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 234.289850] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 234.489877] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 234.689890] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 265.223500] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 296.237135] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 327.230904] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 358.234583] usb 1-1.5.2: reset high speed USB device using ehci_hcd and address 7
[ 358.366069] sr 7:0:0:0: [sr0] Unhandled error code
[ 358.366073] sr 7:0:0:0: [sr0] Result: hostbyte=DID_ABORT driverbyte=DRIVER_
[ 358.366078] sr 7:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 00 00 00 00 02 0
[ 358.366088] end_request: I/O error, dev sr0, sector 0
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: tt 2011 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xfe520000 irq 51'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:10ec0892,80862000,00100302 HDA:80862805,80862805,00100000'
   Controls : 49
   Simple ctrls : 20
CurrentDmesg:
 Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: Permission denied
 dmesg: write failed: Broken pipe
DistroRelease: Ubuntu 12.04
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-24-generic root=/dev/mapper/soopeli-root ro
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
RfKill:

SourcePackage: linux
Tags: precise precise
Uname: Linux 3.2.0-24-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: sudo
WifiSyslog:

dmi.bios.date: 05/23/2011
dmi.bios.vendor: Intel Corp.
dmi.bios.version: BLH6710H.86A.0119.2011.0523.1030
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: DH67CF
dmi.board.vendor: Intel Corporation
dmi.board.version: AAG10215-206
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCorp.:bvrBLH6710H.86A.0119.2011.0523.1030:bd05/23/2011:svn:pn:pvr:rvnIntelCorporation:rnDH67CF:rvrAAG10215-206:cvn:ct3:cvr:

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1010600

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : AcpiTables.txt

apport information

tags: added: apport-collected precise
description: updated
Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : AlsaDevices.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : AplayDevices.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : ArecordDevices.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : Card0.Codecs.codec.3.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : Lspci.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : Lsusb.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : PciMultimedia.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : ProcModules.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : PulseList.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : UdevDb.txt

apport information

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : UdevLog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote : Re: Aten CM0264 KVM misdetected as CD-ROM

apport-collect is from a Kubuntu 12.04 machine, which besides trying to use the KVM as cd-rom also effectively freezes after login until the KVM USB is pulled out (it can be plugged back in after KDE initializes).
The dmesg sample above is from a 10.04 server (without X installed).

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote :

Here's another dmesg sample (from 12.04), when the KVM USB is plugged in after the machine is up:

[ 675.222698] usb 2-1.3: new high-speed USB device number 12 using ehci_hcd
[ 675.315192] hub 2-1.3:1.0: USB hub found
[ 675.315381] hub 2-1.3:1.0: 4 ports detected
[ 675.602100] usb 2-1.3.1: new full-speed USB device number 13 using ehci_hcd
[ 675.711201] hub 2-1.3.1:1.0: USB hub found
[ 675.711380] hub 2-1.3.1:1.0: 4 ports detected
[ 675.797877] usb 2-1.3.2: new high-speed USB device number 14 using ehci_hcd
[ 675.907817] scsi9 : usb-storage 2-1.3.2:1.0
[ 675.909015] input: ATEN USB-VNC as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3.2/2-1.3.2:1.1/input/input17
[ 675.909196] generic-usb 0003:0557:1808.0009: input,hidraw0: USB HID v1.10 Keyboard [ATEN USB-VNC] on usb-0000:00:1d.0-1.3.2/input1
[ 675.910236] input: ATEN USB-VNC as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3.2/2-1.3.2:1.2/input/input18
[ 675.910536] generic-usb 0003:0557:1808.000A: input,hidraw1: USB HID v1.10 Mouse [ATEN USB-VNC] on usb-0000:00:1d.0-1.3.2/input2
[ 675.981503] usb 2-1.3.1.1: new low-speed USB device number 15 using ehci_hcd
[ 676.111730] input: ATEN CM0264 V1.0.097 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3.1/2-1.3.1.1/2-1.3.1.1:1.0/input/input19
[ 676.111890] generic-usb 0003:0557:2213.000B: input,hidraw2: USB HID v1.00 Keyboard [ATEN CM0264 V1.0.097] on usb-0000:00:1d.0-1.3.1.1/input0
[ 676.123111] input: ATEN CM0264 V1.0.097 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3.1/2-1.3.1.1/2-1.3.1.1:1.1/input/input20
[ 676.123241] generic-usb 0003:0557:2213.000C: input,hidraw3: USB HID v1.00 Mouse [ATEN CM0264 V1.0.097] on usb-0000:00:1d.0-1.3.1.1/input1
[ 676.904800] scsi 9:0:0:0: CD-ROM ATEN Mass Storage 0001 PQ: 0 ANSI: 0
[ 676.906394] sr1: scsi3-mmc drive: 0x/40x cd/rw xa/form2 cdda tray
[ 676.906916] sr 9:0:0:0: Attached scsi CD-ROM sr1
[ 676.907305] sr 9:0:0:0: Attached scsi generic sg6 type 5

And in case it isn't obvious, there's no USB CD-ROM attached.

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote :
Download full text (6.3 KiB)

Tried "udevadm test /block/sr1":

...
udev_device_new_from_syspath: device 0x7f6e2b8968c0 has devpath '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4.2/2-1.4.2:1.0/host15/target15:0:0/15:0:0:0/block/sr1'
udev_device_read_db: no db file to read /run/udev/data/b11:1: No such file or directory
udev_device_new_from_syspath: device 0x7f6e2b896f40 has devpath '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4.2/2-1.4.2:1.0/host15/target15:0:0/15:0:0:0'
udev_rules_apply_to_event: GROUP 6 /lib/udev/rules.d/50-udev-default.rules:67
udev_rules_apply_to_event: GROUP 24 /lib/udev/rules.d/50-udev-default.rules:73
udev_rules_apply_to_event: IMPORT 'cdrom_id --lock-media /dev/sr1' /lib/udev/rules.d/60-cdrom_id.rules:16
udev_event_spawn: starting 'cdrom_id --lock-media /dev/sr1'
spawn_read: timeout 'cdrom_id --lock-media /dev/sr1'
spawn_wait: timeout: killing 'cdrom_id --lock-media /dev/sr1' [3433]
spawn_wait: timeout: killing 'cdrom_id --lock-media /dev/sr1' [3433]
spawn_wait: timeout: killing 'cdrom_id --lock-media /dev/sr1' [3433]

That repeats a couple of hundred times, then:

udev_rules_apply_to_event: ATTR '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4.2/2-1.4.2:1.0/host15/target15:0:0/15:0:0:0/block/sr1/events_poll_msecs' writing '2000' /lib/udev/rules.d/60-persistent-storage.rules:13

Then a long delay (a couple of minutes) and then:

udev_device_new_from_syspath: device 0x7f6e2b898e30 has devpath '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4.2/2-1.4.2:1.0/host15/target15:0:0'
udev_device_new_from_syspath: device 0x7f6e2b899480 has devpath '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4.2/2-1.4.2:1.0/host15'
udev_device_new_from_syspath: device 0x7f6e2b899ac0 has devpath '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4.2/2-1.4.2:1.0'
udev_device_new_from_syspath: device 0x7f6e2b89a0e0 has devpath '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4.2'
udev_device_new_from_syspath: device 0x7f6e2b89a6f0 has devpath '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4'
udev_device_new_from_syspath: device 0x7f6e2b89acf0 has devpath '/devices/pci0000:00/0000:00:1d.0/usb2/2-1'
udev_device_new_from_syspath: device 0x7f6e2b89b2f0 has devpath '/devices/pci0000:00/0000:00:1d.0/usb2'
udev_device_new_from_syspath: device 0x7f6e2b89b8e0 has devpath '/devices/pci0000:00/0000:00:1d.0'
udev_device_new_from_syspath: device 0x7f6e2b89bec0 has devpath '/devices/pci0000:00'
udev_rules_apply_to_event: IMPORT builtin 'usb_id' /lib/udev/rules.d/60-persistent-storage.rules:40
builtin_usb_id: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4.2/2-1.4.2:1.0: if_class 8 protocol 6
udev_builtin_add_property: ID_VENDOR=ATEN
udev_builtin_add_property: ID_VENDOR_ENC=ATEN\x20\x20\x20\x20
udev_builtin_add_property: ID_VENDOR_ID=0557
udev_builtin_add_property: ID_MODEL=Mass_Storage
udev_builtin_add_property: ID_MODEL_ENC=Mass\x20Storage\x20\x20\x20\x20
udev_builtin_add_property: ID_MODEL_ID=1808
udev_builtin_add_property: ID_REVISION=0001
udev_builtin_add_property: ID_SERIAL=ATEN_Mass_Storage-0:0
udev_builtin_add_property: ID_TYPE=cd
udev_builtin_add_property: ID_INSTANCE=0:0
udev_builtin_add_property: ID_BUS=usb
udev_builtin_add_pr...

Read more...

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote :

Tried booting 32-bit Ubuntu off USB stick: it takes several minutes doing
timeout: killing 'cdrom_id --lock-media /dev/sr1'
So this isn't 64-bit specific.

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote :

Ugly hack that fixes at least part of the problem:

sed '1i\
> SUBSYSTEM=="block", ATTRS{vendor}=="ATEN", GOTO="cdrom_end"' /lib/udev/rules.d/60-cdrom_id.rules >/etc/udev/rules.d/60-cdrom_id.rules

 sed '1i\
SUBSYSTEM=="block", ATTRS{vendor}=="ATEN", GOTO="persistent_storage_end"' /lib/udev/rules.d/60-persistent-storage.rules > /etc/udev/rules.d/60-persistent-storage.rules

After those at least "udevadm test /dev/sr1" finishes quickly.
(Is there any cleaner way to override default udev rules?)

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote :

The above does not fix all problems: even with it, login takes much longer than usual: from normal almost instantaneous, 3-5 seconds, up to over a minute with Unity, even worse with KDE (up to several minutes, occasionally failing completely).
Attached a couple of .xsession-errors -logs from both, with and without the KVM (all from a 12.04 test box,
fresh install with both ubuntu-desktop and kubuntu-desktop).

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote :

And .xsession-errors with KDE.

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote :

And "normal" .xsession-errors (same machine with standalone keyboard and mouse, Unity).

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote :

And one more .xsession-errors, with KDE and standalone kbd+mouse.

Revision history for this message
Tapani Tarvainen (ubuntu-tapani) wrote :

More observations: it is not 100% consistent, about every fourth time everything goes smoothly, with the only sign of trouble are usb error messages in dmesg:

[ 3.432129] usb 5-2: new low-speed USB device number 2 using ohci_hcd
[ 3.576081] usb 5-2: device descriptor read/64, error -62
[ 3.820113] usb 5-2: device descriptor read/64, error -62
[ 4.064222] usb 5-2: new low-speed USB device number 3 using ohci_hcd
[ 4.204137] usb 5-2: device descriptor read/64, error -62
[ 4.448113] usb 5-2: device descriptor read/64, error -62
[ 4.688401] usb 5-2: new low-speed USB device number 4 using ohci_hcd
[ 5.096091] usb 5-2: device not accepting address 4, error -62
[ 5.232080] usb 5-2: new low-speed USB device number 5 using ohci_hcd
[ 5.640109] usb 5-2: device not accepting address 5, error -62

When that happens the spurious cd-rom device doesn't appear either.

Anyway, I guess this could be considered a bug in the KVM, but I would like Ubuntu to be able to cope with misbehaving USB devices better, even if it requires explicit manual configuration like udev rules or whatever.

penalvch (penalvch)
summary: - Aten CM0264 KVM misdetected as CD-ROM
+ 0557:1808 Aten CM0264 KVM misdetected as CD-ROM
Revision history for this message
Lachlan Botticchio (lbotticchio) wrote :

I have the same KVM and am experiencing the same issues and symptoms running Ubuntu 12.04 x64. Happy to provide any info to help.

Revision history for this message
Lachlan Botticchio (lbotticchio) wrote :

I have contacted ATEN Tech support. They informed me that the behaviour of emulating CD-ROMs is fixed in the device and can not be modified or turned off.

Revision history for this message
penalvch (penalvch) wrote :

Tapani Tarvainen, as per https://downloadcenter.intel.com/SearchResult.aspx?lang=eng&ProductFamily=Desktop+Boards&ProductLine=Intel%C2%AE+6+Series+Chipset+Boards&ProductProduct=Intel%C2%AE+Desktop+Board+DH67CF an update is available for your BIOS (0160). If you update to this following https://help.ubuntu.com/community/BiosUpdate , does it change anything? If it doesn't, could you please both specify what happened, and just provide the output of the following terminal command:
sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date

Thank you for your understanding.

tags: added: bios-outdated-0160
description: updated
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.