I am trying to troubleshoot an RPi4 installation running OSMC media center.
I can remote into the RPi4 but not physically access it and I want to make sure that it is outputting video and which of the two ports it is using.
How can that be done?
I tried the tvservice command as follows (from a google lookup):But modetest seems not to be available...
returns nothing at all...
I installed it usingBut trying it only filled my screen with gibberish...
The system is used by a friend and he has just installed a TV BOX which is based on Android TV and after that was set up the output from the RPi4 could no longer be accessed, the HDMI input does no longer appear among the inputs selectable by the TV.
So since I can reach the RPi4 via VPN and PuTTY I want to do the following:
1) Find out which of the 2 HDMI outputs the cable is connected to
2) Set that HDMI output to "always on" so it will trigger the TV to show its presence.
While googling I was advised to edit /boot/config.txt and add these lines to it:Here hdmi-drive=2 seems to indicate which output is going to be set as the default. Is it #2 and if so which connector is that?
I assume this tells the RPi4 which output to set to always on (#2), so I want to know if I can read back which port is actually used now?
And what is the numbering scheme used for the two hdmi ports, which is closest to the power plug?
TIA
I can remote into the RPi4 but not physically access it and I want to make sure that it is outputting video and which of the two ports it is using.
How can that be done?
I tried the tvservice command as follows (from a google lookup):
Code:
$ tvservice -stvservice is not supported when using the vc4-kms-v3d driver.Similar features are available with standard linux toolssuch as modetest from libdrm-tests.Code:
$ which modetestreturns nothing at all...
I installed it using
Code:
apt install libdrm-testsThe system is used by a friend and he has just installed a TV BOX which is based on Android TV and after that was set up the output from the RPi4 could no longer be accessed, the HDMI input does no longer appear among the inputs selectable by the TV.
So since I can reach the RPi4 via VPN and PuTTY I want to do the following:
1) Find out which of the 2 HDMI outputs the cable is connected to
2) Set that HDMI output to "always on" so it will trigger the TV to show its presence.
While googling I was advised to edit /boot/config.txt and add these lines to it:
Code:
hdmi_force_hotplug=1hdmi_drive=2I assume this tells the RPi4 which output to set to always on (#2), so I want to know if I can read back which port is actually used now?
And what is the numbering scheme used for the two hdmi ports, which is closest to the power plug?
TIA
Statistics: Posted by Bosse_B — Mon Apr 28, 2025 7:46 pm