If you encounter issues with it please read the help and comments in the script. Your mileage may vary with this script as some displays/adapters support different options. ] & BRIGHTNESSNEW=0Įcho "Error: and can't be used together." Sed -i s/.*BRIGHTNESS=.*/BRIGHTNESS=$BRIGHTNESSNEW/g ~/.nvidia-brightness.cfgīRIGHTNESSNEW=$(( $BRIGHTNESS - $BRIGHTNESS_INC )) ] & BRIGHTNESS_INC=10 || BRIGHTNESS_INC=$1īRIGHTNESSNEW=$(( $BRIGHTNESS + $BRIGHTNESS_INC )) Nvidia-settings -n -a BacklightBrightness=$BRIGHTNESS 1>/dev/null # Example: nvidia-settings -n -a BacklightBrightness=80 # Valid BacklightBrightness values are between 0 and 100 If ] thenĮcho 'You must run this script with the -initialize option once to create the settings file.'Įcho 'Type "nvidia-brightness.sh -help" for more information.' Įcho "BRIGHTNESS=$BRIGHTNESS_TEMP" > ~/.nvidia-brightness.cfg Nvidia-brightness -bu 15 this will increase brightness by 15 Nvidia-brightness -bd this will decrease gamma by 10 or Load current settings from ~/.nvidia-brightness.cfg or Must be run once to create the settings fileīrightness settings from ~/.nvidia-settings-rc # Type "nvidia-brightness.sh -help" for valid options.Įcho "please run this script with the BASH shell" # "nvidia-brightness.sh" may be run from the command line or can be assigned to the brightness keys on your Keyboard # In that event, execute 'nvidia-settings -n -q all' to see which options are available for the displays # If this script fails, your display likely does not support the 'BacklightBrightness' option. # It uses "nvidia-settings -a" to assign new gamma or brightness values to the display. # that lack the support for changing the brightness (probably needing acpi backlight). # This script can be used to change the brightness on systems with an NVIDIA graphics card # - NVIDIA Settings (nvidia-settings in Ubuntu) # Tested only with nvidia-settings-319.12 and nvidia-drivers-331.20 on Linux Mint 17 Mate # active displays which support the BacklightBrightness setting. # It has also been modified to remove display specific configuration, instead applying the setting to all # to work using the BacklightBrighness setting available for some displays on the currrent nvidia driver # This script was originally created by 'qgj' from askubuntu. I have modified the bash script to use this setting instead. As luck would have it, there is a better setting available for backlight brightness. I had the same issue as James getting an error due to the options no longer being valid with nvidia-settings for my specific display type. It's sad that this bug still persists and the work-around is needed. Thank you for providing the great script qgj.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |