Ubuntu常用软件

软件控制显示器的各种功能

今天想使用一个显示器作为多个电脑的输出,发现显示器选择输入源的按钮很难按,所以就找了一个软件控制输入源的程序 ddccontroller

源代码仓库

1
https://github.com/ddccontrol/ddccontrol

安装

1
on Ubuntu: sudo apt install ddccontrol gddccontrol ddccontrol-db i2c-tools

Usage

From GUI using gddccontrol

gddccontrol is a graphical utility for monitor configuration. It is called Monitor Settings in list of applications.

Following configuration is needed to allow non-root user to use gddccontrol:

1
2
sudo adduser $USER i2c
sudo /bin/sh -c 'echo i2c-dev >> /etc/modules'

Utility can launched directly from commandline:

1
sudo gddccontrol

From command line using ddccontrol

ddccontrol allows monitor configuration directly from commandline. To probe I2C devices to find monitor buses use:

1
sudo ddccontrol -p

To read value of control 0x10 (brightness on VESA compliant monitors) for device dev:/dev/i2c-4:

1
sudo ddccontrol -r 0x10 dev:/dev/i2c-4

To set value of control 0x10 (brightness on VESA compliant monitors) to 75 for device dev:/dev/i2c-4:

1
sudo ddccontrol -r 0x10 -w 75 dev:/dev/i2c-4

See ddccontrol -h for more information.

Comments

:D 一言句子获取中...

Loading...Wait a Minute!