Address: http://www.archlinuxchina.com/forum/thread-56-1-1.html
My Linux desktop version is Linux mint13 Maya, Which is used on a laptop.
The screen brightness is the brightest when you start the system. You can adjust the brightness of the backlight through FN + F6/F7, but the maximum brightness is restored after restart. Do you need to adjust the brightness by FN + F6/F7 after each boot? Is there a permanent solution? Of course!
1, CAT/etc/default/ACPI-support, found that there is such a comment at the end:
# Note: To enable "laptop mode" (to spin down your hard drive for longer
# Periods of time), install the laptop-mode-Tools Package and configure
# It in/etc/laptop-mode/laptop-mode.conf.
Now, we need to install the laptop-mode-tools tool first. OK, it's very simple.
- Apt-Get install laptop-mode-Tools
Copy code
The laptop mode is automatically enabled after the tool is installed, and the/etc/laptop-mode/laptop-mode.conf is enabled for configuration below
2, configure/etc/laptop-mode/laptop-mode.conf
(1) use laptop mode in alternating current mode:
- #
- # Enable laptop mode when on AC power.
- #
- Enable_laptop_mode_on_ac = 1
- # The default value of battery is 1.
Copy code
(2) Configure LCD brightness control
In/etc/laptop-mode/laptop-mode.conf left find right all wood have found control_brightness this option, view help manual: Man laptop-mode.conf, the LCD brightness was originally controlled in/etc/laptop-mode/CONF. d/lcd-brightness.conf
In this file. OK. Open the file and perform the following settings:
- #
- # Shocould laptop mode tools control LCD brightness?
- # Set to 1 and enable
- Control_brightness = 1
- #
- # Commands to execute to set the brightness on your LCD
- # "Echo 13" is to write the brightness value 13 into the brightness_output file, and the brightness value is set to its own value.
Copy code
- Batt_brightness_command = "Echo 13"
- Lm_ac_brightness_command = "Echo 13"
- Nolm_ac_brightness_command = "Echo 13"
- Brightness_output = "/sys/class/backlight/acpi_video0/brightness"
Copy code
OK. After the preceding configuration is complete, restart. In this way, you do not need to manually press FN + F6/F7 each time you start the system.
Note:
XX>/sys/class/backlight/acpi_video0/brightness write RC. Local does not work either. Through laptop
Mode tools can achieve our goal.