You are working under a set of extremely strong assumptions, which happen to be true right now: (1) Humans have to do most menial tasks. (2) Most people will cling to all their possessions, never giving them away for free. (3) We don't have the resources to give everyone decent housing, transportation, energy, food, and communication.
(1) Automation is on its way, and will continue to eat jobs. It won't be possible to create as much jobs as technology is taking away. Take self driving cars for instance: soon there will be no bus driver, no truck driver, no taxi driver. Some of them will work in control centres and "supervise" 50 vehicles at once, but that still means many people who will need another job. People will have free time, whether they want it or not.
(2) This is a cultural problem. I guess much of it will go away once we solve (3)
(3) is less costly than it sounds. We just need to be rational about crop management (which is currently insane, thanks to globalization), the use of technology, urbanisation… It's a huge problem, but not an unsolvable one. We will need the political will to do it though, and that won't happen until western countries become democracies[1].
[1]: Current western countries are not run by the people. They are run by elected elites, which happen to represent the interests of the businesses —the only special interest that is not called such. Therefore, current western countries are not democracies. They're plutocracies. Now, I think this is most true in the US, and less true in some European countries.