[SOLVED] How to set up a default screen resolution?

Forum rules
Before you post please read how to get help

[SOLVED] How to set up a default screen resolution?

Postby manuel.dossantos on Wed May 30, 2012 5:18 pm

Hello everybody!

Straight to the point: every time i start my Linux Mint LXDE computer, the screen resolution is set to 1360 x 864, which is not the optimal for my monitor. So, i have to change it to 1360 x 768 every time i start my pc... its a little annoying. For some reason, even though i set the screen resolution, my linux doesn`t "remember" my choice :(

How can i set 1360 x 768 as the default resolution?

Thanks in advance.

PS: i set my screen resolution through MENU :arrow: PREFERENCES :arrow: MONITOR SETTINGS.
Last edited by manuel.dossantos on Mon Jun 04, 2012 12:24 pm, edited 3 times in total.
manuel.dossantos
Level 1
Level 1
 
Posts: 5
Joined: Wed May 30, 2012 4:29 pm

Linux Mint is funded by ads and donations.
 

Re: How to set up a default screen resolution?

Postby jp734 on Thu May 31, 2012 7:22 am

Check if you have the file "/etc/X11/xorg.conf" and see what resolution is your monitor set to
IBM-X41 1.5GHz 1GB 32Gb - Lubuntu 12.10
---
Custom PC: Core2Quad 2.83GHz - 4GB - (3) Dell E197FP, (2) Radeon HD 5450
--- Linux Mint 15 Mate - Lubuntu 13.04 - CrunchBang Waldorf


Image
jp734
Level 3
Level 3
 
Posts: 174
Joined: Wed Apr 27, 2011 12:18 pm

Re: How to set up a default screen resolution?

Postby manuel.dossantos on Fri Jun 01, 2012 12:04 pm

jp734 wrote:Check if you have the file "/etc/X11/xorg.conf" and see what resolution is your monitor set to


I searched the entire disk, and no "xorg.conf" file was located, any suggestions?
manuel.dossantos
Level 1
Level 1
 
Posts: 5
Joined: Wed May 30, 2012 4:29 pm

Re: How to set up a default screen resolution?

Postby jjaythomas on Fri Jun 01, 2012 1:25 pm

xorg config file is depreciated in current Ubuntu (and drivatives), but can create one.
But in LXDE...

make sure you save monitor setting (then have to either restart or re-apply setting in setting>monitor settings) I think its a bug that saving and apply won't work together. :roll:

Hopes help
J.Jay
jjaythomas
Level 5
Level 5
 
Posts: 597
Joined: Sun Mar 07, 2010 12:52 pm

Re: How to set up a default screen resolution?

Postby manuel.dossantos on Fri Jun 01, 2012 2:17 pm

jjaythomas wrote:xorg config file is depreciated in current Ubuntu (and drivatives), but can create one.
But in LXDE...

make sure you save monitor setting (then have to either restart or re-apply setting in setting>monitor settings) I think its a bug that saving and apply won't work together. :roll:

Hopes help
J.Jay


In Mint LXDE, there is no "save" option. The tool that manages monitor settings is called LXRandR 0.1.1.

Please help me someone!
manuel.dossantos
Level 1
Level 1
 
Posts: 5
Joined: Wed May 30, 2012 4:29 pm

Re: How to set up a default screen resolution?

Postby jjaythomas on Fri Jun 01, 2012 4:34 pm

What version of LXDE using? :?:

I currently only have it installed on LMDE (technically Swift). :roll:

BUT tried on current Live disk Version 12. They do, it uses lxrandr .1.2.

J.Jay
jjaythomas
Level 5
Level 5
 
Posts: 597
Joined: Sun Mar 07, 2010 12:52 pm

Re: How to set up a default screen resolution?

Postby manuel.dossantos on Sun Jun 03, 2012 4:57 pm

how do i get my lxde version? i am not sure which version im running
manuel.dossantos
Level 1
Level 1
 
Posts: 5
Joined: Wed May 30, 2012 4:29 pm

Re: How to set up a default screen resolution?

Postby jjaythomas on Sun Jun 03, 2012 7:59 pm

You usually are told/know what ISO your using. The version of the CD/USB pen you used to install.

if not the artwork (check default wallpaper/login screen) usually has version in the picture somewhere.
You can also use 'system>system profiler and benchmarks' program, under summary or operating system (check version, listed as LinuxMint # (version) LXDE.
You can also find it in the 'system tools>update manager' program.

you can also find with a CLI (terminal) command.

J.Jay

P.S. LXDE installed on LMDE is a rolling (sort of) where you can update to the new version (snapshot).
But
LXDE based on Ubuntu you can't (easily), you re-install with a new ISO on CD/DVD/USB pen-drive ect.

Hopes explains
J.Jay
jjaythomas
Level 5
Level 5
 
Posts: 597
Joined: Sun Mar 07, 2010 12:52 pm

Re: How to set up a default screen resolution?

Postby seppalta on Mon Jun 04, 2012 1:21 am

Use Arandr to set your resolution. Save it. It should be saved in .screenlayout in your home directory. Add that saved file to Autostart. See http://douwil7.100webspace.net/linux/Tuning.html#16 for more details, albeit for setting up dual monitors but the same procedure should work for a single monitor.
seppalta
Level 4
Level 4
 
Posts: 390
Joined: Wed Jun 08, 2011 12:08 pm

PROBLEM SOLVED

Postby manuel.dossantos on Mon Jun 04, 2012 12:48 pm

Ok guys, problem solved!! Thanks to all of you for helping! This is how i solved the problem:

1) With Synaptic, install the package named ARANDR.
2) Then, open ARANDR and set the resolution to the one you want as "default" (1360 x 768 in my case), and press the "apply" button.
3) After the new resolution is applied, press the "save as" button.
4) By default, ARANDR will ask you to save this monitor settings in this folder: /home/YOURNAME/.screenlayout... do it (lets say you name the file "defaultresolution").
5) With the File Manager, go to the location of the newly created file (/home/YOURNAME/.screenlayout), right click on the file defaultresolution.sh and make the file executable (by checking the box).
6) Then, go to this location: /etc/xdg/lxsession/Mint. Inside this folder you will find a file named autostart. Edit the file, by inserting the following line: @/home/YOURNAME/.screenlayout/defaultresolution.sh. (what you just did, is order your lxde to "autorun" this command at startup).
7) Save the changes, and restart your computer. If everything went well, your lxde mint will show the desired resolution as default.

The End.

PS: special thanks to user seppalta :P
manuel.dossantos
Level 1
Level 1
 
Posts: 5
Joined: Wed May 30, 2012 4:29 pm

Linux Mint is funded by ads and donations.
 

Return to Others

Who is online

Users browsing this forum: No registered users and 1 guest