xrandr Error of failed request: BadValue (integer parameter out of range) + RRSetScreenSize

Bug #1656014 reported by michaelcole
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
New
Undecided
Unassigned

Bug Description

This is similar to https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1537065. That was closed for inactivity.

I have a System 76 laptop (1920x1080) w/ 14.04 connected to a 1600x900 monitor via HDMI, and two 1920x1080 monitors via [this device over USB 3.0](https://www.amazon.com/gp/product/B00G5OAT88/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1). I installed the drivers from [here](http://www.displaylink.com/downloads/ubuntu).

I want the 2 USB monitors on top, laptop screen bottom left, HDMI bottom right.

[ 1920 1920 ]
[ 1920 1600 ]

Arandr, made the script below. See also the error, script, xrandr version, and info (in error state).

THE ANNOYING THING IS THE CONFIGURATION WORKS SOMETIMES. There is a light-gray box in the background of arandr. When that box is big enough to hold the other monitors, it works. When it's too small I get the error below. When it's too small, it fits the 1600x900 monitor, but not the 1920x1080 monitor.

How do I fix it, or make the light gray box bigger?

```
☀ .screenlayout/4up.sh
X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 140 (RANDR)
  Minor opcode of failed request: 7 (RRSetScreenSize)
  Value in failed request: 0x0
  Serial number of failed request: 49
  Current serial number in output stream: 50

☀ cat .screenlayout/4up.sh
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1920x1080 --pos 0x1080 --rotate normal --output HDMI1 --mode 1600x900 --pos 1920x1080 --rotate normal --output VGA1 --off --output DVI-I-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output DVI-I-2 --mode 1920x1080 --pos 0x0 --rotate normal

michael@mc-desktop ~
☀ xrandr --version
xrandr program version 1.5.0
Server reports RandR version 1.5

michael@mc-desktop ~
☀ xrandr
Screen 0: minimum 8 x 8, current 3520 x 2160, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+1080 (normal left inverted right x axis y axis) 382mm x 215mm
   1920x1080 60.02*+ 59.93
   1680x1050 59.95 59.88
   1600x1024 60.17
   1400x1050 59.98
   1600x900 60.00
   1280x1024 60.02
   1440x900 59.89
   1280x960 60.00
   1368x768 60.00
   1360x768 59.80 59.96
   1152x864 60.00
   1280x720 60.00
   1024x768 60.00
   1024x576 60.00
   960x540 60.00
   800x600 60.32 56.25
   864x486 60.00
   640x480 59.94
   720x405 60.00
   640x360 60.00
HDMI1 connected 1600x900+1920+1080 (normal left inverted right x axis y axis) 443mm x 249mm
   1600x900 60.00*+
   1280x800 59.91
   1152x864 75.00
   1280x720 60.00
   1024x768 75.08 70.07 60.00
   832x624 74.55
   800x600 72.19 75.00 60.32 56.25
   640x480 75.00 72.81 66.67 60.00
   720x400 70.08
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
DVI-I-2 connected 1920x1080+0+0 477mm x 268mm
   1920x1080 60.00*+ 50.00 59.94
   1680x1050 59.88
   1600x900 60.00
   1280x1024 75.02 60.02
   1440x900 59.90
   1280x800 59.91
   1152x864 75.00
   1280x720 60.00 50.00 59.94
   1024x768 75.08 70.07 60.00
   832x624 74.55
   800x600 72.19 75.00 60.32 56.25
   720x576 50.00
   848x480 60.00
   720x480 60.00 59.94
   640x480 75.00 72.81 66.67 60.00 59.94
   720x400 70.08
DVI-I-1 connected
   1920x1080 60.00 + 50.00 59.94
   1680x1050 59.88
   1600x900 60.00
   1280x1024 75.02 60.02
   1440x900 59.90
   1280x800 59.91
   1152x864 75.00
   1280x720 60.00 50.00 59.94
   1024x768 75.08 70.07 60.00
   832x624 74.55
   800x600 72.19 75.00 60.32 56.25
   720x576 50.00
   848x480 60.00
   720x480 60.00 59.94
   640x480 75.00 72.81 66.67 60.00 59.94
   720x400 70.08
  1680x1050 (0xeb) 119.000MHz +HSync -VSync
        h: width 1680 start 1728 end 1760 total 1840 skew 0 clock 64.67KHz
        v: height 1050 start 1053 end 1059 total 1080 clock 59.88Hz
  1600x900 (0x49) 108.000MHz +HSync +VSync
        h: width 1600 start 1624 end 1704 total 1800 skew 0 clock 60.00KHz
        v: height 900 start 901 end 904 total 1000 clock 60.00Hz
  1280x1024 (0xef) 108.000MHz +HSync +VSync
        h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
        v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
  1280x800 (0x100) 71.000MHz +HSync -VSync
        h: width 1280 start 1328 end 1360 total 1440 skew 0 clock 49.31KHz
        v: height 800 start 803 end 809 total 823 clock 59.91Hz
  1152x864 (0x101) 108.000MHz +HSync +VSync
        h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.50KHz
        v: height 864 start 865 end 868 total 900 clock 75.00Hz
  1280x720 (0x102) 74.250MHz +HSync +VSync
        h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 45.00KHz
        v: height 720 start 725 end 730 total 750 clock 60.00Hz
  1024x768 (0x103) 78.800MHz +HSync +VSync
        h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.06KHz
        v: height 768 start 769 end 772 total 800 clock 75.08Hz
  1024x768 (0x104) 75.000MHz -HSync -VSync
        h: width 1024 start 1048 end 1184 total 1328 skew 0 clock 56.48KHz
        v: height 768 start 771 end 777 total 806 clock 70.07Hz
  1024x768 (0xf7) 65.000MHz -HSync -VSync
        h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
        v: height 768 start 771 end 777 total 806 clock 60.00Hz
  832x624 (0x105) 57.284MHz -HSync -VSync
        h: width 832 start 864 end 928 total 1152 skew 0 clock 49.73KHz
        v: height 624 start 625 end 628 total 667 clock 74.55Hz
  800x600 (0x106) 50.000MHz +HSync +VSync
        h: width 800 start 856 end 976 total 1040 skew 0 clock 48.08KHz
        v: height 600 start 637 end 643 total 666 clock 72.19Hz
  800x600 (0x107) 49.500MHz +HSync +VSync
        h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz
        v: height 600 start 601 end 604 total 625 clock 75.00Hz
  800x600 (0xfa) 40.000MHz +HSync +VSync
        h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
        v: height 600 start 601 end 605 total 628 clock 60.32Hz
  800x600 (0xfb) 36.000MHz +HSync +VSync
        h: width 800 start 824 end 896 total 1024 skew 0 clock 35.16KHz
        v: height 600 start 601 end 603 total 625 clock 56.25Hz
  640x480 (0x108) 31.500MHz -HSync -VSync
        h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz
        v: height 480 start 481 end 484 total 500 clock 75.00Hz
  640x480 (0x109) 31.500MHz -HSync -VSync
        h: width 640 start 664 end 704 total 832 skew 0 clock 37.86KHz
        v: height 480 start 489 end 491 total 520 clock 72.81Hz
  640x480 (0x10a) 30.240MHz -HSync -VSync
        h: width 640 start 704 end 768 total 864 skew 0 clock 35.00KHz
        v: height 480 start 483 end 486 total 525 clock 66.67Hz
  640x480 (0x10b) 25.200MHz -HSync -VSync
        h: width 640 start 656 end 752 total 800 skew 0 clock 31.50KHz
        v: height 480 start 490 end 492 total 525 clock 60.00Hz
  640x480 (0xfd) 25.175MHz -HSync -VSync
        h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
        v: height 480 start 490 end 492 total 525 clock 59.94Hz
  720x400 (0x10c) 28.320MHz -HSync +VSync
        h: width 720 start 738 end 846 total 900 skew 0 clock 31.47KHz
        v: height 400 start 412 end 414 total 449 clock 70.08Hz
  1920x1080 (0x141) 148.500MHz +HSync +VSync
        h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz
        v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz
  1920x1080 (0x142) 148.500MHz +HSync +VSync
        h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.25KHz
        v: height 1080 start 1084 end 1089 total 1125 clock 50.00Hz
  1920x1080 (0x143) 148.352MHz +HSync +VSync
        h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.43KHz
        v: height 1080 start 1084 end 1089 total 1125 clock 59.94Hz
  1680x1050 (0xeb) 119.000MHz +HSync -VSync
        h: width 1680 start 1728 end 1760 total 1840 skew 0 clock 64.67KHz
        v: height 1050 start 1053 end 1059 total 1080 clock 59.88Hz
  1600x900 (0x49) 108.000MHz +HSync +VSync
        h: width 1600 start 1624 end 1704 total 1800 skew 0 clock 60.00KHz
        v: height 900 start 901 end 904 total 1000 clock 60.00Hz
  1280x1024 (0x144) 135.000MHz +HSync +VSync
        h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 79.98KHz
        v: height 1024 start 1025 end 1028 total 1066 clock 75.02Hz
  1280x1024 (0xef) 108.000MHz +HSync +VSync
        h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
        v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
  1440x900 (0x145) 88.750MHz +HSync -VSync
        h: width 1440 start 1488 end 1520 total 1600 skew 0 clock 55.47KHz
        v: height 900 start 903 end 909 total 926 clock 59.90Hz
  1280x800 (0x100) 71.000MHz +HSync -VSync
        h: width 1280 start 1328 end 1360 total 1440 skew 0 clock 49.31KHz
        v: height 800 start 803 end 809 total 823 clock 59.91Hz
  1152x864 (0x101) 108.000MHz +HSync +VSync
        h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.50KHz
        v: height 864 start 865 end 868 total 900 clock 75.00Hz
  1280x720 (0x102) 74.250MHz +HSync +VSync
        h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 45.00KHz
        v: height 720 start 725 end 730 total 750 clock 60.00Hz
  1280x720 (0x146) 74.250MHz +HSync +VSync
        h: width 1280 start 1720 end 1760 total 1980 skew 0 clock 37.50KHz
        v: height 720 start 725 end 730 total 750 clock 50.00Hz
  1280x720 (0x147) 74.176MHz +HSync +VSync
        h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 44.96KHz
        v: height 720 start 725 end 730 total 750 clock 59.94Hz
  1024x768 (0x103) 78.800MHz +HSync +VSync
        h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.06KHz
        v: height 768 start 769 end 772 total 800 clock 75.08Hz
  1024x768 (0x104) 75.000MHz -HSync -VSync
        h: width 1024 start 1048 end 1184 total 1328 skew 0 clock 56.48KHz
        v: height 768 start 771 end 777 total 806 clock 70.07Hz
  1024x768 (0xf7) 65.000MHz -HSync -VSync
        h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
        v: height 768 start 771 end 777 total 806 clock 60.00Hz
  832x624 (0x105) 57.284MHz -HSync -VSync
        h: width 832 start 864 end 928 total 1152 skew 0 clock 49.73KHz
        v: height 624 start 625 end 628 total 667 clock 74.55Hz
  800x600 (0x106) 50.000MHz +HSync +VSync
        h: width 800 start 856 end 976 total 1040 skew 0 clock 48.08KHz
        v: height 600 start 637 end 643 total 666 clock 72.19Hz
  800x600 (0x107) 49.500MHz +HSync +VSync
        h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz
        v: height 600 start 601 end 604 total 625 clock 75.00Hz
  800x600 (0xfa) 40.000MHz +HSync +VSync
        h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
        v: height 600 start 601 end 605 total 628 clock 60.32Hz
  800x600 (0xfb) 36.000MHz +HSync +VSync
        h: width 800 start 824 end 896 total 1024 skew 0 clock 35.16KHz
        v: height 600 start 601 end 603 total 625 clock 56.25Hz
  720x576 (0x148) 27.000MHz -HSync -VSync
        h: width 720 start 732 end 796 total 864 skew 0 clock 31.25KHz
        v: height 576 start 581 end 586 total 625 clock 50.00Hz
  848x480 (0x149) 33.750MHz +HSync +VSync
        h: width 848 start 864 end 976 total 1088 skew 0 clock 31.02KHz
        v: height 480 start 486 end 494 total 517 clock 60.00Hz
  720x480 (0x14a) 27.027MHz -HSync -VSync
        h: width 720 start 736 end 798 total 858 skew 0 clock 31.50KHz
        v: height 480 start 489 end 495 total 525 clock 60.00Hz
  720x480 (0x14b) 27.000MHz -HSync -VSync
        h: width 720 start 736 end 798 total 858 skew 0 clock 31.47KHz
        v: height 480 start 489 end 495 total 525 clock 59.94Hz
  640x480 (0x108) 31.500MHz -HSync -VSync
        h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz
        v: height 480 start 481 end 484 total 500 clock 75.00Hz
  640x480 (0x109) 31.500MHz -HSync -VSync
        h: width 640 start 664 end 704 total 832 skew 0 clock 37.86KHz
        v: height 480 start 489 end 491 total 520 clock 72.81Hz
  640x480 (0x10a) 30.240MHz -HSync -VSync
        h: width 640 start 704 end 768 total 864 skew 0 clock 35.00KHz
        v: height 480 start 483 end 486 total 525 clock 66.67Hz
  640x480 (0x10b) 25.200MHz -HSync -VSync
        h: width 640 start 656 end 752 total 800 skew 0 clock 31.50KHz
        v: height 480 start 490 end 492 total 525 clock 60.00Hz
  640x480 (0xfd) 25.175MHz -HSync -VSync
        h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
        v: height 480 start 490 end 492 total 525 clock 59.94Hz
  720x400 (0x10c) 28.320MHz -HSync +VSync
        h: width 720 start 738 end 846 total 900 skew 0 clock 31.47KHz
        v: height 400 start 412 end 414 total 449 clock 70.08Hz

```

Revision history for this message
michaelcole (8-launchpad-michaelcole-com) wrote :

Ok, found a possible workaround. After boot screen are whack. Remove HDMI, replace HDMI, rerun script. Worked at least once.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.