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

Logging? #4

Open
suspenceiskillinu opened this issue Jan 16, 2020 · 3 comments
Open

Logging? #4

suspenceiskillinu opened this issue Jan 16, 2020 · 3 comments

Comments

@suspenceiskillinu
Copy link

suspenceiskillinu commented Jan 16, 2020

Is there a way to review logged attempts to adjust hifi volume for troubleshooting purposes? I am still seeing the "surround sound enabled..." message, and volume levels remain the same. Could it be because I am using a sound bar connecting via optical cable? Curious if there is a way to view historical data.

@askvictor
Copy link
Owner

The "surround sound enabled" message will still appear on the TV, but the volume should still be adjusted on the receiver/TV. If you run the program straight from the command line it should display the events (look in the code at the print() statements). Better logging would be a good idea too, but haven't got there yet.

You could also try using cec-client directly from the command line to test if the volume control is working as expected. See https://www.linuxuprising.com/2019/07/raspberry-pi-power-on-off-tv-connected.html

@suspenceiskillinu
Copy link
Author

Thanks for the tips. I’ll try those out. I assumed I would still see the message even though the volume would adjust. In my case, the volume doesn’t adjust, which is a bit odd. I’ll report back what I find. Thanks again!

@suspenceiskillinu
Copy link
Author

suspenceiskillinu commented Jan 16, 2020

Ok, so I used cec-client directly from the command line to verify that I can turn the TV itself on, but I am unable to adjust volume. I am thinking it has something to do with the fact that all my sources show as inactive, even though there is content playing over the chromecast (unless that's expected behavior).

When I run the python script from the cli I get the following output:

To set up, please run: sudo ./chromecast_controls.py --setup setting up CEC getting CEC devices Traceback (most recent call last): File "chromecast_controls.py", line 170, in <module> cec_devs.append(all_devs[cec_dev_addr]) KeyError: 5

Could it be that I am missing something that is required?

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

2 participants