Test environment: AcerAspire5750GNVIDIAGeForceGT630MUbuntu12.04x86 _ 64 the solution is similar in other cases. Adjust the screen brightness Fn does not adjust the screen brightness. The fn adjusts the/sys/class/backlight/acpi_video0/brightness file, while the I card file is/sys/class/backlight/intel_backlight/brig.
Test environment:
Acer Aspire 5750G
NVIDIA GeForce GT630M
Ubuntu 12.04 x86_64
In other cases, the solution is similar.
Adjust screen brightness
Fn cannot adjust the screen brightness. Fn adjusts the/sys/class/backlight/acpi_video0/brightness file, while the I card file is/sys/class/backlight/intel_backlight/brightness.
I. Test code
Start the system. When the grub menu appears, press "e" to edit and add "acpi_backlight = vendor" to the line in the Linux Kernel path, for example:
Linux/boot/vmlinuz-3.2.0-30-generic root = UUID = 75c414be-2e17-407a-b699-94f6a398dff7 ro acpi_backlight = vendor quiet splash
If it can be started normally and the screen brightness can be adjusted with fn, the operation is successful and the next step is continued.
Ii. Modify grub
Sudo vi/etc/default/grub
Find:
GRUB_CMDLINE_LINUX = ""
Changed:
GRUB_CMDLINE_LINUX = "acpi_backlight = vendor"
My grub file is as follows:
# If you change this file, run 'update-grub' afterwards to update# /boot/grub/grub.cfg.# For full documentation of the options in this file, see:# info -f grub -n 'Simple configuration'GRUB_DEFAULT=0#GRUB_HIDDEN_TIMEOUT=0GRUB_HIDDEN_TIMEOUT_QUIET=trueGRUB_TIMEOUT=3GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"GRUB_CMDLINE_LINUX="acpi_backlight=vendor"# Uncomment to enable BadRAM filtering, modify to suit your needs# This works with Linux (no patch required) and with any kernel that obtains# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"# Uncomment to disable graphical terminal (grub-pc only)#GRUB_TERMINAL=console# The resolution used on graphical terminal# note that you can use only modes which your graphic card supports via VBE# you can see them in real GRUB with the command `vbeinfo'#GRUB_GFXMODE=640x480# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux#GRUB_DISABLE_LINUX_UUID=true# Uncomment to disable generation of recovery mode menu entries#GRUB_DISABLE_RECOVERY="true"# Uncomment to get a beep at grub start#GRUB_INIT_TUNE="480 440 1"
Update grub. cfg
Region ~ Sudo update-grub
Check grub. cfg and find that "acpi_backlight = vendor" is added to each startup Item"
Region ~ Vi/boot/grub. cfg
Set the initial screen brightness
After restarting, the screen brightness is restored to the maximum brightness.
View files that affect screen brightness
Region ~ Vi/sys/class/backlight/intel_backlight/brightness
Adjust the screen brightness several times and find that the value changes. The value range of my notebook is 0 ~ 976.
Manually modify this value, and the screen brightness changes accordingly (which must be executed by the root user ):
Region ~ Su
Password:
Root @ www.linuxidc.com:/home/congbo # echo 500>/sys/class/backlight/intel_backlight/brightness
Therefore, you can add the statement to/etc/rc. local to automatically set the initial brightness of the screen.
Modify/etc/rc. local as follows (which must be executed by the root user ):
#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will “exit 0″ on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing.echo 500 > /sys/class/backlight/intel_backlight/brightnessexit 0
Adjust the gamma value
Region ~ Xgamma-gamma. 7
-> Red 1.000, Green 1.000, Blue 1.000
<-Red 0.700, Green 0.700, Blue 0.700