Get HDMI Working With Nvidia Optimus On Ubuntu By Using Bumblebee And Synergy

HDMI doesn't work with Optimus hybrid graphics chipsets under Linux for most laptops, even if you use Bumblebee, but there is a way to get HDMI to work: by using a separate session.