ubuntu亮度無法自動調節終極解決方案

來源:互聯網
上載者:User

這個問題糾結了我快兩年,主要是自己懶,寫了個指令碼來調節亮度,不過還是稍顯不便。近日興起折騰了一番,終於找到問題根結了。

 




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

 


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.