ubuntu 12.04亮度无法调节和无法保存屏幕亮度解决办法
来源:互联网 发布:windows xp sp3英文版 编辑:程序博客网 时间:2024/05/16 23:57
经过多次更改失败重装后终于在官网的answers找到了解决办法:原文链接 http://askubuntu.com/questions/3841/desktop-doesnt-remember-brightness-settings-after-a-reboot
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"
- sudo update-grub
0 0
- ubuntu 12.04亮度无法调节和无法保存屏幕亮度解决办法
- ubuntu 12.04亮度无法调节和无法保存屏幕亮度解决办法
- ubuntu 11.10亮度无法调节和无法保存屏幕亮度解决办法gksu gedit /etc/default/grub
- ubuntu 12.04 无法调节屏幕亮度
- Ubuntu12.04 无法调节并保存屏幕亮度解决办法
- 解决Ubuntu无法保存屏幕亮度调节的办法
- Ubuntu无法调节屏幕亮度的解决方案
- ubuntu 无法调节屏幕亮度问题
- ubuntu屏幕亮度无法调节的问题
- Ubuntu亮度无法调节或调节无法保存的问题
- 解决 Ubuntu 12.04 无法调节屏幕亮度的问题
- 解决 Ubuntu 12.04 无法调节屏幕亮度的问题
- 解决 Ubuntu 12.04 无法调节屏幕亮度的问题
- 联想电脑屏幕亮度无法调节
- Win10屏幕亮度无法调节
- 联想电脑屏幕亮度无法调节
- ubuntu 12.04亮度无法保存
- 解决 Ubuntu 12.04 无法调节屏幕亮度及开机默认亮度设定的问题
- cocos2dx eclipse 设置C++ include 包含目录
- 一些网址
- 分布式网页抓取
- 驱动调试常见问题_Camera
- c 详解大端和小端
- ubuntu 12.04亮度无法调节和无法保存屏幕亮度解决办法
- LearnVSXNow! #14- VSCT文件基础
- 传智播客-JAVA学科-14年1月份Java基础之开启征服源码之旅!
- html5-canvas2-圆、矩形
- 驱动调试常见问题_触摸屏
- 好文章——Web开发人员需知的Web缓存知识
- LearnVSXNow! #15- 创建简单的编辑器-基础
- uva 668 - Parliament(贪心)
- SUSE:开放是云计算的未来