经过多次更改失败重装后终于在官网的answers找到了解决办法:原文链接 http://askubuntu.com/questions/3841/desktop-doesnt-remember-brightness-settings-after-a-reboot
 
1、解决reboot后无法保存屏幕亮度:
 
[cpp] view plaincopy
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 plaincopy
#!/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 plaincopy
     nomodeset acpi_backlight=vendor  
注意:有些硬件可能会是不同的选项.
[cpp] view plaincopy
Intel - nomodeset acpi_backlight=intel Acer - acpi_backlight=acer_acpi or even acpi_osi=Linux acpi_backlight=legacy.  
 
我的电脑是acer 4830tg,我直接写的=vendor也是同样可以正常工作,你也可以通过google去查找你要设置的选项。
[cpp] view plaincopy
    quiet splash nomodeset acpi_backlight=vendor  
退出启动,如果能正常启动,就把这项选项添加到默认的选项中,编辑文件/etc/default/grub
[cpp] view plaincopy
# command line  
sudo -e /etc/default/grub  
  
# graphical  
gksu gedit /etc/default/grub  
把这一行改成如下:
[cpp] view plaincopy
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset acpi_backlight=vendor"  
保存,更新grup
[cpp] view plaincopy
sudo update-grub  
如果还是没有解决问题的话请参照如下链接方法:
http://askubuntu.com/questions/3841/desktop-doesnt-remember-brightness-settings-after-a-reboot
 
******************************************
 
解决 Ubuntu 12.04 LTS 保存屏幕亮度的问题
 
        首先,查看我们当前系统的屏幕亮度以及最大亮度值:
        treasure@ASUS-N43S:~$ ls /sys/class/backlight/
        acpi_video0  acpi_video1  intel_backlight
        我这有两个acpi,不知道哪个是控制当前屏幕的acpi,那么我们可以通过以下命令进行测试
        treasure@ASUS-N43S:~$ cat /sys/class/backlight/acpi_video0/actual_brightness 
        10
        treasure@ASUS-N43S:~$ cat /sys/class/backlight/acpi_video0/brightness 
        10
        treasure@ASUS-N43S:~$ cat /sys/class/backlight/acpi_video0/max_brightness 
        10
        这三个10分别表示的是当前屏幕的实际亮度、亮度、最大亮度,取值范围在[0-10],值越大屏幕越亮。
        treasure@ASUS-N43S:~$ cat /sys/class/backlight/acpi_video1/actual_brightness 
        2
        treasure@ASUS-N43S:~$ cat /sys/class/backlight/acpi_video1/brightness 
        2
        treasure@ASUS-N43S:~$ cat /sys/class/backlight/acpi_video1/max_brightness 
        10
        很显然,控制我当前屏幕的亮度是acpi_video1,因为我在测试当前屏幕属于哪个acpi时,我对当前的屏幕亮度进行了设置,如果不是控制当前屏幕亮度的acpi,那么它默认的实际亮度和亮度是10的。
        下面的问题怎样在开机时显示我们自己设置好的屏幕亮度,很简单,如下:
        修改/etc/rc.local文件,命令:treasure@ASUS-N43S:~$ sudo gedit /etc/rc.local
        在打开rc.local文件的 exit 0 语句的上面添加一行 sudo sh -c "echo -n 2 > /sys/class/backlight/acpi_video1/brightness"  就算完成啦!

ubuntu 12.04亮度无法调节和无法保存屏幕亮度解决办法(echo_brightness)的更多相关文章

  1. U盘安装Ubuntu 12.04成功后系统无法启动的原因及解决办法

    想搭建一个Linux开发环境,选择了ubuntu12.04长期支持版,采用u盘安装(Universal-USB-Installer做的启动),发现安装完成之后,拔掉u盘无法启动,插上u盘之后,可以重启 ...

  2. Ubuntu 15.04下MySQL 5.6.25不支持中文解决办法

    Ubuntu 15.04下MySQL 5.6.25不支持中文解决办法,apt-get install 安装的,不是源码包安装的mysql. 1 修改mysql的配置文件 /etc/mysql/conf ...

  3. Ubuntu 14.04风扇不停转,风扇狂转 的解决办法,亲测有效。

    Ubuntu 14.04风扇不停转,风扇狂转 的解决办法,亲测有效. 原文  http://ubuntuforums.org/showthread.php?t=2218367 楼主说:ubuntu 1 ...

  4. Ubuntu 12.04下Matlab2009a启动后出现某些问题的解决方法

    本文来自linux公社:http://www.linuxidc.com/Linux/2012-08/68346.htm 在Ubuntu 12.04 LTS下正确安装matlab r2009a后,启动起 ...

  5. Ubuntu 16.04 LTS 下安装MATLAB2015b 以及Matlab system error解决办法

    下载MATLAB2015b破解版 操作系统:Ubuntu 16.o4 LTS 程序文件:Matlab2015b-glnxa64破解版 解压提取文件:在ubuntu系统下可以直接提取压缩文件,得到三个文 ...

  6. w530 在ubuntu 12.04 _x64 背光调节方法

    So to get the screen brightness keys working with your Nvidia graphics card, create a file in the xo ...

  7. Ubuntu 16.04安装CrossOver容器来安装QQ(终极解决办法,亲测有效)

    说明:此版本的QQ基本完美,但是有个缺点就是历史记录有些会显示乱码! 注意:此方法能完美解决这篇文章http://www.cnblogs.com/EasonJim/p/7118693.html的所有问 ...

  8. ubuntu 12.04 install docker-engine1.12.3

    root@node3:/data/src# cat /etc/issueUbuntu 12.04.4 LTS \n \l   root@node3:/data/src# cat /etc/apt/so ...

  9. Ubuntu 12.04 安装 Apache2+PHP5+MySQL

    LAMP是Linux web服务器组合套装的缩写,分别是Apache+MySQL+PHP.此教程教大家如何在Ubuntu 12.04 LTS server 上安装Apache2服务器,包括PHP5(m ...

随机推荐

  1. Atitit.api参数传递的设计

    Atitit.api参数传递的设计 · 引言 · 形参和实参 · 命名实参 · 可选参数 · params,数目可变参数 · 方法解析与重载决策 · 参数传递      [重难点] · ref引用参数 ...

  2. Atitit. js mvc 总结(2)----angular 跟 Knockout o99 最佳实践

    Atitit. js mvc 总结(2)----angular  跟 Knockout o99 最佳实践 1. 框架 angular 跟Knockout 1 2. 2. 简单的列表绑定:Knockou ...

  3. java继承8个题

    1.实现如下类之间的继承关系,并编写Music类来测试这些类. public class Instrument { public void play(){ System.out.println(&qu ...

  4. com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time:

    http://www.cnblogs.com/mayongsheng/p/4387109.html https://github.com/awslabs/aws-sdk-android-samples ...

  5. 无线电源传输 Wireless Power Consortium (WPC) Communication

    Universally Compatible Wireless Power Using the Qi Protocol Wireless charging of portable electronic ...

  6. framework4.0注册到IIS

    C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir -enable C:\WINDOWS\Microsoft.NET ...

  7. Java中BigDecimal的8种舍入模式

    java.math.BigDecimal 不可变的.任意精度的有符号十进制数.BigDecimal 由任意精度的整数非标度值和32位的整数标度(scale)组成. 如果为零或正数,则标度是小数点后的位 ...

  8. MySQL执行计划中key_len详解

    (1).索引字段的附加信息:可以分为变长和定长数据类型讨论,当索引字段为定长数据类型,比如char,int,datetime,需要有是否为空的标记,这个标记需要占用1个字节:对于变长数据类型,比如:v ...

  9. 【转】开启Apache mod_rewrite模块完全解答

    启用mod_rewrite模块在conf目录的httpd.conf文件中找到LoadModule rewrite_module modules/mod_rewrite.so将这一行前面的#去掉.2.在 ...

  10. Win8.1 远程桌面 凭据无法工作

    最近遇到一个杯具的事情 电脑重装完系统后,发现 win7/server08/server12 无法远程到我的电脑了- 每次连接都显示如下:   灵异的是从 xp 和 server03 能远程进来-   ...