ubuntu 11.10亮度无法调节和无法保存屏幕亮度解决办法_VMware, Unix及操作系统讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  VMware, Unix及操作系统讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 4351 | 回复: 0   主题: ubuntu 11.10亮度无法调节和无法保存屏幕亮度解决办法        下一篇 
    本主题由 koei 于 2012-2-15 19:26:13 移动
barry
注册用户
等级:中校
经验:1534
发帖:236
精华:2
注册:2012-1-13
状态:离线
发送短消息息给barry 加好友    发送短消息息给barry 发消息
发表于: IP:您无权察看 2012-2-14 10:13:19 | [全部帖] [楼主帖] 楼主

经过多次更改失败重装后终于在官网的answers找到了解决办法:原文链接 http://askubuntu.com/questions/3841/desktop-doesnt-remember-brightness-settings-after-a-reboot

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



[cpp]view plaincopyprint?

  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


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]view plaincopyprint?

  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  

#!/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这一行添加:

[cpp]view plaincopyprint?

  1.      nomodeset acpi_backlight=vendor  


     nomodeset acpi_backlight=vendor注意:有些硬件可能会是不同的选项.

[cpp]view plaincopyprint?

  1. Intel - nomodeset acpi_backlight=intel Acer - acpi_backlight=acer_acpi or even acpi_osi=Linux acpi_backlight=legacy.  

Intel - nomodeset acpi_backlight=intel Acer - acpi_backlight=acer_acpi or even acpi_osi=Linux acpi_backlight=legacy.


我的电脑是acer 4830tg,我直接写的=vendor也是同样可以正常工作,你也可以通过google去查找你要设置的选项。

[cpp]view plaincopyprint?

  1.     quiet splash nomodeset acpi_backlight=vendor  


    quiet splash nomodeset acpi_backlight=vendor 退出启动,如果能正常启动,就把这项选项添加到默认的选项中,编辑文件

 /etc/default/grub
[cpp]view plaincopyprint?

  1. # command line 
  2. sudo -e /etc/default/grub  
  3. # graphical 
  4. gksu gedit /etc/default/grub  

# command line sudo -e /etc/default/grub # graphical gksu gedit /etc/default/grub 把这一行改成如下:
[cpp]view plaincopyprint?

  1. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor"


GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor" 保存,更新grup




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论