Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2705521
  • 博文数量: 505
  • 博客积分: 1552
  • 博客等级: 上尉
  • 技术积分: 2514
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-23 18:24
文章分类

全部博文(505)

文章存档

2019年(12)

2018年(15)

2017年(1)

2016年(17)

2015年(14)

2014年(93)

2013年(233)

2012年(108)

2011年(1)

2009年(11)

分类: LINUX

2014-04-07 10:08:35

经过多次更改失败重装后终于在官网的answers找到了解决办法:原文链接


1、解决reboot后无法保存屏幕亮度:


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

插入这句话到代码中:

echo 0 > /sys/class/backlight/acpi_video0/brightness 
保证修改后代码如下,注意exit前的“#”
  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这一行添加:

  1.      nomodeset acpi_backlight=vendor  
注意:有些硬件可能会是不同的选项.
  1. Intel - nomodeset acpi_backlight=intel Acer - acpi_backlight=acer_acpi or even acpi_osi=Linux acpi_backlight=legacy.  

我的电脑是acer 4830tg,我直接写的=vendor也是同样可以正常工作,你也可以通过google去查找你要设置的选项。
  1.     quiet splash nomodeset acpi_backlight=vendor  
退出启动,如果能正常启动,就把这项选项添加到默认的选项中,编辑文件/etc/default/grub
  1. # command line  
  2. sudo -e /etc/default/grub  
  3.   
  4. # graphical  
  5. gksu gedit /etc/default/grub  
把这一行改成如下:
  1. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor"  
保存,更新grup
  1. sudo update-grub  
如果还是没有解决问题的话请参照如下链接方法:
阅读(1428) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~