mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2019-09-14, 01:58   #1
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

23·97 Posts
Default Stop PRPNet when on battery

Is there any way to have the PRPNet client automatically pause the worker (e.g. LLR) when the computer is unplugged, and resume when plugged in again? I'm trying to set up some laptops at home to run the client with LLR, but I don't want to have to kill and restart the client every time I unplug my personal laptop (which is generally at least once daily). For LLR at least, it should be as simple as adding a line to llr.ini.
Happy5214 is offline   Reply With Quote
Old 2019-09-14, 21:08   #2
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·5·647 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
Is there any way to have the PRPNet client automatically pause the worker (e.g. LLR) when the computer is unplugged, and resume when plugged in again? I'm trying to set up some laptops at home to run the client with LLR, but I don't want to have to kill and restart the client every time I unplug my personal laptop (which is generally at least once daily). For LLR at least, it should be as simple as adding a line to llr.ini.
PRPNet does not support such a feature.
rogue is offline   Reply With Quote
Old 2019-09-14, 22:02   #3
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

10111001001012 Posts
Default

Quote:
Originally Posted by rogue View Post
PRPNet does not support such a feature.
Prime95 has such a feature.
kriesel is offline   Reply With Quote
Old 2019-09-15, 02:49   #4
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

194616 Posts
Default

Quote:
Originally Posted by kriesel View Post
Prime95 has such a feature.
And your point being???

PRPNet uses llr or pfgw to do the dirty work.
rogue is offline   Reply With Quote
Old 2019-09-16, 19:16   #5
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

3×52×79 Posts
Default

Quote:
Originally Posted by rogue View Post
And your point being???

PRPNet uses llr or pfgw to do the dirty work.
The point being, the code exists, and if someone that uses or develops pfgw or llr cares enough, it could probably be added there too. There was a lot of code reuse among mfaktc, mfakto, cudapm1, etc (mostly around parsing worktodo or command line options, worktodo.add). The source code to almost all of prime95 is available and could be read for ideas of how to do it, even if one decides against actual copying of portions for license terms or whatever reason.

Last fiddled with by kriesel on 2019-09-16 at 19:17
kriesel is offline   Reply With Quote
Old 2019-09-16, 22:41   #6
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×5×647 Posts
Default

Quote:
Originally Posted by kriesel View Post
The point being, the code exists, and if someone that uses or develops pfgw or llr cares enough, it could probably be added there too. There was a lot of code reuse among mfaktc, mfakto, cudapm1, etc (mostly around parsing worktodo or command line options, worktodo.add). The source code to almost all of prime95 is available and could be read for ideas of how to do it, even if one decides against actual copying of portions for license terms or whatever reason.
You would have to ask Jean Penne about llr. As for pfgw, I would have to take a look, but I make no promises.
rogue is offline   Reply With Quote
Old 2019-09-17, 00:08   #7
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

23·97 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
Is there any way to have the PRPNet client automatically pause the worker (e.g. LLR) when the computer is unplugged, and resume when plugged in again? I'm trying to set up some laptops at home to run the client with LLR, but I don't want to have to kill and restart the client every time I unplug my personal laptop (which is generally at least once daily). For LLR at least, it should be as simple as adding a line to llr.ini.
Quote:
Originally Posted by kriesel View Post
The point being, the code exists, and if someone that uses or develops pfgw or llr cares enough, it could probably be added there too. There was a lot of code reuse among mfaktc, mfakto, cudapm1, etc (mostly around parsing worktodo or command line options, worktodo.add). The source code to almost all of prime95 is available and could be read for ideas of how to do it, even if one decides against actual copying of portions for license terms or whatever reason.
See the emphasis in the quote of my original post. LLR does already have the code to stop while on battery power. But PRPNet doesn't seem to have the option to write the needed setting (RunOnBattery=0) to llr.ini.

Last fiddled with by Happy5214 on 2019-09-17 at 00:09
Happy5214 is offline   Reply With Quote
Old 2019-09-17, 08:40   #8
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×5×647 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
See the emphasis in the quote of my original post. LLR does already have the code to stop while on battery power. But PRPNet doesn't seem to have the option to write the needed setting (RunOnBattery=0) to llr.ini.
It seems to me that should be the default. The change needs to be made to LLRProgram.cpp in the PRPNet source.
rogue is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 for stress under laptop with battery only. Jason Information & Answers 9 2018-03-02 10:00
Laptop occur black screen when run Prime95 on DC mode till because critical battery level Dason Information & Answers 3 2018-02-12 11:00
Motherboard backup battery usage patrik Hardware 13 2014-04-20 10:09
When will it stop? ThomRuley Msieve 20 2010-05-19 02:12
Laptop Battery clowns789 Hardware 7 2005-06-12 06:57

All times are UTC. The time now is 06:01.


Mon Dec 6 06:01:02 UTC 2021 up 136 days, 30 mins, 0 users, load averages: 1.62, 1.70, 1.50

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.