
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
-
August 29, 2012 35+ Must Have Apps to Increase Productivity in Ubuntu
Once you have started your way through linux, you might come across numerous applications which are being developed and released everyday. You might me interested in some and you might not.So, you arrive to an ultimate question “What are the apps that will increase my productivity?. Well, the answer is in this article which consists…
-
November 28, 2011 45+ Unbelievable Landscape Photography Inspirations
Beach Grass, Scotland Marram beach grass blowing on the coast of the Isle of Lewis. Pampa – Santa Fe, Argentina Hengill Mountain, Iceland Hengill mountain is close to Reykjavik and is famous for its geothermal areas and vivid colours. Storm Clouds, South Dakota Large powerful storms can be nearly a daily occurrence during the summer…
-
January 2, 2010 GrungeMag Reloaded Blogger Template
It’s being a longtime since I have released a blogger template. I have got many requests in my last post for converting wordpress themes to blogger templates. So I have decided to release at least two blogger themes per week. As an initiative to this , I am releasing a three column blogger template which…
-
October 4, 2009 520+ Yahoo Smileys Emotions for FUN
Yahoo smileys and emotions are pretty famous these days.
-
April 24, 2023 Why Zero Runtime CSS-in-JS is the Future of Web Development
A Zero runtime CSS-in-JS is a technique of writing CSS styles in JavaScript that does not require any additional runtime or library to function. This means that the styles generated by your code are immediately available and do not need to be parsed by a separate library at runtime. The topic of zero runtime CSS-in-JS…