Set Display to Maximum brightness setting."Įcho "-" Set Display to High (Performance) brightness setting."Įcho " 5. Set Display to Medium brightness setting."Įcho " 4. Set Display to Low (Conservative) brightness setting."Įcho " 3. Set Display to Minimum (Powersave) brightness setting."Įcho " 2. Maxsetting=$(cat /sys/class/backlight/intel_backlight/max_brightness)Įcho "- Brightness -"Įcho " 1. #!/bin/bashĬursetting=$(cat /sys/class/backlight/intel_backlight/brightness) otherwise tinkering to point to your variation of them will be necessary). Feel free to use it (if you have the designated files. Using the above answers, I created this script (saved in my home directory as brightness.sh) to modify display brightness (as the laptop's keyboard suffered a spilled tea issue and became unusable). Try each one, and use the one with the largest gamut as your "TARGET" While acpi_video0 should always work, it doesn't always have the full range of physical brightnesses available.If you have others, keep in mind their values stack (hence the loop pushing all the other values to 1.0, then setting the target one to the desired amount). If your system doesn't have an /sys/class/backlight/acpi_video0, there should be at least one directory in there, which may be device-specific (I also have a radeon_bl0, for example).Run it as root, with any value between 0 and 1. # to an integer, even if $1 is a float (which it # The `/1` at the end forced bc to cast the result
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |