powerbook hang from post-sleep cdrom access - fix
Michael Schmitz
schmitz at opal.biophys.uni-duesseldorf.de
Thu Jul 27 18:59:29 EST 2000
> I think I have a fix to prevent a system hang when trying to access a cdrom
> after sleeping. I have a small util "wakebay" that simply does a
> CDROM_MEDIA_CHANGED ioctl on a specified device. I added a the line "wakebay
> /dev/hdc" to PMUD's wakeup script on my PDQ. This seems to get the desired
> response from the drive, in that it locks the door and spins the disk when it
> should, and if its not there, mounted, or otherwise, does nothing.
>
> my code can be grabbed from http://www.execpc.com/~jpgarcia
>
> Can this be done automatically at the kernel level?
Should be called from the IDE notify chain perhaps. See the last function
in ide-pmac().
Michael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list