Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: erevans on December 07, 2017, 04:52:02 PM

Title: How do I Shutdown PC without using a keyboard?
Post by: erevans on December 07, 2017, 04:52:02 PM
I've searched but I cannot find the answer I'm looking for.
I am trying to make a keyboardless setup on a PC running Linux.  (if instructions exist for Windows, I should have enough understanding how to modify a .bat file to a .sh file)
I have MAME working fine.
I have Attractmode with Nevato theme working fine.
I have Attractmode set to launch upon boot.
I have Attractmode set to shutdown the PC on exit.

What I am looking for is to have a shutdown command (and perhaps an exit command) directly in a display via a wheel entry (like in the attached image from a youtube screengrab of a Cabrio-FE build) so I can run keyboardless.
Can anyone offer some pointers?  Do I need to write a plugin?

Thank you in advance for your help.
(http://i848.photobucket.com/albums/ab43/evan_r_evans/shutdownwheel.png)
Title: Re: How do I Shutdown PC without using a keyboard?
Post by: xbs on December 10, 2017, 03:29:52 AM
I think you'll need to have a fake emulator or game that runs a script that shuts the PC down.

You can have a combination of keys to exit AM and therefore shut the PC down.

Another option, which i'm using on my arcade machine, is a dedicated power button connected directly to the mobo power pins.
One press turns the machine on\off.
Simple and pratical :)
Title: Re: How do I Shutdown PC without using a keyboard?
Post by: erevans on December 12, 2017, 07:11:28 PM
Thank you.
I got it working, now to just make it pretty.