"Linux" Ubuntu Boot Default Brightness modification method

Source: Internet
Author: User


after changing the Ubuntu , found that the boot screen is " maximum brightness ", each time to the settings to manually adjust, very troublesome. So think to modify this setting,Google a pass, others feasible way to me this is useless, depressed. Finally, in theStackOverflowOne of the commands in the answer made me suddenly realize~ ~ ~ (>_<) ~ ~ ~again"Permissions"Blame it on the trouble! Now that the problem is solved, record it here.

Note : The following terminal command input first root

Screen brightness profile is in the /sys/class/backlight/ Directory folder in this directory will vary depending on the video card, my is Intel , so there is a The Intel_backlight folder. After entering this folder, this is the following :

where brightness and actual_brightness Save the current screen brightness value,max_brightness is the maximum brightness of the screen. If the boot is automatically adjusted to their favorite brightness, then it is to let the system start automatically change the value of this two files.

To implement this feature, add commands to the rc.local file in the /etc/ directory .

Enter sudo sublime/etc/rc.local in the terminal

PS: If the sublime is not installed , then replace it with gedit .

After I opened it, there was only one exit, except for the comment. 0

Now exit ( if exit 0 does not add yourself ) before adding two statements

Echo 1400 >/sys/class/backlight/intel_backlight/brightness

Echo 1400 >/sys/class/backlight/intel_backlight/actual_brightness

Some seemingly as long as the change brightness can, regardless of it, all change not wrong ~_~

1400 According to your own needs to come, as long as not more than the maximum brightness value can be.

The effect is as follows :

  

I thought it was done, but I didn't.

My brightness and actual_brightness files are not written. So I'm going to change their permissions.

chmod 777/sys/class/backlight/intel_backlight/brightness

chmod 777/sys/class/backlight/intel_backlight/actual_brightness

Simple violent 777, all rights to it ~

The next time you start up is the brightness value you set yourself.


"Reprint Please specify the source"

Author:mummyding

Source: http://blog.csdn.net/mummyding/article/details/46596597

"Linux" Ubuntu Boot Default Brightness modification method

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.