Set a specific screen resolution with xrandr

Posted by dierre on Ask Ubuntu See other posts from Ask Ubuntu or by dierre
Published on 2012-01-16T16:13:06Z Indexed on 2012/09/25 3:50 UTC
Read the original article Hit count: 306

Filed under:
|
|

So I installed LUbuntu 11.04 on my VirtualBox. I couldn't find the 1366x768 resolution so I installed Guest Additions but it wasn't there. So I used this code to set the correct resolution:

gtf 1366 768 60
xrandr --newmode "1368x768_60.00"  85.86  1368 1440 1584 1800  768 769 772 795 $
xrandr --addmode VBOX0 1368x768_60.00
xrandr --output VBOX0 --mode 1368x768_60.00

The problem is that I can't find a way to save this information for the next reboot. I tried on .xinitrc and nothing happens. Then I tried on .bashrc but it's not working, I need to start a console before this commands are executed.

© Ask Ubuntu or respective owner

Related posts about resolution

Related posts about lubuntu