Linux 命令行 LCD唤醒,如何确定是否从Linux命令行打开LCD监视器

news/2025/2/6 6:59:31/

VESA DDC连接是一个I2C连接,可用于查询监视器的存在。

Linux暴露了I2C设备,用户程序可以直接与监视器通信,代码如http://jaffar.cs.msu.su/oleg/ddcci/

请注意以下内容:Control 0xe1: +/1/1 [SAM: Power control (0 - off/1 - on)]

# ddcci-tool /dev/i2c-2 -e -c -d

ddcci-tool version 0.03

Reading EDID : 0x50@/dev/i2c-2

Plug and Play ID: SAM00BA

Input type: Analog

Using ddc/ci : 0x37@/dev/i2c-2

Capabilities:

(type(LCD)vcp(04 05 10 12 60(1 3) B0(1 2) B6 C6 C8 C9 D6(1 4) DC(1 2 3 4) DF))

Controls (valid/current/max):

Control 0x04: +/0/1 [Reset Factory Defaults]

Control 0x05: +/0/1 [SAM: Reset Brightness and Contrast]

Control 0x06: +/0/1 [Reset Factory Geometry]

Control 0x08: +/0/1 [Reset Factory Default Color]

Control 0x0e: +/60/120 [SAM: Image Lock Coarse]

Control 0x10: +/0/100 [Brightness]

Control 0x12: +/50/100 [Contrast]

Control 0x16: +/8/16 [Red Video Gain]

Control 0x18: +/8/16 [Green Video Gain]

Control 0x1a: +/8/16 [Blue Video Gain]

Control 0x1e: +/0/2 [SAM: Auto Size Center]

Control 0x20: +/50/100 [Horizontal Position]

Control 0x30: +/25/54 [Vertical Position]

Control 0x3e: +/39/50 [SAM: Image Lock Fine]

Control 0x60: +/1/3 [Input Source Select]

Control 0x62: +/0/100 [Audio Speaker Volume Adjust]

Control 0x6c: +/140/255 [Red Video Black Level]

Control 0x6e: +/127/255 [Green Video Black Level]

Control 0x70: +/121/255 [Blue Video Black Level]

Control 0xb0: +/0/2 [Settings]

Control 0xb6: +/3/8 [???]

Control 0xc6: +/1/1 [???]

Control 0xc8: +/5/16 [???]

Control 0xc9: +/1/0 [???]

Control 0xca: +/2/2 [On Screen Display]

Control 0xcc: +/2/11 [SAM: On Screen Display Language]

Control 0xd6: +/1/4 [SAM: DPMS control (1 - on/4 - stby)]

Control 0xdc: +/4/4 [SAM: MagicBright (1 - text/2 - internet/3 - entertain/4 - custom)]

Control 0xdf: +/512/0 [VCP Version]

Control 0xe0: +/0/2 [SAM: Color preset (0 - normal/1 - warm/2 - cool)]

Control 0xe1: +/1/1 [SAM: Power control (0 - off/1 - on)]

Control 0xe2: +/0/1 [???]

Control 0xed: +/108/255 [SAM: Red Video Black Level]

Control 0xee: +/101/255 [SAM: Green Video Black Level]

Control 0xef: +/103/255 [SAM: Blue Video Black Level]

一个有趣的问题是您的监视器是否返回该数据,如果不是,它是否会响应,如果它当前关闭。


http://www.ppmy.cn/news/534868.html

相关文章

ChatGPT的回答是否可以被验证和验证准确性?

ChatGPT的回答可以通过一些方法进行验证,但验证其准确性是一个复杂的问题。以下是对ChatGPT回答验证和准确性验证的详细分析: 1. 基于事实的验证:对于涉及事实的问题,可以通过查阅可靠的来源或权威的知识库来验证ChatGPT的回答。…

(十一)CSharp-LINQ-LINQToXML(4)

一、XML 类 1、创建、保存、加载和显示 XML 文档 static void Main(string[] args){XDocument employees1 new XDocument(//创建 XML 文档new XElement("Employees",//创建根元素new XElement("Name", "Box Smith"),//创建元素new XElement(&qu…

开发之路,穷且益坚,不坠青云之志

引言 2023毕业季,距离笔者毕业已过2年有余。 互联网从业环境由盛转衰,互联网从业者数量剧增,市场竞争异常激烈,原本的利润空间被不断挤压,以至于很多开发者对互联网已经失去了信心与激情。 互联网的市场份额依旧是占…

POSTEK标签打印机跳纸问题解决

在开机后的正常待机状态下,请长按FEED键不放,等到标签走动后即松手,机器往外走纸大概20-30厘米再停止,就可以完整打印机的测纸。

Delphi制作打印面签案例

一、 在主窗体添加frxReport1、OpenPictureDialog1、Button1三个组件。 二、Button1的OnClick单击事件 procedure TForm1.Button1Click(Sender: TObject); begin if OpenPictureDialog1.execute then begin TfrxPictureView(frxReport1.FindObject(Picture1)).Picture.loadf…

PHP TP5.0框架会员根据经验值升级等级

// 初始化最小差值为一个较大的数 $minDifference 500000; 先看一下会员等级表规则的表结构 普通会员默认注册就是,经验值0 1.先查询出最高等级所需要的经验值 //先查询最高等级所需要的经验值 $b Db::name(wechat_user_vip)->order(id DESC)…

postman-批量导入数据

1、新建txt文件(此处命名为data.txt),使用notepad编辑。 第一行写下参数名,第二行开始,逐行写下参数各值,编码格式设置为UTF-8 2、在Pre-request Script中,获取参数值,并传到接口…

postek二次开发_详解Visual Basic脚本在BarTender中的应用

Visual Basic脚本可在常规打印时操作中使用,或与打印机代码修改器操作一同使用。BarTender 中的脚本助理包含一个脚本编写区域,在该区域中,既可以通过键入方式编写实际脚本,也可以使用脚本助理的表达式构建工具来编写实际脚本。此…