macbook professional – Routinely lock display screen, however don’t fall asleep, when lid is closed


In an identical, however not duplicate, vein to Listening to music with MacBooks lid closed, I would like to have the ability to take heed to music with my 2019 MacBook Professional’s lid closed. However I can not settle for the compromise of dropping the automated display screen lock by merely having the MacBook not fall asleep.

In distinction, if I activate display screen lock manually (I’ve it mapped to the Contact Bar, so by no matter mechanism that’s), my music retains taking part in. I can play/pause it utilizing the touchbar or my Bluetooth headphones and management quantity this manner too. That is precisely the expertise I need to have, however I would like to have the ability to have it with the lid closed.

It will seem that pmset, which is what permits you to disable sleep on lid shut, just isn’t the one household of instruments I would like right here, as a result of it’s about managing energy states and never about monitoring any {hardware} occasions per se. I do not actually care what energy state my MacBook is in when the lid is closed. (I imply I hope it is not hogging the battery too dangerous simply taking part in some audio, however I haven’t got any arduous drives I am apprehensive about being in use whereas transferring it round or something like that – it does not must be asleep and I belief it to not burn itself up that method as a result of this can be a good working system.) I simply need lid near set off a display screen lock, principally, and likewise not a sleep.

Beneath Linux-y sort environments this may be achieved (undecided how however I do know there are lid occasions for dbus, which is a part of the spine of all trendy Linux show managers), however I am clueless as to obtain this explicit factor.


Please enter your comment!
Please enter your name here