[PATCH] HAL polling, cd drives and wakeups

David Zeuthen david at fubar.dk
Wed Apr 2 09:34:07 PDT 2008


On Wed, 2008-04-02 at 10:52 +0100, Sam Morris wrote:
> > Attached is a patch to fix the problem with wakeups.  This patch does 
> > CDROM_MEDIA_CHANGED first, and if it reports true, then checks to make 
> > sure the drive is closed and then that the drive is not lying.  This 
> > causes the number of wakeups from HAL to go to zero.  It also has the 
> > side effect of issuing an extra ioctl(2) when the drive tray is open, 
> > which is harmless since the drive tray should be closed most of the 
> > time.

So if I understand this correctly, what this patch does is to reduce the
number of wakeups only when the drive door is open?

     David




More information about the hal mailing list