Adjust screen brightness in Linux

Source: Internet
Author: User
I believe that after Linux is installed, I find that there are not a few people who cannot adjust the brightness, and I am unfortunately one of them. I called and sent an email to customer service, saying that only Windows is supported... Quite speechless. 1000 words are omitted in the intermediate process, and a solution is provided directly. First of all, I installed a deep Linux,... I believe that after installing Linux, I found that there were not many people who could not adjust the brightness, and I was unfortunately one of them. I called and sent an email to customer service, saying that only Windows is supported... Quite speechless. 1000 words are omitted in the intermediate process, and a solution is provided directly. First, I installed a deep Linux, which should be the same as Ubuntu. My computer is Tsinghua's K41H and I5 core display. The system calls the brightness file under/sys/class/backlight/acpi_video0 to adjust the brightness. In fact, the brightness is determined by/sys/class/backlight/intel_backlight/brightness. I initially thought that acpi_video0 was directed to intel_backlight, but it was unsuccessful. maybe I am not familiar with Linux. Therefore, I cannot adjust the brightness by using the FN shortcut. Second, I wrote two scripts to increase/decrease the brightness. Brightness reduction: if [! -W/sys/class/backlight/intel_backlight/brightness]; then echo "password" | sudo-S chmod 777/sys/class/backlight/intel_backlight/brightness fi read bright <'/sys/class/backlight/intel_backlight/brightness' v = 600 v = $ ($ bright-4882/9 )) echo $ v | tee/sys/class/backlight/intel_backlight/brightness increase brightness: if [! -W/sys/class/backlight/intel_backlight/brightness]; then echo "password" | sudo-S chmod 777/sys/class/backlight/intel_backlight/brightness fi read bright <'/sys/class/backlight/intel_backlight/brightness' v = 600 v = $(4882/9 + $ bright )) echo $ v | tee/sys/class/backlight/intel_backlight/brightness because the brightness file has no write permission by default, you can change its permission to writable first. Finally, create two starters on the taskbar. you can easily adjust the brightness with the mouse ~ Author: jianshusoft
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.