Contribute
Register

Night Shift Mode

Joined
Jun 9, 2013
Messages
10,803
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
  1. MacBook
  2. Mac mini
Mobile Phone
  1. Android
Sorry I'm not familiar on how to do this. What app do I use to create SSDT? Is there anything I have to do in config.plist to load this SSDT or will Mac detect it automatically?

Try this. Put SSDT-GFX0 in EFI/Clover/ACPI/patched.
 

Attachments

  • SSDT-GFX0.aml
    366 bytes · Views: 124
Joined
Jul 24, 2015
Messages
2,276
Motherboard
MSI H81i
CPU
i5-4570
Graphics
RX 580
I can see night shift in display preferences, it activates when the 'Turn on until tomorrow' checkbox is checked. Using iMac14,2 definition, GTX 970 with Nvidia web driver. IGPU disabled in BIOS and DSDT. Connected HDMI Samsung TV. Card injected like this

Code:
DefinitionBlock ("", "SSDT", 1, "Apple", "Gfx", 0x00001000)
{
    External (_SB_.PCI0.P0P1, DeviceObj)

    Scope (\_SB.PCI0.P0P1)
    {
        Device (NVD0)
        {
            Name (_ADR, Zero)  // _ADR: Address
            Name (_UID, 0x11)  // _UID: Unique ID
            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (Arg2 == Zero)
                {
                    Return (Buffer (One)
                    {
                         0x03                                             /* . */
                    })
                }

                Return (Package (0x40)
                {
                    "AAPL,slot-name",
                    "PCIe Slot 1",
                    "name",
                    Buffer (0x17)
                    {
                        "Nvidia GeForce GTX 970"
                    },

                    "model",
                    Buffer (0x17)
                    {
                        "Nvidia GeForce GTX 970"
                    },

                    "device_type",
                    Buffer (0x0D)
                    {
                        "NVDA,Parent"
                    },

                    "hda-gfx",
                    Buffer (0x0A)
                    {
                        "onboard-1"
                    },

                    "VRAM,totalMB",
                    Buffer (0x04)
                    {
                         0x00, 0x10, 0x00, 0x00                           /* .... */
                    },

                    "rom-revision",
                    Buffer (0x0F)
                    {
                        "84.04.36.00.f1"
                    },

                    "@0,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@0,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-A"
                    },

                    "@0,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@0,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@1,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@1,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-B"
                    },

                    "@1,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@1,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@2,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@2,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-C"
                    },

                    "@2,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@2,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@2,AAPL,boot-display",
                    Buffer (Zero) {},
                    "@3,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@3,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-D"
                    },

                    "@3,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@3,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@4,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@4,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-E"
                    },

                    "@4,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@4,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@5,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@5,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-F"
                    },

                    "@5,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@5,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    }
                })
            }
        }

        Device (HDAU)
        {
            Name (_ADR, One)  // _ADR: Address
            Name (_UID, 0x12)  // _UID: Unique ID
            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (Arg2 == Zero)
                {
                    Return (Buffer (One)
                    {
                         0x03                                             /* . */
                    })
                }

                Return (Package (0x02)
                {
                    "hda-gfx",
                    Buffer (0x0A)
                    {
                        "onboard-1"
                    }
                })
            }
        }
    }
}
 
Joined
Sep 19, 2010
Messages
604
Motherboard
Asus Z87 Maximus Gene VI
CPU
i7-4790K
Graphics
Vega 64
Mac
  1. iMac
Mobile Phone
  1. iOS
No luck. I just tried my old Samsung monitor and Night Shift option appeared in settings. As soon as I switched back to the Philips monitor, it disappeared. I think as long as it it being detected as a television, Night Shift option will not appear.
 
Joined
Jun 9, 2013
Messages
10,803
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
  1. MacBook
  2. Mac mini
Mobile Phone
  1. Android
I can see night shift in display preferences, it activates when the 'Turn on until tomorrow' checkbox is checked. Using iMac14,2 definition, GTX 970 with Nvidia web driver. IGPU disabled in BIOS and DSDT. Connected HDMI TV. Card injected in this

Code:
DefinitionBlock ("", "SSDT", 1, "Apple", "Gfx", 0x00001000)
{
    External (_SB_.PCI0.P0P1, DeviceObj)

    Scope (\_SB.PCI0.P0P1)
    {
        Device (NVD0)
        {
            Name (_ADR, Zero)  // _ADR: Address
            Name (_UID, 0x11)  // _UID: Unique ID
            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (Arg2 == Zero)
                {
                    Return (Buffer (One)
                    {
                         0x03                                             /* . */
                    })
                }

                Return (Package (0x40)
                {
                    "AAPL,slot-name",
                    "PCIe Slot 1",
                    "name",
                    Buffer (0x17)
                    {
                        "Nvidia GeForce GTX 970"
                    },

                    "model",
                    Buffer (0x17)
                    {
                        "Nvidia GeForce GTX 970"
                    },

                    "device_type",
                    Buffer (0x0D)
                    {
                        "NVDA,Parent"
                    },

                    "hda-gfx",
                    Buffer (0x0A)
                    {
                        "onboard-1"
                    },

                    "VRAM,totalMB",
                    Buffer (0x04)
                    {
                         0x00, 0x10, 0x00, 0x00                           /* .... */
                    },

                    "rom-revision",
                    Buffer (0x0F)
                    {
                        "84.04.36.00.f1"
                    },

                    "@0,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@0,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-A"
                    },

                    "@0,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@0,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@1,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@1,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-B"
                    },

                    "@1,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@1,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@2,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@2,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-C"
                    },

                    "@2,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@2,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@2,AAPL,boot-display",
                    Buffer (Zero) {},
                    "@3,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@3,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-D"
                    },

                    "@3,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@3,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@4,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@4,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-E"
                    },

                    "@4,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@4,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    },

                    "@5,device_type",
                    Buffer (0x08)
                    {
                        "display"
                    },

                    "@5,name",
                    Buffer (0x0F)
                    {
                        "NVDA,Display-F"
                    },

                    "@5,connector-type",
                    Buffer (0x04)
                    {
                         0x00, 0x08, 0x00, 0x00                           /* .... */
                    },

                    "@5,compatible",
                    Buffer (0x0B)
                    {
                        "NVDA,NVMac"
                    }
                })
            }
        }

        Device (HDAU)
        {
            Name (_ADR, One)  // _ADR: Address
            Name (_UID, 0x12)  // _UID: Unique ID
            Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
            {
                If (Arg2 == Zero)
                {
                    Return (Buffer (One)
                    {
                         0x03                                             /* . */
                    })
                }

                Return (Package (0x02)
                {
                    "hda-gfx",
                    Buffer (0x0A)
                    {
                        "onboard-1"
                    }
                })
            }
        }
    }
}

Are you injecting using a DSDT or SSDT?
 
Joined
Jun 9, 2013
Messages
10,803
Motherboard
Gigabyte GA-H77N-WIFI
CPU
i7-3770
Graphics
HD 4000
Mac
  1. MacBook
  2. Mac mini
Mobile Phone
  1. Android
No luck. I just tried my old Samsung monitor and Night Shift option appeared in settings. As soon as I switched back to the Philips monitor, it disappeared. I think as long as it it being detected as a television, Night Shift option will not appear.

No idea then I'm afraid.
 
Joined
Jul 3, 2013
Messages
207
Motherboard
HP EliteBook 8460P-CLover
CPU
i7-2670QM
Graphics
HD 3000 1366 x 768
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I can confirm that by connecting to a TV, the night shift option is not available. I have a Mac Mini which has night shift available if I connect remotely to it. As soon as I turn on the TV and it detects it, the option disappears. Try to connect your CustoMac to a monitor and see if the option shows up.
Alright, i will try a monitor to see if that brings the option out.
 
Joined
Jul 3, 2013
Messages
207
Motherboard
HP EliteBook 8460P-CLover
CPU
i7-2670QM
Graphics
HD 3000 1366 x 768
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I can confirm that by connecting to a TV, the night shift option is not available. I have a Mac Mini which has night shift available if I connect remotely to it. As soon as I turn on the TV and it detects it, the option disappears. Try to connect your CustoMac to a monitor and see if the option shows up.
So you connected a TV to your built and the Night Shift option disappeared? i will try a monitor this weekend to see if i can get the night shift on my built
 
Top