Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

scheduler: add HDMI switching#45

Open
escoand wants to merge 1 commit into
balena-labs-projects:mainfrom
escoand:hdmi_scheduler
Open

scheduler: add HDMI switching#45
escoand wants to merge 1 commit into
balena-labs-projects:mainfrom
escoand:hdmi_scheduler

Conversation

@escoand

@escoand escoand commented Sep 13, 2019

Copy link
Copy Markdown

Add ability to switch HDMI connected displays with the scheduler as well.
Maybe we should rename the variables from BACKLIGHT to DISPLAY.

My RPi display is not usable currently. Is somebody willing to test it with this change?

@escoand

escoand commented Sep 14, 2019

Copy link
Copy Markdown
Author

I've to realize that's not gonna work as the cec-client on alpine has no RPi support compiled.

@escoand

escoand commented Sep 14, 2019

Copy link
Copy Markdown
Author

Tested Debian as well. cec-client and tvservice are hanging on my RPi2.

@escoand
escoand force-pushed the hdmi_scheduler branch 4 times, most recently from 4ecb93a to 47ad7b8 Compare September 16, 2019 12:43
@escoand

escoand commented Sep 16, 2019

Copy link
Copy Markdown
Author

finally got a working solution, we have to build libcec by hand to get RPi support

@escoand

escoand commented Sep 29, 2019

Copy link
Copy Markdown
Author

@dansku @chrisys @shaunmulligan are u interested in upstreaming this?

@escoand

escoand commented Sep 29, 2019

Copy link
Copy Markdown
Author

Just for reference the alpine bug for this https://gitlab.alpinelinux.org/alpine/aports/issues/7754

@chrisys

chrisys commented Sep 30, 2019

Copy link
Copy Markdown
Member

@escoand yes, I'm absolutely interested in getting this merged! Thanks so much for sharing your work here.

I'll give it a test and review here, but in the meantime could you take a look here and update your commit message accordingly: https://github.com/balena-io-projects/balena-dash/blob/master/CONTRIBUTING.md

@escoand

escoand commented Sep 30, 2019

Copy link
Copy Markdown
Author

@chrisys yes, sure. So it has to be only a single commit? And what kind of commit is it? Minor?

@chrisys

chrisys commented Oct 1, 2019

Copy link
Copy Markdown
Member

@escoand yep just one of the commits, and minor is good for this as it's a (great) new feature!

@escoand

escoand commented Oct 6, 2019

Copy link
Copy Markdown
Author

@chrisys the code should be ready for merge.

@escoand

escoand commented Oct 23, 2019

Copy link
Copy Markdown
Author

Are there open problems? Or why is the PR still pending?

@chrisys

chrisys commented Jan 2, 2020

Copy link
Copy Markdown
Member

@escoand I tested this today finally - I couldn't get it to work on my monitor. I would prefer it if the changes leave the default behavior unchanged and add functionality; right now it looks like there's a risk of it being a breaking change as it defaults to using cec-client if the output from tvservice -s doesn't match. What are your thoughts on this? Is there a way to default to the existing method but change to cec-client if a compatible display is detected?

@escoand

escoand commented Jan 2, 2020

Copy link
Copy Markdown
Author

Sure, but there seem to be a lot interesting states https://www.raspberrypi.org/forums/viewtopic.php?t=52309

@escoand

escoand commented Jan 2, 2020

Copy link
Copy Markdown
Author

@chrisys what does tvservice -s show on your installation? And what is happening when you call the script or echo scan | cec-client -s -d 1 manually?

@ReubenBTalbott

Copy link
Copy Markdown

Is there any update on this? I would like to be able to sleep my HDMI monitor at night and all the documentation seems to say that only the RPi screen is able to do that at the moment.

@escoand

escoand commented Dec 22, 2020

Copy link
Copy Markdown
Author

With this PR it should work but switched to Screenly and don't use this anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants