歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 11.10亮度無法調節和無法保存屏幕亮度解決辦法

Ubuntu 11.10亮度無法調節和無法保存屏幕亮度解決辦法

日期:2017/2/28 15:56:41   编辑:Linux教程

經過多次更改失敗重裝後終於在官網的answers找到了解決辦法:

1、解決reboot後無法保存屏幕亮度:


[cpp] 
  1. sudo gedit /etc/rc.local
  2. 打開後你會看到如下內容:
  3. #!/bin/sh -e
  4. #
  5. # rc.local
  6. #
  7. # This script is executed at the end of each multiuser runlevel.
  8. # Make sure that the script will “exit 0″ on success or any other
  9. # value on error.
  10. #
  11. # In order to enable or disable this script just change the execution
  12. # bits.
  13. #
  14. # By default this script does nothing.
  15. #exit 0

插入這句話到代碼中:

echo 0 > /sys/class/backlight/acpi_video0/brightness
保證修改後代碼如下,注意exit前的“#”

[cpp] 
  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will “exit 0″ on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # By default this script does nothing.
  13. echo 0 > /sys/class/backlight/acpi_video0/brightness
  14. exit 0

其中echo 後面的值為0-10,對應為0到100%,如echo 5表示一半亮度

保存後退出,重啟就可以了。

注意:大多數人都是acpi_video0,根據自己/sys/class/backlight/下面文件決定

2、亮度調節

亮度調節依賴與你的bios和內核版本,你可以嘗試以下代碼:

kernel boot選項:

當你啟動系統時,出現在grup的屏幕時,按e鍵進行編輯,在kernel這一行添加:

[cpp]
  1. nomodeset acpi_backlight=vendor
注意:有些硬件可能會是不同的選項. [cpp]
  1. Intel - nomodeset acpi_backlight=intel Acer - acpi_backlight=acer_acpi or even acpi_osi=Linux acpi_backlight=legacy.
我的電腦是acer 4830tg,我直接寫的=vendor也是同樣可以正常工作,你也可以通過google去查找你要設置的選項。

[cpp]
  1. quiet splash nomodeset acpi_backlight=vendor
退出啟動,如果能正常啟動,就把這項選項添加到默認的選項中,編輯文件/etc/default/grub

[cpp]
  1. # command line
  2. sudo -e /etc/default/grub
  3. # graphical
  4. gksu gedit /etc/default/grub
把這一行改成如下:
[cpp]
  1. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor"
保存,更新grup

[cpp]
  1. sudo update-grub
Copyright © Linux教程網 All Rights Reserved