DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: DONE: Replacement Power Options applet  (Read 58,792 times)

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: IDEA: Replacement Power Options applet
« Reply #25 on: January 18, 2007, 11:43 PM »
np, couldn't sleep anyway - long live insomnia ;)

EDIT: why do you use the loop thing to construct the idletime variable, instead of just doing DllCall("Kernel32.dll\GetSystemTimes", "*UInt64", idletime, "*Uint64", dummy1, "*Uint64", dummy2) and getting it directly?
- carpe noctem
« Last Edit: January 18, 2007, 11:47 PM by f0dder »

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,073
    • Cody Award
    • Furry Fandom Badge - Furry Fandom
Re: IDEA: Replacement Power Options applet
« Reply #26 on: January 19, 2007, 12:03 AM »
Right it allows my computer to go to sleep (and hibernate after a couple of hours) - the proof of the pudding will be to see what happens when I load the CPU for a long period - I'll try that tomorrow.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Replacement Power Options applet
« Reply #27 on: January 19, 2007, 12:33 AM »
:)
Quote
why do you use the loop thing

I missed that information in the excitement, f0dder! So you've been reading the AHK manual, have you?

The code isn't mine, I pretty much borrow everyone else's work.

I've posted your findings on the AHK forum. Maybe you should post your final GetCpuLoad code there?

Skrommel
« Last Edit: January 19, 2007, 12:36 AM by skrommel »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Replacement Power Options applet
« Reply #28 on: January 19, 2007, 12:45 AM »
:tellme: f0dder, was the SetAffinity required?

Skrommel

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: IDEA: Replacement Power Options applet
« Reply #29 on: January 19, 2007, 12:52 AM »
I'm not sure the SetAffinity() is required - can't remember if GetTickCount() is affected by the TSC weirdness. Heading off to bed, so don't have time for testing either right now :) - don't think it's necessary in this case, though.
- carpe noctem

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,073
    • Cody Award
    • Furry Fandom Badge - Furry Fandom
Re: IDEA: Replacement Power Options applet
« Reply #30 on: January 19, 2007, 03:11 PM »
Right it allows my computer to go to sleep (and hibernate after a couple of hours) - the proof of the pudding will be to see what happens when I load the CPU for a long period - I'll try that tomorrow.

Hmmm ... the pudding just burst.

To keep my system busy I ran a stress tester (the nVidia stress test which stresses most system components in a continuous loop) for 2 hours but LowToSleep didn't manage to keep the computer awake ? CPU usage was continuously high throughout.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Replacement Power Options applet
« Reply #31 on: January 19, 2007, 08:01 PM »
:tellme: My problem was the oposite... How does LowToSleep v1.5 work?

Skrommel

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,073
    • Cody Award
    • Furry Fandom Badge - Furry Fandom
Re: IDEA: Replacement Power Options applet
« Reply #32 on: January 20, 2007, 12:15 AM »
I haven't left it long enough to see if it hibernates but it still turns off the screen and hard discs (set up in Power Options Applet), which it shouldn't do, so I suspect it will still hibernate at the appropriate time.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Replacement Power Options applet
« Reply #33 on: January 20, 2007, 07:14 AM »
:tellme: Hmmm... On my FSC Amilo laptop it behaves like it should. Could there be different power save implementations depending on brand?

Try lowering the idleduration=30 or =1 to test it, and see if that makes a difference.

Skrommel

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,073
    • Cody Award
    • Furry Fandom Badge - Furry Fandom
Re: IDEA: Replacement Power Options applet
« Reply #34 on: January 20, 2007, 11:59 AM »
Nope - changed it to 1 and it made no difference.

Here is my Power Options applet:

po.jpg

The battery options are because I have a USB UPS which WinXP recognises as a battery.
« Last Edit: January 20, 2007, 12:01 PM by Carol Haynes »

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Re: IDEA: Replacement Power Options applet
« Reply #35 on: January 20, 2007, 02:12 PM »
Seems like something else is going on.  Have you tried moving your mouse at the right time?
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: December 08, 2009, 11:23 PM by CodeTRUCKER »

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,073
    • Cody Award
    • Furry Fandom Badge - Furry Fandom
Re: IDEA: Replacement Power Options applet
« Reply #36 on: January 20, 2007, 03:59 PM »
I think that is pretty much what the script does (see the MAKENOISE subroutine) except that I think it is done by keyboard activity rather than mouse.

Trouble is it doesn't seem to work for me.

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Re: IDEA: Replacement Power Options applet
« Reply #37 on: January 20, 2007, 04:26 PM »
I'm still waiting to see if mine will give up.
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: December 08, 2009, 11:22 PM by CodeTRUCKER »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Replacement Power Options applet
« Reply #38 on: January 21, 2007, 02:18 AM »
:tellme: I've added mouse noise to LowToSleep v1.6.

Please delete your existing ini file before running.

Skrommel

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Re: IDEA: Replacement Power Options applet
« Reply #39 on: January 21, 2007, 05:08 AM »
Works on my end.  Maybe you shoud try it again.  Are you running XP in an emulator, say on a Mac?
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: December 08, 2009, 11:20 PM by CodeTRUCKER »

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,073
    • Cody Award
    • Furry Fandom Badge - Furry Fandom
Re: IDEA: Replacement Power Options applet
« Reply #40 on: January 21, 2007, 11:36 AM »
Thanks I'll give it a go.

No I am just running 32 bit Windows XP Pro natively.

MerleOne

  • 4D thinking
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 957
Re: IDEA: Replacement Power Options applet
« Reply #41 on: December 16, 2010, 02:18 PM »
Hi,

I just want to report that LowtoSleep, which I use all the time, is being detected as malware by yesterday's Avast 5 signatures.  I was able to exclude it from detections, and informed Avast, but they didn't acknowledge what I sent them.

Hope this get resolved soon.
.merle1.

Original address: https://www.donationcoder.com/forum/index.php?topic=6586.0