Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Windows 8.1 - 10 Tablet (Connected Standby, AOAC, Modern Standby or else...)

Windows 8.1 - 10 Tablet (Connected Standby, AOAC, Modern Standby or else...)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 523 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andulek
    wrote on last edited by
    #1

    Hello,

    actually i dont know if this question is directly QT related or not, but anyway here goes the question...
    i write an application that will run on Windows tablet PC's that have some kind of a new Connected Standby mode..

    i am successfully able to put my tablet to sleep on some conditions like AC power loss ot QTimer timeout, using this:

    SendMessageA(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
    

    but i have a seriuos problem bringing it back to "working mode" as during this sleep period QT Application is not active,
    so any QTimer's are not working, any SerialPort data is not working and so on...

    Do somebody knows any sort of workaround to keep Qt application active, or atleast a QThread active DURING
    connected standby phase, so i can monitor QTimers, and issue wake-up command to Windows system.
    wake up code is:

    SendMessageA(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1);
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved