歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux服務器

教你在Ubuntu操作系統下保存屏幕亮度設置

本文保留屏幕亮度方法適合使用筆記本的朋友,大家都知道,過亮的屏幕不但刺眼而且縮短LCD屏幕壽命,不幸的是,Ubuntu默認關機後並不保存當前屏幕亮度配置數據,每次開機都要重新設置亮度,很不方便。本文介紹的方法可以徹底解決這個問題!

1.修改/etc/default/acpi-support

ENABLE_LAPTOP_MODE=true

2.修改 /etc/laptop-mode/laptop-mode.conf

交流電模式下使用 laptop mode

#

# Enable laptop mode when on AC power.

#

ENABLE_LAPTOP_MODE_ON_AC=1

#電池那也可設為1

使用 laptop mode 進行LCD亮度控制

#

# Should laptop mode tools control LCD brightness?

#

CONTROL_BRIGHTNESS=1

#

# Commands to execute to set the brightness on your LCD

#

BATT_BRIGHTNESS_COMMAND=”echo 0″

LM_AC_BRIGHTNESS_COMMAND=”echo 9″

NOLM_AC_BRIGHTNESS_COMMAND=”echo 9″

BRIGHTNESS_OUTPUT=”/sys/class/backlight/acpi_video1/brightness”

如果你不明白上面的設置的意思,可以參考下面的說明:

***********************************

# * If your system has the file “/proc/acpi/video/VID/LCD/brightness” (VID may

# be VID1 or similar), use this file as BRIGHTNESS_OUTPUT, and use

# the command “echo “. The possible values can be listed using the

# command:

#

# cat /proc/acpi/video/VID/LCD/brightness

# * If you have a file /sys/class/backlight/…/brightness, then you can use

# that file as BRIGHTNESS_OUTPUT, and the command “echo “.

#

# As far as I understand it the values are between 0 and

# the value contained in the file /sys/class/backlight/…/max_brightness.

**********************************

Copyright © Linux教程網 All Rights Reserved