ddccontrol / ddccontrol-db

DDC Control Monitor Database
GNU General Public License v2.0
119 stars 100 forks source link

Add Acer H277HK #146

Open magnusrobertsson opened 3 years ago

magnusrobertsson commented 3 years ago

Please add the great Acer H277HK monitor. Here is the output from DDC Control:

ddccontrol version 0.4.4
Copyright 2004-2005 Oleg I. Vdovikin (oleg@cs.msu.su)
Copyright 2004-2006 Nicolas Boichat (nicolas@boichat.ch)
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program under the terms of the GNU General Public License.
Probing for available monitors.I/O warning : failed to load external entity "/usr/share/ddccontrol-db/monitor/ACR0520.xml"
Document not parsed successfully.
.I/O warning : failed to load external entity "/usr/share/ddccontrol-db/monitor/LGD05DA.xml"
Document not parsed successfully.
..........
Detected monitors :
 - Device: dev:/dev/i2c-10
   DDC/CI supported: Yes
   Monitor Name: VESA standard monitor
   Input type: Digital
  (Automatically selected)
 - Device: dev:/dev/i2c-9
   DDC/CI supported: No
   Monitor Name: VESA standard monitor
   Input type: Digital
Reading EDID and initializing DDC/CI at bus dev:/dev/i2c-10...
I/O warning : failed to load external entity "/usr/share/ddccontrol-db/monitor/ACR0520.xml"
Document not parsed successfully.
EDID readings:
    Plug and Play ID: ACR0520 [VESA standard monitor]
    Input type: Digital
=============================== WARNING ===============================
There is no support for your monitor in the database, but ddccontrol is
using a basic generic profile. Many controls will not be supported, and
some controls may not work as expected.
Please update ddccontrol-db, or, if you are already using the latest
version, please send the output of the following command to
ddccontrol-users@lists.sourceforge.net:
LANG= LC_ALL= ddccontrol -p -c -d
Thank you.
=============================== WARNING ===============================
Capabilities:
Raw output: (prot(monitor)type(LCD)model(H277HK)cmds(01 02 03 07 0C E3 F3)vcp(02 04 05 06 08 0B 0C 10 12 14(01 02 04 05 06 08 0B) 16 18 1A 52 59 5A 5B 5C 5D 5E 60(11 0F 10) 62 87 9B 9C 9D 9E 9F A0 AC AE B2 B6 C6 8D(01 02)  C8 CA CC(01 02 03 04 05 06 08 09 0A 0C 0D 0E 14 16 1E) D6(01 04) DF FD FF)mswhql(1)asset_eep(40)mccs_ver(2.2))
Parsed output: 
    VCP: 02 04 05 06 08 0b 0c 10 12 14 16 18 1a 52 59 5a 5b 5c 5d 5e 60 62 87 8d 9b 9c 9d 9e 9f a0 ac ae b2 b6 c6 c8 ca cc d6 df fd ff 
    Type: Unknown
Controls (valid/current/max) [Description - Value name]:
Control 0x02: +/1/2 C [Secondary Degauss - Secondary Degauss]
Control 0x04: +/0/1 C [Restore Factory Defaults]
Control 0x05: +/0/1 C [Restore Brightness and Contrast]
Control 0x06: +/0/1 C [Restore Factory Default Geometry]
Control 0x08: +/0/1 C [Restore Factory Default Color]
Control 0x0b: +/100/0 C [???]
Control 0x0c: +/65506/63 C [???]
Control 0x10: +/35/100 C [Brightness]
Control 0x12: +/50/100 C [Contrast]
Control 0x14: +/11/11 C [???]
Control 0x16: +/100/100 C [Red maximum level]
Control 0x18: +/100/100 C [Green maximum level]
Control 0x1a: +/90/100 C [Blue maximum level]
Control 0x1e: +/0/1   [???]
Invalid response, first byte is 0x00, should be 0x6e
00 00 00 00 00 00 00 00 00 00 00                | ...........     
Invalid response, first byte is 0x00, should be 0x6e
00 00 00 00 00 00 00 00 00 00 00                | ...........     
Invalid response, first byte is 0x00, should be 0x6e
00 00 00 00 00 00 00 00 00 00 00                | ...........     
Invalid response, first byte is 0x00, should be 0x6e
00 00 00 00 00 00 00 00 00 00 00                | ...........     
Invalid response, first byte is 0x00, should be 0x6e
00 00 00 00 00 00 00 00 00 00 00                | ...........     
Invalid response, first byte is 0x00, should be 0x6e
00 00 00 00 00 00 00 00 00 00 00                | ...........     
Control 0x52: +/0/65535 C [???]
Control 0x59: +/50/100 C [???]
Control 0x5a: +/50/100 C [???]
Control 0x5b: +/50/100 C [???]
Control 0x5c: +/50/100 C [???]
Control 0x5d: +/50/100 C [???]
Control 0x5e: +/50/100 C [???]
Control 0x60: +/16/3 C [Input Source Select (Main)]
Control 0x62: +/70/100 C [Audio Speaker Volume Adjust]
Control 0x6c: +/80/100   [???]
Control 0x6e: +/80/100   [???]
Control 0x70: +/80/100   [???]
Invalid response, length is 9, should be 8 at most
Invalid response, length is 9, should be 8 at most
Invalid response, length is 9, should be 8 at most
Control 0x87: +/3/4 C [???]
Control 0x8d: +/2/2 C [???]
Control 0x9b: +/50/100 C [???]
Control 0x9c: +/50/100 C [???]
Control 0x9d: +/50/100 C [???]
Control 0x9e: +/50/100 C [???]
Control 0x9f: +/50/100 C [???]
Control 0xa0: +/50/100 C [???]
Control 0xac: +/2428/2 C [???]
Control 0xae: +/6010/65535 C [???]
Control 0xb2: +/1/1 C [???]
Control 0xb6: +/3/5 C [???]
Control 0xc0: +/1932/65535   [???]
Control 0xc6: +/120/255 C [???]
Control 0xc8: +/9/0 C [???]
Control 0xc9: +/1/65535   [???]
Control 0xca: +/1/2 C [???]
Control 0xcc: +/2/13 C [???]
Control 0xd6: +/1/5 C [DPMS Control - On]
Control 0xdf: +/514/65535 C [???]
Control 0xe6: +/1/0   [???]
magnusrobertsson commented 3 years ago

I've created ACR0520.xml that works fine on Ubuntu 20.04 and dddcontrol 0.4.4:

<?xml version="1.0"?>
<monitor name="Acer H277HK" init="standard">
    <caps add="(prot(monitor)type(LCD)model(H277HK)cmds(01 02 03 07 0C E3 F3)vcp(02 04 05 06 08 0B 0C 10 12 14(01 02 04 05 06 08 0B) 16 18 1A 52 59 5A 5B 5C 5D 5E 60(11 0F 10) 62 87 9B 9C 9D 9E 9F A0 AC AE B2 B6 C6 8D(01 02)  C8 CA CC(01 02 03 04 05 06 08 09 0A 0C 0D 0E 14 16 1E) D6(01 04) DF FD FF)mswhql(1)asset_eep(40)mccs_ver(2.2))" />
​
    <controls>
        <control id="inputsource" type="list" address="0x60">
            <value id="dp"  value="0x0F"/>
            <value id="usb-c" value="0x10"/>
            <value id="hdmi" value="0x11"/>
        </control>
    </controls>
    <include file="VESA"/>
</monitor>

Should I fork and submit att PR?

larstobi commented 3 years ago

Thanks, @magnusrobertsson! Yes, please make a fork+PR :-)