Amit,
*NOTHING* appears in the acpid log for any of the following:
- unlock the bay lever - pull the DVD drive - insert the DVD drive - lock the bay lever
This is true for both Gutsy and Hardy.
With Gutsy, I see the following from lshal -m:
22:30:46.957: pci_8086_2850_scsi_host_scsi_device_lun0_scsi_generic removed 22:30:46.988: pci_8086_2850_scsi_host_scsi_device_lun0 removed 22:30:46.988: pci_8086_2850_scsi_host removed 22:30:47.002: storage_model_DVD_RAM_UJ_852 removed 22:30:54.717: pci_8086_2850_scsi_host added 22:30:54.717: pci_8086_2850_scsi_host_scsi_device_lun0 added 22:30:54.717: pci_8086_2850_scsi_host_scsi_device_lun0_scsi_generic added 22:30:56.789: storage_model_DVD_RAM_UJ_852 added
and from udevmonitor:
#udevmonitor --kernel --udev udevmonitor will print the received events for: UDEV the event which udev sends out after rule processing UEVENT the kernel uevent
--- unlock lever --- UEVENT[1204083328.721202] change /devices/pci0000:00/0000:00:1f.1/host2/target2:0:0/2:0:0:0 (scsi) UDEV [1204083328.722937] change /devices/pci0000:00/0000:00:1f.1/host2/target2:0:0/2:0:0:0 (scsi) UEVENT[1204083329.309553] remove /class/scsi_generic/sg1 (scsi_generic) UEVENT[1204083329.309592] remove /class/scsi_device/2:0:0:0 (scsi_device) UEVENT[1204083329.309610] remove /block/sr0 (block) UEVENT[1204083329.310684] remove /devices/pci0000:00/0000:00:1f.1/host2/target2:0:0/2:0:0:0 (scsi) UDEV [1204083329.313203] remove /class/scsi_generic/sg1 (scsi_generic) UDEV [1204083329.316554] remove /class/scsi_device/2:0:0:0 (scsi_device) UDEV [1204083329.335449] remove /block/sr0 (block) UDEV [1204083329.396879] remove /devices/pci0000:00/0000:00:1f.1/host2/target2:0:0/2:0:0:0 (scsi)
-- lock lever -- UEVENT[1204083412.454330] add /devices/pci0000:00/0000:00:1f.1/host2/target2:0:0/2:0:0:0 (scsi) UEVENT[1204083412.475358] add /block/sr0 (block) UEVENT[1204083412.475397] add /class/scsi_device/2:0:0:0 (scsi_device) UEVENT[1204083412.475415] add /class/scsi_generic/sg1 (scsi_generic) UDEV [1204083412.549064] add /devices/pci0000:00/0000:00:1f.1/host2/target2:0:0/2:0:0:0 (scsi) UDEV [1204083412.563941] add /class/scsi_device/2:0:0:0 (scsi_device) UDEV [1204083412.564876] add /class/scsi_generic/sg1 (scsi_generic) UDEV [1204083414.630600] add /block/sr0 (block)
Now to check Hardy ...
Amit,
*NOTHING* appears in the acpid log for any of the following:
- unlock the bay lever
- pull the DVD drive
- insert the DVD drive
- lock the bay lever
This is true for both Gutsy and Hardy.
With Gutsy, I see the following from lshal -m:
22:30:46.957: pci_8086_ 2850_scsi_ host_scsi_ device_ lun0_scsi_ generic removed 2850_scsi_ host_scsi_ device_ lun0 removed 2850_scsi_ host removed model_DVD_ RAM_UJ_ 852 removed 2850_scsi_ host added 2850_scsi_ host_scsi_ device_ lun0 added 2850_scsi_ host_scsi_ device_ lun0_scsi_ generic added model_DVD_ RAM_UJ_ 852 added
22:30:46.988: pci_8086_
22:30:46.988: pci_8086_
22:30:47.002: storage_
22:30:54.717: pci_8086_
22:30:54.717: pci_8086_
22:30:54.717: pci_8086_
22:30:56.789: storage_
and from udevmonitor:
#udevmonitor --kernel --udev
udevmonitor will print the received events for:
UDEV the event which udev sends out after rule processing
UEVENT the kernel uevent
--- unlock lever --- 1204083328. 721202] change /devices/ pci0000: 00/0000: 00:1f.1/ host2/target2: 0:0/2:0: 0:0 (scsi) pci0000: 00/0000: 00:1f.1/ host2/target2: 0:0/2:0: 0:0 (scsi) 1204083329. 309553] remove /class/ scsi_generic/ sg1 (scsi_generic) 1204083329. 309592] remove /class/ scsi_device/ 2:0:0:0 (scsi_device) 1204083329. 309610] remove /block/sr0 (block) 1204083329. 310684] remove /devices/ pci0000: 00/0000: 00:1f.1/ host2/target2: 0:0/2:0: 0:0 (scsi) scsi_generic/ sg1 (scsi_generic) scsi_device/ 2:0:0:0 (scsi_device) pci0000: 00/0000: 00:1f.1/ host2/target2: 0:0/2:0: 0:0 (scsi)
UEVENT[
UDEV [1204083328.722937] change /devices/
UEVENT[
UEVENT[
UEVENT[
UEVENT[
UDEV [1204083329.313203] remove /class/
UDEV [1204083329.316554] remove /class/
UDEV [1204083329.335449] remove /block/sr0 (block)
UDEV [1204083329.396879] remove /devices/
-- lock lever -- 1204083412. 454330] add /devices/ pci0000: 00/0000: 00:1f.1/ host2/target2: 0:0/2:0: 0:0 (scsi) 1204083412. 475358] add /block/sr0 (block) 1204083412. 475397] add /class/ scsi_device/ 2:0:0:0 (scsi_device) 1204083412. 475415] add /class/ scsi_generic/ sg1 (scsi_generic) pci0000: 00/0000: 00:1f.1/ host2/target2: 0:0/2:0: 0:0 (scsi) scsi_device/ 2:0:0:0 (scsi_device) scsi_generic/ sg1 (scsi_generic)
UEVENT[
UEVENT[
UEVENT[
UEVENT[
UDEV [1204083412.549064] add /devices/
UDEV [1204083412.563941] add /class/
UDEV [1204083412.564876] add /class/
UDEV [1204083414.630600] add /block/sr0 (block)
Now to check Hardy ...