From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Subject: xrandr scaling bug Date: Sat, 15 May 2010 11:00:20 +0600 Message-ID: <4BEE2A64.8050203@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by gabe.freedesktop.org (Postfix) with ESMTP id 50AE39E776 for ; Fri, 14 May 2010 22:00:25 -0700 (PDT) Received: by fg-out-1718.google.com with SMTP id 22so468807fge.12 for ; Fri, 14 May 2010 22:00:24 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Hello, I tried playing with xrandr transforms on my 1280x1024 screen. Intention: simulate a lower-resolution screen, add black bars, keep aspect ratio. Result: first it worked, then gave X errors. Also with the non-identity transform, in GTK menus, when selecting a menu item, it is not fully painted in blue initially (looks like a tiling artifact), this corrects itself in half a second or so. I am using Gentoo ~amd64, xorg-server-1.8.0, xf86-video-intel-2.11.0, mesa-7.8.1, linux-2.6.33-gentoo-r2 (contains upstream 2.6.33.3). Here is what I did: aep@home ~ $ xrandr Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 8192 x 8192 VGA1 disconnected (normal left inverted right x axis y axis) DVI1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm 1280x1024 60.0*+ 75.0 1280x960 60.0 1152x864 75.0 1024x768 75.1 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 640x480 72.8 75.0 66.7 60.0 720x400 70.1 aep@home ~ $ xrandr --fb 1024x768 --output DVI1 --transform 1,0,128,0,1,128,0,0,1 xrandr: specified screen 1024x768 not large enough for output DVI1 (1280x1024+128+128) aep@home ~ $ xrandr --fb 1024x768 --output DVI1 --transform 1,0,-128,0,1,-128,0,0,1 xrandr: specified screen 1024x768 not large enough for output DVI1 (1280x1024+-128+-128) aep@home ~ $ xrandr --fb 1280x960 --output DVI1 --transform 1,0,0,0,1,-32,0,0,1 xrandr: specified screen 1280x960 not large enough for output DVI1 (1280x1024+0+-32) X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 149 (RANDR) Minor opcode of failed request: 7 (RRSetScreenSize) Serial number of failed request: 24 Current serial number in output stream: 26 aep@home ~ $ xrandr --fb 1280x960 --output DVI1 --transform 1,0,0,0,1,-32,0,0,1 xrandr: specified screen 1280x960 not large enough for output DVI1 (1280x1024+0+-32) aep@home ~ $ xrandr --auto X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 149 (RANDR) Minor opcode of failed request: 7 (RRSetScreenSize) Serial number of failed request: 24 Current serial number in output stream: 26 aep@home ~ $ xrandr --auto X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 149 (RANDR) Minor opcode of failed request: 7 (RRSetScreenSize) Serial number of failed request: 24 Current serial number in output stream: 26 aep@home ~ $ xrandr --output DVI1 --auto X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 149 (RANDR) Minor opcode of failed request: 7 (RRSetScreenSize) Serial number of failed request: 24 Current serial number in output stream: 25 -- Alexander E. Patrakov