activitywatch icon indicating copy to clipboard operation
activitywatch copied to clipboard

multiple spurious window events logged on mac after updating to monterey 12.2

Open efd6 opened this issue 3 years ago • 3 comments

  • [x] I am on the latest ActivityWatch version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • OS name and version: macOS Monterey 12.2
  • ActivityWatch version: v0.11.0

Describe the bug

After upgrading macOS to 12.2 yesterday, multiple short (~45-50s) events are constantly logged while the machine is inactive resulting in significant over-estimates of activity time. These are presumably due to changes in the way the OS is notifying of window events. The events are associated with an application, but never have a window name (so they are filterable after the fact).

To Reproduce

Expected behavior

No or few events while sleeping.

Documentation

Screen Shot 2022-02-03 at 19 04 46

Logs do not look significantly different before and after the change in behaviour.

Additional context

efd6 avatar Feb 03 '22 08:02 efd6

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Feb 03 '22 08:02 github-actions[bot]

After some experimentation, this appears to be a change in Bluetooth wake behaviour; if I leave my mouse off, this no longer happens. Unfortunately macos no longer appears to have an option to prevent bt wake events.

This looks related: https://www.macrumors.com/2022/01/30/macos-12-2-bluetooth-battery-drain/

efd6 avatar Feb 03 '22 21:02 efd6

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 25 '23 05:03 stale[bot]