noclamshell: Not working on Macbook Pro / High Sierra / Apple Thunderbolt Display

Hey! Not sure why, but it’s not working for me (which is devastating, because this is the only coherent solution I’ve found to our shared problem).

MacBook Pro (Retina, 13-inch, Late 2013) macOS High Sierra v 10.13.1

I’m using an 27-inch Apple Thunderbolt Display which is also the source of power to the laptop.

I’ve tried restarting my computer and confirmed that noclamshell is running on start. But closing my laptop lid just causes the external monitor to flicker before turning back on and staying on =/.

$ brew services start noclamshell
Service `noclamshell` already started, use `brew services restart noclamshell` to restart.
$ brew services restart noclamshell
Stopping `noclamshell`... (might take a while)
==> Successfully stopped `noclamshell` (label: homebrew.mxcl.noclamshell)
==> Successfully started `noclamshell` (label: homebrew.mxcl.noclamshell)
$ 

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 26 (15 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve played with it a little more. The result is in this PR. Tested on Macbook Pro (Catalina) and Macbook Air (Big Sur).

I’ve cut a release 1.2, so all you have to do to get this update is:

brew upgrade noclamshell

Hi. I think it could be possible to determine if the laptop is in asleep mode so we could get rid of the file. I’ve checked the difference in the output of pmset -g powerstate for the awake and the asleep states.

The awake state AppleDisplay 3 3 USEABLE ... IODisplayWrangler 4 4 USEABLE The asleep state AppleDisplay 0 0 None ... IODisplayWrangler 1 4 None

It seems like people use both values (AppleDisplay or IODisplayWrangler) to determine the current state.

@pirj Is it possible to change the installed noclamshell script so I could check if it works?