I have a compaq presario v2000 laptop with a TSSTcorpCD/DVDW TS-L532M, ATAPI CD/DVD-ROM drive. When I run hald it causes many kernel errors to show up in my logs when I have no medium inserted into the drive. ATAPI device hdc: Error: Not ready -- (Sense key=0x02) Incompatible medium installed -- (asc=0x30, ascq=0x00) The failed "Read Cd/Dvd Capacity" packet command was: "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " ATAPI device hdc: Error: Not ready -- (Sense key=0x02) Incompatible medium installed -- (asc=0x30, ascq=0x00) The failed "Read Cd/Dvd Capacity" packet command was: "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " ATAPI device hdc: Error: Not ready -- (Sense key=0x02) Incompatible medium installed -- (asc=0x30, ascq=0x00) The failed "Read Cd/Dvd Capacity" packet command was: "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " ATAPI device hdc: Hald is polling the drive with out checking the status first. The fix is to add this section to /usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi <device> <match key="storage.bus" string="ide"> <match key="storage.model" string="TSSTcorpCD/DVDW TS-L532M"> <match key="block.device" string="/dev/hdc"> <merge key="storage.media_check_enabled" type="bool">false</merge> </match> </match> </match> </device> Although this is entered I still get a few errors in the kernel when hald is starting at least its not continuously logging as before. I am using kernels 2.6.15.1 and 2.6.16.2 to reproduce these errors. Don't know if this is a Hal bug or kernel bug as I get a single instance of the error in my kernel startup? hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, DMA Uniform CD-ROM driver Revision: 3.20 ATAPI device hdc: Error: Not ready -- (Sense key=0x02) Incompatible medium installed -- (asc=0x30, ascq=0x00) The failed "Read Cd/Dvd Capacity" packet command was: "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11 ACPI: PCI Interrupt 0000:00:13.2[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11 ehci_hcd 0000:00:13.2: EHCI Host Controller ehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number
Do you still get this with the latest kernel?
I just emerged latest vanilla-sources 2.6.16.16 and recieved same message in kernel log. hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, DMA Uniform CD-ROM driver Revision: 3.20 ATAPI device hdc: Error: Not ready -- (Sense key=0x02) Incompatible medium installed -- (asc=0x30, ascq=0x00) The failed "Read Cd/Dvd Capacity" packet command was: "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Same symptoms as before. There appears to be 2 issues. 1 the kernel error message and 2 the hald causing the kernel to spit out the errors more frequently. Maybe i should log a kernel bug? Not sure. Thanks
I'll gladly pass this upstream to a blacklist file... however it is a kernel bug. The kernel should support that query properly.
Steve, We should have a Gentoo specific blacklist file.. Changing to assigned to make one.
can you give a lshal of the device?
udi = '/org/freedesktop/Hal/devices/storage_serial_Y54C303500' storage.policy.desired_mount_point = 'cdrecorder' (string) storage.policy.mount_filesystem = 'auto' (string) storage.policy.should_mount = true (bool) block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Y54C303500' (string) info.udi = '/org/freedesktop/Hal/devices/storage_serial_Y54C303500' (string) storage.cdrom.write_speed = 4234 (0x108a) (int) storage.cdrom.read_speed = 4234 (0x108a) (int) storage.cdrom.support_media_changed = true (bool) storage.cdrom.dvdplusrdl = false (bool) storage.cdrom.dvdplusrw = false (bool) storage.cdrom.dvdplusr = false (bool) storage.cdrom.dvdram = false (bool) storage.cdrom.dvdrw = false (bool) storage.cdrom.dvdr = true (bool) storage.cdrom.dvd = true (bool) storage.cdrom.cdrw = true (bool) storage.cdrom.cdr = true (bool) storage.firmware_version = 'HR08' (string) storage.serial = 'Y54C303500' (string) storage.requires_eject = true (bool) storage.hotpluggable = false (bool) info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list) info.category = 'storage' (string) info.product = 'TSSTcorpCD/DVDW TS-L532M' (string) storage.removable = true (bool) storage.physical_device = '/org/freedesktop/Hal/devices/pci_1002_4376_ide_1_0' (string) storage.drive_type = 'cdrom' (string) storage.vendor = '' (string) storage.model = 'TSSTcorpCD/DVDW TS-L532M' (string) storage.automount_enabled_hint = true (bool) storage.media_check_enabled = true (bool) storage.no_partitions_hint = true (bool) storage.bus = 'ide' (string) block.is_volume = false (bool) block.minor = 0 (0x0) (int) block.major = 22 (0x16) (int) block.device = '/dev/hdc' (string) linux.hotplug_type = 3 (0x3) (int) info.parent = '/org/freedesktop/Hal/devices/pci_1002_4376_ide_1_0' (string) linux.sysfs_path_device = '/sys/block/hdc' (string) linux.sysfs_path = '/sys/block/hdc' (string)
I'm going to have to defer this to some of the newer revisions available. Please test with those.