最近寫code都用Ubuntu, 發現近視越來越嚴重. 在某個夜晚, 亮度默認原來是最大的....
為了眼睛..肯定得解決這個問題啦.搜了下,網上有很多種說法. 本人比較笨..太復雜的都不敢看..
最后終於在不同的文章的找到了不同簡單方法:
- 亮度調節:
修改/etc/default/grub文件,打開終端運行:
sudo gedit /etc/default/grub添加下面代碼到打開的文件里:
acpi_osi=Linux acpi_backlight=vendor
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"更新gurb,終端運行:
update-grub重啟后就可以直接拖動亮度條或快捷鍵動態調節亮度了。不過下一次開機還是恢復50%亮度,每次開機都需要自己調節。保存亮度這個問題還沒解決,先湊合用着,起碼不用再忍受刺眼的亮度了。
- 亮度保存:
sudo gedit /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.exit 0
插入這句話到exit 0的前面:
echo 0 > /sys/class/backlight/acpi_video0/brightness
方法出自: http://paicha.me/2012/03/11/864, http://blog.csdn.net/linuxzhouying/article/details/7177200