Shutting down pc

Message boards : Number crunching : Shutting down pc
Message board moderation

To post messages, you must log in.

Previous · 1 · 2 · 3

AuthorMessage
Zapiao
Volunteer tester

Send message
Joined: 29 Oct 01
Posts: 110
Credit: 122,278
RAC: 0
Portugal
Message 1276389 - Posted: 27 Aug 2012, 19:19:37 UTC - in response to Message 1276381.  
Last modified: 27 Aug 2012, 19:28:06 UTC

That s it. But how can i do it (win vista)? Teach me as i were a child, i m not expert in computers like you dudes. Thanks
By your command !!!
ID: 1276389 · Report as offensive
Profile Link
Avatar

Send message
Joined: 18 Sep 03
Posts: 833
Credit: 1,807,369
RAC: 1
Germany
Message 1276381 - Posted: 27 Aug 2012, 19:09:56 UTC - in response to Message 1276374.  
Last modified: 27 Aug 2012, 19:15:00 UTC

Well, there is shutdown.exe, but I don't know how you might trigger it based on Boinc doing work or not.

With this batch file:
@echo off
goto check_folders
:boinc_running
echo %date% %time% BOINC running.
sleep 300
:check_folders
if exist "C:\ProgramData\BOINC\slots\0\boinc_lockfile" goto boinc_running
if exist "C:\ProgramData\BOINC\slots\1\boinc_lockfile" goto boinc_running
if exist "C:\ProgramData\BOINC\slots\2\boinc_lockfile" goto boinc_running
if exist "C:\ProgramData\BOINC\slots\3\boinc_lockfile" goto boinc_running
echo %date% %time% boinc_lockfile not found, waiting 60 seconds...
sleep 60
if exist "C:\ProgramData\BOINC\slots\0\boinc_lockfile" goto boinc_running
if exist "C:\ProgramData\BOINC\slots\1\boinc_lockfile" goto boinc_running
if exist "C:\ProgramData\BOINC\slots\2\boinc_lockfile" goto boinc_running
if exist "C:\ProgramData\BOINC\slots\3\boinc_lockfile" goto boinc_running
echo %date% %time% boinc_lockfile not found, waiting 60 seconds again...
sleep 60
if exist "C:\ProgramData\BOINC\slots\0\boinc_lockfile" goto boinc_running
if exist "C:\ProgramData\BOINC\slots\1\boinc_lockfile" goto boinc_running
if exist "C:\ProgramData\BOINC\slots\2\boinc_lockfile" goto boinc_running
if exist "C:\ProgramData\BOINC\slots\3\boinc_lockfile" goto boinc_running
echo %date% %time% No active WUs, shuting down.>>autoshutdown.txt
shutdown -s -t 1

This one is for standard installation of BOINC on Windows 7. The sleep.exe is part of the Windows Server 2003 Resource Kit Tools, extract that somewhere and copy sleep.exe to the Windows directory.

If you have many devices, it might me good to increase the number of slots checked, this one I used on a single core machine without a GPU.

It will create a autoshutdown.txt file in the directory where it is run from, where you will see, when the machine has shutdown, if you don't need/want it, remove the corresponding line.
ID: 1276381 · Report as offensive
kittyman Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 9 Jul 00
Posts: 50494
Credit: 1,018,363,574
RAC: 2,276
United States
Message 1276374 - Posted: 27 Aug 2012, 18:59:58 UTC - in response to Message 1276370.  

Hmm, looking again, you might be right Mark - I can't think of a simple utility that will shut a PC down when its activity drops below a certain level.

Well, there is shutdown.exe, but I don't know how you might trigger it based on Boinc doing work or not.
"Learn from yesterday. Live for today. Hope for tomorrow." Albert Einstein
"With cats." kittyman

ID: 1276374 · Report as offensive
rob smith Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer moderator
Volunteer tester

Send message
Joined: 7 Mar 03
Posts: 18644
Credit: 416,307,556
RAC: 863
United Kingdom
Message 1276370 - Posted: 27 Aug 2012, 18:53:20 UTC

Hmm, looking again, you might be right Mark - I can't think of a simple utility that will shut a PC down when its activity drops below a certain level.
Bob Smith
Member of Seti PIPPS (Pluto is a Planet Protest Society)
Somewhere in the (un)known Universe?
ID: 1276370 · Report as offensive
kittyman Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 9 Jul 00
Posts: 50494
Credit: 1,018,363,574
RAC: 2,276
United States
Message 1276364 - Posted: 27 Aug 2012, 18:36:10 UTC - in response to Message 1276363.  

Simple four step process:
Set it to receive "no new tasks" on all projects it is attached to
Allow all the tasks on it finish and report
Shut down the computer
Bid a friend farewell in an appropriate manner

Not certain, but I think he is asking if there is a way for it to shut down automatically when the work is done....
"Learn from yesterday. Live for today. Hope for tomorrow." Albert Einstein
"With cats." kittyman

ID: 1276364 · Report as offensive
rob smith Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer moderator
Volunteer tester

Send message
Joined: 7 Mar 03
Posts: 18644
Credit: 416,307,556
RAC: 863
United Kingdom
Message 1276363 - Posted: 27 Aug 2012, 18:34:14 UTC

Simple four step process:
Set it to receive "no new tasks" on all projects it is attached to
Allow all the tasks on it finish and report
Shut down the computer
Bid a friend farewell in an appropriate manner
Bob Smith
Member of Seti PIPPS (Pluto is a Planet Protest Society)
Somewhere in the (un)known Universe?
ID: 1276363 · Report as offensive
Zapiao
Volunteer tester

Send message
Joined: 29 Oct 01
Posts: 110
Credit: 122,278
RAC: 0
Portugal
Message 1276349 - Posted: 27 Aug 2012, 18:11:09 UTC

I guys it s possible to shut down the pc when all the WUS are completed? My older desktop it s at my born house so i want it to shut down when it has no more WUs to complete.
By your command !!!
ID: 1276349 · Report as offensive
Previous · 1 · 2 · 3

Message boards : Number crunching : Shutting down pc


 
©2020 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.