Ubuntu12.04 automatically sets the screen brightness upon startup

Source: Internet
Author: User
After Ubuntu12.04 is installed, it is found that the screen is the maximum brightness every time it is set. It is very troublesome to set the brightness every time, so I searched for a solution on the Internet, but I tried to find a solution, still cannot solve the problem. Through your own exploration, you can finally set the brightness automatically after the boot. The following is a brief description of the solution for Ubuntu users with the same problem. :) Ubuntu12.04 automatic brightness setting method: 1. Open the Software Center and install the laptop-mode package; 2

After Ubuntu 12.04 is installed, it is found that the screen is the maximum brightness every time it is set. It is very troublesome to set the brightness every time, so I searched for a solution on the Internet, but I tried all the methods I could find, still cannot solve the problem.

Through your own exploration, you can finally set the brightness automatically after the boot.

The following is a brief description of the solution for Ubuntu users with the same problem. :)

How to automatically set the brightness when Ubuntu 12.04 is started:

1. Open the Software Center and install the laptop-mode package;
2. open the file:/etc/laptop-mode/laptop-mode.conf
Change the following flag to 1:
ENABLE_LAPTOP_MODE_ON_AC = 1
Save the file;
3. open the file:/etc/laptop-mode/conf. d/lcd-brightness.conf
Modify the following lines:
CONTROL_BRIGHTNESS = 1

BATT_BRIGHTNESS_COMMAND = "echo 3"
LM_AC_BRIGHTNESS_COMMAND = "echo 3"
NOLM_AC_BRIGHTNESS_COMMAND = "echo 3"
# BRIGHTNESS_OUTPUT = "/proc/acpi/video/VID/LCD/brightness"
BRIGHTNESS_OUTPUT = "/sys/class/backlight/acpi_video0/brightness"

Save the file;

4. Run the sudo update-grub command;

5. Restart the machine.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

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.