On Mon, Dec 17, 2007 at 02:38:10AM +0000, brian m. carlson wrote:
> tags 456214 + patch
> kthxbye
>
> 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.

Unfortunately with this patch, iff some other program called
CDROM_MEDIA_CHANGED then hal won't detect the change...

  Sjoerd
-- 
"I don't think so," said Ren'e Descartes.  Just then, he vanished.


Reply via email to