May 14, 2011

koahnig koahnig
Area 51 Engineer
2891 posts

avoid entering energy saving mode

 

I have an application using Qt for TCP/IP communication. The application is receiving real-time data through the tcp/ip bascially until the application is stopped.
Unfortunately, is the Windows 7 energy saving option hibernating the system while the application is still running. After waking up the application sometimes even seem to continue the receiption the real-time data. However, always a gap in the data will occur.
Is there a possibility to suspend the energy saving through Qt?

2 replies

May 14, 2011

Gerolf Gerolf
Robot Herder
3252 posts

I think you have to use the native Win32 API for that.

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

May 14, 2011

Tobias Hunger Tobias Hunger
Robot Herder
3386 posts

You will need platform specific code to disable energy saving.

 
  ‹‹ Use changed spinbox-value in another void-function      Target multiples MacOS X version with one computer ››

You must log in to post a reply. Not a member yet? Register here!