Jishar13 / pvbeancounter

Automatically exported from code.google.com/p/pvbeancounter
1 stars 0 forks source link

Enhancement: Suspend only if idle #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
G'day Dennis,

I've been using PvBeanCounter now for a few weeks and it is working 
fantastically. The thing is I run it on my laptop and use the Suspend Control 
functionality, which is fine when I am not using the laptop but when I am it 
can be a bit annoying when the laptop suspends itself when I am still using it!

Hence an enhancement request: "Suspend only if idle"

I was thinking something along the lines of:

1) Check box on the Suspend Control tab labeled "Suspend only if idle"
2) Obviously the corresponding XML element in the settings.xml for point 1 
(e.g. enableidlesuspend), 
3) Also another XML element which specifies the amount of time which is 
required to consider the machine in an idle state (e.g. idlesuspendtime) which 
would be specified in seconds. I was thinking 5 minutes as a default. The 
alternate solution would be if "Suspend only if idle" is enabled do not 
schedule the suspend at all but still schedule the resume (for the case the 
user does a manual suspend).

I did a quick google and found the following in regard to detecting if a 
machine is idle:

"How to check for user inactivity with and without platform invokes in C#"l
- http://www.codeproject.com/KB/cs/uim.aspx
- The code project article is a bit out of date, but does cover some good 
options

If I had a full copy of MSVC 2008 I would be happy to help, I tried compiling 
using the express version but with no luck.

What version of the product are you using (e.g. 1.4.1.9 32bit)?
1.5.0.5

What Operating system (XP, Vista, Windows 7 - 32bit or 64bit)?
Vista

Which Database Type (MySQL, MS Access, SQLite - If Access, 32bit or 64bit)?
SQLite 

Original issue reported on code.google.com by mono...@gmail.com on 9 Jul 2011 at 9:46

GoogleCodeExporter commented 8 years ago
I am not sure how to do this. I will do some investigation

Original comment by DennisMackayFisher on 12 Jul 2011 at 9:05

GoogleCodeExporter commented 8 years ago

Original comment by DennisMackayFisher on 1 Aug 2011 at 11:01

GoogleCodeExporter commented 8 years ago
Would this work? Could the suspend start and stop have check boxes, that way 
anyone using their PC in the evening can only set a wakeup time and not a 
suspend time allowing them to manually put the PC to sleep but still allowing 
it to wake up by itself.

No idea if this can be done but could provide a fix.

Original comment by asor...@gmail.com on 22 Sep 2011 at 11:54

GoogleCodeExporter commented 8 years ago
If you set "Suspend Type" to "Idle" PVBC will stop all activity at the "Stop" 
time  and recommence at the "Start" time. If you also check "Auto Resume from 
Manual Suspend", and you manually suspend the machine, it will wake 
automatically at the configured "Start" time.

I think this achieves the behaviour you describe.

Dennis M-F

Original comment by DennisMackayFisher on 23 Sep 2011 at 12:11

GoogleCodeExporter commented 8 years ago

Original comment by DennisMackayFisher on 4 Dec 2012 at 7:21