On Fri, May 14, 2010 at 15:51, Nick Bowler <nbowler@xxxxxxxxxxxxxxxx> wrote: > On 09:36 Fri 14 May , Martin Pitt wrote: >> Nick Bowler [2010-05-13 17:37 -0400]: >> > KERNEL[1273786356.346839] change /devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0 (scsi) >> > KERNEL[1273786361.166466] change /devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0 (block) >> >> Seems this is a 5 second interval. > > I suspect it's tied to the normal spindown time for the drive (the drive > does _start_ to spin down, after all, before it gets kicked back into > full gear). > >> Both udisks and hal poll CD-ROMs >> every two seconds, so at first sight this looks slightly unrelated. >> But those are the two that actually generate polling events. Does the >> issue also go away after killing hald and udisks-daemon (but leaving >> udevd running)? > > Neither hald nor udisks-daemon are even installed on the machine, let > alone running. This occurs whilst running _nothing_ other than udevd > (as well as during normal operation): > > boot with init=/bin/sh > > mount -t proc proc proc > mount -t sysfs sysfs sys > mount -t tmpfs udev dev > modprobe sr-mod > > (insert cd: after a few seconds it spins down normally) > > udevd --daemon > udevadm trigger > > (remove/insert cd: it never spins down; this is when I ran udevadm > monitor) > > killall udevd > > (after a few seconds the cd spins down normally) Sounds odd, that the kernel/the device seems to flip the media present bit, and sends events for that after every access. Does cdrom_id work as expected otherwise? What does: /lib/udev/cdrom_id --debug /dev/sr0 print? Does running cdrom_id spin up the drive? There is a call to /sbin/blkid in: /lib/udev/rules.d/60-persistent-storage.rules with: KERNEL=="sr*", IMPORT{program}="/sbin/blkid ... If you comment that out, does the issue go away? Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html