{"action":"closed","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1694","repository_url":"https://api.github.com/repos/Hammerspoon/hammerspoon","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1694/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1694/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1694/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/1694","id":299171320,"number":1694,"title":"USBWatcher possibly interfering with wake and sleep?","user":{"login":"sjml","id":1638331,"avatar_url":"https://avatars3.githubusercontent.com/u/1638331?v=4","gravatar_id":"","url":"https://api.github.com/users/sjml","html_url":"https://github.com/sjml","followers_url":"https://api.github.com/users/sjml/followers","following_url":"https://api.github.com/users/sjml/following{/other_user}","gists_url":"https://api.github.com/users/sjml/gists{/gist_id}","starred_url":"https://api.github.com/users/sjml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjml/subscriptions","organizations_url":"https://api.github.com/users/sjml/orgs","repos_url":"https://api.github.com/users/sjml/repos","events_url":"https://api.github.com/users/sjml/events{/privacy}","received_events_url":"https://api.github.com/users/sjml/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-21T23:42:53Z","updated_at":"2018-02-22T17:33:32Z","closed_at":"2018-02-22T17:33:32Z","author_association":"NONE","body":"I have a 13\" MBP with TouchBar that I've been running Hammerspoon on for a while. Lately it's had trouble waking from sleep if it's connected to a USB hub. (Sadly not uncommon with these machines, but nobody can seem to pinpoint a problem.) \r\n\r\nHOWEVER, I've found that if I'm not running Hammerspoon, it works fine. \r\n\r\nMy best guess would be that [this](https://github.com/sjml/dotfiles/blob/d2f19477c48b5aec59b5fe525dc5ccfcf88f7b6f/hammerspoon.symlink/hub-handler.lua) is the offending script, something with the `usb.watcher`. (The script looks for my hub and places an eject button in the menu bar to spit out all its disks.) \r\n\r\nObviously I like Hammerspoon and would like to keep using it. I'm a _little_ skeptical about this being the problem, but it does seem to have mitigated it for the time being. My question is: is there something obvious in this script that I'm doing which is egregiously wrong? More likely it's something in macOS that's acting up, but it's getting triggered by something Hammerspoon or I are doing. "}}
{"actor":{"display_login":"sjml"}}