Ubuntu11.10 brightness cannot be adjusted and screen brightness cannot be saved Solution

Source: Internet
Author: User
Tags acer
After several failed changes and reinstalls, I finally found a solution in answers on the official website: 1. The screen brightness cannot be saved after reboot: [cpp] sudogedit/etc/rc. after opening local, you will see the following content :#! /Bin/sh-e # & nbsp

After several failed changes and reinstalls, I finally found a solution on the official website's answers:

1. The screen brightness cannot be saved after reboot is solved:


[Cpp] 
 
 
  1. Sudo gedit/etc/rc. local
  2. After opening the file, you will see the following content:
  3. #! /Bin/sh-e
  4. #
  5. # Rc. local
  6. #
  7. # This script is executed at the end of each multiuser runlevel.
  8. # Make sure that the script will "exit 0" on success or any other
  9. # Value on error.
  10. #
  11. # In order to enable or disable this script just change the execution
  12. # Bits.
  13. #
  14. # By default this script does nothing.
  15. # Exit 0

Insert this sentence to the Code:

echo 0 > /sys/class/backlight/acpi_video0/brightness
Make sure that the modified Code is as follows. Note the "#" Before exit.

[Cpp] 
 
 
  1. #! /Bin/sh-e
  2. #
  3. # Rc. local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # Value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # Bits.
  11. #
  12. # By default this script does nothing.
  13. Echo 0>/sys/Class/Backlight/acpi_video0/brightness
  14. Exit 0

 

The value after echo is 0-10, corresponding to 0 to 100%. For example, echo 5 indicates half brightness.

Save and exit. Restart.

Note: Most people use acpi_video0, which is determined by their/sys/class/backlight/file.

2. brightness adjustment

Brightness adjustment depends on your bios and kernel version. You can try the following code:

Kernel boot options:

When you start the system and appear on the grup screen, press the e key to edit and add the following lines in the kernel line:

[Cpp]
  1. Nomodeset acpi_backlight = vendor
Note: Some hardware may be different. [Cpp]
  1. Intel-nomodeset acpi_backlight = intel Acer-acpi_backlight = acer_acpi or even acpi_osi = Linux acpi_backlight = legacy.
My computer is acer 4830tg. I directly wrote = vendor, which can also work normally. You can also search for the options you want to set through google.

[Cpp]
  1. Quiet splash nomodeset acpi_backlight = vendor
Exit startup. If it can be started normally, add this option to the default option and edit the file. /etc/default/grub

[Cpp]
  1. # Command line
  2. Sudo-e/etc/Default/Grub
  3. # Graphical
  4. Gksu gedit/etc/Default/Grub
Change this line to the following:
[Cpp]
  1. GRUB_CMDLINE_LINUX_DEFAULT ="Quiet splash nomodeset acpi_backlight = vendor"
Save and update grup

[Cpp]
  1. Sudo update-grub

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.