Windows wakes up from sleep #8806

issue drake127 opened this issue on September 25, 2016
  1. drake127 commented at 10:14 AM on September 25, 2016: none

    After installing the latest version of Bitcoin Core, the computer won't stay in sleep mode for more that a minute or so. It goes to sleep just fine but it is woken up by bitcoin-qt.exe soon afterwards. I believe the issue is reproducible with any modern Windows OS.

    Steps to reproduce below:

    1. Install BitCoin Core 0.13.0 x64
    2. Wait for it to sync with network and have active connections.
    3. Hide BitCoin Core to tray.
    4. Put the computer to sleep.

    Expected behavior

    Computer stays in sleep

    Actual behavior

    Computer is awoken soon afterwards with following event: bitcoin.zip

    What binary version was used (official or self compiled)

    0.13.0 x64 official

    Machine specs: CPU, RAM, Disk space & OS (Windows, OS X, Linux)

    Windows 8.1 Pro x64

  2. laanwj added the label Windows on Sep 25, 2016
  3. laanwj commented at 1:20 PM on September 25, 2016: member

    This may help: http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/machine-keeps-resuming-from-sleep/c132b6b4-bd8b-4642-aacb-7dd5155c0128

    No idea why it would point at bitcoin-qt.exe as wake-source, there is no code to wake on activity or take a wake-lock or such.

  4. drake127 commented at 2:42 PM on September 25, 2016: none

    If I turn Bitcoin off, the sleep starts to work. IIRC there used to be similar bug in Boost libraries where simple sleep (or was it wait_for()) was able to wake up the PC.

    Edit: As I look at source code, it might be the exactly same issue as I noticed reference to Boost 1.59.0. It's already fixed in 1.60.0 - see https://svn.boost.org/trac/boost/ticket/11368.

  5. laanwj commented at 3:57 PM on September 25, 2016: member

    Ok, yes, currently building using 1.59, we should probably bump boost to 1.61 for 0.14

  6. MarcoFalke added the label Upstream on Sep 25, 2016
  7. fanquake commented at 4:35 AM on October 5, 2016: member

    Now that depends Boost has been bumped in master, is this enough of an issue that it needs back-porting for 0.13.1 ?

  8. drake127 commented at 4:30 PM on October 5, 2016: none

    I certainly wouldn't mind. It's quite annoying bug if one turns off his computer at night.

  9. laanwj commented at 5:54 PM on October 6, 2016: member

    @fanquake in that case the specific change should be backported in boost and tested, I think it's a bad idea to just do a blanket update of boost on a backport release.

  10. achow101 commented at 1:14 PM on October 10, 2016: member

    I can't replicate this. It may be be due to the Wi-Fi on my laptop shutting off on sleep. Or it could be that I am not synced yet.

    Edit: Was able to replicate on my desktop.

  11. MarcoFalke commented at 9:00 PM on October 17, 2016: member

    I am assuming this is fixed after #8899?

  12. achow101 commented at 9:08 PM on October 17, 2016: member

    Yes, this is fixed now.

  13. MarcoFalke closed this on Oct 17, 2016

  14. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me