I own Acer Aspire 5755g and I had the same problem with backlight of my screen. My PC has Nvidia GT540M. I read previous answer and found out that on my pc this advice works but i need to run some different command instead of
echo n > /sys/class/backlight/acpi_video0/brightness
I have to change it to
echo 250 > /sys/class/backlight/intel_backlight/brightness
for example, where 250 is my desired backlight value.
I consider it is because of hybrid graphics in notebooks like mine, so backlight controlled through intel builtin controller.
In such case do cat /sys/class/backlight/intel_backlight/brightness and you'll see your current value of brightness, in my case it was 976 change it with ypur desired level,be aware that if you'll set it to 0 your backlight will be turned off!
Adjust value trying different values between 1 and 976 , 1- means almost turned off backlight and 976 is max value in my system.(If you set it to 0 backlight is turned off, and you can't see anything! of course you can change it again and if you'll reboot it restore to it's config value e.g. max) If you'll try to set value more than maximum it just returns error and nothing changes.
To set backlight value at startup add
echo 250 > /sys/class/backlight/intel_backlight/brightness
line to your /etc/rc.local file before exit command.
Also we can enable hotkeys to change backlight manualy in a comfortable way.
As for me, I made my hotkeys scripts of scripts for asus laptops placed in /etc/acpi directory.
You need 2 scripts - one to increase brightness, another for decreasing, both are placed in /etc/acpi direstory. Also we need to set these scripts to trigger on hotkeys events, it's done via changing files in /etc/acpi/events directory. In my case their names and contents are:
/etc/acpi/events/asus-brightness-down
event=video DD03 00000087 00000000
action=/etc/acpi/asus-brn-down.sh
/etc/acpi/events/asus-brightness-up
event=video DD03 00000086 00000000
action=/etc/acpi/asus-brn-up.sh
where /etc/acpi/asus-brn-down.sh and asus-brn-up.sh are names of our scripts to decrease and increase brightness
Contents of mine /etc/acpi/asus-brn-down.sh
#!/bin/sh
# this is for acer aspire 5755G :)
KEYS_DIR=/sys/class/backlight/intel_backlight
test -d $KEYS_DIR || exit 0
MIN=1
# i set MIN to 1 to almost turn off backlight, but you can set a better one value, 50 for examlple
MAX=$(cat $KEYS_DIR/max_brightness)
VAL=$(cat $KEYS_DIR/brightness)
VAL=$((VAL-25))
if [ "$VAL" -lt $MIN ]; then
VAL=$MIN
fi
echo $VAL > $KEYS_DIR/brightness
and contents of mine /etc/acpi/asus-brn-up.sh
#!/bin/sh
# this is for acer aspire 5755G :)
KEYS_DIR=/sys/class/backlight/intel_backlight
test -d $KEYS_DIR || exit 0
MIN=1
MAX=$(cat $KEYS_DIR/max_brightness)
VAL=$(cat $KEYS_DIR/brightness)
# I decided to increase brightness by 25 per keypress but you can change it to 50 or even 1 if you like
VAL=$((VAL+25))
if [ "$VAL" -gt $MAX ]; then
VAL=$MAX
fi
echo $VAL > $KEYS_DIR/brightness
thats all ;)