如何通过 DDC/IC 改变外部显示器亮度?

如何通过 DDC/IC 改变外部显示器亮度?

我想通过 DDC/IC 更改外接戴尔 U2713HM 显示器的亮度 (DDC 维基百科),它通过 DisplayPort 连接。我有集成的 Intel HD4000 显卡。

当我运行 sudo get-edid 时,我得到:

get-edid: get-edid version 2.0.0

Performing real mode VBE call
Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0
Function supported
Call successful

VBE version 300
VBE string at 0x11100 "Intel(R) Sandybridge/Ivybridge Graphics Chipset Accelerated VGA BIOS"

VBE/DDC service about to be called
Report DDC capabilities

Performing real mode VBE call
Interrupt 0x10 ax=0x4f15 bx=0x0 cx=0x0
Function supported
Call successful

Monitor and video card combination does not support DDC1 transfers
Monitor and video card combination supports DDC2 transfers
0 seconds per 128 byte EDID block transfer
Screen is not blanked during DDC transfer

Reading next EDID block

VBE/DDC service about to be called
Read EDID

Performing real mode VBE call
Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
Function supported
Call successful

��������@L628�<"x:K��VK�%
PT�K���qO�@��V^���)P0 5UP!�GK0KD281826L
�DELL U2713HM
�1Vq
EDID claims 1 more blocks left


*********** Something special has happened!
Please contact the author, Matthew Kern
E-mail: [email protected]
Please include full output from this program (especially that to stderr)



Reading next EDID block

VBE/DDC service about to be called
Read EDID

Performing real mode VBE call
Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
Function supported
Call successful

  ��������@L628�<"x:K��VK�%
PT�K���qO�@��V^���)P0 5UP!�GK0KD281826L
�DELL U2713HM
�1Vq
EDID claims 1 more blocks left
EDID blocks left is wrong.
Your EDID is probably invalid.

重要的部分可能是:

Monitor and video card combination supports DDC2 transfers

由于我在 Ubuntu 12.10 中看到了背光变化通知,因此键盘上的亮度键工作正常。

我该怎么做才能通过软件调整亮度?

谢谢您的回答。

答案1

您可以在这里找到必要的文件: https://packages.debian.org/unstable/ddccontrol

ddccontrol
libddccontrol
ddccontrol-db

我必须安装它。然后我必须运行以下命令:

sudo modprobe i2c-dev
sudo modprobe intelfb
sudo chmod a+rw /dev/i2c-*

现在我可以使用以下命令将亮度更改为一个值(此处为 53),该值代表不带屏幕显示的外接显示器的背光级别:

ddccontrol -p -r 0x10 -w 53

现在我仍然需要将键盘上的特殊亮度键链接到亮度命令(注意最大亮度级别)。有什么想法吗?

答案2

基于@remi的回答,ddccontrol似乎无人维护,并且自2006年以来就没有为任何新显示器添加配置。

幸运的是,有一个更新的工具:dd工具,它更加强大,开发也更加活跃。在安装其中一个预构建包或者从源代码构建,它可用于查询和设置亮度(以及无数其他设置):

# ddcutil capabilities | grep Brightness
Feature: 10 (Brightness)
# ddcutil getvcp 10
VCP code 0x10 (Brightness                    ): current value =    60, max value =   100
# ddcutil setvcp 10 70

相关内容