Giter Site home page Giter Site logo

Comments (6)

gopipal avatar gopipal commented on June 18, 2024 4

Running this command somehow makes this work. But the article says either use the app or these commands. The problem with running this command is that even after my session ends my laptop won't sleep, causing battery to drain faster than otherwise it would have.

sudo pmset -a disablesleep 1

from amphetamine-enhancer.

MichaelReaNZ avatar MichaelReaNZ commented on June 18, 2024 1

If you
sudo pmset -a disablesleep 0

It turns it off.

0 is off and 1 is on (binary)

from amphetamine-enhancer.

rafaelmaeuer avatar rafaelmaeuer commented on June 18, 2024 1

I have another issue that might be related: I am using my M1 MacBook in clamshell-mode, connected to power (via USB-C) and 2 external Displays (via an 2x USB-C to HDMI Adapter). When I enable an Amphetamine-Session both displays instantly become black and music playback stops. It seems the MacBook is going to sleep mode when enabling an Amphetamine-Session. I already tried to disable option "Enable Sleep when display is closed" in Amphetamine-Settings and installed Amphetamine-Enhancer and its scripts. Nothing fixed it so far... any ideas?

Edit: just had another strange effect, after closing Amphetamine App, both displays and music playback shortly stopped, displays came back after 1 second, playback keeps stopped.

Will keep using caffeine until this issue is fixed although it doesn't run native on M1 and requires emulation with rosetta 2...

from amphetamine-enhancer.

MichaelReaNZ avatar MichaelReaNZ commented on June 18, 2024

Thank you so much for this solution.

from amphetamine-enhancer.

kenchoong avatar kenchoong commented on June 18, 2024

It not working in Macbook Pro M2 either

the above command is working

from amphetamine-enhancer.

zankarne avatar zankarne commented on June 18, 2024

I have the same issue. M1 Pro MBP, Trackpad via BT, Keyboard via usb-c.
Session is set to indefintely, lid is closed, monitor connected via DP/usb-c.
when I disconnect the power supply the display goes black and I have to reconnect to power?

from amphetamine-enhancer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.