XRANDR is a commandline utility that allows you to connect to an external monitor or projector. I use this utility since I don’t have any access to gui that allows me to connect to project so I have us xrandr to connect to projectors.
xrandr
This command will list all the connected displays once we have a connected display then we can connect to it using xrandr
xrandr --output DPI --auto
--auto auto scale the resolution or you can use your own resolution that is supported by the monitor or projector.
xrandr --output DP1 --mode 1920x1080
For custom resolution.
About the Author
Muhammad Raza is a Senior DevOps Engineer and former AWS Professional Services Consultant with 5 years of experience in cloud infrastructure, CI/CD automation, and DevOps solutions. He has helped numerous clients optimize AWS costs, implement Infrastructure as Code, and build reliable deployment pipelines.
Need help with your DevOps workflows? I'm available for consulting on CI/CD pipelines, infrastructure automation, and AWS architecture. Book a free 30-min call or email me.