czarny / brisync

Control brightness of external display on macOS and OSX automatically
MIT License
240 stars 16 forks source link

[Temporary fix] Brisync stops working after screensaver is enabled or display turnoff #44

Closed 0x0a0d closed 2 years ago

0x0a0d commented 3 years ago
  1. Open Automator.app (/Applications/Automator.app)
  2. Create task as below. Then press Cmd+S, save it (I named it Brisync-Auto.app)
    /usr/bin/killall Brisync; true

    image

  3. Create file ~/Library/LaunchAgents/brisync.plist. Enter this content
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>brisync</string>
    <key>KeepAlive</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/open</string>
        <string>/Applications/Brisync-Auto.app</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>

    Do not forget correct path: /Applications/Brisync-Auto.app

  4. Load created Service at step 3
    launchctl load ~/Library/LaunchAgents/brisync.plist

    If you reload service, you must call launchctl unload ~/Library/LaunchAgents/brisync.plist before

0x0a0d commented 3 years ago

This automator task will be execute every time when you sign-in It kill brisync.app and relaunch it simple!

anthonyrisinger commented 2 years ago

I think this might be solved by https://github.com/czarny/brisync/commit/d55cbf4084bd4d047dfd697830d8b91acc1a1e19 -- not part of recent 1.3.1 release -- I've been running a dev build for a week or more without issue, and it, combined with a a similarly unreleased 100% bugfix, solved a long-standing nuisance every time my MBP woke up.