Bug 45105 - xrandr fails scale output
Summary: xrandr fails scale output
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xrandr (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Lee Leahu
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-22 22:03 UTC by Lee Leahu
Modified: 2013-02-08 18:14 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
X.Org log file (18.91 KB, text/plain)
2012-01-22 22:04 UTC, Lee Leahu
no flags Details

Description Lee Leahu 2012-01-22 22:03:58 UTC
XRANDR is failing to scale the output as requested.

Step #1 - Check the current resolution:

# xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 175, current 1280 x 1024, maximum 2560 x 2048
default connected 1280x1024+0+0 0mm x 0mm
   1280x1024      50.0*    51.0     52.0     53.0  
....


Step #2 - Try scaling the output to the current size (1x1):

# xrandr --output default --scale 1x1
xrandr: Failed to get size of gamma for output default
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (RANDR)
  Minor opcode of failed request:  26 (RRSetCrtcTransform)
  Value in failed request:  0x160
  Serial number of failed request:  20
  Current serial number in output stream:  21


Step #3 - Try scaling the output to be 1/2 the current size (0.5x0.5):

# xrandr --output default --scale 0.5x0.5
xrandr: Failed to get size of gamma for output default
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (RANDR)
  Minor opcode of failed request:  26 (RRSetCrtcTransform)
  Value in failed request:  0x160
  Serial number of failed request:  22
  Current serial number in output stream:  23


Step #4 - Try scaling the output to be 50% larger than the current size (1.5x1.5):

# xrandr --output default --scale 1.5x1.5
xrandr: Failed to get size of gamma for output default
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (RANDR)
  Minor opcode of failed request:  26 (RRSetCrtcTransform)
  Value in failed request:  0x160
  Serial number of failed request:  21
  Current serial number in output stream:  22




Current system details:

OS: Linux 3.1.6, 64-bit
GLIBC: 2.13-r4

Video card: Dual 'nVidia Corporation G96 [GeForce 9500 GT] (rev a1)'

Xorg-server: 1.11.3

 `--  x11-apps/xrandr-1.3.5  amd64 
   `--  x11-libs/libXrandr-1.3.2  (>=x11-libs/libXrandr-1.3) amd64 
   `--  x11-libs/libXrender-0.9.6  (x11-libs/libXrender) amd64 
   `--  x11-libs/libX11-1.4.4  (x11-libs/libX11) amd64 
   `--  sys-devel/libtool-2.4-r1  (>=sys-devel/libtool-2.2.6a) amd64 
   `--  sys-devel/m4-1.4.15  (sys-devel/m4) amd64 
   `--  x11-misc/util-macros-1.15.0  (>=x11-misc/util-macros-1.15.0) amd64 
   `--  media-fonts/font-util-1.2.0  (>=media-fonts/font-util-1.2.0) amd64 
   `--  dev-util/pkgconfig-0.26  (>=dev-util/pkgconfig-0.23) amd64
Comment 1 Lee Leahu 2012-01-22 22:04:59 UTC
Created attachment 56005 [details]
X.Org log file
Comment 2 Lee Leahu 2012-01-22 22:05:57 UTC
My current configuration is:


Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option  "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection


Section "Device"
        Identifier  "Card0-0"
        Driver      "nvidia"
        BusID       "PCI:2:0:0"
EndSection

Section "Screen"
        Identifier "screen"
        SubSection "Display"
                Virtual 2560 2048
        EndSubSection
EndSection
Comment 3 Lee Leahu 2012-01-22 22:07:18 UTC
I've performed some troubleshooting and (excluding the nvidia driver specific messages in the log file) am getting the same behavior using the VESA 2.3.0 driver.
Comment 4 Lee Leahu 2012-01-23 10:10:23 UTC
Hi - I have another computer running Ubuntu 11.04 that does not have this problem.  It is running the following packages:

Xorg-server 1.10.1
Xrandr app – 1.3.1
Xrandr lib – 1.3.1
Comment 5 Aaron Plattner 2013-02-06 18:30:22 UTC
I think this is expected for xf86-video-vesa and the older NVIDIA driver you tried because they don't support configuring scaling via RandR.  Please try a newer NVIDIA driver version.
Comment 6 Lee Leahu 2013-02-08 01:49:35 UTC
My system details have changes since I opened this ticket.

My system details are now:

OS: Linux 3.6.11, 64-bit
GLIBC: 2.15-r3

Video card:  NVIDIA Corporation GF116 [GeForce GTX 550 Ti] (rev a1)

Xorg-server: 1.13.1
NVIDIA Drivers:  310.19

 `--  x11-apps/xrandr-1.3.5  amd64
   `--  x11-libs/libXrandr-1.4.0  (>=x11-libs/libXrandr-1.3) amd64
   `--  x11-libs/libXrender-0.9.7  (x11-libs/libXrender) amd64
   `--  x11-libs/libX11-1.5.0  (x11-libs/libX11) amd64
   `--  sys-devel/automake-1.11.6  (>=sys-devel/automake-1.11.1) amd64
   `--  sys-devel/automake-1.12.6  (>=sys-devel/automake-1.12) [~amd64 keyword]
   `--  sys-devel/autoconf-2.69  (>=sys-devel/autoconf-2.68) amd64
   `--  sys-devel/libtool-2.4-r1  (sys-devel/libtool) amd64
   `--  sys-devel/m4-1.4.16  (sys-devel/m4) amd64
   `--  x11-misc/util-macros-1.17  (>=x11-misc/util-macros-1.17) amd64
   `--  media-fonts/font-util-1.3.0  (>=media-fonts/font-util-1.2.0) amd64
   `--  virtual/pkgconfig-0  (virtual/pkgconfig) amd64

I am running Twinview and the following command works without issues:

# xrandr --output DVI-I-2 --scale 1.5x1.5 --output DVI-I-3 --scale 1.5x1.5
Comment 7 Aaron Plattner 2013-02-08 18:14:40 UTC
Excellent, thanks for confirming.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.