Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: krypstocken on December 25, 2015, 03:52:13 AM

Title: Shutdown PC on exit
Post by: krypstocken on December 25, 2015, 03:52:13 AM
Hi

I have a working setup based on Linux Mint 17.3 that starts and launches Attract Mode.

Is there a way to send the shutdown command to Linux with sudo privliges(including password) at the time I exit Attract Mode?


Regards Kristoffer
Title: Re: Shutdown PC on exit
Post by: krypstocken on December 25, 2015, 04:11:27 AM
SOLVED

Change the permissions of the shutdown command:
sudo chmod u+s /sbin/shutdown
Creat a script that runs at boot:

with the following rows:
attract # to start attract mode
shutdown -P now # to shutdown

Title: Re: Shutdown PC on exit
Post by: GnG1972 on January 03, 2016, 04:43:50 AM
How can I do this on Windows?

Thanks  :)
Title: Re: Shutdown PC on exit
Post by: xbs on January 03, 2016, 05:50:06 AM
Try setting AM exit command to:

Code: [Select]
shutdown -s -t 00
I'm using it on my bartop XP machine along with instant sheller from gameex (http://www.gameex.com/instant-sheller-and-shelling-guide/). Works great :)
Title: Re: Shutdown PC on exit
Post by: flaviobello on April 23, 2016, 08:04:27 AM
hi, how exactly i can set up to shutdown windows when i quit AM?

thanks in advance.  :)
Title: Re: Shutdown PC on exit
Post by: xbs on April 26, 2016, 02:55:32 AM
As stated above type
Code: [Select]
shutdown -s -t 00 in AM settings exit command.