Linux users come across a common problem in which they dont find their native monitor resolution and instead they left with the default resolution of 1024*768. This is because the system couldn’t identify the graphics card driver.
Don’t worry, with simple steps you can add your own desired resolution and make the changes permanent in your system even when the “displays” menu says “unknown” monitor.
Type the following command in your terminal to know the resolutions available in your system
xrandr
- Your current resolution will be marked by ‘*’.
- Now that you identified the resolutions available its time to add your own desired resolution.
- For example, if you want to add the resolution of 1280*1024 type the following command in terminal,
cvt 1280 1024 75 (75 denotes the refresh rate in Hz).
- You will get modeline with many paramaters which will look like,
Modeline "1280x1024_75.00" 138.75 1280 1368 1504 1728 1024 1027 1034 1072 -hsync +vsync
Next, the new resolution mode can be created using the below command and press Enter
xrandr –newmode "1280x1024_75.00" 138.75 1280 1368 1504 1728 1024 1027 1034 1072 -hsync +vsync
Now you can check the new mode by typing the command,
xrandr
Next, the new mode should be added to list of native resolutions by the command,
xrandr --addmode VGA1 "1280x1024_75.00"
- Type the command to check if the resolution is added.
xrandr
Before you can mess up with the xorg.conf file which will be explained in step 6 you need to have some details in your hand like,
Identifier, for example Identifier "Screen0"
Device, for example Device "Device0"
Monitor, for example Monitor "VGA1"
Driver, for example Driver “ i915”
- Mostly identifier and device name can be obtained from “displays” option from “dash home”
- While monitor can checked using xrandr and driver information can be obtained using the command,
sudo lshw -class display|grep "driver"
Now that you have the essential details in hand its time to make the changes permanents by editing xorg.conf file available in the location /etc/X11/xorg.conf.
To achieve this, type the following command in terminal,
sudo gedit /etc/X11/xorg.conf
Some of you would get error executing this command because here gedit indicates the text editor(like notepad) with which you are editing the xorg.conf file. So, if you are using someother text editor as default just replace gedit with it.
Don’t forget to enter your administrator password and press Enter.
Type the following in the editor,
Section "Monitor"
Identifier "VGA1"
Modeline "1280x1024_75.00" 138.75 1280 1368 1504 1728 1024 1027 1034 1072 -hsync +vsync
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "VGA1"
SubSection "Display"
Modes "1280x1024_75.00"
EndSubSection
EndSection
Section "Device"
Identifier "Device0"
Driver "i915"
EndSection
- Save and close it.
The final step is setting the mode you created as active. To achieve it type the following command,
xrandr –output VGA1 –mode 1280x1024_75.00
Press enter and your screen resolution is changed.
If you get a error message “xrandr: cannot find mode 1280*1024_75.00” , the problem is with the “*” you entered so enter as 1280x1024_75.00 and not 1280*1024_75.00.
Feedback
Hope you enjoyed reading this article. We are a bunch of Linux (Ubuntu) users trying to guide you on fixing problems or on customizing Linux. If you want any particular topic to be discussed here, do let us know via comments.
Popular
Editor’s Pick
-
April 30, 2023 Maximizing Performance with useLayoutEffect React Hook
Discover how to optimize your React apps with our comprehensive guide on ‘Maximizing Performance with useLayoutEffect React Hook’. Learn how to leverage this powerful hook for efficient DOM manipulation, eliminating visual glitches, and creating smoother transitions. Ideal for both novice and expert React developers.
-
August 22, 2009 Show only post titles in Labels page
Hope you might have noticed that few blogger users are using custom layout for Home Page , Post Pages, Labels Page and Archives Page. Though I will write about having custom Layout in your blog later , In this post I will explain how to show only post titles in labels page and Archives page….
-
December 6, 2012 12 Best Mid Range DSLR cameras
I am almost got fed-up to hear “What’s the best DSLR”I receive several emails from our readers asking which one they should opt. Now the true fact is, almost all DSLR cameras is good enough to take clean pictures .They all provide you with good specs, sharp images but it’s you who will decide whether…
-
April 4, 2023 Mastering the Art of Newborn Bathing: Expert Tips and Tricks for a Happy Baby
Bathing a newborn can be a daunting task for new parents, but it’s an essential part of their routine care. Not only does it keep your baby clean, but it can also help soothe them and establish a relaxing bedtime routine. In this video, we’ll be sharing some tips and tricks for making bath time…
-
May 24, 2012 65+ Stunning Macro Photographs with tutorials
We are often bothered and eluded by the large things like landscape, river views, lakes etc. but we rarely look to the smallest things in our world. Macro photography is one of those medium which makes you feel that even the smallest things have many parts to play in this globe. Macro photography means that…








