I think the ants want to search for a new place for them, so they feel that your laptop is the ideal place for them. Maybe you can place your laptop in the shady place with a warm place or a place with radiant sunlight because of the ants are afraid of the sunlight. But it's an interesting problem that you've got, and I never have such experience, and I don't want to get the same thing as you

I hope you can solve the problem.