@@ -22,6 +22,9 @@ const char *usage = "Usage: z8ctrl [3Don|3Doff|preset n|brightness n|test n|blac
2222 " preset n: set preset to n 0 = HDMI1, 1 = HDMI2, 2=STEREO(DP1), 3=DP1, 4=DP2; stereo has to be toggled independently\n "
2323 " brightness n: set brightness to n (0-100)\n "
2424 " test n: set testpattern to n with n [0-14] n=0 for normal image\n "
25+ " StereoDP: set Stereo to DisplayPort\n "
26+ " StereoHDMI: set Stereo to HDMI\n "
27+ " test n: set testpattern to n with n [0-14] n=0 for normal image\n "
2528 " black: set black screen, revert with wakeup\n "
2629 " wakeup: wake up\n " ;
2730
@@ -44,7 +47,9 @@ static const auto commands = {
4447 Command{" BRIGHTNESS" , {0x50 , 0x10 , 0x00 , 0x13 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 }, 17 , UNSIGNED_SHORT },
4548 Command{" TEST" , {0x12 , 0x10 , 0x00 , 0x13 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x01 , 0x00 }, 17 },
4649 Command{" BLACK" , {0x10 , 0x10 , 0x00 , 0x12 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x01 }},
47- Command{" WAKEUP" , {0x10 , 0x10 , 0x00 , 0x12 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 }}
50+ Command{" WAKEUP" , {0x10 , 0x10 , 0x00 , 0x12 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 }},
51+ Command{" StereoDP" , {0x80 , 0x10 , 0x04 , 0x1e , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 , 0x10 , 0x00 , 0x17 , 0x00 , 0x21 , 0x01 , 0x00 , 0x00 , 0x00 , 0x00 }},
52+ Command{" StereoHDMI" , {0x80 , 0x10 , 0x04 , 0x1e , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 , 0x12 , 0x00 , 0x1b , 0x00 , 0x20 , 0x01 , 0x00 , 0x00 , 0x00 , 0x00 }}
4853};
4954
5055int main (int argc, char **argv)
0 commit comments