Poster | Thread |
r-tea
| |
Reboot and ShutDown Posted on 17-Aug-2017 21:40:09
| | [ #1 ] |
|
|
|
Regular Member |
Joined: 21-Nov-2004 Posts: 315
From: Zdzieszowice, Poland | | |
|
| MorphOS comes with Reboot and ShutDown commands in C: Are there equivalent commands in AmigaOS3?
_________________ I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately. |
|
Status: Offline |
|
|
tonyw
| |
Re: Reboot and ShutDown Posted on 17-Aug-2017 22:46:31
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 8-Mar-2003 Posts: 3240
From: Sydney (of course) | | |
|
| @r-tea
OS4 has a Reboot command with a "fast" or "warm" option. Shutdown is machine dependent (due to the differing power on/off requirements), and there are Shutdown utilities for each hardware platform.
_________________ cheers tony
Hyperion Support Forum: http://forum.hyperion-entertainment.biz/index.php |
|
Status: Offline |
|
|
Hypex
| |
Re: Reboot and ShutDown Posted on 18-Aug-2017 16:17:37
| | [ #3 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11180
From: Greensborough, Australia | | |
|
| |
Status: Offline |
|
|
Severin
| |
Re: Reboot and ShutDown Posted on 18-Aug-2017 19:18:59
| | [ #4 ] |
|
|
|
Elite Member |
Joined: 18-Aug-2003 Posts: 2740
From: Gloucestershire UK | | |
|
| @r-tea
Reboot: something like this maybe?
http://aminet.net/package/util/wb/mreset
Shutdown: No way, OS3 machines have a physical power switch.
With external non amiga hardware it might be possible for example, if you had a wifi controlled mains socket then you might be able to switch it off. _________________ OS4 Rocks X1000 beta tester, Sam440 Flex (733)
Visit the Official OS4 Support Site for more help.
It may be that your sole purpose is to serve as a warning to others. |
|
Status: Offline |
|
|
Amigo1
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 8:35:32
| | [ #5 ] |
|
|
|
Super Member |
Joined: 24-Jun-2004 Posts: 1582
From: the Clouds | | |
|
| @tonyw
Quote:
tonyw wrote: @r-tea
OS4 has a Reboot command with a "fast" or "warm" option. Shutdown is machine dependent (due to the differing power on/off requirements), and there are Shutdown utilities for each hardware platform.
|
Is there a shutdown command for the X5000 or is one in the works? I could not find one on the CD or os4depot. |
|
Status: Offline |
|
|
tonyw
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 9:38:40
| | [ #6 ] |
|
|
|
Elite Member |
Joined: 8-Mar-2003 Posts: 3240
From: Sydney (of course) | | |
|
| @Amigo1
Not sure what the current state is. Some time ago we had one (as an add-on), then the add-on code was incorporated into the kernel. Since then I haven't seen it used, so maybe it needs to be rebuilt to work with the new API.
_________________ cheers tony
Hyperion Support Forum: http://forum.hyperion-entertainment.biz/index.php |
|
Status: Offline |
|
|
jabirulo
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 10:48:20
| | [ #7 ] |
|
|
|
Regular Member |
Joined: 20-Jun-2004 Posts: 370
From: Donosti (GUIPUZCOA) | | |
|
| |
Status: Offline |
|
|
salass00
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 11:31:47
| | [ #8 ] |
|
|
|
Elite Member |
Joined: 31-Oct-2003 Posts: 2707
From: Finland | | |
|
| @Amigo1
Shutdown as well as soft/hard reboot is available from the Workbench menu for beta testers since November 2015.
Is a CLI command really something that is needed as well? |
|
Status: Offline |
|
|
Drewlio77
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 11:52:15
| | [ #9 ] |
|
|
|
Cult Member |
Joined: 2-Jan-2008 Posts: 781
From: Woodstock, Ontario, Canada | | |
|
| @r-tea
The Mediator bus-boards with the ATX power supply connectors support the shutdown feature via a command placed in SYS:C. Many years ago I made a utility that pops up a GUI to use this shutdown command as well as a reset option for OS 3.x
Drewlio77 Last edited by Drewlio77 on 20-Aug-2017 at 11:53 AM.
|
|
Status: Offline |
|
|
Severin
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 13:35:56
| | [ #10 ] |
|
|
|
Elite Member |
Joined: 18-Aug-2003 Posts: 2740
From: Gloucestershire UK | | |
|
| @salass00
Quote:
Is a CLI command really something that is needed as well? |
Yes it is. somepeople don't run workbench, dopus5 in workbench replacement mode for example. so a CLI command that can be called by any means required is useful.
There's also the use of shutting down the system from a script when it finishes etc.Last edited by Severin on 20-Aug-2017 at 01:40 PM.
_________________ OS4 Rocks X1000 beta tester, Sam440 Flex (733)
Visit the Official OS4 Support Site for more help.
It may be that your sole purpose is to serve as a warning to others. |
|
Status: Offline |
|
|
salass00
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 14:50:27
| | [ #11 ] |
|
|
|
Elite Member |
Joined: 31-Oct-2003 Posts: 2707
From: Finland | | |
|
| @Severin
Nothing stops DOpus5 from using the same Shutdown() function that workbench.library uses.
Using this method it can hide the shutdown button or menu item if it's not supported on the hardware or OS version in question. |
|
Status: Offline |
|
|
amigakit
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 19:39:31
| | [ #12 ] |
|
|
|
Amiga Kit |
Joined: 28-Jun-2004 Posts: 2515
From: www.amigakit.com | | |
|
| |
Status: Offline |
|
|
Kremlar
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 20:43:30
| | [ #13 ] |
|
|
|
Regular Member |
Joined: 12-Aug-2010 Posts: 108
From: Milford, MA | | |
|
| @Hypex
Quote:
Now the A590 had a program included called Park. It parked the HDD heads in a safe position so it could be shut down. Like a car hand brake. Being a bit OCD as I was with my Amiga I made sure I used this before I turned off. |
Parking the heads was only desirable if the hard drive was going to be moved. |
|
Status: Offline |
|
|
A1200
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 21:10:27
| | [ #14 ] |
|
|
|
Elite Member |
Joined: 5-May-2003 Posts: 3087
From: Westhall, UK | | |
|
| @Kremlar
Modern drive heads park as they are powered down now. No need to command the park to take place. _________________ Amiga A1200, 3.1 ROMs, Blizzard 1230 MKIV 64MB & FPU, 4GB DoM SSD, Workbench 3.1 |
|
Status: Offline |
|
|
lylehaze
| |
Re: Reboot and ShutDown Posted on 20-Aug-2017 22:26:08
| | [ #15 ] |
|
|
|
Super Member |
Joined: 1-Sep-2004 Posts: 1142
From: North Florida - Big Bend area. | | |
|
| @jabirulo
Greetings all. I have been insanely busy, have not been around lately. Moving from a house to an RV, then a blown motor, then.. lots more stuff.
I have a command line program that can power down a Tabor. It should also power down an X5000, but that is untested.
Apparently my beta has been busy too. :)
It can also be used to toggle the CPU LED on either of those machines, or on an X1000.
Slightly off topic: On all three of those machines, the CPU LED defaults to ON after every reboot. So if you move your power LED to the CPU LED header, there is no apparent difference, EXCEPT you can then reach the LED from any C code, shell or ARexx script etc..
It's easy to write slow flash, fast flash, whatever.. offering an alert output that does not instrude on the graphics layer.
As the power off stuff goes.. the X1000 delays a few seconds before the power supply drops. the Tabor drops immediately, and the X5000 probably does too. I'm not sure I shouild release anything if it should interface with the drives first to make sure everything is ready to go.. there is NO such logic in the code now.
If someone wants/needs to test on an X5, let me know.
Nice to be online at the new address.
LyleHaze _________________ question=(2b||!(2b)) |
|
Status: Offline |
|
|
Amigo1
| |
Re: Reboot and ShutDown Posted on 22-Aug-2017 11:05:05
| | [ #16 ] |
|
|
|
Super Member |
Joined: 24-Jun-2004 Posts: 1582
From: the Clouds | | |
|
| @salass00
Quote:
salass00 wrote: @Severin
Nothing stops DOpus5 from using the same Shutdown() function that workbench.library uses. |
Thank for the reply. Good to hear about the availability in Workbench menu. Looking forward to have that in the public version of AmigaOS too.
Quote:
Using this method it can hide the shutdown button or menu item if it's not supported on the hardware or OS version in question. |
Maybe some users find it useful, I would like to have a CLI command too, but it’s not a must.
|
|
Status: Offline |
|
|
Amigo1
| |
Re: Reboot and ShutDown Posted on 22-Aug-2017 11:06:50
| | [ #17 ] |
|
|
|
Super Member |
Joined: 24-Jun-2004 Posts: 1582
From: the Clouds | | |
|
| @amigakit
Hi, SystemReboot works well on the X5000, thanks. Are you open to the idea to have “Shutdown” incorporated in “SystemReboot” too? It could use the function provided in the updated version of workbench.library when it becomes available. |
|
Status: Offline |
|
|
Amigo1
| |
Re: Reboot and ShutDown Posted on 22-Aug-2017 11:07:12
| | [ #18 ] |
|
|
|
Super Member |
Joined: 24-Jun-2004 Posts: 1582
From: the Clouds | | |
|
| @jabirulo
Quote:
I tested the one both. The one from os4depot tells “Oops, machine not supported” on the X5000, the, the beta works!
Pity a spin down signal can not be sent to the HD. The publicly available version of ideTool is 53.20 and p5020sata.device is version 53.69, so it does not support the commands sent to the device. At least that is the message ideTools returns if I try to send any command to p5020sata.device.
|
|
Status: Offline |
|
|
salass00
| |
Re: Reboot and ShutDown Posted on 22-Aug-2017 11:56:38
| | [ #19 ] |
|
|
|
Elite Member |
Joined: 31-Oct-2003 Posts: 2707
From: Finland | | |
|
| @Severin
Quote:
There's also the use of shutting down the system from a script when it finishes etc.
|
This OTOH is a good reason for having shutdown using a CLI command.
I'm not sure if creating an entirely new command is desirable though, since it would be replicating some of what the reboot command already does (the SYNC option at least).
A simpler solution would be to add a SHUTDOWN switch to the reboot command. |
|
Status: Offline |
|
|
salass00
| |
Re: Reboot and ShutDown Posted on 22-Aug-2017 12:04:00
| | [ #20 ] |
|
|
|
Elite Member |
Joined: 31-Oct-2003 Posts: 2707
From: Finland | | |
|
| @Amigo1
Quote:
It could use the function provided in the updated version of workbench.library when it becomes available.
|
The Shutdown() function is not in "workbench.library". Right now it's in a kernel resource that exists solely to export this functionality which is implemented in the HAL separately for each machine that supports it (currently that's all except for Classic Amiga, Eyetech AmigaOne and Sam440). |
|
Status: Offline |
|
|