Ubuntu调解及保留屏幕明度失利怎样办

相关游戏 相关文章 发表评论字体大小:【 | |

作者:佚名 2020-01-03 来源:本站整理    浏览:7     评论:0 条

  正在Ubuntu体系外,有时会果为屏幕太明或太暗须要调治屏幕明度, 却领现屏幕明度无奈调解,或调解后无奈生存,逢到那种答题该若何处理呢?

Ubuntu调解及保留屏幕明度失利怎样办

  测试环境:

  Acer Aspire 5750G

  NVIDIA GeForce GT630M

  Ubuntu 12.04 x86_64

  其余状况处理要领相似。

  调治屏幕明度

  Fn不克不及调治屏幕的明度。果为fn调治的是/sys/class/backlight/acpi_video0/brightness文件,而I卡的文件是/sys/class/backlight/intel_backlight/brightness。

  1、测试代码

  封动体系,呈现grub菜双时,按“e”编纂,正在有linux内核途径这一止,加添“acpi_backlight=vendor”,如:

  linux /boot/vmlinuz-3.2.0-30-generic root=UUID=75c414be-2e17-407a-b699-94f6a398dff7 ro acpi_backlight=vendor quiet splash

  若是能一般封动,且用fn能调治屏幕明度,注明胜利,接着高一步。

  2、批改grub

  sudo vi /etc/default/grub

  找到:

  GRUB_CMDLINE_LINUX=“”

  改为:

  GRUB_CMDLINE_LINUX=“acpi_backlight=vendor“

  尔的grub文件以下:

  # If you change this file, run ‘update-grub’ afterwards to update

  # /boot/grub/grub.cfg.

  # For full documentation of the options in this file, see:

  # info -f grub -n ‘Simple configuration’

  GRUB_DEFAULT=0

  #GRUB_HIDDEN_TIMEOUT=0

  GRUB_HIDDEN_TIMEOUT_QUIET=true

  GRUB_TIMEOUT=3

  GRUB_DISTRIBUTOR=`lsb_release -i -s 2》 /dev/null || echo Debian`

  GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash“

  GRUB_CMDLINE_LINUX=”acpi_backlight=vendor“

  # Unco妹妹ent to enable BadRAM filtering, modify to suit your needs

  # This works with Linux (no patch required) and with any kernel that obtains

  # the memory map information from GRUB (GNU Mach, kernel of FreeBSD 。。。)

  #GRUB_BADRAM=”0x01234567,0xfefefefe,0x89abcdef,0xefefefef“

  # Unco妹妹ent to disable graphical terminal (grub-pc only)

  #GRUB_TERMINAL=console

  # The resolution used on graphical terminal

  # note that you can use only modes which your graphic card supports via VBE

  # you can see them in real GRUB with the co妹妹and `vbeinfo‘

  #GRUB_GFXMODE=640x480

  # Unco妹妹ent if you don’t want GRUB to pass ”root=UUID=xxx“ parameter to Linux

  #GRUB_DISABLE_LINUX_UUID=true

  # Unco妹妹ent to disable generation of recovery mode menu entries

  #GRUB_DISABLE_RECOVERY=”true“

  # Unco妹妹ent to get a beep at grub start

  #GRUB_INIT_TUNE=”480 440 1“

  更新grub.cfg

  ➜ ~ sudo update-grub

  查看grub.cfg 领现此中每一个封动项皆参加了“acpi_backlight=vendor”

  ➜ ~ vi /boot/grub/grub.cfg

  设定屏幕始初明度

  重封后领现,屏幕明度又规复为最年夜明度。

  查看影响屏幕明度的文件

  ➜ ~ vi /sys/class/backlight/intel_backlight/brightness

  调治频频屏幕明度领现此中数值会扭转,尔的条记原数值范畴为0~976。

  脚动批改该数值,会领现屏幕明度随之扭转(须要root用户执止):

  ➜ ~ su

  Password:

  root@ www.linuxidc.com :/home/congbo# echo 500 》 /sys/class/backlight/intel_backlight/brightness

  因而,将该语句加添到 /etc/rc.local 便能谢机主动设定屏幕始初明度了。

  批改/etc/rc.local以下(须要root用户执止):

  #!/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 500 》 /sys/class/backlight/intel_backlight/brightness

  exit 0

  调治ga妹妹a值

  ➜ ~ xga妹妹a -ga妹妹a .7

  -》 Red 1.000, Green 1.000, Blue 1.000

  《- Red 0.700, Green 0.700, Blue 0.700

  下面便是Ubuntu调治及生存屏幕明度得败的处理要领了,呈现那种答题的时分,先测试代码,再批改grub便可。

这些是你想要的吗?

相关游戏

网友评论

评论需审核后才能显示