Author Topic: Shutdown PC on exit  (Read 7675 times)

krypstocken

  • Newbie
  • *
  • Posts: 9
    • View Profile
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

krypstocken

  • Newbie
  • *
  • Posts: 9
    • View Profile
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


GnG1972

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Shutdown PC on exit
« Reply #2 on: January 03, 2016, 04:43:50 AM »
How can I do this on Windows?

Thanks  :)

xbs

  • Sr. Member
  • ****
  • Posts: 180
    • View Profile
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 »

flaviobello

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
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.  :)

xbs

  • Sr. Member
  • ****
  • Posts: 180
    • View Profile
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.