Home
Help
Search
Login
Register
Attract-Mode Support Forum
»
Attract-Mode Support
»
General
»
Shutdown PC on exit
« previous
next »
Print
Pages: [
1
]
Author
Topic: Shutdown PC on exit (Read 8980 times)
krypstocken
Newbie
Posts: 9
Shutdown PC on exit
«
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
Logged
krypstocken
Newbie
Posts: 9
Re: Shutdown PC on exit
«
Reply #1 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
Logged
GnG1972
Newbie
Posts: 1
Re: Shutdown PC on exit
«
Reply #2 on:
January 03, 2016, 04:43:50 AM »
How can I do this on Windows?
Thanks
Logged
xbs
Sr. Member
Posts: 180
Re: Shutdown PC on exit
«
Reply #3 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
. Works great
«
Last Edit: January 03, 2016, 05:55:06 AM by xbs
»
Logged
My Bartop
-
Simulacra
-
Emulation Station
-
CoinOps
flaviobello
Jr. Member
Posts: 12
Re: Shutdown PC on exit
«
Reply #4 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.
Logged
xbs
Sr. Member
Posts: 180
Re: Shutdown PC on exit
«
Reply #5 on:
April 26, 2016, 02:55:32 AM »
As stated above type
Code:
[Select]
shutdown -s -t 00
in AM settings exit command.
Logged
My Bartop
-
Simulacra
-
Emulation Station
-
CoinOps
Print
Pages: [
1
]
« previous
next »
Attract-Mode Support Forum
»
Attract-Mode Support
»
General
»
Shutdown PC on exit