How to save the brightness settings (backlight brightness) of a notebook in Linux)

Source: Internet
Author: User

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.

  1. 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:

  1. #
  2. # Enable laptop mode when on AC power.
  3. #
  4. Enable_laptop_mode_on_ac = 1
  5. # 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:

  1. #
  2. # Shocould laptop mode tools control LCD brightness?
  3. # Set to 1 and enable
  4. Control_brightness = 1


  5. #
  6. # Commands to execute to set the brightness on your LCD
  7. # "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

  1. Batt_brightness_command = "Echo 13"
  2. Lm_ac_brightness_command = "Echo 13"
  3. Nolm_ac_brightness_command = "Echo 13"
  4. 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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.