2015年3月15日 星期日

ubuntu 14.10 筆電螢幕亮度保存

我的筆電顯卡:intel + NV
筆電型號:s451lb

輸入指令
> cat /sys/class/backlight/intel_backlight/actual_brightness
會有數字出現,數字越大代表亮度越大

可以用sudo nano進去調整到對自己最合適的亮度

再來在/etc/rc.local檔案加上一行指令(底下黃色部份,490為亮度)



> nano /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo 490 > /sys/class/backlight/intel_backlight/brightness

exit 0

存檔後,重新開機就會發現亮度會紀錄下來了。

沒有留言:

張貼留言