Jump to content
Sign in to follow this  
lightwaves

Setting Screen Resolution At Startup

Recommended Posts

Hi all, Hi bodhi creators, thank you very much for this beautiful linux distro.

It is fast and good looking.

Only issue i had, was figuring out how to make a particular screen resolution permanent.

After a couple hours of research, i figured it out.

Thanks again bodhi team.

Here it is, in case anyone needs a solution:

 

Firstly we need to find out what your monitors identifier is. Open up a terminal, start typing terminal in your unity dash to see the option or press Ctrl+Alt+T

    Type/copy this command to show your display details:

    xrandr -q

    If you only have one monitor you will see a line in the output like the following (probably with some different values, its the identifier at the start we are after):

    DVI-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 473mm x 296mm

    The screen identifier is DVI-0 in this case

    Open up your favourite text editor, lets use gedit for this example, press Alt+F2 and type gedit

    Type/copy this in:

    #!/bin/sh
    xrandr --output DVI-0 --primary --mode 1440x900

    Save this on your desktop as lightdmxrandr.sh

    You may want to test the script before we put it into practice. Back in the terminal navigate to where we just saved it:

    cd ~/Desktop

    Now we need to make it executable:

    chmod a+rx lightdmxrandr.sh

    Now run it:

    ./lightdmxrandr.sh

    (If your screen automatically auto-corrects after log in you probably won't see a difference so you may want to use a test resolution that is different but you know works while testing)

    Now lets move the little script we made:

    sudo mv ~/Desktop/lightdmxrandr.sh /usr/share/.

    If you don't use sudo you may get a permission error (I use this folder out of personal preference)

    We need to now run this in lightdm, navigate to the correct folder:

    cd /etc/lightdm

    Open up the lightdm conf file:

    sudo gedit lightdm.conf

    Now add the the instruction to run your script after the last line and save:

    display-setup-script=/usr/share/lightdmxrandr.sh

Now reboot and that should set the correct resolution on your lightdm log in screen.

(these instructions might look long but they don't take long at all)

  • Like 1

Share this post


Link to post
Share on other sites

Thanks for the detailed post. I split it into its own topic so it doesn't get lost at the tail end of the other one. Might be an OK idea to make a wiki article out of this one.

 

Welcome to the forums!

Share this post


Link to post
Share on other sites

Would it help to mark this as solved so others can hunt it down easier as well?

 

Thank you for posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×