News for hackers. Stuff that matters.
Re:Apple Releases MacOS 10.12.4 with Night Shift by shurcooL on Monday March 27, 2017 @02:43PM (#13970500)
System requirements for Night Shift:

    Night Shift requires macOS Sierra 10.12.4 and one of these Mac computers,
    using the built-in display or the displays listed:

    • MacBook (Early 2015 or newer)     • Apple LED Cinema Display
    • MacBook Air (Mid 2012 or newer)   • Apple Thunderbolt Display
    • MacBook Pro (Mid 2012 or newer)   • LG UltraFine 5K Display
    • Mac mini (Late 2012 or newer)     • LG UltraFine 4K Display
    • iMac (Late 2012 or newer)
    • Mac Pro (Late 2013 or newer)
So this doesn't work on arbitrary 3rd party displays, only Apple ones. That's a pretty big constraint. Edit: Some people are saying it works on their 3rd party monitors anyway.

Source: https://support.apple.com/en-ca/HT207513

Re:Apple Releases MacOS 10.12.4 with Night Shift by apostacy on Monday March 27, 2017 @06:00PM (#13972220)
It makes me sad that people on the Internet always try to find some justification for Apple's decisions.

It is nonsense that there's some special requirement for this. Apple decided to do this because they could.

I used Flux to dim my display on my non-jailbroken iOS8 iPad 2, and quite enjoyed it for reading in bed.

Then, Apple held my iPad hostage[1], and forced me to update to iOS9 if I wanted to unlock it. And I could no longer use Flux, and nightshift is disabled for the iPad 2. There is no technical reason why I couldn't change the color temperature on my iPad 2. I did it for months. Apple just wanted to coerce customers into buying new hardware.

This is no different from Apple having a whitelist for TRIM support of SSDs in earlier versions of macOS. People were under the impression that there was some good technical reason for this. But actually, it could be enabled with a simple perl oneliner:

> sudo perl -pi -e 's|(^\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

It is only a matter of time until there is a oneliner to enable nightshift for all display devices.

[1] https://news.ycombinator.com/item?id=11986523

[2] https://gist.github.com/clarencesong/3768688

Re:Apple Releases MacOS 10.12.4 with Night Shift by mrsteveman1 on Monday March 27, 2017 @06:43PM (#13972492)
> This is no different from Apple having a whitelist for TRIM support of SSDs in earlier versions of macOS. People were under the impression that there was some good technical reason for this.

I used to force-enable TRIM on my non-Apple SSDs for years, it was irritating but I think they were right to be cautious. Disk controllers have a history of serious bugs being triggered by external commands.

My go-to example is my Samsung HD204UI drives, they shipped with a firmware bug[1] that led to write corruption whenever a specific command was issued to the drive. Samsung issued a firmware fix without bumping the firmware version, so even today several years later, smartmontools prints a warning every time it runs, because it's impossible to tell which drives have been fixed.

Stuff like that is so common[2][3][4] the Linux kernel maintains a list[5] of devices that certain commands shouldn't be used on for various reasons. One has TRIM completely disabled, several have NCQ TRIM disabled due to known corruption issues, including one I still own: the very same drive I used to force-enable TRIM on when it was in my Macbook.

[1] https://www.smartmontools.org/wiki/SamsungF4EGBadBlocks

[2] https://github.com/torvalds/linux/commit/cda57b1b05cf7b8b99a...

[3] https://bugzilla.kernel.org/show_bug.cgi?id=71371

[4] https://bugs.launchpad.net/ubuntu/+source/fstrim/+bug/144900...

[5] https://github.com/torvalds/linux/blob/master/drivers/ata/li...

Re:Apple Releases MacOS 10.12.4 with Night Shift by mikeash on Tuesday March 28, 2017 @10:43AM (#13976953)
It works fine out of the box on my Dell and Samsung displays. I think your "oneliner" is actually a zero-liner, and Apple just spelled out a list of supported displays so they don't have to be responsible for trouble with others.

I've been told that there was a good technical reason for whitelisting TRIM support, namely that a lot of SSD firmwares have buggy TRIM that caused corruption. Rather than risk it, Apple figured out some that worked, whitelisted them, and just supported those. Which is entirely reasonable.

Apple does some questionable things. Making it impossible to install older versions of iOS is a good example, as are arbitrary hardware restrictions like not providing Night Shift on older hardware. But this list of supported displays and their limited TRIM support don't appear to be among them.

Re:Apple Releases MacOS 10.12.4 with Night Shift by astrange on Monday March 27, 2017 @09:07PM (#13973148)
From the old post:

> I forgot my unlock pin (because I lent my iPad to someone else) and there is no way to factory reset it without also updating the OS.

You can do this from a Mac with Erase in Apple Configurator with iOS 10 or later. You always could have done it if you happened to own an Exchange or MDM server.

Re:Apple Releases MacOS 10.12.4 with Night Shift by apostacy on Friday March 31, 2017 @06:58AM (#14002592)
Well, I couldn't. I deeply regret not rooting it when it was on iOS8. I was given it by my work specifically for development, and wanted it to be pure, so I installed flux by signing it with my developer account, and sideloaded it with xcode.

It actually seems baffling to me that Apple is stricter and more deceptive about forcing updates than most game console companies. Our iPads are specifically for medical use, and we wanted to target iOS7.

And I'm reminded of my mistake whenever I go to read in bed. The one time I turned my back on Apple, and it cost me. Just like when I was a kid and I installed that "emergency" update for iTunes 4.01 that disabled playlist sharing. Or their crippling AirPort administrator update. I had kept copies of all my ipsw files that iTunes offered, and I thought that would be enough, but, I missed the window and I had no choice but to do iOS9.

It's really sad that I now have to be more vigilant about making my own backups, because software has become so unreliable now, I never know if a version of software I'm comfortable with will become extince overnight, replaced with some crummy "upgrade". I remember when I was /excited/ by updates. Now, I have to make sure I've backed everything up first.

Re:Apple Releases MacOS 10.12.4 with Night Shift by james_pm on Monday March 27, 2017 @02:59PM (#13970635)
But yet, Night Shift works just fine on my Dell U2412M. Toggling Night Shift on/off using the switch in the Notification panel (right side) shows the Night Shift effect just as it does on the built-in display on my Macbook Pro (late 2014).
Re:Apple Releases MacOS 10.12.4 with Night Shift by foepys on Monday March 27, 2017 @02:54PM (#13970581)
Does anybody why that is? Does Apple have a real reason here or is it just some kind of arbitrary rule to sell more displays? Considering that even 2012 iMacs are listed I would rule out special display attributes like e. g. 10bit color.
Re:Apple Releases MacOS 10.12.4 with Night Shift by Kametrixom on Monday March 27, 2017 @03:17PM (#13970777)
It could be that they just don't want to deal and test with older versions. By only specifying a certain number of supported displays they essentially guarantee it works for those, that doesn't mean however it can't work on others, you just don't get the assurance of it.
Re:Apple Releases MacOS 10.12.4 with Night Shift by apostacy on Monday March 27, 2017 @06:46PM (#13972516)
I have never really brought it when they say that they are disabling some feature because they can't support it, as if there's an avalanche of phonecalls that is swamping their tech support resources. By that logic, why don't they just disable support for any third party monitors? Actually, better not give them ideas...
Re:Apple Releases MacOS 10.12.4 with Night Shift by mikeash on Tuesday March 28, 2017 @10:44AM (#13976958)
They haven't disabled it, they just don't officially support it. It works fine, you just can't get help from them if it doesn't.
Re:Apple Releases MacOS 10.12.4 with Night Shift by vmasto on Monday March 27, 2017 @02:52PM (#13970564)
That's very weird, does anyone have any insight about this decision on a technical level?
Re:Apple Releases MacOS 10.12.4 with Night Shift by shurcooL on Monday March 27, 2017 @02:56PM (#13970596)
My guess is that the Night Shift feature depends significantly on the color profile, various options (color temperature, gamma, contrast, sRGB setting, etc.) and calibration of the display.

With their own displays, they have full control over that in software, and can produce expected results. It'd be much harder to have predictable results with 3rd party monitors that users configure themselves, so Apple probably opted to outright not support those monitors.

It's also a lot easier to test the feature on a limited combination of hardware.

Re:Apple Releases MacOS 10.12.4 with Night Shift by lloeki on Monday March 27, 2017 @04:19PM (#13971351)
Was about to say basically the same thing, since f.lux works by dynamically altering the colour profile (which results in interesting bugs and glitches here and there). They've been going out of their way to make things work across the board.
Re:Apple Releases MacOS 10.12.4 with Night Shift by mikeash on Tuesday March 28, 2017 @10:46AM (#13976978)
I had to stop using f.lux on my Mac Pro because of this. Every five minutes my screens would blink as it adjusted the color profile. Not quite worth it!

If for some reason Night Shift were to cause a similar problem, Apple wouldn't want to put effort into fixing it if it happened with third-party displays. By having an official list, they're free to tell people having problems with other hardware "tough luck, sucks to be you."

Re:Apple Releases MacOS 10.12.4 with Night Shift by copperx on Monday March 27, 2017 @02:59PM (#13970634)
I don't think there's one at the moment, but if I were Apple's CEO, I would make all Apple devices have two types of backlights: regular LED backlighting, and LED backlighting with no blue components.

A hardware solution would be more costly, but it would be the "Apple" way. Be aware that even if you use Flux or Night Shift your display still emits significant blue light.

It could be marketed as a big feature on an Apple keynote, given how much we use devices at night.

Re:Apple Releases MacOS 10.12.4 with Night Shift by ianai on Monday March 27, 2017 @03:30PM (#13970887)
I think changing to OLED screens is the next logical step toward that?

Personally I wish there were display options sans backlight.

Re:Apple Releases MacOS 10.12.4 with Night Shift by antfarm on Tuesday March 28, 2017 @04:30AM (#13975007)
On my white iBook, it was possible to see what's on the screen, even when backlight was turned off, through the translucent apple logo, if the display was lit from the back, by the sun or a lamp.

I always wished there was a display that could be lit by an external lightsource, e.g. a library lamp.

Re:Apple Releases MacOS 10.12.4 with Night Shift by jacobolus on Monday March 27, 2017 @03:59PM (#13971162)
I would love to see a display with, say, 8 primaries instead of 3. With a careful choice of pixel pattern, it should be possible to get much wider color gamut (especially among intense light reds and blue-green colors which are very poorly supported by “RGB” displays), without causing the metamerism problems that very colorful 3-primary displays have. Unfortunately there’s a big chicken–egg problem since images and other content are all created with the expectation of current display technology.

They definitely don’t want to completely drop the short-wavelength primary for many purposes, but it would be nice to have a “late night writing mode” where that is possible.

Re:Apple Releases MacOS 10.12.4 with Night Shift by illicium on Monday March 27, 2017 @04:16PM (#13971317)
There is no chicken-and-egg problem because the OS already does color management to map your source color space (sRGB, mostly) to your target monitor's color space. If it didn't, you wouldn't be able to view sRGB content correctly on wide-gamut monitors, for example.

The real challenge is in developing display backlight and phosphor technology to reproduce colors outside of the standard gamuts.

Re:Apple Releases MacOS 10.12.4 with Night Shift by jacobolus on Monday March 27, 2017 @06:00PM (#13972214)
No, there’s a very serious chicken-and-egg problem. The gamut of RGB displays (televisions, projectors, computer and smartphone displays, etc.) has some parts which are very wide and other parts which are very limited. All content produced in the past 20 years expects to be displayed on such displays. If you increase the intensity of the existing “RGB” (orangish-red R, yellowish-green G, purplish-blue B) primaries, you get a display with a substantially similar gamut to existing displays, but with an ability to make certain colors marginally more intense. This is easy for content authors to target using existing workflows, and even potentially possible to adapt existing content for without too much disruption.

If you invent a new type of display with a radically different color gamut, and then take existing content and amp up the intensity on hue/value regions with a newly wider gamut, you throw off all of the content creators intentions for color relationships. Total non-starter.

What you can do is show old content about the same as it was on past displays, but then there’s not really any advantage to going with the new technology, which is typically going to be more difficult and expensive to produce. A new display needs new content in order to work differently from past displays.

(Believe me: I have spent years studying human vision and color reproduction technologies. I’m not just making this up.)

If you’re curious about the topic of gamut mapping in general, I recommend this 300-page book, http://www.wiley.com/WileyCDA/WileyTitle/productCd-047003032... The gamut mapping algorithms used in most common software systems (e.g. Adobe Photoshop) are actually quite poor.

Re:Apple Releases MacOS 10.12.4 with Night Shift by kristofferR on Monday March 27, 2017 @03:15PM (#13970770)
It's because they have a whitelist of allowed version numbers: https://pikeralpha.wordpress.com/2017/01/30/4398/
Re:Apple Releases MacOS 10.12.4 with Night Shift by smoser on Monday March 27, 2017 @03:05PM (#13970691)
If it works like iOS it changes the tint based on the contents of the screen so it could require some extra processing power to dynamically change the tint level.
Re:Apple Releases MacOS 10.12.4 with Night Shift by apostacy on Monday March 27, 2017 @05:49PM (#13972117)
I would strongly suspect that there is absolutely no technical justification for this decision at all.

This was a political and marketing decision, to punish customers who use third party devices. This falls neatly into line with Apple's agenda.

Apple refused to support TRIM on SSDs, unless you make on small patch to their kext. I would imagine that there is something similar for this feature.

Re:Apple Releases MacOS 10.12.4 with Night Shift by yankcrime on Tuesday March 28, 2017 @07:19AM (#13975642)
Just to add another datapoint: It works fine using my 27” Acer B276HUL that’s configured using a hacked EDID file. If it works with this third-party setup, it’s probably safe to say it’ll work with any.
Re:Apple Releases MacOS 10.12.4 with Night Shift by OberstKrueger on Monday March 27, 2017 @03:39PM (#13970988)
On a Mac Mini (Late 2014), it works just fine on an LG 25UM58-P monitor. Looks and works the same as Night Shift does on iOS.
Re:Apple Releases MacOS 10.12.4 with Night Shift by ertemplin on Monday March 27, 2017 @03:03PM (#13970667)
Night Shift works on my Dell UltraSharp U3415W
Re:Apple Releases MacOS 10.12.4 with Night Shift by 0x0 on Monday March 27, 2017 @03:30PM (#13970883)
It works fine on my random circa 2006 Dell monitor.
Re:Apple Releases MacOS 10.12.4 with Night Shift by emehrkay on Monday March 27, 2017 @03:42PM (#13971014)
I use a 27" iMac as the screen for a Mac mini, I wonder if it will work. I will report back later
Re:Apple Releases MacOS 10.12.4 with Night Shift by emehrkay on Wednesday March 29, 2017 @08:01PM (#13991752)
Oh yeah, it works
Re:Apple Releases MacOS 10.12.4 with Night Shift by bostand on Monday March 27, 2017 @02:53PM (#13970573)
Welcome to Apple!