多多色-多人伦交性欧美在线观看-多人伦精品一区二区三区视频-多色视频-免费黄色视屏网站-免费黄色在线

國內最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2
您當前位置:首頁 > 服務器 > ubuntu亮度無法自動調節終極解決方案

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

來源:程序員人生   發布時間:2014-02-17 23:11:52 閱讀次數:3632次

關于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

生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: 噜噜影院在线视频在线观看 | 亚洲成a人片在线观看尤物 亚洲成a人片在线观看中文!!! | 视频一区色眯眯视频在线 | 日韩综合网站 | 亚洲三级欧美 | 亚洲伊人精品 | 久久精品在这里 | 毛片一区| 国产叼嘿视频 | 色久阁 | 波多野结衣一区免费作品 | 一级黄色欧美 | 中文字幕欧美激情 | 中文字幕一区二区三区精品 | 欧美在线一级片 | 亚洲国产精久久久久久久春色 | 欧美三级在线观看视频 | 欧美性猛交xxxx乱大交丰满 | 欧美日韩乱码毛片免费观看 | 伊人伊人| 性免费视频 | 亚洲三级网址 | 一本大道道无香蕉综合在线 | 久久免费视频在线观看30 | 欧美videos粗暴| 国产免费一区二区三区免费视频 | 国产欧美日韩综合二区三区 | 欧美福利在线播放 | 亚洲欧美日韩中文字幕一区二区三区 | 久久久高清 | 99久久精品费精品国产一区二 | 国产一区二区精品久久 | 一二三四视频观看中文在线看 | 亚洲色网址 | 精品国产一区二区三区久久 | 欧美videofree性欧美另类 | 亚洲精品久久久久影院 | 欧美日韩在线第一页 | 人善交zzzxxx另类 | 久草在线成人 | 亚洲一个色 |