免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5111 | 回复: 2
打印 上一主题 下一主题

ubuntu 11.10亮度无法调节和无法保存屏幕亮度解决办法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-01-05 15:21 |只看该作者 |倒序浏览
ubuntu 11.10亮度无法调节和无法保存屏幕亮度解决办法







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




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




view plaincopy to clipboardprint?sudo gedit /etc/rc.local    打开后你会看到如下内容:
  1. #!/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  sudo gedit /etc/rc.local
复制代码
打开后你会看到如下内容:
  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. #exit 0
复制代码
插入这句话到代码中:
  1. echo 0 > /sys/class/backlight/acpi_video0/brightness
复制代码
保证修改后代码如下,注意exit前的“#”
  1. view plaincopy to clipboardprint?#!/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  #!/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这一行添加:

view plaincopy to clipboardprint?     nomodeset acpi_backlight=vendor  
     nomodeset acpi_backlight=vendor注意:有些硬件可能会是不同的选项.view plaincopy to clipboardprint?Intel -
  1. nomodeset acpi_backlight=intel Acer - acpi_backlight=acer_acpi or even acpi_osi=Linux acpi_backlight=legacy.  
  2. Intel - nomodeset acpi_backlight=intel Acer - acpi_backlight=acer_acpi or even acpi_osi=Linux acpi_backlight=legacy.
复制代码
我的电脑是acer 4830tg,我直接写的=vendor也是同样可以正常工作,你也可以通过google去查找你要设置的选项。
  1. view plaincopy to clipboardprint?    quiet splash nomodeset acpi_backlight=vendor  
  2.     quiet splash nomodeset acpi_backlight=vendor
复制代码
退出启动,如果能正常启动,就把这项选项添加到默认的选项中,编辑文件/etc/default/grub
  1. view plaincopy to clipboardprint?# command line   
  2. sudo -e /etc/default/grub  
  3.   
  4. # graphical   
  5. gksu gedit /etc/default/grub  
  6. # command line
  7. sudo -e /etc/default/grub

  8. # graphical
  9. gksu gedit /etc/default/grub
复制代码
把这一行改成如下:
  1. view plaincopy to clipboardprint?GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor"  
  2. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor"
复制代码
保存,更新grup

  1. view plaincopy to clipboardprint?sudo update-grub  
  2. sudo update-grub
复制代码
如果还是没有解决问题的话请参照如下链接方法:

http://askubuntu.com/questions/3 ... ings-after-a-reboot

论坛徽章:
0
2 [报告]
发表于 2012-01-05 15:21 |只看该作者
谢谢分享

论坛徽章:
0
3 [报告]
发表于 2012-04-18 22:33 |只看该作者
很感谢,可惜新手还不知道怎么办
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP