时间:2021-05-23
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
本文来源:博客园 作者:浮沉雄鹰
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
爱奇艺屏幕变黑了的解决方法: 1、用手机爱奇艺看视频,屏幕就会变暗的原因:调节亮度是选择的自动调节。建议设置为手动调节亮度。 2、软件问题。卸载应用重装。
今天安装了ubuntu16.04,现在把今天遇到的3个问题的解决方法整理了下,包含:输入法切换,fn调节亮度,firefox安装flash。有些内容也是百度而来
在日常使用iPhone时,可能有的朋友会遇到iPhone无法自动调节亮度的问题。这里简单分享一些当iPhone不能自动调节亮度时处理方法。一、现如今很多朋友都喜
ipad显示亮度调节的方法有: 1、首先依次点击“设置、亮度与墙纸”,然后打开“自动亮度调节”即可。如果“自动亮度调节”已打开,ipad会使用内建的环境光感应
OPPO手机亮度调节方法1、通过桌面的【设置】进入。2、点击【显示与亮度】查看。3、将【自动亮度调节】开关关闭。4、就可以根据个人的需求,左右滑动来调节屏幕亮度