| Written by: | Thinker |
Score: 22 votes: 26 Format: Article |
Add new screen resolution in Linux Mint
Linux does not have as much options for display resolutions as in windows. A 22" Monitor in linux will have 1920x1080, 1440x900, 1280x960, 1024x768 resolutions. Some users may need resolution like 1600x900, 1366x768 for some purposes. These resolutions can be added manually in Linux. Basic steps for adding 1600x900 resolution are explained as under which can be modified for any other screen resolution by changing values 1600x900 with your required one.
1. First step is to create modeline. This is done to get appropriate values of hsync, vsync and other parameters which are required to display a resolution properly in the backend. To add resolution of 1600x900, open terminal and type:
cvt 1600 900
This will create modeline for resolution of 1600x900 which will look something like this:
1600x900 59.95 Hz (CVT 1.44M9) hsync: 55.99 kHz; pclk: 118.25 MHz
Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
These numbers may vary according to your monitor.
2. To add this resolution to monitor settings, type the following highlighted commands one by one:
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
(values after xrandr --newmode to be pasted from second line of generated values with cvt command from your own computer, don't copy from here. In other words, after writing xrandr --newmode in terminal, copy the output of cvt command from its second line excluding word Modeline upto its end and paste it after xrandr --addmode. )
xrandr --addmode VGA1 "1600x900_60.00"
After these steps, resolution of 1600x900 will appear under the list of various resolutions available in display settings. This will remain listed for one session only. When computer is restarted, this will disappear. To make it appear permanently, we need to configure xorg.conf file and make this entry manually.
3. In Mint, xorg.conf is not present by default and has to be created. This can be created only when x server is not working ie. in console mode otherwise system will give error. Type these highlighted commands one by one in console mode:
Alt+Ctrl+F1 (switch to console mode)
Login by typing user name and password
sudo service lightdm stop (For Mint 12 Lisa users) or sudo service mdm stop (For Mint 13 Maya users)
sudo X -configure (generates new xorg.conf file)
File with name xorg.conf.new will be created in Home folder. Although some error message will appear but file will be created. Just ignore that message.
Note: 1.Use only one of the commands (from sudo service lightdm stop or sudo service mdm stop) according to your distro edition. These are used to kill x server.
2. In Mint 13 maya, after sudo service mdm stop, Alt + Ctrl + F1 has to be pressed again.
4. To switch back to graphical mode, type:
sudo start lightdm (Mint 12 Lisa users)
sudo service mdm start (Mint 13 Maya users)
If above commands fail to bring back graphical mode, just restart your computer.
5. Open Home folder. Rename this file from xorg.conf.new to xorg.conf Open xorg.conf with text editor and make the following changes. Underline shows newly added lines
- Add Modeline in Monitor Section under each Identifier option. Example:
Section "Monitor"
Identifier "Monitor0"
Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
- Add modes in screen section in similar way as described above in each subsection (screen1, screen2) under the element Depth (Also for each depth). Example:
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
Modes "1600x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
Modes "1600x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1600x900"
EndSubSection
(Upto Depth 24)
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
Modes "1600x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
Modes "1600x900"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1600x900"
EndSubSection
(Upto Depth 24)
EndSection
6. Save this file and copy this file to /etc/X11/ by typing following command:
sudo cp xorg.conf /etc/X11
(assuming that xorg.conf is located at Home folder) or do it by graphically if you know.
Note: New resolution must be less than Maximum resolution that monitor can support. And care fully add those lines to each subsection Monitor0, Monitor1, Monitor2, Monitor3, Screen1, Screen2, Screen3, Screen4. For Screen section, add entries for every Depth from 1, 2, 4, 8, 16, 24.
Tags: Adding more/custom/new/manually/high display/monitor/screen resolutions permanently in linux mint12 lisa and mint13 maya by configuring/editing xorg.conf file
Created: 1 year ago.
Last edited: 5 months ago.
Reviewed: 1 year ago.
Read 0 times.
| Comments | |||
| 1 month ago |
aria-boy |
hi thanks for your tutorial i made a script from your tutorial that i uploaded here http://forums.linuxmint.com/viewtopic.php?f=213&t=130595 just define the resolution that you want and enjoy it i hope it helps |
|
| 1 month ago |
Jchw |
Just to follow up on my question regarding the broken xorg.conf file. I resolved this problem,the laptop is now working fine and the resolution has been changed. The tutorial is excellent and has solved the resolution problem on both of the laptops. It was entirely my fault that I did not follow the tutorial correctly for the second laptop and that broke the xorg.conf file and so I could not boot up. I resolved it by running the instalation usb drive from which I could see the Mint system and I was able to navigate to the Etc/X11 folder. When I opened the X11 folder I right clicked and selected the option open in terminal. I then ran sudo mv xorg.conf xorg.broken. This change the xorg.conf file to xorg.conf.broken and I was able to boot in normally. I then followed the tutorial to the letter and set up the xorg.conf file correctly and it works like a dream. Some day I may go in and delete the broken file. Many thanks for the tutorial. |
|
| 1 month ago |
Jchw |
This worked fine for me on my Dell D630 laptop and then I tried the same fix on my daughters laptop which is identical to mine. All went well until I rebooted and it came up with the message "failed to start the X server" it then offer to diagnose the problem but that just stated the X.Org X Server was 1.11.3 and to check the wiki x org to make sure I have the latest version. I am relatively new to this and any advise on how to fix this would be appreciated. I can work the terminal but I am not familiar with the commands and need to copy past to make anything work. I tried booting up in recovery mode but was unable to fix it. Should I post this on the Mint Forum? |
|
| 3 months ago |
bear |
Thanks, worked for me on Mint 32 Bit Maya+Mate. However my monitor is named "VGA-1" NOT "VGA1" as in this tutorial. The name can be found by keying xrandr with no parameters. I also found the xrandr can be used to try out modes like this:- $cvt 1640 1200 76 (Cut&Paste; from output to do) $xrandr --newmode "1640x1200_76.00" 212.75 1640 1760 1936 2232 1200 1203 1213 1256 -hsync +vsync $xrandr --addmode VGA-1 "1640x1200_76.00" $xrandr --output VGA-1 --mode "1640x1200_76.00" I have also writen a python script to automate the tutorial procedure and update xorg.conf If anyone wants it, tell me where, |
|
| 5 months ago |
pavman |
Thank you thank you thank you! :) I noticed my Viewsonic VA902b was not displaying as high as it could go. I would recommend revising it to have the author update xorg.conf before restarting Xwindows. It was alot easier to put the values in a txt file ahead of time then just use vi !! to grep the values rather than having to type everything in again. I played around a bit (its 4:3/5:4 monitor), and I added the following odd, but workable, resolutions (as 1600x1200 was just a little off w/ the menu bar being about halfway cutoff): 1504x1200 1568x1176 1584x1194 1600x1200 Now I just need to find ouit how to slightly adjust my fonts and the thing will be golden. Many many thanks again, this made developing w/ eclipse alot more visually friendly :) |
|
| 6 months ago |
Thinker |
@hapsis How can you say Hz setting is wrong? Can you please explain further the things/reasons/situations which have made you to think that Hz settings might be wrong. There are online modeline creating websites also. You can create your modeline online and then can compare with the one created by cvt command and can see whether it was right or not. Here is the link if you want to try: http://www.arachnoid.com/modelines/ Here is the link to original web page of xorg. You can get much more details from here: https://wiki.ubuntu.com/X/Config/Resolution |
|
| 6 months ago |
hapsis |
Hi, I've managed to create modeline also for 1920x1080 but it seems that Hz setting is wrong. Can I manualla force it to make 1920x1080 setup with 50Hz? Here's what my hardware manuals say about the resolutions: Sony HDTV: 1920 x 1080 (50Hz LCD HDTV) Intel Integrated Graphic Driver: Up to 2048x1566 @ 75 Hz Supports flat panels up to 1920x1200 @ 60 Hz or digital CRT/HDTV at 1400x1050 @ 85 Hz |
|
| 6 months ago |
Thinker |
@hapsis Modeline syntax is created automatically, its not in our hands as far as I know (Although expers may do this) and it varies from monitor to monitor. Modeline syntax is created automatically by typing cvt command followed by required resolution and in your case, it will be "cvt 1920 1080" without quotes. It will create modeline for 1920x1080 resolution. Don't ever try to modify this modeline to create modeline for 1920x1080 by replacing 1600 by 1920 and 900 by 1080. I have replied to your comment as I thought you are trying to create modeline for 1920x1080 resolution by replacing 1600 by 1920 and 900 with 1080 in this modeline. If still I am unable to understand your question please elaborate it. |
|
| 6 months ago |
hapsis |
Hi, thanks for this tutorial. I managed to add 1600x900 resolution with my intel integrated media accelerator 3100. Somehow it resetted the setting after one boot and I need to do this again (maybe it was update). Question: I have Sony HDTV LCD, it native resolution would be 1920 x 1080 => what will be the settings like on this tutorial, what are the "other numbers" on the line? Should it be something like this: Modeline "1920x1080_60.00" 118.25 1920 1600 1696 1856 2112 1080 900 903 908 934 -hsync +vsync Or how that Modeline syntax is done? Distro for my Mint is the latest available this date (Mate). /TS |
|
| 6 months ago |
flerchjj |
Thanks. Very useful, although I used gtf to get the modeline since I was originally following another tutorial. Now the resolution on my Macbook Pro is fixed. | |
| 6 months ago |
flerchjj |
FYI, I missed the note "2. In Mint 13 maya, after sudo service mdm stop, Alt + Ctrl + F1 has to be pressed again." and ended up figuring that out on my own. I would suggest reformatting step 3 to make this more obvious. Suggestion to reformatting: sudo service lightdm stop (For Mint 12 Lisa users) or *Note 1 sudo service mdm stop (For Mint 13 Maya users) *Note 2 Note: 1. Use only one of the commands (from sudo service lightdm stop or sudo service mdm stop) according to your distro edition. These are used to kill x server. 2. In Mint 13 maya, after sudo service mdm stop, Alt + Ctrl + F1 has to be pressed again. |
|
| 6 months ago |
Thinker |
I forgot to mention that this tutorial is for integrated graphics, not for dedicated one. Dedicated graphics cards have their own control panel. So I am not sure whether this method is appropriate for them or not. | |
| 6 months ago |
LoneRanger |
Didn't work for me in Mint13 KDE I have a full HD 1080p monitor capable of 1920x1080 and my attempts to add that resolution with this method have failed. My attempts to follow this tutorial exactly with the 1600x900 example (within monitor and video card capabilities) have also all failed. I can't get any resolution better than 1360x768 with an EVGA GTX550Ti video card and Viewsonic VX2453mh-LED monitor. I was able to get all the proper resolutions available with Kubuntu 12.04 on the same machine in the past. Might not have be the same nvidia binary driver though, but I can't check it now. | |
| 8 months ago |
cushion |
Thank you very much for a solution which worked perfectly and which was explained such that, if you followed the steps exactly, the desired result was obtained. | |
| 8 months ago |
linuxnewbie93 |
Thanks Thinker its frustrating that my LCD tv cuts off some of the screen... The max resolution for my monitor is 1440x900 is there anyway at all to keep the resolution to stop cutting off some of the screen or is the only way to just use resolutions that are default 1024x900. |
|
| 8 months ago |
Thinker |
Resolution to be added should be less than because adding resolution which is more than max resolution is just wastage of time and it will not work as monitor cannot display it. . As far as your question how much less does it have to be, you should try standard ones. For example if your monitor support Full HD resolution 1920x1080, you can also try 1600x900, 1400x900, 1366x768, 1280x960, 1280x720 etc. For list of commonly used resolutions, visit this link https://en.wikipedia.org/wiki/List_of_common_resolutions . If you want some more resolutions which are not standard, you can try them also because experimenting is not bad. But before adding them to xorg.conf, try them in current session by selecting them from display settings after performing steps 1 ahd 2. If it works well, then add it to xorg.conf. . One more thing, LCDs can't display each resolution correctly. Don't expect that any resolution you want will be displayed perfectly. |
|
| 8 months ago |
linuxnewbie93 |
In your note for making the new screen resolution less than the monitor can support, how much less does it have to be because my tv monitor is picky when using different screen resolutions. | |
| 10 months ago |
Tree |
This worked for me in Mint 13 (Mate) except where Thinker uses lightdm I use mdm, for instance instead of... sudo service lightdm stop (use) sudo service mdm stop and instead of sudo start lightdm (use) sudo start mdm I followed him closely and it worked nicely, How ever if you find yourself having to get out of console mode press Ctrl+Alt+F8 at the same time. Your screen will go black for a few seconds (not more than 15) and you will be on your Desktop. |
|
| 1 year ago |
chassum |
This looks pretty thorough and could possibly be used to help with other video issues. | |
Other tutorials from Thinker
- Remove duplicate icons from Gnome-shell application area
- Editing Grub2 menu entries manually in Linux Mint
- Receive files from a Bluetooth device in Linux Mint
- Burning a DVD via Terminal using "growisofs" command
- Install Softwares offline in LinuxMint (without having internet)
- Playback Sound Recording in Linux Mint
Ideas
Tutorials
Hardware
Software
Countries
Users
Moderation
Chat room
ISO Images