Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 67896  / 3 Years ago, tue, june 15, 2021, 7:34:39

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.


More From » resolution

 Answers
5

I was trying to change the default resolution of LXDE on Ubuntu (LXDE is also used in Lubuntu) and I found a solution for this problem. I also have Lubuntu installed and I've checked that this file actually exists which it does (Ijust tried this fix as well and it worked).



So, the fix....




  1. Open up a terminal, press ctrl+alt+t

  2. I'm guessing you have a default Lubuntu install, so "Leafpad" would be your default editor, type/copy this into the terminal and press enter... (you may be asked for a password)



    sudo leafpad /etc/xdg/lxsession/LXDE/autostart

  3. Now add your commands to the bottom of the file adding a @ before the actual command. Mine looked like this after...



    @xscreensaver -no-splash
    @lxpanel --profile LXDE
    @pcmanfm --desktop --profile LXDE
    @/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
    @xrandr --auto --output DVI-1 --primary --mode 1680x1050 --left-of DVI-0


[#40914] Wednesday, June 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
azaaburge

Total Points: 266
Total Questions: 85
Total Answers: 109

Location: Djibouti
Member since Sat, Oct 29, 2022
2 Years ago
;