Sunday, September 12, 2010

How to Add and Set Custom Display Resolutions using xrandr Command on ubuntu 10.04 (lucid lynx) Linux

You can change your monitor's display resolution from system->preferences->monitors,but in some cases Linux fails to detect the proper resolutions for your monitor,in such situations we can add and set custom resolutions with a little effort by using xrandr command.

As it is said in the man pages:

     “ Xrandr  is  used  to set the size, orientation and/or reflection of the
        outputs for a screen. It can also set the screen size.

        If invoked without any option, it will dump the state of  the  outputs,
        showing  the existing modes for each of them, with a '+' after the pre‐
        ferred mode and a '*' after the current mode.......”


Here is the output of my terminal window when I issued the xrandr with -q option:

sunny@usmanriaz-desktop:~$ xrandr -q

output:

Screen 0: minimum 320 x 200, current 1280 x 768, maximum 4096 x 4096
VGA connected 1280x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1360x768       59.8 
   1152x864       60.0 
   1024x768       60.0 
   800x600        60.3 
   640x480        59.9 
   1280x768_60.00   59.5*

To add a new mode xrandr provides us '--newmode' and '--addmode' options which are used to create and associate modes for the perticular display respectively.

--newmode option also requires a mode line .For example if you want to add a resolution 1280x800
the mode line will be:

"1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync

I have calculated the above mode line using  cvt  (VESA Coordinated Video Timing)  utility by issuing the following command:
sunny@usmanriaz-desktop:~$ cvt 1280 800
(note: replace 1280 800 with your required resolution)
output

# 1280x800 59.81 Hz (CVT 1.02MA) hsync: 49.70 kHz; pclk: 83.50 MHz
Modeline "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync

Now we have the mode line next step is to use this mode line with --newmode option as follows:

sunny@usmanriaz-desktop:~$ xrandr --newmode "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync


After the above command your mode will be listed in the xrandr -q output take a look at this output:

# xrandr -q

   1360x768       59.8 
   1152x864       60.0 
   1024x768       60.0 
   800x600        60.3 
   640x480        59.9 
   1280x768_60.00   59.5*
   1280x800_60.00 (0x123)   83.0MHz
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock   49.4KHz
        v: height  800 start  803 end  809 total  831           clock   59.5Hz

Now I am going to associate this mode with VGA(current connected display name) it can be different on your machine.

sunny@usmanriaz-desktop:~$ xrandr --addmode VGA 1280x800_60.00

To set this custom mode on your display just type the following command:

# xrandr --output VGA --mode 1280x800_60.00

Wow!

The Last Thing :

Though by following above steps we can change the resolution but these changes will  not be permanent , your old resolution will be restored when you reboot your system.

To make these changes permanent type in the following command in your terminal :
# sudo vim  /etc/gdm/Init/Default

and put the following commands before the Line Number 11 as shown in figure:

# xrandr --newmode "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync

#xrandr --addmode VGA 1280x800_60.00

# xrandr --output VGA --mode 1280x800_60.00



Please write me your comments and correct me on my mistakes ..!

72 comments:

  1. Replies

    1. windows 7 sp1 ultimate 64 bit product key , windows 7 key code , window 7 product key , keygen windows 7 ultimate product key , office 2016 product serial free , key to windows 7 home premium , buy windows 10 product key , free genuine windows 7 professional upgrade key , lJaOkr

      office project 2013 keys

      windows 7 ultimate sp1

      windows 10 pro key

      windows 10 pro key free

      Delete
  2. When I try to use xrandr --addmode HDMI-0 1176x664_60.00 i get an error!

    This is the output error:
    X Error of failed request: BadMatch (invalid parameter attributes)
    Major opcode of failed request: 140 (RANDR)
    Minor opcode of failed request: 18 (RRAddOutputMode)
    Serial number of failed request: 29
    Current serial number in output stream: 30


    What should I do to fix it?

    ReplyDelete
  3. You should put a # before xrandr to force add it.

    ReplyDelete
  4. And if you have mint 14 it is sudo cat /usr/share/alsa/init/default

    ReplyDelete
  5. On firing xrandr --output ... , my screen went black and I had to hard boot ...

    ReplyDelete
  6. Thank you for sharing valuable information. Nice post. I enjoyed reading this post. The whole blog is very nice found some good stuff and good information here Thanks..Also visit my page.seo services Our team always avoid generic web designing because we know from experience that every business is unique in its approach and every industry operates under different dynamics.

    ReplyDelete
  7. Thanks For Your valuable posting, it was very informative. ADC developing custom websites

    ReplyDelete
  8. email blast to tenants

    Special event parking software
    Software is used generally by people who are professionals in handling technology such as computers and other modern technology. Technology today is common to all and everyone is not denying that fact. It is not only used for better communication but in almost anything to make people’s lives easy. Among these is in parking, especially in high-volume events.
    With new software in organizing, tracking and monitoring an event’s parking, you no longer need to worry about bringing your own vehicle. This is due to automated management of parking spaces with the use of software. Parking spaces, whether big or small are needed for car owners because they strive to park in their convenient time. Certain establishments own large parking spaces but different problem occurs because of the possibility of endless car owners bringing their own cars in certain places. This software serves enforcement to all car owners who wanted to access in an event is called the special event parking software. This software expertly provides high and dignified solution between customers who are in the state of parking crisis when they are in an event. It listens and provides a unified solution every time the customers requested it. They can easily install or get the software immediately in which the parking management should uphold the excellence with the customer. Considering special events, the software is needed to sustain manageable parking spaces between customers.
    A tracking device is installed on special event parking software that is used to command or coordinate with the parking spaces when certain events or occasions happen. If a problem occurs in an event, it results to poor and unorganized event organizer which causes for them to shut down software or postponed said events. Following this, others will be tempted to visit or enjoy to different events. Occasionally, hotels, restaurants and other establishments offer to organize events or parties in their parking spaces which different kind of personalities are frequently joining. In the event, the parking space of the said establishments has big parking space for the event. It is not a problem but how about the small establishments, who organize a party but contains small space, special event parking software is ready to help.
    Events are operated by agencies or organizers which they wanted to support and provide their customers with worthwhile and great parking space. Their main goal is to gain a successful and perfect event in that parking spaces they choose. The positive impression of special event parking software is to provide their customers how to make parking management successful. Supervising parking space to make it more conducive for organizing or hosting special events is very difficult but maintaining parking spaces is a different idea. In maintaining such one, special event parking software is taking the action providing harmonious and efficient positive results at the end. Different procedures should be followed and must be taking into consideration the various strategies on how to make smaller parking spaces become bigger. Site: www.webparkingsoftware.comm


    ReplyDelete
  9. Excellent information!
    I read this blog. I like this. It shares nice and interesting ideas about on this topic.
    Custom Displays

    ReplyDelete
  10. It is truly amazing. Rich in information and also most up-to-date info on web page design.Phone System

    ReplyDelete
  11. Dean Infotech one of the top Custom Ecommerce Development India, web designing, mobile app development, digital marketing, SEO and SMO Company in India.

    ReplyDelete
  12. windows 10 product key surface 3 , get product key for windows multipoint server 2010 , vmware workstation 11 to buy , windows 10 product key crack , windows 10 serial keys for installation , windows 10 enterprise key , microsoft office 2007 professional genuine product key free , windows 10 product key for sale , tizGDa

    office 2016 product serial free

    windows 10 enterprise key

    office 2016 product key

    Windows 10 product key code sale

    ReplyDelete
  13. Some of the information related to Linux was great. Thanks for sharing it
    seo company in London
    Web Design Agency in London

    ReplyDelete
  14. Your post is just outstanding! thanx for such a post,its really going great and great work.You have provided great knowledge about the Ecommerce Website Design | Web Development Company Delhi

    Thanks!
    Best regards,
    Domaxy

    ReplyDelete
  15. The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog, looking forward for more contents...Great job, keep it up..Bangalore Web Design Companies | Web Designers Bangalore

    ReplyDelete
  16. BRAVE TECHNOLOGIES is a leading software company offering best quality cost effective software applications and end to end enterprise solutions. We are experts in Mobile App development on both platforms – Android & iOS. We consume less time to understand our client’s business requirements and concentrate purely on customer and end-user satisfaction by giving best solutions that facilitate companies to suit their varying business needs.

    ReplyDelete
  17. Have you had any issues with your company's current software? If you're struggling to find the best offer, click here to find out more about the benefits of Microsoft Dynamics software. I got it for my fairly large business and for this price it is great. Cheers

    ReplyDelete

  18. The website is looking bit flashy and it catches the visitors eyes. A design is pretty simple and a good user-friendly

    interface.

    Programmierung in Lüdenscheid

    ReplyDelete
  19. Thanks For Your valuable posting, it was very informative

    ReplyDelete
  20. Thanks For Your valuable posting, it was very informative
    suchmaschinenmarketing ludenscheid

    ReplyDelete
  21. Your website content nice nice and interesting to observe.
    personalrekrutierung

    ReplyDelete
  22. Your website content nice nice and interesting to observe.
    personalrekrutierung

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. Great post. I found this post while searching some information of google search. It is very informative post so please keep posting and updating information.
    Digital Marketing Company in India | Travel Technology Software | Software Development Solutions in India | Web Design Services in India | Mobile App Developer Noida

    ReplyDelete
  25. Thank you for sharing valuable information. Nice post. I enjoyed reading this post. The whole blog is very nice found some good stuff and good information here
    Also check my website for these same like information about custom display details. https://www.anikadigital.com/
    Thanks
    Anika Digital

    ReplyDelete
  26. That's really an interesting article. Thanks for this share.If you ever need to optimize your blog or create a website on your own. Look no further.
    We are a Seo Firm Bangalore.Our Senior SEO Consultant has 10+ years of experience, offers services like SEO, PPC, SMM, online reputation management & web development both to small and medium companies. As a running offer, we are providing free performance audit for our customers.

    ReplyDelete
  27. SIAUAE is one of the top audit firms in UAE with highly experienced professionals. As a leading Audit Firms in UAE , we achieved the label of best tax consultant in UAE.Our CA services Will help you.

    We providing the best VAT consultancy services in UAE .As a leading VAT Consultants in UAE , we achieved the label of best VAT consultant in UAE.

    Looking for the top accounting firms in UAE? SIAUAE is the best Accounting Firms in UAE , we offer comprehensive professional services in UAE.

    SIAUAE management consultancy is a professional Management Consultancy UAE , Helping clients achieve their business goals. For more details call us now.

    ReplyDelete
  28. Good Blog, thanks for sharing
    Today the companies are continually being challenged to reduce the expenses, most of working expenditures and other requirements. The main costs include the salary of employees like HR professional, accountant, auditors and administration. These problem can be overcome by best expert business outsourcing company. They provide quality and valuable services at low cost for the business enterprises. In UAE most of accounts payable outsourcing companies offers cost effective accounting services that will help the companies effectively in the current situation.
    Audit firms in UAE

    ReplyDelete
  29. Are you Looking for an top Digital Marketing Services in North Carolina So hurry up we have best offers for you :)

    ReplyDelete
  30. Are you looking for an Cheap Digital Marketing Agency in USA? Just Visit us

    ReplyDelete
  31. ISO Certification in Delhi – Genveritas a global ISO Certification Consulting firm represents considerable authority in tweaked and result-situated answers for assisting organizations to actualize change and improve business execution.

    ReplyDelete
  32. I really liked your article. I have learned a lot from this article on this site. I will be very grateful for this information. I have come to know a lot more from your article about this site. I want you to write more articles on the same topic.

    Thank you! I look forward to reading more news from you.

    Maldives Tour Packages | Dubai Tour Packages | Singapore Packages | Bangkok Packages | Bali Packages | Indonesia Tour Package

    ReplyDelete
  33. This comment has been removed by the author.

    ReplyDelete
  34. This comment has been removed by the author.

    ReplyDelete
  35. The blog or and best that is extremely useful to keep I can share the ideas
    of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
    The best Mobile App Development Companies In Bangalore|
    |Android App Development Company Bangalore|
    |UX Design Companies In Bangalore|
    |Best Mobile App DevelopmentCompanies In Bangalore
    |UI UX Design Companies In Bangalore |

    ReplyDelete
  36. hello very nice blog. it is really an interesting article we are providing some backlinks. I hope these content useful for you.
    backlinks
    backlinks
    backlinks
    backlinks
    backlinks
    backlinks
    backlinks
    backlinks

    ReplyDelete
  37. Hello everyone this information is very useful for us. We are Hoping that you will continue posting such an useful backlinks having valid information
    Backlinks
    Backlinks
    Backlinks
    Backlinks

    ReplyDelete
  38. Hello everyone These are the top Digital Marketing organizing organizations in Dubai business viability with effective development and arrangement.
    Backlinks
    Backlinks
    Backlinks
    Backlinks

    ReplyDelete
  39. Hi everyone Thanks for your post! Really fascinating blogs. Here is the some greater fascinating and most associated links.
    Backlinks
    Backlinks

    ReplyDelete
  40. Hello, your blog is greater informational for me thanks for sharing such kind of content material really. It is a very beneficial and information helpful content material like us.
    Backlinks
    Backlinks

    ReplyDelete
  41. Thanks for ones marvelous posting! I truly enjoyed reading it, you could be a great author.
    I will be sure to bookmark your blog and will eventually come back later in life. I want to encourage that you continue your great work, have a nice day!

    Dreamy Places To Propose | Domestic & International Holiday Packages | Trending Tours Packages | GET ADDICTED TO TRAVEL | Travel Gateway | TRAVEL SAFARI |

    ReplyDelete
  42. Great Post, Thanks for sharing such valuable content.
    we are the Leading Branding agencies in Bangalore, Top Graphic designing company, Logo design company in Bangalore.

    ReplyDelete
  43. Need professional WordPress Web Design Services? We're experts in developing attractive mobile-friendly WordPress websites for businesses. Contact us today! https://just99marketing.com/wordpress-web-design

    ReplyDelete
  44. WOW ! It is superb and informative post, thanks for the sharing and just keep up the good work. Colourist Logo

    ReplyDelete
  45. This comment has been removed by the author.

    ReplyDelete
  46. Thanks For Your valuable posting, it was very informative. I Am working in best digital marketing company in Surat.

    ReplyDelete
  47. Thank you for sharing your blog with us.
    If you are looking for a high-quality coating manufacturers in India , SBL Specialty Coatings is a great option. They provide wide variety of PU coatings . SBL Specialty Coatings Leading industrial coating manufacturers

    ReplyDelete
  48. Thankyou or Looking to Buy a House in Ontario or explore pre-construction properties in Cambridge , ? Look no further than Amit Airi, one of the top real estate agents in Cambridge . With an in-depth understanding of the local market, Amit can help you find your dream home in Ontario, including new homes for sale .

    ReplyDelete

Follow me

Join me on the New Digg Follow ur_sunny on Twitter

Translate

Labels

Followers