Set a specific screen resolution with xrandr
- by dierre
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.