The question is not really "how to not be useless".
If you make society about being useful to the top 5% of the population, then the rest of the population is always going to be left in the dust unless you turn to geneticaly modified workers ala Gattaca.
The question is, how do you create a society where everyone can make a living?
It is ingrained into modern society thinking that in order to make a living, you need to be useful to someone else that has the money, power, and natural resources that you don't have simply because of age, luck, or someone being naturally smarter.
But what if everyone was guaranteed land to live in and produce their own sustenance? In a different type of society, or perhaps far into the future, this may be a possibility given population control.
In this manner, people are guaranteed to at least make a living. The tendency for riots will be greatly diminished when basic needs are met. Everyone else who wants to create more wealth and enter the monetary exchange will be free to do so.