Author Topic: How do I Shutdown PC without using a keyboard?  (Read 3283 times)

erevans

  • Newbie
  • *
  • Posts: 9
    • View Profile
How do I Shutdown PC without using a keyboard?
« 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.

« Last Edit: December 09, 2017, 12:35:31 PM by erevans »

xbs

  • Sr. Member
  • ****
  • Posts: 180
    • View Profile
Re: How do I Shutdown PC without using a keyboard?
« Reply #1 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 :)
« Last Edit: December 10, 2017, 03:36:17 AM by xbs »

erevans

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: How do I Shutdown PC without using a keyboard?
« Reply #2 on: December 12, 2017, 07:11:28 PM »
Thank you.
I got it working, now to just make it pretty.