Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tv will not switch inputs #227

Open
reaps101 opened this issue Jul 14, 2024 · 26 comments
Open

tv will not switch inputs #227

reaps101 opened this issue Jul 14, 2024 · 26 comments

Comments

@reaps101
Copy link

Describe the bug

Tv will power on and off fine but if tv is on say hdmi 2, when powering on it will not switch to the pc's hdmi 4

How to reproduce the bug?

leave tv on hdmi 2, turn tv off, start pc, tv turns on but does not switch to pc input

What was the expected behavior

tv switch to hdmi 4

What is your system?

Win 11, build 22631.3737, LG OLED C1

Log file and screenshots

https://pastebin.com/1WH7wHu4

@JPersson77
Copy link
Owner

JPersson77 commented Jul 14, 2024

Hi, can you double check the pastebin link please. It does not seem to work for me. Cheers

Edit: the link works when copy pasting the text..The log actually indicate that hdmi 4 was set. Is this an intermittent issue for you or does it always occur?

@reaps101
Copy link
Author

seems to have fixed itself, it didnt work after i updated to the latest version, but after switching the settings off and on a couple of times it seems to have fixed it

@JPersson77
Copy link
Owner

The only thing that stood out in the log was that the TV was quite slow to respond. Not sure what to make of it but maybe it is related

@reaps101
Copy link
Author

You got me wondering now if a factory reset of the tv would be a good idea

@JPersson77
Copy link
Owner

Yeah it wouldnt be the first time it helped with weird issues. Maybe start with pulling the plug for a few minutes though and see if things run smoothly from there

@hapklaar
Copy link

Hmm, interesting. I have the same or similar issue. Instead of creating a new issue I thought I'd add here.

I have two PC's connected to an LG C2, one on HDMI1 and the other on HDMI4. The one connected to HDMI1 always works correctly and switches the input to HDMI1 when turned on.

The laptop connected to HDMI4 never switches to HDMI4 when turned on.

I pasted a debug log here: https://pastebin.com/m430VVtt

@JPersson77
Copy link
Owner

Hi @hapklaar there are no issues with your log, everything looks as expected. Since the TV powers on fine and responds to the request to switch HDMI, but doesn't actually do it, Isuspect that the TV needs slightly more time after being powered on before the HDMI-switch command is sent. Currently on vacation so it'll take a few weeks but I'll have a look

@hapklaar
Copy link

Thanks @JPersson77 for responding while on holiday! No rush at all, I hope you have a good one!

In the mean time, I'll do some additional testing.

@hapklaar
Copy link

hapklaar commented Jul 24, 2024

I've been testing with alternate inputs, but all behave the same as hdmi4. It works only 1 out of 20something times. Your suspicion about it being a timing issues might be correct, but then I would expect input switching to occur always when the TV is already on but on the wrong input when I power up the laptop. This doesn't seem to be the case (or maybe I tested it wrong...)

@vladimir-fsh
Copy link

I have a similar issue, if a last input was AppleTV then enabling PC turns on TV + AppleTV on its source. I waited quite long time and nothing happened. I have to switch a source manually to PC.

@JPersson77
Copy link
Owner

Thanks for reporting! I will have a look as soon as possible. Just for completeness, can you please enable debug level logging and paste a link here wirh the full log

@vladimir-fsh
Copy link

@JPersson77 Here it is.

My steps are:

  1. Turn on PC (hdmi 1), AppleTv is sleeping. TV was turned on by PC
  2. Sleep my PC, TV was turned off by PC
  3. Turn on AppleTV. TV was turned on by AppleTV. Turned off Apple TV, TV was turned off by AppleTV
  4. Turn on PC. TV was turned on by PC. AppleTV was turned on by TV. For 1 sec TV was on hdmi 1 while Apple TV is booting up and then it's taking over the source.

log.txt

@JPersson77
Copy link
Owner

But then it sounds like a CEC issue. The app managed to initially and correctly switch to hdmi1 in step 4 if I understand correctly? But then apple tv forced another switch immediately after.

@vladimir-fsh
Copy link

@JPersson77 exactly https://www.reddit.com/r/LGOLED/comments/12j353m/how_to_stop_lg_switching_to_appletv_input_on/

So it's not the issue of your app, thank you anyway. It's small inconvenience for me, the rest functionality is very useful

@JPersson77
Copy link
Owner

Yeah that link potentially explains it well.

The app cannot prevent CEC communications between other devices of course. Potentially the hdmi switching command can be delayed or sent multipel times to "override"

@vladimir-fsh
Copy link

@JPersson77 I also thought about the similar fix. Well, will see, might be this issue is affecting someone else and then it would raise the priority

@hapklaar
Copy link

Hi @hapklaar there are no issues with your log, everything looks as expected. Since the TV powers on fine and responds to the request to switch HDMI, but doesn't actually do it, Isuspect that the TV needs slightly more time after being powered on before the HDMI-switch command is sent. Currently on vacation so it'll take a few weeks but I'll have a look

@JPersson77 did you find some time to have a look? Maybe a workaround in the form of a configurable delay could help.

@JPersson77
Copy link
Owner

Hi there been a little busy nut this is not forgotten about

@Sindorius
Copy link

Same issue here, LG C3. It used to work normally but recently I took my HDMI cable out and put it back in and my TV switched from my PC being HDMI 3 to HDMI 1 and when I set and applied LGTV Companion to use HDMI 1 instead it still tries to set it to 3 on wakeup.

@JPersson77
Copy link
Owner

hi @Sindorius this is a similar but not the same issue.

From your description It sounds like the configuration was not saved properly. Can you confirm you pressed "apply" in the main gui before exiting the GUI? Do you mind enabling debug level logging and upload a log to pastebin and I will have a look

@Sindorius
Copy link

@JPersson77 Yeah I pressed apply. I even tried setting it to another HDMI input #, hitting apply, and setting it back to 1, and hit apply again to see if I could resave settings. But same issue.

Here's the log output: https://pastebin.com/ZdCBAd9h

@JPersson77
Copy link
Owner

JPersson77 commented Nov 14, 2024

From the log supplied the app is setting the TV to hdmi input 1 so that, seems correct. Is something else setting it to hdmi input 3?

@Sindorius
Copy link

Not that I'm aware of. I checked the TV settings and there was something to have it go to 'recent input' when turned back on but that's 1 too.

@JPersson77
Copy link
Owner

Hi @hapklaar @vladimir-fsh @Sindorius please see if the latest version v4.1.0 resolves some or all of your issues

@hapklaar
Copy link

Unfortunately my laptop now blocks this executable (Windows Defender ASR, managed from Intune by my employer), so not able to test at the moment unfortunately...

@vladimir-fsh
Copy link

Hi @hapklaar @vladimir-fsh @Sindorius please see if the latest version v4.1.0 resolves some or all of your issues

Thanks for the fix. I can check it after gpu upgrade, in January. Now my pc is without gpu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants