Shutdown confirmation
André Timmermans (100) 655 posts |
I often use my RISC and PI3 at the same time, for development and testing with the RPC and PI3 connected to the same monitor through VGA & HMDI ports and share a single keyboard between the two. It is not the first time that I forget that keyboard is actually connected to the machine not on screen and that I “Ctrl+Shift+F12” the wrong machine. On the RPC no problem it offers a dialog box allowing me to cancel the action, but on the PI the shutdown is immediate. Would it be possible to a config. option to have the system ask for a confirmation before the shutdown. |
Rick Murray (539) 13840 posts |
If you have one of CJE’s power controller / RTC gizmos, I wrote a module that traps Ctrl-Shift-F12 (and Ctrl-Break) and asks for confirmation (as well as Restart or Shutdown (Power Off)). |
Steve Pampling (1551) 8170 posts |
You mean like running the “rusure” utility listed in Arcade: |
Michael Emerton (483) 136 posts |
Is that 32 Bit safe? |
Steve Pampling (1551) 8170 posts |
As much as any BASIC file with no inline assembler is 32-bit safe. There are similar utilities on the same page that I haven’t tested. |
Michael Emerton (483) 136 posts |
Ahh, this is why I use BASIC ;@) |
Bernard Boase (169) 208 posts |
Looking at that Arcade page today, there’s no ‘rusure’ listed. Asking Google for ‘rusure site:arcade.demon.co.uk’ gives no results either. I thought it sounded useful… |
Rick Murray (539) 13840 posts |
I’d have logged in to check directly, but the server is currently down. That happens often these days, it’s a RiscPC that has seen a heck of a life… The Demon address ought not work? Isn’t Demon over? |
Steve Pampling (1551) 8170 posts |
Seems like some re-indexing or something because the wayback page from February 2016 has the link to rusure_arc but the current page 36 doesn’t contain that file. |
Rick Murray (539) 13840 posts |
Don’t know why rusure isn’t in Arcade’s file listing. It’s visible from the BBS itself. ftp://arcade-bbs.net/data/047500/049100/049133 Not tried it here (I have my own Ctrl-Shift-F12 trap), but it is written in BASIC so ought not have any 26/32 issues. |
andym (447) 473 posts |
I have! It does work but not in the modern way of giving a Restart box in the middle of the screen – it just drops to a black screen with a * prompt. I always wonder why the “almost-standard” Off – Shutdown – Restart – Cancel isn’t just made standard. It’s certainly in CJEs IGEPv5 ROM and I think it was in R-Comp’s Panda and Beagle ROMs, but not in the ROOL ROMs? |
Jeffrey Lee (213) 6048 posts |
CJE tried submitting their changes (or at least some of them) back in 2013, but it sounds like ROOL weren’t entirely happy with the initial proposal. I’m not sure if things have progressed much since then. Maybe Chris can provide an update here? https://www.riscosopen.org/forum/forums/2/topics/1295?page=1#posts-24272 |
Rick Murray (539) 13840 posts |
+1 |