-
Notifications
You must be signed in to change notification settings - Fork 42
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
The function is_on() always return True #44
Comments
By default, the test script uses the broadcast address (0). Try using the TV address instead:
|
thx for your answer. I added some lines to show you the issue. The TV was for more than 5 minutes in standby before i execute this script:
This is the output. You can see, aftter i have done the init i ask the power-state of the tv and the output is True, but the tv is in standby. If i started the tv and turn it of with the method the output is right.
Here you can see the output of the monitoring:
|
It's hard for me to tell if this is a bug in python-cec or in the libCEC library that we use. The python script you posted should be the same as sending the following commands via cec-client (the cli for libCEC):
If you see similar behavior from running those commands in cec-client, that would indicate that the issue is in libCEC. |
I used your commands with the following python script. Its extremly slow to execute the commands, because it has to connect for every command with the cec-client. I have to execute the 'on 0' twice because the tv is only start at the secound command. But it works. Especially the status is now every time correct. Can you use this information to narrow down the error?
|
The is_on() output on my side is also not reliable. cec-client says standby, is_on() says True. |
Hello,
i am not good in programming and C is the hardest language is see.
I used the function is_on() for my Samsung TV. This function returns always True, even the TV is on Standby.
Can anyone help? You need more information i can give you input.
Here the ouptut of the testscript in your repro. You can see if the script send the TV to Standby the state become False.
Thx
The text was updated successfully, but these errors were encountered: