positioning X on part of the screen ( broken LCD on old laptop )

Nikolay Kichukov nikolay at oldum.net
Thu Jan 24 07:30:33 PST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Felix,

thank you very much for the pointers. Actually I had tried panning before, but with no results. However, now that I
read through the bug report (I did not patch X server), I tried a few more commands and one of the results works
lovely. I am not sure if --fb or --panning is doing the trick but in combination, I almost managed to get what I
wanted, so case closed. Thanks once more for the tips!

Just for the reference:

I generated new ModeLine:

cvt 896 768 60
# 896x768 59.81 Hz (CVT) hsync: 47.73 kHz; pclk: 55.75 MHz
Modeline "896x768_60.00"   55.75  896 944 1032 1168  768 771 781 798 -hsync +vsync

Then:

xrandr -d :0  --output LVDS1 --newmode "896x768_60.00" 55.75  896 944 1032 1168  768 771 781 798 -hsync +vsync
xrandr -d :0 --addmode LVDS1 896x768_60.00
xrandr -d :0 --output LVDS1 --fb 896x768  --panning 896x768 --mode "896x768_60.00"


This will actually create the correct output for me, but will center it. Thus instead of specifying --mode, I leave
this option alone, so it switches back to a useable resolution for the --fb and --panning sizes. I dunno how to tell
that the screen should start at --pos 0x0, this will not be accepted. It stays centered even if I say --pos 0x0 .

So the commands that work for me now are:

xrandr -d :0  --output LVDS1 --newmode "896x768_60.00" 55.75  896 944 1032 1168  768 771 781 798 -hsync +vsync
xrandr -d :0 --addmode LVDS1 896x768_60.00
xrandr -d :0 --output LVDS1 --fb 896x768  --panning 896x768


Note: the broken part of the LCD at the top is so small, that I decided to neglect it and use full height. So now I am
only leaving unused the very right part of the LCD.


Thank you once again,
- -Nikolay

On 01/23/2013 05:25 PM, Felix Miata wrote:
> On 2013-01-23 14:40 (GMT+0200) Nikolay Kichukov composed:
> 
>> I have asked several times on IRC about this, but got no response, thus I am writing to the list.
> 
>> I have an old laptop that has a broken LCD. The upper and right part are corrupt and I would like to position the
>> X output some few cm below the upper and right edges of the screen. I tried to achieve the above with xorg.conf
>> and using xrandr, but so far my attempts have failed.
> 
>> I am running gentoo linux with Xorg version x11-base/xorg-server-1.13.1. The laptop is Dell Inspiron 1200 with
>> intel 915 video card inside.
> 
>> |-----------------------| |_____________________    | |              |    | |              |    | |
>> |    | |_____________________|_|
> 
>> Hope this picture above will not get scrambled. If the bigger rectangle is the whole screen, I'd like to have X 
>> occupying the smaller rectangle, the rest to stay unused.
> 
>> Any hints and suggestions are welcome.
> 
> [To ensure that responses to your post are non-zero]
> 
> Just a suggestion, as I don't know if the there is a solution. Try the patch attached to 
> https://bugs.freedesktop.org/show_bug.cgi?id=39949 to enable workaround for broken panning.
> 
> Then set Option "Panning" "800x600" and see what happens. Normally panning is for an area larger than the display,
> but maybe this or this in conjunction with xrandr can help.
> 
> Alternatively, maybe the LCD only provides 1024x768 natively, and by overriding EDID via xorg.conf to force 800x600
> it may be possible to position its output into the usable area.
> 
> I don't know if laptops provide this, but standalone displays can be manually sized to dimensions smaller than
> full screen, which might allow adjustment to avoid need to use the damaged area.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJRAVOYAAoJEDFLYVOGGjgXDmQIAJJzuvTD6GfqH5qY64VBGI0V
DVNCdVwUbrF/NiJiS60zwslpu3ypqJT1KsgBDUFGzIazgdRA5TUyL8MqBSyVqBKQ
f6AmHLWZkf4LVJ+R2Wp76LD1pjZvp4HWK8Fb1wtywC3Ry/IZfjtLdxBe9iQd9MIv
vQdE86YMDuNCKCaVjW8a0VLemeiHF4NtnpatK3vHgbNFpHofhnqrGRYDzAyr6GQy
wSj8oVYLe5SjSt8BWJPbDdRryOTRWg5D3qreL1ACxe9NFdakz9GNLvRQq+rYZrhF
VmSM4k3aE/tSkazMX7g9GTvR0ejc/ZHKl7318RS+YlSiiosPgFTnhOEQN/opPoA=
=elW5
-----END PGP SIGNATURE-----


More information about the xorg mailing list