linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* powerbook hang from post-sleep cdrom access - fix
@ 2000-07-27  7:13 Joseph Garcia
  2000-07-27  7:16 ` Stephan Leemburg
  2000-07-27  8:59 ` Michael Schmitz
  0 siblings, 2 replies; 15+ messages in thread
From: Joseph Garcia @ 2000-07-27  7:13 UTC (permalink / raw)
  To: Stephan Leemburg, linuxppc-dev@lists.linuxppc.org


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?

Thanks.

--
Joseph P. Garcia      jpgarcia@execpc.com      jpgarcia@lidar.ssec.wisc.edu
CS Undergraduate                      Student Employee - Systems Programmer
University of Wisconsin - Madison                            UW Lidar Group

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2000-07-27 21:21 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-27  7:13 powerbook hang from post-sleep cdrom access - fix Joseph Garcia
2000-07-27  7:16 ` Stephan Leemburg
2000-07-27  8:12   ` Joseph Garcia
2000-07-27 10:32     ` Benjamin Herrenschmidt
2000-07-27 17:46     ` Robert Thompson
2000-07-27  8:59 ` Michael Schmitz
2000-07-27 10:36   ` Benjamin Herrenschmidt
2000-07-27 12:12     ` Michael Schmitz
2000-07-27 13:12       ` Benjamin Herrenschmidt
2000-07-27 19:27         ` Michael Schmitz
2000-07-27 16:10       ` Joseph Garcia
2000-07-27 19:48         ` Michael Schmitz
2000-07-27 20:36           ` Joseph Garcia
2000-07-27 20:50             ` Michael Schmitz
2000-07-27 21:21               ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).