Created
July 6, 2018 13:59
-
-
Save maulvi/070bb48ab462499db126d9ad96876559 to your computer and use it in GitHub Desktop.
fix brightness waking up from sleep/suspend
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| For waking up from suspension, I create the following script /etc/pm/sleep.d/brightness: | |
| ```shell | |
| #!/bin/sh | |
| case "$1" in | |
| resume|thaw) | |
| echo 170 > /sys/class/backlight/intel_backlight/brightness | |
| ;; | |
| esac | |
| ``` | |
| And the permission of the script is -rwxr-xr-x. This should also solve your problem. | |
| But if the screen is dimmed, the brightness is set to maximum after recovering from the dimming. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment