Playing with my pi headless yesterday, I noticed that upon plugging it into my HDMI tv I wasn't getting a signal immediately. After playing around I found a work around, but I was wondering what would be involved in making this automagic?
from my ssh session, running /opt/vc/bin/tvsession -p will wake up the HDMI port, and then from the PI's local KB, hitting a CTRL+ALT+F# key to switch terminals will start outputting something (i.e. CTRL+ALT+F7 will get the desktop back, if it was set to start on boot). Alternatively I could do a 'startx' from the ssh session and end up with two desktops, but that would force the display to update on the TV.
What is it about the startx process that causes the video to start displaying (without requiring local keyboard input). Is there a way we can setup a dbus or other event watcher to respond properly to HDMI state changes?
As an aside, I've also found that if I use my ubuntu netbook's internet sharing, the pi only acquires an IP if the network sharing is in place before I power on the pi. I assumed the point of the magnetic Ethernet port was to be notified when a lan becomes available? Is there a fix for this issue as well?
