Terminal Command to disable Ambient Light Sensor?

Discussion in 'macOS' started by justn, Sep 16, 2010.

  1. justn macrumors member

    justn

    Joined:
    Apr 21, 2010
    Location:
    SoCen Cal
    #1
    My end goal is to create a script that will disable and enable the Ambient Light sensor when I plug and unplug my MacBook Pro from power.

    To do this I'm pretty sure I need a terminal command to enable and disable automatic dimming as the ambient light changes.
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
  3. justn thread starter macrumors member

    justn

    Joined:
    Apr 21, 2010
    Location:
    SoCen Cal
    #3
    I know how to do it in System Preferences, but as I said before I want a command I can use in Terminal to do it.
     
  4. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #4
    Disable it in System Preferences. Then in Terminal, enter:

    Code:
    defaults read com.apple.bezelservices
    Enable it in System Preferences. In Terminal, enter:

    Code:
    defaults read com.apple.bezelservices
    Compare to discover which key is involved. Once you know, you should be able to modify using defaults write

    (I'm guessing that com.apple.bezelservices is the place to look.)
     
  5. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5
    Actually you said,
    which sounds like you wanted a command line way because you didn't know if it could be done via the GUI.
     

Share This Page