You dont use startx to load emulationstation you just type emulationstation.
you need to reboot if adjusting config.txt, but I can’t advise further other than what is on that page and other threads on the forum with ideas. usuaully hdmi_drive sorts it if using dmt mode and you want sound over hdmi.