Page 1 of 1
Disable Idle Timer While Reading Disks
Posted: Tue Feb 05, 2013 11:35 pm
by nickbits
It would be great if you put:
SetThreadExecutionState(ES_SYSTEM_REQUIRED);
In your read loop.
Thanks!
--nick
Re: Disable Idle Timer While Reading Disks
Posted: Wed Feb 06, 2013 8:02 am
by mike admin
It does that already, as GUI is open-source you can download the source and check for yourself

/download/makemkv-oss-1.7.10.tar.gz
Re: Disable Idle Timer While Reading Disks
Posted: Wed Feb 06, 2013 4:32 pm
by nickbits
Hmm... I swear my computer is going to sleep during a read and when I wake it up it would continue reading.
It is possible it enters sleep mode during a retry sequence? I didn't follow the source close enough to see if it calls notifyUpdate during retires. I have my retires set really high and it can take a long time and I think the last time I remember that happening the disk was bad.
Re: Disable Idle Timer While Reading Disks
Posted: Thu Feb 07, 2013 9:59 am
by mike admin
nickbits wrote:I have my retires set really high and it can take a long time and I think the last time I remember that happening the disk was bad.
You are probably right. Bug noted.