A-A+

Ubuntu 14.04为Intel/Nvidia双显卡调节亮度

2014年04月28日 硬件配置 阅读 28,461 views 次

薄荷开源网前文《灵活换角:Ubuntu使用Prime切换双显卡》中介绍了 Intel+Nvidia 双显卡的解决方案。Nvidia Prime 确实比 Bumblebee 成熟多了,而且得到了 Linux 内核的大力支持,真可谓双显卡用户的福音。从此,笔记本不再发热了,独显效用得以发挥了,风扇也安静了,电池续航也长了。

本文作为《灵活换角:Ubuntu使用Prime切换双显卡》的姊妹篇,主要介绍为 Intel/Nvidia 双显卡设置亮度的方法。且随小编看来。

首先,看看系统托盘中的 Prime Indicator 双显卡切换指示器,小编目前使用的是 Intel 集成显卡。在终端中分别输入如下 4 条命令,查看 2 个显卡各自的实际亮度值和最大亮度值。此举用意何在?这是为了了解自己到底需要多大的亮度值。

cat /sys/class/backlight/acpi_video0/actual_brightness
cat /sys/class/backlight/acpi_video0/max_brightness
cat /sys/class/backlight/intel_backlight/actual_brightness
cat /sys/class/backlight/intel_backlight/max_brightness

01-intel-nvidia-brightness
由上图可知,小编的 Intel 集显最大亮度值为 976,当前为 509,仍然觉得太亮了。Nvidia 独显最大亮度值为 9,当前为 5。了解这几个数字,我们可以确定一个合适的亮度值。

然后,切换到管理员身份,为下一步调整亮度做准备。

sudo su

02-intel-nvidia-brightness

以管理员身份为 Nvidia 独显设置一个较低的亮度值 3。由于目前使用的是 Intel 集显,所以屏幕亮度不会有变化。

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

03-intel-nvidia-brightness

再为 Intel 集显设置一个较低的亮度值 240。屏幕立刻变暗了一些,即刻生效。

echo 240 >> /sys/class/backlight/intel_backlight/brightness

04-intel-nvidia-brightness

随后,我们切换到 Nvidia 独显,看看刚才设置的亮度值为 3,是否生效。
05-intel-nvidia-brightness

注意观察系统托盘中的 Prime 双显卡切换指示器,目前使用的是 Nvidia 独显。在终端中查看 Nvidia 独显的实际亮度值。果然是刚才设置的 3。
06-intel-nvidia-brightness

事情还没完。重启之后,又会恢复默认亮度。此时,再次切换到管理员身份,编辑 /etc/rc.local 文件,把刚才 2 条设置亮度值的命令添加进去。以后每次启动都会自动设置为我们设定的亮度值了,非常省心。

sudo su
gedit /etc/rc.local
echo 3 >> /sys/class/backlight/acpi_video0/brightness
echo 240 >> /sys/class/backlight/intel_backlight/brightness

07-intel-nvidia-brightness

编辑完毕,保存退出,就算大功告成了,以后每次开机,系统会自动使用我们设定的亮度值。就是这么简单,朋友们还可以观看《薄荷视频》栏目中的视频演示《为Intel/Nvidia双显卡设置亮度》

16 条留言  访客:16 条  博主:0 条

  1. avatar lazyphp

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
    • avatar 还魂草

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
      • avatar honsen

        Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
        • avatar 还魂草

          Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  2. avatar yakiang

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  3. avatar PinyinGe

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  4. avatar xiaolongren25

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  5. avatar Sandy

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  6. avatar yanzilisan183

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  7. avatar yibcs

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  8. avatar jason

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  9. avatar Groker

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  10. avatar L

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
    • avatar 还魂草

      Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  11. avatar andwang

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263
  12. avatar rola20090632

    Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/litaowan/public_html/wp-content/themes/Ality/functions.php on line 263

给我留言

您必须 登录 才能发表留言!

Copyright © 薄荷开源网 保留所有权利.   Theme  Ality

用户登录

分享到: