Question

I am trying to set my laptop's brightness level via nvram backlight-level= however I keep receiving errors, no matter how I try and input it. These are my past results.

~ nvram backlight-level "%96%06"
backlight-level %1e%00
nvram: Error getting variable - '%96%06': (iokit/common) data was not found
~ nvram backlight-level %96%06
backlight-level %1e%00
nvram: Error getting variable - '%96%06': (iokit/common) data was not found
~ nvram backlight-level\ %96\%06
nvram: Error getting variable - 'backlight-level %96%06': (iokit/common) data was not found
~ nvram backlight-level = %96%06
backlight-level %1e%00
nvram: Error setting variable - '': (iokit/common) invalid argument
~ nvram backlight-level = <%96%06>
zsh: parse error near `\n'
~ nvram backlight-level=<%96%06>
zsh: parse error near `\n'
~ nvram backlight-level=<%96%06>
zsh: parse error near `\n'
~ nvram backlight-level %96%06
backlight-level %1e%00
nvram: Error getting variable - '%96%06': (iokit/common) data was not found
~ nvram backlight-level="%96%06"
nvram: Error setting variable - 'backlight-level': (iokit/common) general error

However, I tried this suggestion but I receive this error.

nvram backlight-level=%96%06
nvram: Error setting variable - 'backlight-level': (iokit/common) general error

What is the issue here, I just am looking for the proper syntax.

Was it helpful?

Solution

You need to use sudo to write to the NVRAM (and it probably also won't hurt to prevent the shell from handling % by quoting it)

sudo nvram backlight-level='%96%06'
Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top