I had some problems with the hard disk, and have now replaced it

I reinstalled Manjaro (17.1.7. x86-64) and then updated.

When I boot up, I end up with the black screen. But when I type control, Alt, F2 and type startx at the terminal, I then get the desktop. I should be able to avoid this stage.

How can I startx automatically at boot?