Successfully solved the problem that the screen brightness cannot be saved in Ubuntu12.04.

Source: Internet
Author: User
My computer is a ATI graphics card, and Ubuntu12.04LTS cannot automatically save the brightness: every time you log on/unlock, it is always the maximum brightness, so I hate it! After studying for one night, I finally got it done with two scripts! Script: bright [plain] #... I have solved the problem that the screen brightness of Ubuntu 12.04 cannot be saved successfully. My computer is a ATI graphics card, and the brightness of Ubuntu 12.04 LTS cannot be automatically saved: the maximum brightness is displayed after each login/unlock, which is annoying! After studying for one night, I finally got it done with two scripts! Script: bright [plain] #! /Bin/bash www.2cto.com # set the display brightness #1. run this command to view the maximum brightness of a display # $ cat/sys/class/backlight/acpi_video0/max_brightness # select a proper value and write it to/sys/class/backlight/acpi_video0/brightness. brightness #2. allow the users group to run "sudo tee" # $ sudo-S sh-c 'echo "% users ALL = (root) NOPASSWD without a password: /usr/bin/tee ">/etc/sudoers. d/bright '# $ sudo chmod 0440/etc/sudoers. d/bright #3. add a user to the users user group # $ sudo adduser your_username users echo 15 | s Udo tee/sys/class/backlight/acpi_video0/brightness script: bright-monitor [plain] #! /Bin/bash www.2cto.com # automatically executed when the user logs in successfully, including returning from the lock status # set this script to auto start: # right-click the gear icon in the upper right corner-> start the application... # Remember to copy the bright and bright-monitor scripts to/usr/bin first. # This allows multiple users to conveniently control the brightness of executor-monitor -- session "type = 'Signal ', interface = 'org. gnome. screenSaver ', member = 'activechanged' "| while read line; do bright done usage reference the notes in the script.
Author Loaden
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.