<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>El hilo del laberinto (Publicaciones sobre HDMI)</title><link>https://blog.jcea.es/</link><description></description><atom:link href="https://blog.jcea.es/categories/hdmi.xml" rel="self" type="application/rss+xml"></atom:link><language>es</language><lastBuildDate>Tue, 05 May 2026 00:09:36 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Encender el HDMI de la Raspberry PI aunque no esté conectada a una pantalla</title><link>https://blog.jcea.es/posts/20250119-raspberry_pi_hdmi.html</link><dc:creator>Jesús Cea Avión</dc:creator><description>&lt;div&gt;&lt;p&gt;Todo empezó de manera inocente con &lt;a class="reference external" href="https://discourse.osmc.tv/t/audio-related-messages-flooding-the-logs-when-no-hdmi-display-present/108426"&gt;este mensaje&lt;/a&gt;
que escribí en el &lt;a class="reference external" href="https://discourse.osmc.tv/"&gt;foro OSMC&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Title: Audio related messages flooding the logs when no HDMI
display present&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For “reasons”, during the christmas holidays, I am using my
regular OSMC Raspberry PI device abroad with no HDMI cable
connected to a screen. No display at all. This is useful to me
because this device does other functions beside OSMC.&lt;/p&gt;
&lt;p&gt;I noticed these messages flooding
/home/osmc/.kodi/temp/kodi.log:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
2024-12-27 02:00:52.928 T:688      info &amp;lt;general&amp;gt;: CActiveAESink::OpenSink - initialize sink
2024-12-27 02:00:52.929 T:688      info &amp;lt;general&amp;gt;: CAESinkALSA::Initialize - Attempting to open device "default"
2024-12-27 02:00:52.931 T:688      info &amp;lt;general&amp;gt;: CAESinkALSA - Unable to open device "default" for playback
2024-12-27 02:00:52.931 T:688     error &amp;lt;general&amp;gt;: CAESinkALSA::Initialize - failed to initialize device "default"
2024-12-27 02:00:52.931 T:688     error &amp;lt;general&amp;gt;: CActiveAESink::OpenSink - no sink was returned
2024-12-27 02:00:52.931 T:687     error &amp;lt;general&amp;gt;: ActiveAE::InitSink - returned error
2024-12-27 02:00:52.935 T:674     error &amp;lt;general&amp;gt;: failed to duplicate EGL fence fd (EGL_SUCCESS)
&lt;/pre&gt;
&lt;p&gt;The logfile grows fast, possibly filling soon the microSD and
decreasing its lifetime.&lt;/p&gt;
&lt;p&gt;Beside that, maybe unrelated, KODI is using all the file
descriptors (1024 in my case) trying to do “something”. Maybe
related to those logs or not:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
root@osmcpi:/home/osmc/.kodi/temp# ls -la /proc/674/fd|tail
lr-x------ 1 root root 64 Dec 27 02:03 990 -&amp;gt; anon_inode:sync_file
lr-x------ 1 root root 64 Dec 27 02:03 991 -&amp;gt; anon_inode:sync_file
lr-x------ 1 root root 64 Dec 27 02:03 992 -&amp;gt; anon_inode:sync_file
lr-x------ 1 root root 64 Dec 27 02:03 993 -&amp;gt; anon_inode:sync_file
lr-x------ 1 root root 64 Dec 27 02:03 994 -&amp;gt; anon_inode:sync_file
lr-x------ 1 root root 64 Dec 27 02:03 995 -&amp;gt; anon_inode:sync_file
lr-x------ 1 root root 64 Dec 27 02:03 996 -&amp;gt; anon_inode:sync_file
lr-x------ 1 root root 64 Dec 27 02:03 997 -&amp;gt; anon_inode:sync_file
lr-x------ 1 root root 64 Dec 27 02:03 998 -&amp;gt; anon_inode:sync_file
lr-x------ 1 root root 64 Dec 27 02:03 999 -&amp;gt; anon_inode:sync_file
&lt;/pre&gt;
&lt;p&gt;Checking /proc/674/fdinfo/ I see this (the same data for any
file descriptor):&lt;/p&gt;
&lt;pre class="literal-block"&gt;
root@osmcpi:/home/osmc/.kodi/temp# cat /proc/674/fdinfo/999
pos:    0
flags:  02000000
mnt_id: 14
ino:    7559
&lt;/pre&gt;
&lt;p&gt;I can not determine what mount id 14 filesystem is, even using
findmnt.&lt;/p&gt;
&lt;p&gt;All filedescriptors stuck prevent my kodi extensions to work
correctly, for instance, to update IMDb ratings or screensavers.
Not very important while this raspberry is headless during this
trip, but I wonder if both issues are related and how to prevent
them.&lt;/p&gt;
&lt;p&gt;Interestingly, if I plug the HDMI wire to a display, everything
works fine.&lt;/p&gt;
&lt;p&gt;So, my questions:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;How can I avoid flooding the log my Raspberry PI is running
OSMC while headless?. This is an old issue of mine with some
friends’ raspberries OSMC when they switch off their TV.&lt;/li&gt;
&lt;li&gt;What is the reason for having all file descriptors (1024)
stuck and how to solve it?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Happy Holidays and thanks for your time.&lt;/p&gt;
&lt;p&gt;This is a Raspberry PI 3B+, OSMC fully updated.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;La respuesta fue apropiada, pero decepcionante: En vez de
diagnosticar el problema el consejo fue desactivar &lt;a class="reference external" href="https://es.wikipedia.org/wiki/Kodi"&gt;KODI&lt;/a&gt; cuando
esté utilizando la &lt;a class="reference external" href="https://es.wikipedia.org/wiki/Raspberry_pi"&gt;Raspberry PI&lt;/a&gt; sin una pantalla conectada. Por
ejemplo, usando el comando &lt;span class="kbd"&gt;systemctl stop mediacenter&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Poco satisfecho, seguí investigando. El problema de fondo es que,
por defecto, cuando la &lt;a class="reference external" href="https://es.wikipedia.org/wiki/Raspberry_pi"&gt;Raspberry PI&lt;/a&gt; se enciende sin una
pantalla &lt;a class="reference external" href="https://es.wikipedia.org/wiki/High-Definition_Multimedia_Interface"&gt;HDMI&lt;/a&gt; conectada, no activa la salida &lt;a class="reference external" href="https://es.wikipedia.org/wiki/High-Definition_Multimedia_Interface"&gt;HDMI&lt;/a&gt;, y sin dicha
salida tampoco se activa, por defecto, el sistema de audio. Los
errores que se muestran más arriba son los intentos de &lt;a class="reference external" href="https://es.wikipedia.org/wiki/Kodi"&gt;KODI&lt;/a&gt; de
conectarse a un sistema de audio que, sencillamente, está
desactivado.&lt;/p&gt;
&lt;p&gt;Un efecto secundario es que si enchufamos la pantalla &lt;a class="reference external" href="https://es.wikipedia.org/wiki/High-Definition_Multimedia_Interface"&gt;HDMI&lt;/a&gt; a la
&lt;a class="reference external" href="https://es.wikipedia.org/wiki/Raspberry_pi"&gt;Raspberry PI&lt;/a&gt; una vez que esta está funcionando, no tendremos
salida de vídeo hasta el próximo reinicio de la &lt;a class="reference external" href="https://es.wikipedia.org/wiki/Raspberry_pi"&gt;Raspberry PI&lt;/a&gt;
con la pantalla conectada.&lt;/p&gt;
&lt;p&gt;¿Cómo activar la salida &lt;a class="reference external" href="https://es.wikipedia.org/wiki/High-Definition_Multimedia_Interface"&gt;HDMI&lt;/a&gt; de la &lt;a class="reference external" href="https://es.wikipedia.org/wiki/Raspberry_pi"&gt;Raspberry PI&lt;/a&gt; aunque no esté
conectada a una pantalla? En realidad se trata de un problema
común bastante bien documentado. Ejemplos:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference external" href="https://raspberrypi.stackexchange.com/questions/2169/how-do-i-force-the-raspberry-pi-to-turn-on-hdmi"&gt;How do I force the Raspberry Pi to turn on HDMI?&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://www.shellhacks.com/raspberry-pi-force-hdmi-hotplug/"&gt;Raspberry Pi: Force HDMI – Hotplug&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://raspberrypi.stackexchange.com/questions/144876/forcing-hdmi-output-on-bookworm"&gt;Forcing HDMI output on Bookworm&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://raspberrypi.stackexchange.com/questions/107044/how-do-you-make-the-hdmi-hot-pluggable-on-a-pi"&gt;How do you make the HDMI hot-pluggable on a Pi?&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://forums.raspberrypi.com/viewtopic.php?t=370301"&gt;Display-HDMI - Hotplug!&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://forums.raspberrypi.com/viewtopic.php?t=353646"&gt;Re: Bullseye equivalent for hdmi_force_hotplug=1?&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://forums.raspberrypi.com/viewtopic.php?t=358577"&gt;Can't get a display image using the HDMI&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;La lista de ejemplos es infinita, pero la solución es simple,
aunque en algunos casos es necesario algo de experimentación: Hay
que añadir al fichero &lt;span class="kbd"&gt;/boot/config.txt&lt;/span&gt; la línea
&lt;span class="kbd"&gt;hdmi_force_hotplug=1&lt;/span&gt;. Para asegurar que hay sonido, podemos
añadir &lt;span class="kbd"&gt;hdmi_drive=2&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Como casi siempre, lo mejor es acudir a la fuente:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference external" href="https://www.raspberrypi.com/documentation/computers/legacy_config_txt.html"&gt;Legacy config.txt options&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://www.raspberrypi.com/documentation/computers/config_txt.html#video-options"&gt;config.txt: Video options&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://www.raspberrypi.com/documentation/computers/configuration.html#display-settings"&gt;Configuration: Configure video output&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="admonition warning"&gt;
&lt;p class="first admonition-title"&gt;Advertencia&lt;/p&gt;
&lt;p class="last"&gt;Si forzamos encender el &lt;a class="reference external" href="https://es.wikipedia.org/wiki/High-Definition_Multimedia_Interface"&gt;HDMI&lt;/a&gt; aún sin monitor, si no forzamos
un modo concreto o hemos grabado la información &lt;a class="reference external" href="https://en.wikipedia.org/wiki/Extended_Display_Identification_Data"&gt;EDID&lt;/a&gt; del
monitor, la &lt;a class="reference external" href="https://es.wikipedia.org/wiki/Raspberry_pi"&gt;Raspberry PI&lt;/a&gt; arrancará con una resolución
reducida y compatible con casi cualquier cosa. Eso está bien,
pero la imagen puede verse mal por la baja resolución. Habría
que reiniciar la &lt;a class="reference external" href="https://es.wikipedia.org/wiki/Raspberry_pi"&gt;Raspberry PI&lt;/a&gt; con una pantalla &lt;a class="reference external" href="https://es.wikipedia.org/wiki/High-Definition_Multimedia_Interface"&gt;HDMI&lt;/a&gt;
conectada o bien fijar una configuraciòn manual o un volcado
&lt;a class="reference external" href="https://en.wikipedia.org/wiki/Extended_Display_Identification_Data"&gt;EDID&lt;/a&gt; previo. Lo segundo funcionaría hasta que enchufemos algún
monitor incompatible con los modos que hemos puesto
manualmente...&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</description><category>HDMI</category><category>Kodi</category><category>OSMC</category><category>Raspberry PI</category><category>Sistemas Operativos</category><guid>https://blog.jcea.es/posts/20250119-raspberry_pi_hdmi.html</guid><pubDate>Sat, 18 Jan 2025 23:49:00 GMT</pubDate></item></channel></rss>