How to create create and use a new xrandr mode when system boot

Hello everyone, I´m a newbie in Manjaro.

when my Manjaro virtual system boot the resolution of the screen is terrible, like 800x600 I think. So looking in internet I found the way to fix this and change the resolution to 1920x1080. (Here:

My problem is that when I reboot, all that configuration is gone. I have to run all those commands again. I want it to be done automatically when boot system.

I´ve tried several options, writing a .sh script with these commands:

sudo cvt 1920 1080 60;
sudo xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync;
sudo xrandr --addmode Virtual1 1920x1080_60.00;
xrandr -s 1920x1080_60.00;

And move the file to /etc/profile.d/. That didn´t work.

I´ve tried to create a systemd service but that didn´t work either.

Is this an installation in a virtual machine like VirtualBox or similar?

More info may help...

Yes. I am using Virtual Box. What other info can I provide you?

Dumb question here, do you have the VirtualBox guest modules installed it should be something like, linux57-virtualbox-guest-modules depending on your kernel version.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by