[Reprint] Ubuntu20.04 switching home screen

The full text is reproduced from:
https://www.cnblogs.com/ericte/p/14680019.html

We choose xrandrto 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.
Insert image description here
Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/HaoZiHuang/article/details/131484370