Skip to main content

Thread: Acer 4820 TG - brightness regulation disable


hi

i'm having problem, brightness regulation isn't me. without parameters i'm having 3 steps of brightness, acpi_backlight=vendor kernel parameter i'm having more levels, not allow me use properly. example starts 1/3 of brightness level in windows = not have.

best solution me seems disable native brightness handling , mount prepared script handle itself. turn off native key-bindings able use mine customized script.

code:
#!/bin/sh # # filename: backlight.sh # description: control backlight brightness of google cr-48 # # usage: ./backlight.sh (up|down) # # uses 'cat' write values video backlight device's  # brightness file. #  # location of brightness device file #file=/sys/class/backlight/i915_backlight/brightness file=/sys/class/backlight/intel_backlight/brightness # current value current=`cat ${file}`  # command, whether or down command="$1" # increment up/down amount increment=20 # calculate value go up_val=`echo "${current} + ${increment}" | bc` # calculate value go down down_val=`echo "${current} - ${increment}" | bc`  # not exceed 976, if increasing brightness if [ ${up_val} -gt 976 ];   up_val=976 fi  # not exceed 0, if decreasing brightness if [ ${down_val} -lt 0 ];   down_val=0 fi  # set value depending on argument script, or show usage info case ${command} in up)   echo ${up_val} > ${file}   ;; down)   echo ${down_val} > ${file}   ;; *)   echo "usage: $0 (up|down)" 1>&2   exit 1 esac
it changing value directly in
code:
/sys/class/backlight/intel_backlight/brightness
based on actual value increased/decreased $increment based on parameter up/down.

script working great me, , use instead of native handling, @ least till fixed in kernel.

have idea how reach those? thanks.



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Hardware [ubuntu] Acer 4820 TG - brightness regulation disable


Ubuntu

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?