Skip to content

Commit a4cb627

Browse files
authored
disable DPMS toggle (-p flag) (#124)
fixes #89
1 parent 8399906 commit a4cb627

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ddcctl.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ int main(int argc, const char * argv[])
234234
@"\t-m <1|2> [mute speaker OFF/ON]\n"
235235
@"\t-v <1-254> [speaker volume]\n"
236236
@"\t-i <1-18> [select input source]\n"
237-
@"\t-p <1|2-5> [power on | standby/off]\n"
238237
@"\t-o [read-only orientation]\n"
239238
@"\n"
240239
@"----- Settings (testing) -----\n"
@@ -306,7 +305,7 @@ int main(int argc, const char * argv[])
306305
else if (!strcmp(argv[i], "-p")) {
307306
i++;
308307
if (i >= argc) break;
309-
[actions setObject:@[@DPMS, [[NSString alloc] initWithUTF8String:argv[i]]] forKey:@"p"];
308+
/* was DPMS toggle, but now is no-op because it was bricking monitors (https://github.com/kfix/ddcctl/issues/89) */
310309
}
311310

312311
else if (!strcmp(argv[i], "-o")) { // read only

0 commit comments

Comments
 (0)