這個問題糾結了我快兩年,主要是自己懶,寫了個指令碼來調節亮度,不過還是稍顯不便。近日興起折騰了一番,終於找到問題根結了。
ACPI
to find out:
# ls /sys/class/backlight/
intel_backlight
on an ATI card. In the following example, acpi_video0 is used.
actual_brightness brightness max_brightness subsystem/ uevent bl_power device/ power/ type
:
# cat /sys/class/backlight/acpi_video0/max_brightness15
. 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
acpi_osi=Linux acpi_backlight=vendor
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="acpi_osi=Linux acpi_backlight=vendor"重啟即可,注意大小寫Linux的L為大寫。然後sudo update-grub && sudo reboot