The full text is reproduced from:
https://www.cnblogs.com/ericte/p/14680019.html
We choose xrandr
to switch the home screen
First check what screens you have
xrandr --prop | grep "[^dis]connected" | cut --delimiter=" " -f1
I will return these two here
HDMI-0
DP-0
You can try both to see which one is the name of the home screen https://www.cnblogs.com/ericte/p/14680019.html
xrandr --output HDMI-0 --primary
The home screen is switched
However, you may need to manually switch again every time you restart, which is too troublesome, so we use auto-start at boot to set it up.