#!/bin/bash
#PLEASE RUN AS "ROOT"
#se requiere correr como "root"
#editor de brillo por terminal
# Friday, October 04 2024
# 17:34
#by AlexLikeRock
#instructions
#search "brightness" inside of /sys/class/backlight/
#examples:
# /sys/class/backlight/acpi_video0/brightness
# /sys/class/backlight/nv_backlight/brightness
# /sys/class/backlight/XXXXXXXX/brightness
#2 options :
#1).- run this script as ROOT
#2).- run this script as normal user, but you need change permissions of the file brightness:
# # chmod 777 /sys/class/backlight/XXXXXXXX/brightness
#other different way :
# xrandr --output LVDS-1 --brightness 0 ## screen OFF ##
# xrandr --output LVDS-1 --brightness 0.1 # minimal #
# xrandr --output LVDS-1 --brightness 0.2
# xrandr --output LVDS-1 --brightness 0.5
# xrandr --output LVDS-1 --brightness 0.7
# xrandr --output LVDS-1 --brightness 1 #max brightness#
# xrandr --output LVDS-1 --brightness 2 # bad option #
echo "poner numero del 1 al 100"
read -r option
echo $option > /sys/class/backlight/nv_backlight/brightness
echo "se puso el brillo al " $option "%"
echo "listo"
exit 0
No hay comentarios:
Publicar un comentario