Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2564970
  • 博文数量: 315
  • 博客积分: 3901
  • 博客等级: 少校
  • 技术积分: 3640
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-08 15:32
个人简介

知乎:https://www.zhihu.com/people/monkey.d.luffy Android高级开发交流群2: 752871516

文章分类

全部博文(315)

文章存档

2019年(2)

2018年(1)

2016年(7)

2015年(32)

2014年(39)

2013年(109)

2012年(81)

2011年(44)

分类: LINUX

2013-08-29 09:55:07

最近写code都用Ubuntu, 发现近视越来越严重. 在某个夜晚, 亮度默认原来是最大的....


为了眼睛..肯定得解决这个问题啦.搜了下,网上有很多种说法. 本人比较笨..太复杂的都不敢看..


最后终于在不同的文章的找到了不同简单方法:


亮度调节: 
修改/etc/default/grub文件,打开终端运行:


sudo gedit /etc/default/grub
添加下面代码到打开的文件里:


acpi_osi=Linux acpi_backlight=vendor
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"
更新gurb,终端运行:


update-grub
重启后就可以直接拖动亮度条或快捷键动态调节亮度了。不过下一次开机还是恢复50%亮度,每次开机都需要自己调节。保存亮度这个问题还没解决,先凑合用着,起码不用再忍受刺眼的亮度了。






亮度保存: 
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


   插入这句话到exit 0的前面:


    echo 0 > /sys/class/backlight/acpi_video0/brightness


 


方法出自: http://blog.csdn.net/linuxzhouying/article/details/7177200
阅读(2864) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

CatLovers2015-05-31 17:27:46

保存亮度设置的确是一个大问题,正在求解之中。。。。。。