Skip to content

noisescience/leap-recovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leap Motion V1 Emergency Recovery Script

License: MIT Platform

A macOS solution to fix the recurrent disconnection issue with Leap Motion Controller V1, eliminating the need for full system reboots.

Created by noise science


📋 Overview

The Leap Motion V1 controller sometimes becomes unresponsive and disconnects, requiring a complete system reboot to restore functionality. This script provides a quick recovery solution by:

  • Forcefully terminating stuck processes (UVCAssistant on macOS)
  • Restarting the Leap Motion daemon/service
  • Reinitializing the device connection

Result: Device recovery in seconds instead of minutes of downtime from rebooting.

📥 Prerequisites

Before using this script, you need to install the Leap Motion V1 SDK:

Download Links:

Recommended Version: Leap Motion SDK v2.3.1 (Last stable V1 release)

Note: Official Ultraleap download links are currently non-functional. The TechSpot mirror provides the v2.3.1 installer that's required for V1 controller compatibility.


🚀 Quick Start

macOS (Recommended Method)

Option 1: Double-Click Method (Easiest)

  1. Download leap-recovery.command
  2. Double-click the file
  3. Enter your password when prompted
  4. Wait for recovery to complete

Option 2: Terminal Method

chmod +x leap-recovery.sh
sudo ./leap-recovery.sh

📦 Installation

Download Files

Choose the appropriate file(s) for your platform:

Platform File Description
macOS leap-recovery.command Double-clickable (easiest)
macOS leap-recovery.sh Terminal version

Make Executable (macOS)

chmod +x leap-recovery.command
chmod +x leap-recovery.sh

🎯 When to Use

Use this script when you experience:

  • ❌ Leap Motion device not detected
  • ❌ "Device disconnected" errors
  • ❌ Control panel shows no device
  • ❌ Applications cannot connect to Leap Motion
  • ❌ Device was working but suddenly stopped

📝 Requirements

  • Leap Motion V1 SDK installed
  • Administrator/root privileges

🔧 How It Works

macOS Process

  1. Kill UVCAssistant (5 iterations to ensure termination)

    • This process sometimes gets stuck in newer macOS versions
  2. Stop leapd daemon

    • Gracefully terminates the Leap Motion daemon
  3. Unload/Reload Service

    • Uses launchctl to restart the daemon cleanly

🐛 Troubleshooting

Script Won't Run

macOS:

# Make sure it's executable
chmod +x leap-recovery.command
# Or run with bash explicitly
bash leap-recovery.command

"Permission Denied" Errors

  • macOS: Always run with sudo

📄 License

MIT License

Copyright (c) 2025 noise science

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

🤝 Contributing

Found a bug or have a suggestion? Feel free to:

  • Open an issue on GitHub
  • Submit a pull request
  • Contact noise science

⚠️ Disclaimer

This is an unofficial community-created tool. It is not affiliated with or endorsed by Leap Motion or Ultraleap. Use at your own risk.

Important Notes:

  • Always save your work before running system-level scripts
  • This script requires administrator privileges
  • Test in a safe environment first
  • Keep backups of important data

📊 Tested Platforms

Platform Version Status
macOS Ventura 13.x ✅ Verified

🙏 Acknowledgments

  • Created by noise science to solve persistent Leap Motion V1 disconnection issues
  • Urged by the need for a quick recovery solution without system reboots for live performances

Made with ❤️ by noise science

About

Leap Motion v1 - Emergency Recovery Script for macOS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages