brightness - set brightness in TTY
Posted: Sat Jan 16, 2016 7:17 pm
Yeah it is actually an easy thing if you know how. No, xbacklight no workee in TTY.
Recent kernels have a bug with saying
in dmesg. The "acpi_osi=Linux acpi_backlight=vendor" fix does not help, and it happens across different distros.
It may or may not work if your backlight classes are acpi and vendor.
1) Put this script into /usr/sbin/brightness
2) make it executable with "chmod +x /usr/sbin/brightness"
3) add the command "/usr/sbin/brightness 8" to /etc/rc.local (before the exit line) and you will have a highly illuminated screen at login.
values between 1 and 8 are accepted, 8 being the brightest
Of course this works nicely as keybinding -- provided you add the script as entry to sudoers, because it needs elevated privileges.
Recent kernels have a bug with saying
Code: Select all
[drm:intel_enable_lvds [i915]] *ERROR* timed out waiting for panel to power on
It may or may not work if your backlight classes are acpi and vendor.
1) Put this script into /usr/sbin/brightness
2) make it executable with "chmod +x /usr/sbin/brightness"
3) add the command "/usr/sbin/brightness 8" to /etc/rc.local (before the exit line) and you will have a highly illuminated screen at login.
values between 1 and 8 are accepted, 8 being the brightest
Code: Select all
#!/bin/bash
[[ -z $1 ]] && echo "Usage: $0 [1...8] " && exit 0
[[ "$1" -lt "1" ]] || [[ "$1" -gt "8" ]] && echo "Value out of range" && exit 0
# find the backlight names
BL_NAME=(`ls /sys/class/backlight/`)
# path to brightness setting in sys
SYS_PATH="/sys/class/backlight/$BL_NAME/brightness"
# set brightness value to $1
VAL=$1
printf "detected backlight drivers..... $BL_NAME \n"
echo $VAL > $SYS_PATH
printf "set brightness to $VAL in $SYS_PATH \n"