How can I reset dual display to one screen from command line and set old second screen as main display? (12.04 + nvidia)
I would recommend installing disper, a command line display manager.
Then you can do
disper -S to make secondary only, or
disper -e -t left to extend to the left for example.