Tasks: Exit Desktop
Lothar (3292) 134 posts |
In the task manager there is a menu item “Exit Desktop” which quits the desktop. Is it possible to quit the desktop from inside a task i.e. by calling some SWI? |
Rick Murray (539) 13840 posts |
https://www.riscosopen.org/wiki/documentation/show/TaskManager_Shutdown |
Chris Hall (132) 3554 posts |
Having got a small GPS unit working, with no monitor, mouse or keyboard I had to decide what to do if an unexpected error ensued. I decided to do a reboot/restart cycle, logging the actual error message for future analysis. This call was perfect. With power control in hardware, triggered by the GPIO4 line, the same call would shutdown, reset the computer, force GPIO4 to high impednace (after writing the CMOS clock etc.) taking off the power in a tidy and predictable way. |
Lothar (3292) 134 posts |
What am I doing wrong? “Exit Desktop” quits the desktop and ends up in CLI TaskManager_Shutdown with R0=0 quits the desktop and shows “Restart” message box And TaskManager_Shutdown with R0=1 quits the desktop and the machine hangs up – no CLI |
Rick Murray (539) 13840 posts |
Correct. The machine starts up in the command line, as witnessed during the boot stuff, then it enters the desktop world. Quitting that…takes you back to the command line.
Hmm… Did you try pressing Enter or Esc? |
Chris Hall (132) 3554 posts |
Try SYS “TaskManager_Shutdown”,162 |