Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“Stay Awake” setting in OnlySwitch prevents Mac from sleeping even after disabling the feature #157

Open
riethmue opened this issue Jan 29, 2025 · 0 comments

Comments

@riethmue
Copy link

riethmue commented Jan 29, 2025

I am a huge fan of OnlySwitch and I want to take a moment to express my gratitude for this amazing tool!

Describe the bug
After enabling the “Stay Awake” feature in OnlySwitch, the Mac is unable to sleep, even after disabling the “Stay Awake” option. The system is stuck in an awake state, and sleep-related commands from the terminal fail to work as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Go to OnlySwitch settings.
  2. Enable the “Keep Awake” option and choose “Never.”
  3. In the OnlySwitch menu bar, enable the “Stay Awake” option.
  4. Observe that the system will no longer go to sleep, even after disabling the “Stay Awake” option, force quit OnlySwitch and rebooting the system. See workaround for manuel fix.

Terminal Output:
When attempting to manually put the system to sleep via terminal commands:

$ pmset sleepnow
Unable to sleep system: error 0xe00002e2

Expected behavior
After disabling the “Stay Awake” option, the system should be able to enter sleep mode as expected.

Desktop (please complete the following information):

    System Software Overview:
    System Version: macOS 15.2 (24C101)
    Kernel Version: Darwin 24.2.0
    Boot Volume: Macintosh HD
    Boot Mode: Normal

    Hardware Overview:
    Model Name: MacBook Pro
    Model Identifier: MacBookPro18,3
    Model Number: Z15G00090D/A
    Chip: Apple M1 Pro
    Total Number of Cores: 10 (8 performance and 2 efficiency)
    Memory: 32 GB
    System Firmware Version: 11881.61.3
    OS Loader Version: 11881.61.3

Workaround
sudo pmset -a disablesleep 0

@riethmue riethmue changed the title Bug: “Stay Awake” setting in OnlySwitch prevents Mac from sleeping even after disabling the feature “Stay Awake” setting in OnlySwitch prevents Mac from sleeping even after disabling the feature Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant