In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to adjust screen brightness under Linux". In daily operation, I believe many people have doubts about how to adjust screen brightness under Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the questions of "how to adjust screen brightness under Linux". Next, please follow the editor to study!
1 Overview
The screen adjustment under Linux can be adjusted through the graphical interface or the command line. The graphical interface is mainly adjusted in the settings, and can be adjusted manually if there are no corresponding options in the settings.
2 manual adjustment 2.1 manual screen adjustment
The brightness is controlled by the ACPI kernel module, and the module interface is in / sys/class/backlight. After entering / sys/class/backlight, there will be a folder called intel_backlight/nv_backlight (which is related to hardware). When you enter it again, you will have the following files:
Brightness is the brightness of the current screen, and max_brightness is the maximum brightness. The author's environment shows as follows:
When you need to adjust the brightness, switch to the root user and write a value directly to the brightness to adjust the brightness:
Echo 50 > brightness
Note that the scope is [0-max_brightness], and the illegal scope cannot be executed successfully:
Warriors can try echo 0 > brightness.
2.2 external display screen adjustment
If it is an external display screen, using the above method is not adjustable, you need to use another command:
Xrandr
After input, the corresponding external interface is displayed, such as:
The HDMI-1 here is the external interface, and then through:
Xrandr-- output HDMI-1-- brightness 0.5
Adjust the brightness, the range of brightness is 0-1. This command does not require root and can be executed directly.
3 automatic adjustment
In addition, the author searched and found two software that can automatically adjust the brightness of the screen:
Calise
Redshift
The latter is recommended, because Calise seems to have not been updated for a long time, which is a long way from Redshiift:
Redshift installation is very simple, the author's machine only needs:
Yay-S redshift
Redshift provides a command line and a graphical interface, which can be adjusted automatically through longitude, latitude and current time. When opened, there will be an icon in the tray and an option info in the right button. When opened, you can see the current longitude and latitude, color temperature and the state of day or night. You can enter:
Redshift-v
View more details.
If you want to adjust the brightness manually, you can adjust it by-b, for example:
Redshift-b 1.0 purl 0.7
Before and after the colon indicates the brightness of the day and night respectively, note that this command will also adjust the brightness of the external display screen. For more options, enter
Redshift-h
Inquiry.
At this point, the study on "how to adjust the brightness of the screen under Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.