I'm using a tutorial that's out of date for Homebridge to control my Pi's monitor. I want it off when I'm not present, and on when I am, with the state of the rest of my smart home.
I've modified the suggested config, as tvservice doesn't control my HDMI port correctly. My modifications work, however, I have no idea how to fix the "state_cmd", and it's always off.
If I run tvservice on the command line as listed in the config, it returns nothing.
If I run it without the grep, it returns:
state 0xa [HDMI CUSTOM RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
As I'm using vcgencmd, is there a way I can use that instead? If I enter
vcgencmd display_power
it'll return "display_power=1" if on, "display_power 0" if off.
I'm having some difficulty here.
I'm using a tutorial that's out of date for Homebridge to control my Pi's monitor. I want it off when I'm not present, and on when I am, with the state of the rest of my smart home.
I've modified the suggested config, as tvservice doesn't control my HDMI port correctly. My modifications work, however, I have no idea how to fix the "state_cmd", and it's always off.
If I run tvservice on the command line as listed in the config, it returns nothing.
If I run it without the grep, it returns: state 0xa [HDMI CUSTOM RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
As I'm using vcgencmd, is there a way I can use that instead? If I enter vcgencmd display_power it'll return "display_power=1" if on, "display_power 0" if off.
Thanks!
Here's the original config:
Here's the config as I have it as present: