Skip to content

overlays: vc4-kms-v3d: Change composite handling - #4689

Merged
pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
pelwell:v3dcomposite
Nov 11, 2021
Merged

pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
pelwell:v3dcomposite

Conversation

@pelwell

@pelwell pelwell commented Nov 11, 2021

Copy link
Copy Markdown
Contributor

On a Pi 4, enabling composite video disables the HDMI output. As a
consequence, the composite output is disabled by default. Change the
vc4-kms-v3d overlay used on older Pis to also disable composite by
default, replacing the "nocomposite" parameter with a "composite"
parameter.

Signed-off-by: Phil Elwell phil@raspberrypi.com

On a Pi 4, enabling composite video disables the HDMI output. As a
consequence, the composite output is disabled by default. Change the
vc4-kms-v3d overlay used on older Pis to also disable composite by
default, replacing the "nocomposite" parameter with a "composite"
parameter.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
nocomposite Disable the composite video output (default
"off")
composite Enable the composite output (default "off")
N.B. Disables all other outputs on a Pi 4.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll test, but now that we have the correct VEC 108MHz under all circumstances there's probably no need to disable HDMI on Pi4 with composite.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which would make the only reason to change the default the behaviour of the desktop environment...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't having composite enabled, mean we are outputting a desktop/console picture there, using sdram bandwidth and power. For something 99% of users don't want?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just been chasing this through. Composite-1 reports as "unknown", which DRM takes as "use me as a display of last resort". So normally the console will NOT be using it.

X does seem to enable the output regardless of reported connected state.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't stop us in Pi 3 days, when there was less SDRAM bandwidth to go around.

@pelwell

pelwell commented Nov 11, 2021

Copy link
Copy Markdown
Contributor Author

On balance, although it may upset the millions of legacy Pi users using KMS on a composite monitor, making composite output an opt-in is the right outcome.

@pelwell
pelwell merged commit 063a326 into raspberrypi:rpi-5.10.y Nov 11, 2021
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Nov 11, 2021
See: raspberrypi/linux#4689

kernel: config: Set TCA8418 to module
See: raspberrypi/linux#4684

kernel: overlays: Additional parameters for gpio-poweroff
See: https://forums.raspberrypi.com/viewtopic.php?t=323508
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Nov 11, 2021
See: raspberrypi/linux#4689

kernel: config: Set TCA8418 to module
See: raspberrypi/linux#4684

kernel: overlays: Additional parameters for gpio-poweroff
See: https://forums.raspberrypi.com/viewtopic.php?t=323508
@pelwell

pelwell commented Nov 16, 2021

Copy link
Copy Markdown
Contributor Author

This patch has been reverted temporarily because not enabling the composite output has been seen to break HDMI on older Pis.

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

Successfully merging this pull request may close these issues.

3 participants