Add a "Suspend for X minutes" in the Commands menu

Questions and Answers : Wish list : Add a "Suspend for X minutes" in the Commands menu
Message board moderation

To post messages, you must log in.

AuthorMessage
PRouleau

Send message
Joined: 3 Apr 99
Posts: 15
Credit: 20,638,960
RAC: 0
Canada
Message 229164 - Posted: 11 Jan 2006, 3:27:10 UTC

BOINC is set to "Run always" on my computer, even when I play games.

However, I sometimes "Suspend" it to speed up a urgent task... and I forget it there.

It would be nice if we had a fourth option: "Suspend for X minutes", where X would be configurable in the options or a drop down list or even a little dialog box. When the time is elapsed, it resume to the previous value ("Run always" in my case).
ID: 229164 · Report as offensive
Profile Lee Carre
Volunteer tester

Send message
Joined: 21 Apr 00
Posts: 1459
Credit: 58,485
RAC: 0
Channel Islands
Message 229319 - Posted: 11 Jan 2006, 14:27:03 UTC

you could use "run based on prefs" (with a short "wait untill computer has been inactive for x minutes before starting work" setting)

or install boinc as a service and write a batch file/script to use
net stop boinc

to stop the service (including all science apps)
wait the desired amount of time, then
net start boinc

to start the service again (and resume crunching if you left it with "run always" set)
ID: 229319 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 229325 - Posted: 11 Jan 2006, 14:48:10 UTC - in response to Message 229319.  

or install boinc as a service and write a batch file/script to use
net stop boinc

to stop the service (including all science apps)
wait the desired amount of time, then
net start boinc

to start the service again (and resume crunching if you left it with "run always" set)


Easier yet, not a batch file or command file: just make shortcuts.
Rightclick on the desktop, New, Shortcut.
In the "location of item" box, type: %windir%\\system32\\cmd.exe /k net stop boinc
Press Next
Type in as name Net stop BOINC and hit OK.

Make a same shortcut on your desktop to %windir%\\system32\\cmd.exe /k net start boinc
Call it Net start BOINC

Now, when you want to go play the game, use the shortcut to net stop BOINC and leave the window open as a reminder to you that you stopped it. Simple. :)
ID: 229325 · Report as offensive
PRouleau

Send message
Joined: 3 Apr 99
Posts: 15
Credit: 20,638,960
RAC: 0
Canada
Message 229642 - Posted: 11 Jan 2006, 20:12:20 UTC - in response to Message 229319.  

you could use "run based on prefs" (with a short "wait untill computer has been inactive for x minutes before starting work" setting)


That's a good idea! and I already have it installed as a service.

Instead of killing the service, I can use that little command line program which comes with the GUI: boinccmd.exe

Here the first version of my script. I use CygWin so I can use my script on any of my hosts.

#!/bin/bash

cd /cygdrive/e/Users/PRouleau/BOINC

PREVIOUS_MODE=`./boinccmd --get_run_mode`

#this code is a bit silly, but --get_run_mode return "run mode: <always/>"
case $PREVIOUS_MODE in
	*always*) PREVIOUS_MODE=always ;;
	*auto*) PREVIOUS_MODE=auto ;;
	*never*) PREVIOUS_MODE=never ;;
esac

echo Suspending BOINC...
./boinccmd --set_run_mode never
echo Previous mode was: $PREVIOUS_MODE

echo Waiting
if [[ -e $1 ]] ; then
	sleep 5m
else
	sleep $1
fi
echo Restoring previous mode
./boinccmd --set_run_mode $PREVIOUS_MODE

ID: 229642 · Report as offensive
WORMSS

Send message
Joined: 19 Dec 99
Posts: 1
Credit: 1,727,882
RAC: 0
United Kingdom
Message 319252 - Posted: 28 May 2006, 11:24:03 UTC

u guys? did u even read what he said?

he wants it to

: Turn Off/Suspend
: Wait X Amount of Time
: Turn On/Resume
ID: 319252 · Report as offensive
PRouleau

Send message
Joined: 3 Apr 99
Posts: 15
Credit: 20,638,960
RAC: 0
Canada
Message 320933 - Posted: 31 May 2006, 2:21:20 UTC - in response to Message 319252.  
Last modified: 31 May 2006, 2:27:24 UTC

u guys? did u even read what he said?

he wants it to

: Turn Off/Suspend
: Wait X Amount of Time
: Turn On/Resume


Do you know what is more funny?

They renamed the suspend/resume commands of the tray icon. It's a snoose now. At first, I was thinking it was to prevent boincmgr to alway show its ballon (which appear way too often), but I finally understand that was the new name of suspend/resume.

Anyway! At long as they keep boinccmd, I will be able to do what I want.
ID: 320933 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 321191 - Posted: 31 May 2006, 11:02:37 UTC - in response to Message 320933.  

They renamed the suspend/resume commands of the tray icon. It's a snoose now.

No, the snooze function is a new one. This will suspend network and CPU activity for an hour.
ID: 321191 · Report as offensive
Profile Pooh Bear 27
Volunteer tester
Avatar

Send message
Joined: 14 Jul 03
Posts: 3224
Credit: 4,603,826
RAC: 0
United States
Message 321201 - Posted: 31 May 2006, 11:13:51 UTC

Since this thread kind of fits my issue, I figure I would ask why here (and it's the wish list for a fix).

I am using 5.4.9, and I suspended work on a machine for a while. When I brought it out of suspend, I was seeing something odd. It was suspending uploading finished results. When I finally did some checking, the network activity was suspended. I only suspended proccessing, I did not suspend the network activity. Yet it took it upon itself to suspend this, and then when I took it off suspend, this stayed suspended.

Why do I have to only suspend one item, then unsuspend 2? This is not right.


My movie https://vimeo.com/manage/videos/502242
ID: 321201 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 321239 - Posted: 31 May 2006, 12:07:03 UTC - in response to Message 321201.  
Last modified: 31 May 2006, 12:07:30 UTC

I am using 5.4.9, and I suspended work on a machine for a while. When I brought it out of suspend, I was seeing something odd. It was suspending uploading finished results.

I'm trying to reproduce this on my machine. With a very useful Einstein that's down. I haven't managed to reproduce it yet, so it may be a one off bug. What OS do you run? Do know you can always send wishes and bugs like these to the Boinc developers email listing.
ID: 321239 · Report as offensive
PRouleau

Send message
Joined: 3 Apr 99
Posts: 15
Credit: 20,638,960
RAC: 0
Canada
Message 321241 - Posted: 31 May 2006, 12:11:52 UTC - in response to Message 321191.  

No, the snooze function is a new one. This will suspend network and CPU activity for an hour.


AahhH! That's explain the new name. And that's also explain why I saw "Netword Activity Suspended" once without requesting it.

Since I didn't see that modification in the "Version Details" on the Download page, I didn't bother to check the doc available from the F1 key. I didn't expect to see it up-to-date, but I was wrong. It is up-to-date.
ID: 321241 · Report as offensive
PRouleau

Send message
Joined: 3 Apr 99
Posts: 15
Credit: 20,638,960
RAC: 0
Canada
Message 321247 - Posted: 31 May 2006, 12:21:48 UTC - in response to Message 321201.  

Why do I have to only suspend one item, then unsuspend 2? This is not right.


Did you use the "Snooze" command, then a bit later unsuspended the computation by using the "Run Always" command?

I made a little test. After doing that, the "Snooze" is not check anymore. I didn't wait one hour to see if it will resume the network activity. But I tested this: I request a new Snooze, then un-Snooze it. The network activity stay suspended. This seem to be by-design, but the doc isn't too precise on that.
ID: 321247 · Report as offensive
Profile Pooh Bear 27
Volunteer tester
Avatar

Send message
Joined: 14 Jul 03
Posts: 3224
Credit: 4,603,826
RAC: 0
United States
Message 321324 - Posted: 31 May 2006, 14:04:38 UTC

Did you use the "Snooze" command, then a bit later unsuspended the computation by using the "Run Always" command?

Actually I used the SUSPEND on the activity menu, then I noticed the SNOOZE check marked on my left click menu when I went to unsuspend, so I clicked that, figuring it would stop the suspend. This must have turned on the Suspend Network Activity,. Since Snooze was unchecked, it did not go through the timer to check things.

This needs to be fixed. I am not registered on the Development boards, and unsure I want to register another board, but it would be nice if this was checked in the next itteration of the software.


My movie https://vimeo.com/manage/videos/502242
ID: 321324 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 321336 - Posted: 31 May 2006, 14:25:09 UTC - in response to Message 321324.  

[quote]Did you use the "Snooze" command, then a bit later unsuspended the computation by using the "Run Always" command?

I just did this...

31/05/2006 16:22:49||Suspending computation - user request
31/05/2006 16:22:49||Suspending network activity - user request

That's the Snooze. Wait a minute, then went to Unsnooze:

31/05/2006 16:23:55||Resuming computation
31/05/2006 16:23:55||Resuming network activity

So again, I cannot reproduce it.

I am not registered on the Development boards

It's an email list. Not a forum.
ID: 321336 · Report as offensive
Aurora Borealis
Volunteer tester
Avatar

Send message
Joined: 14 Jan 01
Posts: 3075
Credit: 5,631,463
RAC: 0
Canada
Message 321337 - Posted: 31 May 2006, 14:25:15 UTC

Did you notice.
Notes:
Selecting an option that requires contacting a project will temporarily enable network activity regardless of the network setting. This includes updating a project, retrying file transfers, retrying communications and attaching to projects. Network activity will remain enabled for five minutes.
Selecting Snooze from the icon menu overrides the 'run....' setting and suspends activity for one hour. Unselecting Snooze, or Selecting the Activity menu items Run always or Run based on preferences cancels Snooze.


Boinc V7.2.42
Win7 i5 3.33G 4GB, GTX470
ID: 321337 · Report as offensive
Profile Pooh Bear 27
Volunteer tester
Avatar

Send message
Joined: 14 Jul 03
Posts: 3224
Credit: 4,603,826
RAC: 0
United States
Message 321342 - Posted: 31 May 2006, 14:29:35 UTC - in response to Message 321336.  

[quote]Did you use the "Snooze" command, then a bit later unsuspended the computation by using the "Run Always" command?

I just did this...

31/05/2006 16:22:49||Suspending computation - user request
31/05/2006 16:22:49||Suspending network activity - user request

That's the Snooze. Wait a minute, then went to Unsnooze:

31/05/2006 16:23:55||Resuming computation
31/05/2006 16:23:55||Resuming network activity

So again, I cannot reproduce it.

I am not registered on the Development boards

It's an email list. Not a forum.

I only did "Suspending computation - user request" I did not "Suspending network activity - user request" then I unsnoozed it, since the Snooze was checked. This turned on "Suspending network activity - user request" and never shut it off.



My movie https://vimeo.com/manage/videos/502242
ID: 321342 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 321374 - Posted: 31 May 2006, 14:50:48 UTC - in response to Message 321342.  

OK, so if you can reproduce it, post step by step what you did. If you want me to, I'll put it on the developers list then.
ID: 321374 · Report as offensive
Profile Pooh Bear 27
Volunteer tester
Avatar

Send message
Joined: 14 Jul 03
Posts: 3224
Credit: 4,603,826
RAC: 0
United States
Message 321457 - Posted: 31 May 2006, 16:19:39 UTC - in response to Message 321374.  
Last modified: 31 May 2006, 16:20:12 UTC

OK, so if you can reproduce it, post step by step what you did. If you want me to, I'll put it on the developers list then.

Go into BOINC manager:
"Activity", "Suspend" (The first Suspend, not "Network Activity Suspend", left that at Always.)
When done I click "Snooze" since it was checked. This unsuspend the Work, but Suspended the Network, and did not return to normal after an hour.
ID: 321457 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 321499 - Posted: 31 May 2006, 17:11:19 UTC

Ok, if you click Snooze twice, everything comes undone. But I'll report it anyway. :)
ID: 321499 · Report as offensive

Questions and Answers : Wish list : Add a "Suspend for X minutes" in the Commands menu


 
©2024 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.