-
Notifications
You must be signed in to change notification settings - Fork 1
/
ddcutil-service.7
1257 lines (1257 loc) · 32.6 KB
/
ddcutil-service.7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'\" t
.\" Title: com.ddcutil.DdcutilInterface
.\" Author: Michael Hamilton
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: 07/02/2024
.\" Manual: Miscellaneous
.\" Source: ddcutil-service
.\" Language: English
.\"
.TH "COM\&.DDCUTIL\&.DDCU" "7" "07/02/2024" "ddcutil\-service" "Miscellaneous"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
com.ddcutil.DdcutilInterface \- D\-Bus service for libddcutil VESA DDC Monitor Virtual Control Panel
.SH "METHODS"
.sp
.nf
Restart (IN s text_options,
IN u syslog_level,
IN u flags,
OUT i error_status,
OUT s error_message);
Detect (IN u flags,
OUT i number_of_displays,
OUT a(iiisssqsu) detected_displays,
OUT i error_status,
OUT s error_message);
GetVcp (IN i display_number,
IN s edid_txt,
IN y vcp_code,
IN u flags,
OUT q vcp_current_value,
OUT q vcp_max_value,
OUT s vcp_formatted_value,
OUT i error_status,
OUT s error_message);
GetMultipleVcp (IN i display_number,
IN s edid_txt,
IN ay vcp_code,
IN u flags,
OUT a(yqqs) vcp_current_value,
OUT i error_status,
OUT s error_message);
SetVcp (IN i display_number,
IN s edid_txt,
IN y vcp_code,
IN q vcp_new_value,
IN u flags,
OUT i error_status,
OUT s error_message);
SetVcpWithContext (IN i display_number,
IN s edid_txt,
IN y vcp_code,
IN q vcp_new_value,
IN s client_context,
IN u flags,
OUT i error_status,
OUT s error_message);
GetVcpMetadata (IN i display_number,
IN s edid_txt,
IN y vcp_code,
IN u flags,
OUT s feature_name,
OUT s feature_description,
OUT b is_read_only,
OUT b is_write_only,
OUT b is_rw,
OUT b is_complex,
OUT b is_continuous,
OUT i error_status,
OUT s error_message);
GetCapabilitiesString (IN i display_number,
IN s edid_txt,
IN u flags,
OUT s capabilities_text,
OUT i error_status,
OUT s error_message);
GetCapabilitiesMetadata (IN i display_number,
IN s edid_txt,
IN u flags,
OUT s model_name,
OUT y mccs_major,
OUT y mccs_minor,
OUT a{ys} commands,
OUT a{y(ssa{ys})} capabilities,
OUT i error_status,
OUT s error_message);
GetDisplayState (IN i display_number,
IN s edid_txt,
IN u flags,
OUT i status,
OUT s message);
GetSleepMultiplier (IN i display_number,
IN s edid_txt,
IN u flags,
OUT d current_multiplier,
OUT i error_status,
OUT s error_message);
SetSleepMultiplier (IN i display_number,
IN s edid_txt,
IN d new_multiplier,
IN u flags,
OUT i error_status,
OUT s error_message);
.fi
.SH "SIGNALS"
.sp
.if n \{\
.RS 4
.\}
.nf
ConnectedDisplaysChanged (s edid_txt,
i event_type,
u flags);
VcpValueChanged (i display_number,
s edid_txt,
y vcp_code,
q vcp_new_value,
s source_client_name,
s source_client_context,
u flags);
ServiceInitialized (u flags);
.fi
.if n \{\
.RE
.\}
.SH "PROPERTIES"
.sp
.if n \{\
.RS 4
.\}
.nf
AttributesReturnedByDetect readable as
StatusValues readable a{is}
DdcutilVersion readable s
DdcutilDynamicSleep readwrite b
DdcutilOutputLevel readwrite u
DisplayEventTypes readable a{is}
ServiceInterfaceVersion readable s
ServiceInfoLogging readwrite b
ServiceEmitConnectivitySignals readwrite b
ServiceEmitSignals readwrite b
ServiceFlagOptions readable a{is}
ServiceParametersLocked readable b
ServicePollInterval readwrite u
ServicePollCascadeInterval readwrite d
.fi
.if n \{\
.RE
.\}
.SH "DESCRIPTION"
.PP
ddcutil\-service is D\-Bus service wrapper for libddcutil which implements the VESA DDC Monitor Control Command Set\&. Most things that can be controlled using a monitor\*(Aqs on\-screen display can be controlled by this service\&.
.PP
When using this service, avoid excessively writing VCP values because each VDU\*(Aqs NVRAM likely has a write\-cycle limit/lifespan\&. The suggested guideline is to limit updates to rates comparable to those observed when using the VDU\*(Aqs onboard controls\&. Avoid coding that might rapidly or infinitely loop, including when recovering from errors and bugs\&.
.PP
Non\-standard manufacturer specific features should only be experimented with caution, some may have irreversible consequences, including bricking the hardware\&.
.PP
For many of the methods a VDU can be specified by either passing the DDC display_number or DDC EDID\&. The EDID is the more stable identifier, it remains unchanged if the number of connected or powered\-up VDUs changes, whereas the DDCA display numbers may be reallocated\&. When passing an EDID, pass \-1 for display_number, otherwise both are tied with the display_number having precedence\&.
.PP
Methods that accept an base\-64 encoded EDID will accept a prefix of the EDID when passed a flags value of 1\&. This is intended as a convenience for passing EDIDs on the command line\&.
.SH "METHOD DETAILS"
.SS "The Restart() method"
.sp
.if n \{\
.RS 4
.\}
.nf
Restart (IN s text_options,
IN u syslog_level,
IN u flags,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Restarts the service with the supplied parameters\&.
.PP
If the service is configuration\-locked, an com\&.ddcutil\&.DdcutilService\&.Error\&.ConfigurationLocked error is raised\&.
.PP
IN s \fItext_options\fR:
.RS 4
Text options to be passed to libddcutil ddca_init()\&.
.RE
.PP
IN u \fIsyslog_level\fR:
.RS 4
The libddcutil syslog level\&.
.RE
.PP
IN u \fIflags\fR:
.RS 4
For future use\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The Detect() method"
.sp
.if n \{\
.RS 4
.\}
.nf
Detect (IN u flags,
OUT i number_of_displays,
OUT a(iiisssqsu) detected_displays,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Issues a detect and returns the VDUs detected\&.
.PP
The array
\fIdetected_displays\fR
will be of length
\fInumber_of_displays\fR\&.
.PP
Each element of
\fIdetected_displays\fR
array will contain the fields specified by the AttributesReturnedByDetect property\&. The fields will include the libddcutil display\-number and a base64\-encoded EDID\&.
.PP
IN u \fIflags\fR:
.RS 4
If set to 8 (DETECT_ALL), any invalid VDUs will be included in the results\&.
.RE
.PP
OUT i \fInumber_of_displays\fR:
.RS 4
The number of VDUs detected (the length of
\fIdetected_displays\fR)\&.
.RE
.PP
OUT a(iiisssqsu) \fIdetected_displays\fR:
.RS 4
An array of structures describing the VDUs\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The GetVcp() method"
.sp
.if n \{\
.RS 4
.\}
.nf
GetVcp (IN i display_number,
IN s edid_txt,
IN y vcp_code,
IN u flags,
OUT q vcp_current_value,
OUT q vcp_max_value,
OUT s vcp_formatted_value,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Retrieve the value for a VCP\-code for the specified VDU\&.
.PP
For simplicity the
\fIvcp_current_value\fR
returned will always be 16 bit integer\&. Most VCP values are single byte 8\-bit integers, very few are two\-byte 16\-bit\&.
.PP
The method\*(Aqs
\fIflags\fR
parameter can be set to 2 (RETURN_RAW_VALUE), see ddcutil\-service\&.1 LIMITATIONS for an explanation\&.
.PP
The
\fIvcp_formatted_value\fR
contains the current value along with any related info, such as the maximum value, its similar to the output of the ddcutil getvcp shell\-command\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
The libddcutil/ddcutil display number to query
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
The base\-64 encoded EDID of the display
.RE
.PP
IN y \fIvcp_code\fR:
.RS 4
The VPC\-code to query, for example, 16 (0x10) is brightness\&.
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT q \fIvcp_current_value\fR:
.RS 4
The current numeric value as a unified 16 bit integer\&.
.RE
.PP
OUT q \fIvcp_max_value\fR:
.RS 4
The maximum possible value, to allow for easy calculation of current/max\&.
.RE
.PP
OUT s \fIvcp_formatted_value\fR:
.RS 4
A formatted version of the value including related info such as the max\-value\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The GetMultipleVcp() method"
.sp
.if n \{\
.RS 4
.\}
.nf
GetMultipleVcp (IN i display_number,
IN s edid_txt,
IN ay vcp_code,
IN u flags,
OUT a(yqqs) vcp_current_value,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Retrieves several different VCP values for the specified VDU\&. This is a convenience method provided to more efficiently utilise D\-Bus\&.
.PP
Each entry in
\fIvcp_current_value\fR
array is a VCP\-code along with its current, maximum and formatted values (the same as those returned by GetVcp)\&.
.PP
The method\*(Aqs
\fIflags\fR
parameter can be set to 2 (RETURN_RAW_VALUES), see ddcutil\-service\&.1 LIMITATIONS for an explanation\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
the libddcutil/ddcutil display number to query
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
the base\-64 encoded EDID of the display
.RE
.PP
IN ay \fIvcp_code\fR:
.RS 4
the VPC\-code to query\&.
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT a(yqqs) \fIvcp_current_value\fR:
.RS 4
An array of VCP\-codes and values\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The SetVcp() method"
.sp
.if n \{\
.RS 4
.\}
.nf
SetVcp (IN i display_number,
IN s edid_txt,
IN y vcp_code,
IN q vcp_new_value,
IN u flags,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Set the value for a VCP\-code for the specified VDU\&.
.PP
For simplicity the
\fIvcp_new_value\fR
is always passed as a 16 bit integer (most VCP values are single byte 8\-bit integers, very few are two\-byte 16\-bit)\&.
.PP
The method\*(Aqs
\fIflags\fR
parameter can be set to 4 (NO_VERIFY) to disable libddcutil verify and retry\&. Verification and retry is the default\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
the libddcutil/ddcutil display number to alter
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
the base\-64 encoded EDID of the display
.RE
.PP
IN y \fIvcp_code\fR:
.RS 4
the VPC\-code to query\&.
.RE
.PP
IN q \fIvcp_new_value\fR:
.RS 4
the numeric value as a 16 bit integer\&.
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The SetVcpWithContext() method"
.sp
.if n \{\
.RS 4
.\}
.nf
SetVcpWithContext (IN i display_number,
IN s edid_txt,
IN y vcp_code,
IN q vcp_new_value,
IN s client_context,
IN u flags,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Set the value for a VCP\-code for the specified VDU\&.
.PP
For simplicity the
\fIvcp_new_value\fR
is always passed as a 16 bit integer (most VCP values are single byte 8\-bit interers, very few are two\-byte 16\-bit)\&.
.PP
The method\*(Aqs
\fIflags\fR
parameter can be set to 4 (NO_VERIFY) to disable libddcutil verify and retry\&. Verification and retry is the default\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
the libddcutil/ddcutil display number to alter
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
the base\-64 encoded EDID of the display
.RE
.PP
IN y \fIvcp_code\fR:
.RS 4
the VPC\-code to query\&.
.RE
.PP
IN q \fIvcp_new_value\fR:
.RS 4
the numeric value as a 16 bit integer\&.
.RE
.PP
IN s \fIclient_context\fR:
.RS 4
a client\-context string that will be returned with the VcpValueChanged signal\&.
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The GetVcpMetadata() method"
.sp
.if n \{\
.RS 4
.\}
.nf
GetVcpMetadata (IN i display_number,
IN s edid_txt,
IN y vcp_code,
IN u flags,
OUT s feature_name,
OUT s feature_description,
OUT b is_read_only,
OUT b is_write_only,
OUT b is_rw,
OUT b is_complex,
OUT b is_continuous,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Retrieve the metadata for a VCP\-code for the specified VDU\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
the libddcutil/ddcutil display number to query
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
the base\-64 encoded EDID of the display
.RE
.PP
IN y \fIvcp_code\fR:
.RS 4
the VPC\-code to query\&.
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT s \fIfeature_name\fR:
.RS 4
the feature name for the VCP\-code
.RE
.PP
OUT s \fIfeature_description\fR:
.RS 4
the feature description, if any, of the VCP\-code\&.
.RE
.PP
OUT b \fIis_read_only\fR:
.RS 4
True if the feature is read\-only\&.
.RE
.PP
OUT b \fIis_write_only\fR:
.RS 4
True if the feature is write\-only (for example, a code that turns the VDU off)\&.
.RE
.PP
OUT b \fIis_rw\fR:
.RS 4
True if the feature is readable and writable\&.
.RE
.PP
OUT b \fIis_complex\fR:
.RS 4
True if the feature is complex (multi\-byte)\&.
.RE
.PP
OUT b \fIis_continuous\fR:
.RS 4
True in the feature is a continuous value (it is not an enumeration)\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The GetCapabilitiesString() method"
.sp
.if n \{\
.RS 4
.\}
.nf
GetCapabilitiesString (IN i display_number,
IN s edid_txt,
IN u flags,
OUT s capabilities_text,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Retrieve the capabilities metadata for a VDU in a format similar to that output by the command ddcutil terse capabilities (similar enough for parsing by common code)\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
the libddcutil/ddcutil display number to query
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
the base\-64 encoded EDID of the display
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT s \fIcapabilities_text\fR:
.RS 4
the capability string for the VDU\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The GetCapabilitiesMetadata() method"
.sp
.if n \{\
.RS 4
.\}
.nf
GetCapabilitiesMetadata (IN i display_number,
IN s edid_txt,
IN u flags,
OUT s model_name,
OUT y mccs_major,
OUT y mccs_minor,
OUT a{ys} commands,
OUT a{y(ssa{ys})} capabilities,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Retrieve the capabilities metadata for a VDU in a parsed dictionary structure indexed by VCP code\&.
.PP
The
\fIcapabilities\fR
out parameter is an array of dictionary entries\&. Each entry consists of a VCP\-code along with a struct containing the feature\-name, feature\-description, and an array of permitted\-values\&. For features that have continuous values, the associated permitted\-value array will be empty\&. For non\-continuous features, the permitted\-value array will contain a dictionary entry for each permitted value, each entry containing a permitted\-value and value\-name\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
the libddcutil/ddcutil display number to query
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
the base\-64 encoded EDID of the display
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT s \fImodel_name\fR:
.RS 4
parsed model name string
.RE
.PP
OUT y \fImccs_major\fR:
.RS 4
MCCS major version number byte\&.
.RE
.PP
OUT y \fImccs_minor\fR:
.RS 4
MCCS minor version number byte\&.
.RE
.PP
OUT a{ys} \fIcommands\fR:
.RS 4
supported commands as a dictionary indexed by command number\&.
.RE
.PP
OUT a{y(ssa{ys})} \fIcapabilities\fR:
.RS 4
supported VCP features as a dictionary indexed by VCP\-code\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The GetDisplayState() method"
.sp
.if n \{\
.RS 4
.\}
.nf
GetDisplayState (IN i display_number,
IN s edid_txt,
IN u flags,
OUT i status,
OUT s message);
.fi
.if n \{\
.RE
.\}
.PP
Retrieve the libddcutil display state\&.
.PP
Depending on the hardware and drivers, this method might return anything useful\&.
.PP
For libddcutil prior to 2\&.1, the method will return a libddcutil
\fIerror_status\fR
of DDCRC_UNIMPLEMENTED\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
the libddcutil/ddcutil display number to query
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
the base\-64 encoded EDID of the display
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT i \fIstatus\fR:
.RS 4
A libddcutil display status\&.
.RE
.PP
OUT s \fImessage\fR:
.RS 4
Text message for display status\&.
.RE
.SS "The GetSleepMultiplier() method"
.sp
.if n \{\
.RS 4
.\}
.nf
GetSleepMultiplier (IN i display_number,
IN s edid_txt,
IN u flags,
OUT d current_multiplier,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Get the current libddcutil sleep multiplier for the specified VDU\&.
.PP
In more recent versions of libddcutil this value is generally managed automatically\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
the libddcutil/ddcutil display number to query
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
the base\-64 encoded EDID of the display
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT d \fIcurrent_multiplier\fR:
.RS 4
the sleep multiplier\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SS "The SetSleepMultiplier() method"
.sp
.if n \{\
.RS 4
.\}
.nf
SetSleepMultiplier (IN i display_number,
IN s edid_txt,
IN d new_multiplier,
IN u flags,
OUT i error_status,
OUT s error_message);
.fi
.if n \{\
.RE
.\}
.PP
Set the libddcutil sleep multiplier for the specified VDU\&.
.PP
In more recent versions of libddcutil this is generally managed automatically, but this method is provided should manual control be necessary (due to problem hardware)\&.
.PP
Prior to taking manual control of the sleep\-multiplier, the DdcutilDynamicSleep property should be set to false to prevent the multiplier from being automatically returned\&.
.PP
If the service is configuration\-locked, an com\&.ddcutil\&.DdcutilService\&.Error\&.ConfigurationLocked error is raised\&.
.PP
IN i \fIdisplay_number\fR:
.RS 4
The libddcutil/ddcutil display number to query
.RE
.PP
IN s \fIedid_txt\fR:
.RS 4
The base\-64 encoded EDID of the display
.RE
.PP
IN d \fInew_multiplier\fR:
.RS 4
The sleep multiplier\&.
.RE
.PP
IN u \fIflags\fR:
.RS 4
If 1 (EDID_PREFIX), the
\fIedid_txt\fR
is matched as a unique prefix of the EDID\&.
.RE
.PP
OUT i \fIerror_status\fR:
.RS 4
A libddcutil DDCRC error status\&. DDCRC_OK (zero) if no errors have occurred\&.
.RE
.PP
OUT s \fIerror_message\fR:
.RS 4
Text message for error_status\&.
.RE
.SH "SIGNAL DETAILS"
.SS "The "ConnectedDisplaysChanged" signal"
.sp
.if n \{\
.RS 4
.\}
.nf
ConnectedDisplaysChanged (s edid_txt,
i event_type,
u flags);
.fi
.if n \{\
.RE
.\}
.PP
Where hardware and drivers support it, this signal will be raised if a displays connection status changes due to cabling, power, or DPMS\&.
.PP
The hardware, cabling and drivers determines which of states listed by DisplayEventTypes property that can actually be signaled (the possibilities cannot be determined programmatically)\&.
.PP
Requires the ServiceEmitConnectivitySignals property to be set to true\&.
.PP
s \fIedid_txt\fR:
.RS 4
The base\-64 encoded EDID of the display\&.
.RE
.PP
i \fIevent_type\fR:
.RS 4
A value matching one of those from the DisplayEventTypes property\&.
.RE
.PP
u \fIflags\fR:
.RS 4
For future use\&.
.RE
.SS "The "VcpValueChanged" signal"
.sp
.if n \{\
.RS 4
.\}
.nf
VcpValueChanged (i display_number,
s edid_txt,
y vcp_code,
q vcp_new_value,
s source_client_name,
s source_client_context,
u flags);
.fi
.if n \{\
.RE
.\}
.PP
.PP
This signal will be raised if a SetVcp or SetVcpWithContext method call succeeds\&.
.PP
i \fIdisplay_number\fR:
.RS 4
the display number
.RE
.PP
s \fIedid_txt\fR:
.RS 4
The base\-64 encoded EDID of the display\&.
.RE
.PP
y \fIvcp_code\fR:
.RS 4
The VCP code whose value changed\&.