English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 28 February 2020, 15:14   #1
saimo
Registered User
saimo's Avatar
 
Join Date: Aug 2010
Location: Italy
Posts: 267
Is it possible to turn off the Amiga CD32 CD motor?

I never had/tried an Amiga CD32, so please excuse my ignorance in case this question is dumb.

For a certain piece of software of mine, I'd like to turn off the CD motor after all accesses to it are done (i.e. at some point the CD won't be needed anymore), to avoid that the CD keeps on spinning without reason.
I thought it would be dead easy thanks to the CD_MOTOR command of cd.device, but it turned out that it seems impossible: the friend who's testing my program reported that the light goes off, the head seems to start seeking, but then the CD keeps on spinning. I thought that maybe there was some conflict of sorts in my program, so I made a simple test program that does this:
1. opens a file on a CD and reads 4 bytes from it to ensure the CD starts spinning;
2. closes the file;
3. opens cd.device;
4. sends the CD_MOTOR command (with DoIO());
5. closes cd.device;
6. quits.

The report I got is this: "The motor stops spinning now for about 1 second before it starts again. Also, if I run it twice or more nothing happens (as in CD doesn't stop spinning again... it just spins endlessly)."
Notes:
* my friend's machine is equipped with an accelerator board, an HD, and a full AmigaOS 3.something install;
* in one of my tests, pausing for 10 seconds after sending the command and closing cd.device didn't change anything.

The cd.device autodoc doesn't suggest much, so, at this point, I wonder what I'm doing wrong, or if there are additional factors to take into account, or if the CD_MOTOR command doesn't work at all. Any clue? Thanks.

Last edited by saimo; 02 March 2020 at 00:45.
saimo is offline  
Old 02 March 2020, 00:10   #2
saimo
Registered User
saimo's Avatar
 
Join Date: Aug 2010
Location: Italy
Posts: 267
I take it there's no way?
saimo is offline  
Old 02 March 2020, 00:26   #3
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 51
Posts: 1,190
Quote:
Originally Posted by saimo View Post
I take it there's no way?
You can try to disable CD in CD32 boot menu, and try to boot. If this is possible then you can disable CD motor off.
Don_Adan is offline  
Old 02 March 2020, 00:44   #4
saimo
Registered User
saimo's Avatar
 
Join Date: Aug 2010
Location: Italy
Posts: 267
Quote:
Originally Posted by Don_Adan View Post
You can try to disable CD in CD32 boot menu, and try to boot. If this is possible then you can disable CD motor off.
Well, if I had a machine, I'd try it, but, unless I'm misunderstanding your suggestion, I don't think that would say much: the context is different, as I'd like to turn the motor off after loading stuff from CD.
After all my tests, I asked my tester whether he had ever seen the CD stopping when running other software, and he said no. So I started to think that there's no way after all. But I'd be glad if that were wrong
saimo is offline  
Old 02 March 2020, 05:03   #5
Hewitson
Registered User
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 37
Posts: 3,571
I think what Don_Adan is saying is that if the Early Startup is capable of disabling the motor (in software), then it would be possible for your software to do the same (after the data is loaded, obviously).

I personally wouldn't worry about the motor. It's the laser that wears out on optical drives, not the motor.

Last edited by Hewitson; 02 March 2020 at 05:10.
Hewitson is offline  
Old 02 March 2020, 12:37   #6
saimo
Registered User
saimo's Avatar
 
Join Date: Aug 2010
Location: Italy
Posts: 267
Quote:
Originally Posted by Hewitson View Post
I think what Don_Adan is saying is that if the Early Startup is capable of disabling the motor (in software), then it would be possible for your software to do the same (after the data is loaded, obviously).
That would make for a meaningful comparison only if the motor starts spinning as soon as the machine is turned on: is that what happens?
But I'm afraid this is academic speculation: in UAE, the Early Startup Screen doesn't show CD0: (or any other device).


Quote:
I personally wouldn't worry about the motor. It's the laser that wears out on optical drives, not the motor.
It's still wasted energy, possibly noise, and a minimal wear of the parts. I'd be happy if I can avoid that, but of course that isn't a showstopper.
saimo is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
cd32 motor does not spin disc at all oggie support.Hardware 14 20 June 2019 21:41
Zool 2 CD32 turn in the air ? clauddio support.Games 11 17 September 2012 21:24
Possible to turn a netbook into a tiny portable emulated Amiga? AB Positive New to Emulation or Amiga scene 46 28 October 2011 17:50
Amiga Monitor 1081 does not turn on dir_marillion support.Hardware 16 06 February 2009 14:39
How to turn an Amiga A500 into a lamp. WTF? alexh Retrogaming General Discussion 16 14 April 2008 18:23

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.07332 seconds with 14 queries