Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iOSUser7

macrumors 6502a
Jun 23, 2014
662
616
I'm wondering if that can be done too. It doesn't seem like it require special hardware I think it's more like a stupid Apple decision to make older hardware obsolete.
 
  • Like
Reactions: Feyl

fisherking

macrumors G4
Jul 16, 2010
11,252
5,561
ny somewhere
if night shift requires a newer os, it could be because... it requires a newer os. f.lux is great, same idea. download and run that. simple!
 

sqvarepants

macrumors member
Original poster
Nov 24, 2014
39
4
Madrid
I have an iMac from 2011 and I can make things that apple doesn't allow because it's old, like handoff continuity unlock by Apple Watch, night shift sooner or later would be available for unsupported devices, like everything apple decides that your mac its old and you need to buy a new one.

I only want to ask if some one tried this link o read anything, I know lfux I use it but If i can have it in macOS would be great, not just a function capable by software stupid restriction
 

iOSUser7

macrumors 6502a
Jun 23, 2014
662
616
if night shift requires a newer os, it could be because... it requires a newer os. f.lux is great, same idea. download and run that. simple!
What do you mean by "newer os" ? We are indeed talking about the latest 10.12.4 that doesn't have Night Shift on older devices. And I already tried f.lux but didn't really liked it, I prefer the way Apple makes it, it's much more simple and easier to understand but thanks for the suggestion.
 

fisherking

macrumors G4
Jul 16, 2010
11,252
5,561
ny somewhere
What do you mean by "newer os" ? We are indeed talking about the latest 10.12.4 that doesn't have Night Shift on older devices. And I already tried f.lux but didn't really liked it, I prefer the way Apple makes it, it's much more simple and easier to understand but thanks for the suggestion.

right, got it. but i will say this, i used f.lux for years; set it as a login item, and it works great. outside of being baked into the OS, night shift's end result is not really different than f.lux. not sure what problem you'd have with it...
 

ryanmcv

macrumors 6502a
Aug 12, 2007
850
545
Phoenix, AZ
I followed the steps in the link and it worked perfectly on my early 2011 MacBook Pro. The process is a bit technical, so I created step-by-step instructions to make it easier to follow. You will need to install Xcode or any basic hex editor. Hope this helps someone!

View the steps here:

https://pikeralpha.wordpress.com/2017/01/30/4398/#comment-9146
 
Last edited:

sqvarepants

macrumors member
Original poster
Nov 24, 2014
39
4
Madrid
Thanks for your guide ryanmcv ,

I'm trying on my iMac 2011 > 12.1, so I replace "0d" by 12, do all steps but nothing happens, no night shift option
 

fisherking

macrumors G4
Jul 16, 2010
11,252
5,561
ny somewhere
I followed the steps in the link and it worked perfectly on my early 2011 MacBook Pro. The process is a bit technical, so I created these step-by-step instructions to make it easier to follow. You will need to install Xcode or any basic hex editor. Hope this helps someone!

  1. Disable System Integrity Protection by booting into Recovery mode (hold down Command + R during boot-up), opening Terminal, and typing csrutil disable
  2. Restart your Mac and open Finder. Navigate to System/Library/PrivateFrameworks/
  3. Make a copy of the entire CoreBrightness.framework folder (save it to your desktop or a similar place).
  4. In Xcode, open the copy of CoreBrightness.framework that you just created. File > Open; Browse to where you just saved CoreBrightness.framework; from within that .framework folder, choose the CoreBrightness icon at the top that looks like a shortcut.
  5. In Xcode, press Shift + Command + J on your keyboard. A navigation column will appear on the left-hand side. Secondary/right-click CoreBrightness at the top of that column and choose Open As > Hex.
  6. Once the hex code appears, press Command + F to open the Find tool. Search for the following: 09 00 00 00 0d 00 00 00 06 00 00 00 05 00 00 00 06 00 00 00 08 00 00 00
  7. These numbers tell the system which Mac models can used Night Shift. I've color-coded the model numbers with the corresponding hex digits above:

    MacBookPro9,x
    iMac13,x
    Macmini6,x
    MacBookAir5,x
    MacPro6,x
    MacBook8,x

  8. In my case, I needed to allow my early 2011 MacBook Pro (MacBookPro8,2) to use Night Shift. So, in Xcode, I changed 09 to 08. You will need to find the exact model number of your Mac and make the adjustment in Xcode accordingly.
  9. Save the file in Xcode (File > Save) and exit. Copy your newly-edited CoreBrightness.framework folder over the existing one in System/Library/PrivateFrameworks/
  10. Open Terminal and re-sign the new binary by pasting in this command:
    Code:
    sudo codesign -f -s - /S*/L*/PrivateFrameworks/CoreBrightness.framework/Versions/Current/CoreBrightness
  11. Boot back into Recovery mode and re-enable System Integrity Protection (open Terminal and type csrutil enable).
  12. Restart your Mac, open System Preferences > Displays, and you should see the Night Shift tab.

....or you could just install f.lux...
 
  • Like
Reactions: willmtaylor

iOSUser7

macrumors 6502a
Jun 23, 2014
662
616
I followed the steps in the link and it worked perfectly on my early 2011 MacBook Pro. The process is a bit technical, so I created these step-by-step instructions to make it easier to follow. You will need to install Xcode or any basic hex editor. Hope this helps someone!
Thanks. Will it revert back after system updates or is it permanent after you do it once ?

EDIT : It works perfectly on my late 2011 MBP by the way. :)
 
Last edited:
  • Like
Reactions: ryanmcv

iOSUser7

macrumors 6502a
Jun 23, 2014
662
616
It might revert during updates so just keep a backup of it and perhaps you can create a launchdemeon at startup that regularly checks it is was.
Alright thanks. MacOS Sierra might be the last update for my MacBook Pro anyway, I can see the next version requiring a 2012 model or later because a lot of new features since Yosemite are absent for the 2011 or older models.
 

mofly_9

macrumors newbie
Apr 1, 2017
5
1
Barcelona
Hi, this is my first post, hope I can help you!

Yesterday I was looking for the same, night shift for my MacBook Pro 13" early 2011 and I found this post (https://forums.macrumors.com/threads/confirmed-enable-night-shift-on-2011-imac.2039376/). I followed the steps and it's working perfectly for me. It's very easy, and the only thing I did after I finished the steps was enable the csrutil again (and the patch is still working).

Hope it works for you as well!
 

sqvarepants

macrumors member
Original poster
Nov 24, 2014
39
4
Madrid
Hi!

any one tried on macOS high Sierra? with the script on github, shows night shift in notification bar, but preferences display tab and configuration didn't work. any news?

thank you!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.