cmer / lg-tv-control-macos

Automatically wake/sleep and change the input of your LG TV when used as a monitor on macOS
129 stars 13 forks source link

TV turns on even when not connected to computer. #10

Closed hamzaahmadk closed 1 year ago

hamzaahmadk commented 1 year ago

I am using my C2 as a monitor for my MacBook. When I'm using my MacBook without connecting it to the TV, the display turns on which then has to be manually turned off. Does anyone have any idea on how to fix this?

zakkhoyt commented 1 year ago

Hey @hamzaahmadk. I was encountering this bug too.

There is no check to see if the TV is connected to the computer before issuing the "on" command. I added a fix for that in this pull request if you want to try it out.