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 ..!

103 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. We create websites for customers large and small with innovative designs, visual impact and bespoke levels of functionality.Webbitez are a friendly UK based company with the in-house skills mix to create websites and associated marketing materials. Our core skills include marketing experience, design, professional photography plus coding expertise and programming capabilities. Web Design Belfast Northern Ireland | SEO Belfast Northern Ireland | Logo Design Northern Ireland UK | Hosting Services Northern Ireland UK | Ecommerce Sites Belfast Northern Ireland |

    ReplyDelete
  6. All service providers problems solved with fast, accurate, with a simple phone contact number for all your favourite Websites. Having difficulties with a social network site? Or need help or advice with any social networking issues and cant find a providers telephone contact number? Direct Contact Numbers will cut out all the relentless searching for telephone numbers online. Facebook Helpline Contact Number | Amazon Helpline Contact Number | Gmail Helpline Contact Number | Google Helpline Contact Number | Twitter Helpline Contact Number |

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

    ReplyDelete
  8. 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
  9. Acetech has many years of experience in custom software development. Find out more about custom software development at http://www.acetechindia.com

    ReplyDelete
  10. Thanks For Your valuable posting, it was very informative. Am working in Erp Software Company In India

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

    ReplyDelete
  12. Your blog giving me nice feedback. This is very effective blog for help me. Please post more related blogs. Thank you for this support.

    Visit :- Bespoke Software Development

    ReplyDelete
  13. 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
  14. Excellent information!
    I read this blog. I like this. It shares nice and interesting ideas about on this topic.
    Custom Displays

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

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

    ReplyDelete
  17. A smallish campaign with a homemade list would not be likely to yield much of a result. To achieve anything worthwhile, a much more aggressive effort is needed. Then, the age-old value analysis applies: projected earnings = margin on total projected sales - cost of campaign.

    ReplyDelete
  18. 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
  19. Some of the information related to Linux was great. Thanks for sharing it
    seo company in London
    Web Design Agency in London

    ReplyDelete
  20. 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
  21. 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
  22. Thank you for your nice post.It is really nice. I'm working in Brave Technologies Private Limited.ERP Software company in chennai For more details Call: +044 4283 5587.

    ReplyDelete
  23. 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
  24. 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
  25. There are many software out there but Activity management software & performance monitoring software are in high demand since it helps a lot in tracking the regular activities of the employees. Visit here smartmanager.com.qa

    ReplyDelete

  26. 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
  27. Your website content nice nice and interesting to observe.
    jobbörse Neunkirchen

    ReplyDelete
  28. Thanks For Your valuable posting, it was very informative
    office 2010 kaufen

    ReplyDelete
  29. Thanks For Your valuable posting, it was very informative
    office 2010 kaufen

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

    ReplyDelete
  31. Thanks For Your valuable posting, it was very informative
    toshiba q300 interne ssd

    ReplyDelete
  32. Your website content nice nice and interesting to observe.
    ssd festplatte

    ReplyDelete
  33. The website is looking bit flashy and it catches the visitors eyes. A design is pretty simple .
    Stellenbörse

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

    ReplyDelete
  35. Your website content nice nice and interesting to observe.
    jobbörse Neunkirchen

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

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

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

    ReplyDelete
  39. I read that Post and got it fine and informative. Please share more like that...Great Article it its really informative and innovative keep here: Top website development Services UK with new updates. Its was really valuable. Thanks a lot.
    Top website development companies UK

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

    ReplyDelete
  41. I read this article. I think You put a lot of effort to create this article. I appreciate your work.
    Dissertation Writing Services

    ReplyDelete
  42. Nice post.Thanks for sharing this post .I really appreciate the kind of topics you post here.
    Education erp software in chennai

    ReplyDelete
  43. Really a great post. webdesign is the key to reach visitors heart, thanks for sharing this information with us.
    We do provide Best Digital Marketing Company in Bangalore | Top 10 Digital Services Companies Bangalore

    ReplyDelete
  44. 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
  45. 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
  46. Wonderful post! An opportunity to read a fantastic and imaginary blogs, I really like to read your blog, the points you have mentioned in this article are helpful for me, thank you so much for share this awesome blog post. We are the best award winning web development company in New Zealand. Please Visit Tandem NZ

    ReplyDelete
  47. Hey Nice Blog!! Thanks For Sharing!!!Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!
    SEO company in coimbatore
    SEO company
    web design in coimbatore

    ReplyDelete
  48. This Is Really Great Work. Thank You For Sharing Such A Good info!
    Blockchain Development Company | Big data analytics companies

    ReplyDelete
  49. Thanks for sharing the valuable information here. So i think i got some useful information with this content. Thank you and please keep update like this informative details.


    erp software development company in us
    erp software company in us
    list of erp software companies in us
    erp in chennai
    list of erp software companies in chennai
    Latest CRM Software

    ReplyDelete
  50. Bài viết rất hay: Chúng tôi chuyên cung cấp các sản phẩm chất lượng sau:



    bồn massage



    bon ngam chan



    máy massage chân



    Cảm ơn các bạn!

    ReplyDelete
  51. 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
  52. Thanks for sharing this useful information with us .I am looking for this from a long time and I really very happy to say That I also deals with this service Yahoo Helpline, How to Contact Yahoo Support

    ReplyDelete
  53. Proficient floor covering cleaners in Gold Coast for a cleaner and more beneficial space. Call us now for unique arrangements.
    carpet cleaning gold coast

    ReplyDelete
  54. Best upholstery cleaning administrations in Gold Coast for all your furniture cleaning prerequisites. Recruit specialists from us to expel the profound stains and soil
    upholstery cleaning gold coast

    ReplyDelete
  55. these are the study abroad consultants in Kochi where aspiring students gets unlimited range of scope to study abroad.
    Study Abroad Consultants in Kochi

    ReplyDelete
  56. these are the study abroad consultants in Kerala where aspiring students gets unlimited range of scope to study abroad.
    Study abroad Consultants in Kerala

    ReplyDelete
  57. Thanks for sharing this useful information with us .I am looking for this from a long time and I really very happy to say That I also deals with this service contact verizon support verizon client assistance number verizon client service verizon bolster number verizon help number

    ReplyDelete
  58. Thanks for your post! Really interesting blogs. Here is the some more interesting and most related links.

    Best digital marketing company in Dubai, United Arab Emirates. Brandstory is one of the top and best digital marketing companies in Dubai UAE. As a leading digital marketing agency in Dubai, We offer search engine optimization services, online marketing services, UI UX design services, search engine marketing services, email marketing services, Google / Facebook / Bing pay per click services, Internet marketing services, website design services and website development services, social media marketing services. Hire ROI based digital marketing services company in dubai to get digital leads for your business.

    Digital marketing company in Dubai | Digital Marketing Agency in Dubai | SEO Company in Dubai | SEO Agency in Dubai | Best Digital Marketing Companies in Dubai | Top Digital Marketing Agencies in Dubai | Best SEO Companies in Dubai | SEO Agencies in Dubai | Online Marketing Company in Dubai | SEO Services Company in Dubai | PPC Company in Dubai | PPC Agency in Dubai | PPC Services in Dubai | Social Media Marketing Company in Dubai | Social Media Marketing Services in Dubai | Social Media Marketing Agencies in Dubai | Web Design Company in Dubai | Website Designers in Dubai | Website Development Services Company in Dubai | Web Design Companies in Dubai

    ReplyDelete

  59. Very Useful blog. Thanks for sharing.

    If anyone have to boost their website in google.please connect with the leading SEO Expert Kerala. Get an Afforadable SEO Services from the SEO Freelancer Kerala.

    ReplyDelete
  60. Best Corporate Video Production Company in Bangalore and top Explainer Video Company in Bangalore , 3d, 2d Animation Video Makers in Chennai.
    Great tips! But one more thing we would like to add here i.e Browser compatibility is also a must.

    ReplyDelete
  61. 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
  62. Good Blog, thanks for sharing
    everybody want digital marketing company Kerala to have their organization on the highest point of the pursuit list and engage your business. We Provide Best Digital Services, Efficiently total start to finish center abilities without viable thoughts. Powerfully cultivate strategic arrangements without empowered worth. Interfacing your business to the clients who are keen on your administration, and make a chain of best digital marketing in Kochi.
    Digital marketing company Kerala

    ReplyDelete
  63. Good Blog, thanks for sharing
    the intensity of smells can't be exaggerated. Smell has such a solid association with one's passionate express that it revives the recollections that went with our experience, in a few occasions, returning over numerous years. A deliberately built fragrance can lift one's state of mind, and places one out of a positive and innovative outlook. Our fragrance arrangements give you a chance to make the ideal experience for your customers and associates – one in which they remain drew in and associated.
    Aroma diffuser

    ReplyDelete
  64. 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
  65. Hey Nice Blog!!
    Thanks For Sharing!!! Nice blog & Wonderfull post. Its really helpful for me, waiting for a more new post. Keep on posting!


    web development company
    software development company
    app development company

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

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

    ReplyDelete

Follow me

Join me on the New Digg Follow ur_sunny on Twitter

Translate

Followers