1、解決reboot後無法保存屏幕亮度:
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前的“#”
#!/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這一行添加:
nomodeset acpi_backlight=vendor
注意:有些硬件可能會是不同的選項.
Intel - nomodeset acpi_backlight=intel Acer - acpi_backlight=acer_acpi or even acpi_osi=Linux acpi_backlight=legacy.
我的電腦是acer 4830tg,我直接寫的=vendor也是同樣可以正常工作,你也可以通過google去查找你要設置的選項。
quiet splash nomodeset acpi_backlight=vendor
退出啓動,如果能正常啓動,就把這項選項添加到默認的選項中,編輯文件/etc/default/grub
# command line sudo -e /etc/default/grub # graphical gksu gedit /etc/default/grub
把這一行改成如下:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor"
保存,更新grup
sudo update-grub
如果還是沒有解決問題的話請參照如下鏈接方法:
http://askubuntu.com/questions/3841/desktop-doesnt-remember-brightness-settings-after-a-reboot
http://www.linuxso.com/linuxrumen/16061.html