How do I force the Raspberry Pi to turn on HDMI?
I have a Raspberry Pi running Raspbmc connected through HDMI to a dumb HDTV. (Does not support HDMI-CEC).
If I power on both the TV (both at source and display through remote) and Raspbmc at the same time then it all works fine.
If I power on the Raspbmc and TV, but the TV display is not turned on. Sometime later I use the TV remote to power on the TV display, then I get a blank display on TV through HDMI. This is not the screensaver because using a XBMC remote does not change anything. The Raspbmc is active though, because I can ping it and connect to it using SSH.
Is there a setting in Raspbmc I can change so that it always turns on HDMI, no matter if the TV display is on or off?
This is regular behaviour; the Raspberry Pi can only drive EITHER the RCA analogue out, or HDMI, but not both at once. The presence of an RCA output cannot be checked electronically, so the default is to check HDMI, then resort to RCA if no HDMI device was found.
This is not working with a Philips tv.
Add these two lines to
/boot/config.txtand reboot Raspbmc:
hdmi_force_hotplug=1sets the Raspbmc to use HDMI mode even if no HDMI monitor is detected.
hdmi_drive=2sets the Raspbmc to normal HDMI mode (Sound will be sent if supported and enabled). Without this line, the Raspbmc would switch to DVI (with no audio) mode by default.
Dennis Williamson: Thanks, that worked. But audio was not working. I fixed it by adding hdmi_drive=2
Thank you, that works well. However when I switch on the monitor it is flickering - it seems to change between 1024 and 1920 resolution about 5 times a second.
This did not work for me. I uncommented those two lines mentioned in the answer and rebooted my pi. There is absolutely nothing on the monitor. I keeps switching to the PiTFT display not the monitor through HDMI.
@ThN: I don't know the answer to your problem, but it may be that the configuration that enables the PiTFT is taking precedence. Look in `/boot/config.txt`, `/boot/cmdline.txt` and at files in `/etc/X11/xorg.conf.d/`. Also, look in `/home/pi/.profile` to see what the setting for `FRAMEBUFFER` is. Also, check other questions and answers here concerning the PiTFT.
Does hdmi_force_hotplug increase the power usage of the RPI? if so, anyone knows how much?
@RomanGaufman: I seriously doubt that it would, but you should start a new question to ask that.