Skip to content

Disable SPI display if HDMI is connected #340

@Valmontechno

Description

@Valmontechno

Hello.
I use my Raspberry Pi as a portable console with an SPI screen.
However, I also want to connect it to a TV to play on a big screen.
The problem is that when I do it, the SPI screen stays on and the sound is always on the console speakers.

My question is: How to detect if an HDMI screen is connected to disable fbcp-ili9341 in this case?

I tried to detect the presence of an HDMI screen with the commands tvservice and cat /sys/class/drm/card0-HDMI-A-1/status but it always detects a screen. Maybe because of hdmi_force_hotplug=1?

I also tried to connect an screen to the second HDMI port of my Raspberry Pi 4 but firstly nothing is displayed and secondly it is also always detected as connected.

Any direction and help would be very much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions