In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to adjust the screen brightness in Linux system, the content of the article is of high quality, so Xiaobian shares it with you as a reference, I hope you have a certain understanding of relevant knowledge after reading this article.
1. Open a terminal and view the maximum brightness value of the unit.
Enter command:
cat /sys/class/backlight/acpi_video0/max_brightness
The output displays a number. For example, the small edition is 15. as shown in the figure.
Note: If it is dual graphics, there are video1 and intel_backlight directories under/sys/class/backlight/, each with max_brightness and actual_brightness, indicating maximum brightness and actual brightness. The default is usually below video0.
2. Open the text editor. Usually gedit or pluma. Copy the following lines of code into a text editor and save them as. mybrt.sh. Note that this file name begins with. Hidden files at the beginning. This code means setting the brightness to 7. Earlier we checked that the maximum brightness is 15, so setting it to 7 is already very good. Of course, you can modify this number to your preferred brightness value.
The code is as follows:
#!/ bin/sh
#change brightness setting on startup or resume
pkexec /usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 7
as shown in the figure.
3. Add execution attributes to the.mybrt.sh file. Open the terminal and type chmod + x.mybrt.sh. as shown in the figure.
4. Set the boot login to automatically run the brightness script (that is, the newly created.mybrt.sh), so that each boot can be restored to the brightness we need. Enter the command in the terminal:
The code is as follows:
gsettings set org.gnome.settings-daemon.peripherals.input-devices hotplug-command "/home/who/.mybrt.sh"
Note: Replace who with your username. Fig.
After this setting, whether your laptop is restarted, logged out, closed screen, standby, etc., once you enter the desktop, the screen brightness will automatically return to the brightness value we set. This method is simple and does not require installing additional software or modifying system configuration files.
It is worth noting that this method only works for Linux systems using Gnome3 desktop environments, such as Ubuntu 11.04 and later, Linux deepin 12.06, Linux mint 13 Cinnamon, etc. Linuxmint13 late version does not work.
Software that automatically adjusts screen brightness
Calise
In intermittent development, Calise means "Camera Light Sensor." In other words, it is an open source program that calculates the optimal backlight level for the screen based on the light intensity received by the camera. Further, Calise can consider the weather in your area based on your geographic coordinates. I like it because it is compatible with all desktops, even non-X series.
It comes with both a command-line interface and a graphical interface, supports multi-user configuration, and even exports data to CSV. After installation, you must quickly correct it before witnessing the miracle.
What's not so flattering is that if you're like me, having a tape taped to the front of your camera is unfortunate, and it greatly affects Calise's accuracy. Besides, Calise is a great app that deserves our attention and support. As I mentioned earlier, it has gone through a difficult period of tinkering over the last few years, so I really hope this project continues.
Redshift
If you've ever thought about reducing the stress on your eyes caused by screens, you've probably heard of f.lux, a free proprietary software that modifies the brightness and color of your monitor based on the time of day. However, if there is a real preference for open source software, then one alternative is Redshift. Inspired by f.lux, Redshift can also change color and brightness to enhance your experience of sitting in front of a screen at night. At startup, you can configure geographic coordinates using longitude and latitude, and then you can run it in the tray. Redshift will smoothly adjust your color scheme or screen according to the position of the sun. At night, you can see that the screen's color temperature shifts to a warmer color, which will make your eyes suffer less.
Like Calise, it provides a command-line interface, as well as a graphical client. To start Redshift quickly, simply use the command:
The code is as follows:
$ redshift -l [LAT]:[LON]
About how to adjust the screen brightness in Linux system to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.
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.