ubuntu亮度无法自动调节终极解决方法

There are many ways to control brightness. According to this discussion[1] and this wiki page [2], the control method could be divided into these categories:

brightness is controlled by vendor specified hotkey. And there is no interface for OS to adjust brightness.
brightness is controlled by OS:

brightness could be controlled by ACPI
brightness could be controlled by graphic driver.
All methods expose themselves to the user by /sys/class/brightness. And xrandr/xbacklight could use this folder and choose one method to control brightness. But it is still not very clear which one xbacklight prefers by default. See FS#27677 for xbacklight, if you get "No outputs have backlight property." There is a temporary fix if xrandr/xbacklight does not choose the right directory in /sys/class/brightness: You can specify the one you want in xorg.conf by setting the "Backlight" option of the Device section to the name of that directory
brightness is controlled by HW register throught setpci

ACPIIt is often possible to adjust the backlight by ACPI. This controls the actual LEDs or cathodes of the screen. When this ACPI option is available, the illumination is controllable using a GUI slider in the Display/Screen system settings or by simple commands on the CLI.

Different cards might manage this differently. Check /sys/class/backlight to find out:

# ls /sys/class/backlight/intel_backlight
So this particular backlight is managed by an Intel card. It is called acpi_video0 on an ATI card. In the following example, acpi_video0 is used.

The directory contains the following files and folders:

actual_brightness brightness max_brightness subsystem/ uevent
bl_power device/ power/ type
The maximum brightness (often 15) can be found by running cat:

# cat /sys/class/backlight/acpi_video0/max_brightness
15
Brightness can then be set (as root) with echo. Obviously you cannot go any higher than your screen's maximum brightness. The values for maximum brightness and brightness in general vary wildly among cards.

# echo 5 > /sys/class/backlight/acpi_video0/brightness
Sometimes ACPI does not work well due to different motherboard implementations and ACPI quirks. This include some models with dual graphics (e.g. Nvidia-optimus/Radeon with intel (i915)) and some examples with this problem in notebooks such as Dell Studio, Dell XPS 14/15/17 and some Lenovo series, Kamal Mostafa kernel developer make patches for solved this issue included after 3.1 kernel version. You can try adding the following kernel parameters in your bootloader(grub, syslinux...) to adjust ACPI model:

acpi_osi=Linux acpi_backlight=vendor
or

acpi_osi=Linux acpi_backlight=legacy
acpi_backlight=vendor will prefer vendor specific driver (e.g. thinkpad_acpi, sony_acpi, etc.) instead of the ACPI video.ko driver.

看了这个之后,很显然,问题就在于acpi_backlight=vendor will prefer vendor specific driver (e.g. thinkpad_acpi, sony_acpi, etc.) instead of the ACPI video.ko driver.
所以我们只要sudo nano /etc/default/grub,
GRUB_CMDLINE_LINUX="“改为GRUB_CMDLINE_LINUX="acpi_osi=Linux acpi_backlight=vendor"重启即可,注意大小写Linux的L为大写。
然后sudo update-grub && sudo reboot

本文来源:博客园 作者:浮沉雄鹰

(0)

相关推荐

  • Win7系统无法识别光驱的终极解决方法示例

    Windows 7系统中无法识别的光驱(CD-ROM),或是在"设备管理器"中显示驱动损坏或有个黄色感叹号怎么办?我们可以尝试重新卸载/安装驱动,但是如果没有用呢? 原因分析: 该问题可能是注册表中存 ...

  • Windows和Ubuntu时间不一致问题的解决方法

    Windows和Ubuntu时间不一致问题的解决方法: 我们在切换操作系统的时候会发现一个问题, Windows 和 Ubuntu的时间会出现不一致的情况。在 Windows 中把时间设置正确了过后, ...

  • Win7无法识别光驱终极解决方法

    原因分析: 该问题可能是注册表中存在错误的键值导致的。 终极解决方法: 提示:修改注册表有风险,请慎重操作。 1.按Win+R键,输入Regedt32.exe,按回车,打开注册表编辑器; 2.找到以下 ...

  • win8屏幕亮度无法调节的解决方法

    今天有个朋友和我抱怨一件事情,说是刚买了一台电脑,而且高配置哦,本来是开心的事情,但是打开发现,是win8系统的,以前一直习惯于用win7的系统,很多功能和操作完全不同,所以现在郁闷了,特别是电脑屏幕 ...

  • Win10系统电脑开机黑屏只有鼠标的终极解决方法图文教程

    电脑安装的是Windows10系统,可是今天开机时,发现电脑黑屏桌面上没有文字,只有一个鼠标符号(白色箭头).这是怎么回事呢?为了帮助大家更好地使用win10系统,下面我们的小编就分享下电脑开机黑屏只 ...

  • Ubuntu系统自动锁屏解决方法

    很多使用Ubuntu系统的小伙伴或许会遇到以下问题:在使用过程中,电脑屏幕突然自己锁屏了,那么这个问题该如何解决呢?下面小编就来为大家具体介绍.具体如下:1. 首先在桌面左下角找到并点击一个九宫格图标 ...

  • 无法使用内置管理员账户打开的终极解决方法

    Win10无法使用内置管理员账户打开的终极解决方法 操作方法 01 Win10启用administrator账户之后打开程序总提示"win10无法使用内置管理员账户打开..." 在 ...

  • Win7系统更新失败绝对有用的终极解决方法

    操作方法 01 今天安装Internet Explorer 11,提示必须进行相关更新,尝试了N多方法始终显示更新失败,无法安装IE11. 提示找到的错误: 代码80071A91 Windows up ...

  • 三星智能手机屏幕的颜色/亮度异常时的解决方法

    先确认情况以及解决方法: 1.确认是否是开启省电模式. 如果设定省电模式时,由于屏幕亮度自动变更,屏幕会比较暗,此时请进入环境设置,取消省电模式. 2.确认是否是设置了屏幕模式引起的. 设置不同屏幕模 ...