Xorg – How to Use Only Part of the Screen with Nvidia

nvidiaxorgxrandr

My screen has 1280 x 1024 resolution. But unfortunately, rightmost belt of 200 pixels is damaged and unable do display any image.

How can I set that the Xorg will treat my screen as 1080 x 1024 device?

Now I have tried:

Virtual 1080 1024
Viewport 0 0

It doesn't work right – image is scaled to fit vertically, and horizontally I can pan with the mouse.

Best Answer

Check out: http://howto-pages.org/ModeLines/ , they have a good explanation of Xorg modelines. Then go to http://xtiming.sourceforge.net/cgi-bin/xtiming.pl and input the specs for the size of the screen that you can use. This will give you a Modeline that you can add to your xorg.conf file.

Fields 4, 5, 6, & 7 correspond to the following valudes: HDisplay HSyncStart HSyncEnd HTotal.

By playing with fields 5 & 6, you'll be able to move the visible portion of your screen either left or right, depending on which you need.

Related Question