Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Prevent CD and DVD disks from becoming stuck' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent CD and DVD disks from becoming stuck
Authored by: jdb8167 on Dec 14, '05 10:20:59AM

More problems.

The StartInterval is an integer not a real so that key/value pair should be:

  <key>StartInterval</key>
  <integer>60</integer>

Note that this is every minute not every nine minutes as stated in the hint.

The next problem is that the ProgramArguments appear to be wrong. It looks like there is an attempt to redirect stdout to a device called nil:. This is just weird and not Unix. As far as I can tell this just doesn't work.

The way you are supposed to redirect stdout in a launchd.plist is by using another argument:

StandardOutPath <string>

So here is my plist file that appears to be working though I won't really know until I have a chance to use the burner for real:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.lucdesign.drivesleepfixer.plist</string>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/bin/drutil</string>
		<string>list</string>
	</array>
	<key>RunAtLoad</key>
	<false/>
	<key>StandardOutPath</key>
	<string>/dev/null</string>
	<key>StartInterval</key>
	<integer>60</integer>
</dict>
</plist>


[ Reply to This | # ]
Prevent CD and DVD disks from becoming stuck
Authored by: robg on Dec 14, '05 02:15:47PM

Thanks for the fixes -- I corrected the typo and fixed the real/integer bit in the script (as well as set 540 seconds).

-rob.



[ Reply to This | # ]
Prevent CD and DVD disks from becoming stuck
Authored by: jdb8167 on Dec 14, '05 04:19:00PM

The other important thing to fix is the ProgramArguments. Remove the last two entries in the array then add a new child off the root element:

<key>StandardOutPath</key>
<string>/dev/null</string>

The version of the script in the hint doesn't work. What happens is launchd complains and eventually disables the script.

The altered script works. I've tested it most of the day and it keeps the drive active.



[ Reply to This | # ]
Prevent CD and DVD disks from becoming stuck
Authored by: masterluc on Dec 15, '05 03:59:35AM

thanks jdb8167, your enhancements and corrections are very welcome!
ppl, pls use his version instead of mine, maybe with the 540 secs interval if you like.



[ Reply to This | # ]
Prevent CD and DVD disks from becoming stuck
Authored by: sighup9 on Jan 21, '06 07:00:41AM

Thanks for posting the corrected version... it works as advertised on my G4 733 DI that's been driving me nuts on occasion with stuck CDs and DVDs if I happen to leave them loaded for extended periods of time.

This happened both with the stock SuperDrive and the new DVD+/-RW 16x+|NEC ND-3520A SV drive that I installed a while back (I highly recommend this drive FYI).



[ Reply to This | # ]