google / PS3ControllerAutoSleep

AppleScript turning off PS3 controller when Mac goes to sleep

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is not an official Google product.

PS3ControllerAutoSleep

Disconnects PS3 Bluetooth controller when Mac OS runs screen saver. Fixes a known problem: Mac OS can not sleep when PS3 Controller is connected via bluetooth.

Known to work on English Mac OS X Mavericks and Yosemite.

Installation Instructions

  1. Open Security & Privacy in System Preferences
  2. Select Accessibility and enable PS3ControllerAutoSleep application
  3. Open Users & Groups in System Preferences
  4. Check your Login Items and drag & drop PS3ControolerAutoSleep application into this list
  5. Use Hide checkbox to not to show this app in the Dock
  6. Open Bluetooth in System Preferences
  7. Verify that Bluetooth is shown in menu bar
  8. Don't forget to restart, or at least log out once

Known issue

I have not found a way to save an app as an editable file and make it stay open. I've created a wrapper app, which continues its execution:

	on idle
		run script (((POSIX path of (path to me)) & "../PS3ControllerAutoSleep.applescript") as POSIX file)
		return 60
	end idle

About

AppleScript turning off PS3 controller when Mac goes to sleep

License:Apache License 2.0


Languages

Language:AppleScript 100.0%