Re: udev cdrom_id rules prevent unmounted CD from spinning down

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)

-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)
--
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

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux