Display turns black after a few seconds at the login screen before logging in
Even though upgrading from El Capitan to Sierra didn't fix my problem, I reinstalled Sierra and now it works. I booted in recovery mode and reinstalled without an external monitor hooked up, if that matters.