LidLifter is a macOS LaunchDaemon crafted to keep your MacBook awake when in Clamshell mode (lid closed), particularly when connected to AC power. It prevents your MacBook from sleeping with the lid closed, ensuring uninterrupted workflows for developers, presenters, and users of external displays.
Beyond MacBooks, LidLifter extends its utility to any macOS device connected to AC power, allowing users to maintain continuous operation even when the lid is closed. Whether you're presenting slides, running lengthy computations, or managing servers remotely, LidLifter provides the reliability you need.
To install LidLifter onto your macOS system:
-
Open Terminal.
-
Download the
.plist
File:- Use
curl
to downloadau.byrnes.jd.lidlifter.plist
from GitHub:sudo curl -o /Library/LaunchDaemons/au.byrnes.jd.lidlifter.plist \ https://raw.githubusercontent.com/realJoshByrnes/lidlifter/main/au.byrnes.jd.lidlifter.plist
- Use
-
Load the LaunchDaemon:
- Start LidLifter to prevent macOS from sleeping in Clamshell mode:
sudo launchctl load -w /Library/LaunchDaemons/au.byrnes.jd.lidlifter.plist
- Start LidLifter to prevent macOS from sleeping in Clamshell mode:
-
Open Terminal.
-
Check the LaunchDaemon status:
- Check the current state of LidLifter:
sudo launchctl print system/au.byrnes.jd.lidlifter | grep 'job state'
- Check the current state of LidLifter:
To temporarily disable LidLifter and allow macOS to sleep when connected to AC power:
-
Open Terminal.
-
Unload the LaunchDaemon:
- Stop LidLifter from preventing macOS from sleeping.
sudo launchctl unload -w /Library/LaunchDaemons/au.byrnes.jd.lidlifter.plist
- Stop LidLifter from preventing macOS from sleeping.
To enable LidLifter again after disabling it:
-
Open Terminal.
-
Load the LaunchDaemon:
- Start LidLifter to prevent macOS from sleeping when connected to AC power:
sudo launchctl load -w /Library/LaunchDaemons/au.byrnes.jd.lidlifter.plist
- Start LidLifter to prevent macOS from sleeping when connected to AC power:
To uninstall LidLifter from your macOS system:
-
Open Terminal.
-
Unload the LaunchDaemon:
- Stop LidLifter from running:
sudo launchctl unload -w /Library/LaunchDaemons/au.byrnes.jd.lidlifter.plist
- Stop LidLifter from running:
-
Remove the LaunchDaemon File:
- Delete
au.byrnes.jd.lidlifter.plist
from/Library/LaunchDaemons/
:sudo rm /Library/LaunchDaemons/au.byrnes.jd.lidlifter.plist
- Delete