gui: add tip for macOS users to disable auto suspend when display is off while plugged in #16125

issue Sjors openend this issue on May 30, 2019
  1. Sjors commented at 11:06 am on May 30, 2019: member

    We’ve solved the App Nap problem in #12783 which caused Bitcoin QT to dramatically slow down syncing if it’s in the background. This affect all (modern) macOS users.

    There’s another problem however, which is that by default MacBooks suspend when the display is off, even when plugged into a power socket. This causes IBD to pause, which is annoying if you’re trying to sync at night.

    https://support.apple.com/en-qa/HT202824

    Suggest solution: add a (macOS-only?) notice to the synchronization modal suggesting that laptop users turn on “Prevent computer from sleeping automatically when the display is off”. It’s not necessary to change the hard disk suspension default.

    I don’t know if Apple exposes an API to detect this setting. I’m generally not in favor of OS specific modifications, but initial block download is a painful enough issue that small hints like this really help.

  2. fanquake added the label GUI on May 30, 2019
  3. fanquake added the label macOS on May 30, 2019
  4. promag commented at 7:27 pm on June 2, 2019: member
    @Sjors it does and looks quite simple https://stackoverflow.com/a/8461182. I guess in windows it could also prevent sleep?
  5. fanquake renamed this:
    [GUI] add tip for macOS users to disable auto suspend when display is off while plugged in
    gui: add tip for macOS users to disable auto suspend when display is off while plugged in
    on Aug 21, 2019
  6. luke-jr commented at 2:14 pm on May 18, 2020: member
    I could see this leading to laptops overheating in laptop bags, while the user assumes they will be asleep. Need some extra care.
  7. Sjors commented at 8:39 am on May 19, 2020: member
    @luke-jr been there, done that, but that wasn’t a Mac :-) This macOS setting is exclusively for laptops that are plugged in (Power Adapter). I also suspect, but haven’t tested, that when you close the lid, it will sleep.
  8. jonasschnelli commented at 8:55 am on May 19, 2020: contributor
    Would it make sense to implement the kIOPMAssertionTypeNoIdleSleep flag? Ideally, users can change that via the Bitcoin Core settings (ideally enabled by default).
  9. fanquake commented at 9:48 am on May 19, 2020: member

    Would it make sense to implement the kIOPMAssertionTypeNoIdleSleep flag?

    There’s some discussion on this in #16145.

  10. fanquake commented at 7:20 am on August 10, 2020: member
    I think us adding code for macOS specific power-management is very unlikely. If we want to add a macOS specific tip/warning to the GUI, that can now be discussed in the GUI repo. Can you port this issue over there is you’d like to follow up.
  11. fanquake closed this on Aug 10, 2020

  12. DrahtBot locked this on Feb 15, 2022

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: 2024-10-30 00:12 UTC

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