經過多次更改失敗重裝後終於在官網的answers找到了解決辦法:
1、解決reboot後無法保存屏幕亮度:
[cpp]
- 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
插入這句話到代碼中:
echo 0 > /sys/class/backlight/acpi_video0/brightness
保證修改後代碼如下,注意exit前的“#”
[cpp]
- #!/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 0 > /sys/class/backlight/acpi_video0/brightness
- exit 0
其中echo 後面的值為0-10,對應為0到100%,如echo 5表示一半亮度
保存後退出,重啟就可以了。
注意:大多數人都是acpi_video0,根據自己/sys/class/backlight/下面文件決定
2、亮度調節
亮度調節依賴與你的bios和內核版本,你可以嘗試以下代碼:
kernel boot選項:
當你啟動系統時,出現在grup的屏幕時,按e鍵進行編輯,在kernel這一行添加:
/etc/default/grub
[cpp]