When AI takes your job...

When AI has taken away all jobs, the vast majority of voters will no longer have an income. The resulting unemployment and inequality will be socially unacceptable. What is the solution?